OSDN Git Service

2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
2
3         * libc/include/math.h (log2, log2f): Disable macro versions for C++,
4         as they are incompatible with OpenMP/C++ headers.
5
6 2010-01-10  Corinna Vinschen  <corinna@vinschen.de>
7
8         * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
9         non-ASCII chars on Cygwin.
10         * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
11
12 2009-12-22  Eric Blake  <ebb9@byu.net>
13
14         * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
15         * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
16
17 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
18
19         * NEWS: Update with 1.18.0 info.
20         * README: Ditto.
21         * acinclude.m4: Change version number to 1.18.0.
22         * aclocal.m4: Regenerated.
23         * configure: Ditto.
24         * doc/aclocal.m4: Ditto.
25         * doc/configure: Ditto.
26         * libc/*/aclocal.m4: Ditto.
27         * libc/*/configure: Ditto.
28         * libc/libc.texinfo: Ditto.
29         * libm/*/aclocal.m4: Ditto.
30         * libm/*/configure: Ditto.
31         * libm/libm.texinfo: Ditto.
32         * libc/sys/linux/shared.ld: Add VERS_1.18
33
34 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
35
36         * libc/include/_syslist.h: Add _mkdir transform.
37
38 2009-12-17  Jerker Back  <jerker.back@gmail.com>
39
40         * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
41         ICONV_ZERO_MB_STATE_T macro.
42         * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
43         temporary local variable nullstate to hold empty mbstate_t.
44
45 2009-12-17  Jerker Back  <jerker.back@gmail.com>
46
47         * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
48         function pointer arguments.
49         * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
50         * libc/iconv/lib/ucsconv.h: Ditto.
51         * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
52         * libc/include/sys/reent.h: Ditto.
53         * libc/include/sys/unistd.h: Ditto.
54         * libc/search/bsearch.c: Ditto.
55         * libc/stdio/fseek.c: Ditto.
56         * libc/stdio64/fseeko64.c: Ditto.
57         * libc/stdlib/atexit.c: Ditto.
58         * libc/stdlib/on_exit.c: Ditto.
59
60 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
61
62         * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
63         * libc/machine/arm/machine/endian.h: Remove (Conflicts with
64         libc/include/machine/endian.h)
65
66 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
67
68         * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
69
70 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
71
72         * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
73         * libc/include/sys/stat.h: Use struct timespec st_*tim,
74         blksize_t st_blksize, blkcnt_t st_blocks.
75         Add st_*time compatibility macros.
76
77 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
78
79         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
80         for ALIGNBYTES on SPARC.
81
82 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
83
84         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
85         and ETOOMANYREFS into general list as they are referenced
86         by OpenGroup and needed by RTEMS.
87
88 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
89
90         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
91
92 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
93
94         * libc/sys/rtems/machine/_types.h: New (Derived from
95         machine/_default_types.h).
96         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
97         * libc/sys/rtems/sys/param.h:
98         Update copyright notice from FreeBSD.
99         Remove HZ.
100         Add #include <sys/priority.h>
101         Remove priority handling (moved to sys/priority.h).
102         Remove CLBYTES (Unused, abandoned in BSD).
103         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
104         Remove CIRCLEQ_*.
105
106 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
107
108         * libc/machine/xc16x/Makefile.am: Fix typo and refer
109         to puts.c instead of putc.c.
110         * libc/machine/xc16x/Makefile.in: Regenerated.
111
112 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
113
114         * libc/machine/m68k/memcpy.S: Patch to support
115         boards which do not support unaligned read/write.
116
117 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
118
119         * configure.host: Add xc16x support.
120         * libc/include/machine/ieeefp.h: Ditto.
121         * libc/include/sys/config.h: Ditto.
122         * libc/machine/configure.in: Ditto.
123         * libc/machine/Makefile.in: Regenerated.
124         * libc/machine/aclocal.m4: Ditto.
125         * libc/machine/configure: Ditto.
126         * libc/machine/xc16x/Makefile.am: New file.
127         * libc/machine/xc16x/Makefile.in: Ditto.
128         * libc/machine/xc16x/aclocal.m4: Ditto.
129         * libc/machine/xc16x/configure: Ditto.
130         * libc/machine/xc16x/configure.in: Ditto.
131         * libc/machine/xc16x/putchar.c: Ditto.
132         * libc/machine/xc16x/puts.c: Ditto.
133         * libc/machine/xc16x/setjmp.S: Ditto.
134
135 2009-12-08  Eric Blake  <ebb9@byu.net>
136
137         Fix some *at declarations.
138         * libc/include/stdio.h (symlinkat): Move this...
139         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
140         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
141         match POSIX.
142
143 2009-12-03  Craig Howland <howland@LGSInnovations.com>
144
145         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
146         * libc/stdlib/wcstod.c:  Ditto.
147         * libc/stdlib/dtoastub.c:  Ditto.
148
149 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
150
151         Use NetBSD fix for CVE-2009-0689 security vulnerability.
152         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
153         size_t, as in latest NetBSD.
154         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
155         value 15.
156         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
157
158 2009-11-20  Nick Clifton  <nickc@redhat.com>
159
160         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
161         (call-saved) with r14 (call-used).
162
163 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
164
165         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
166         containing useless constant before advancing fp sp over it.
167         (_f_tanf): Likewise.
168
169 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
170
171         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
172         _mbtowc_r with direct call to __mbtowc.
173         * libc/stdio/vfscanf.c: Ditto.
174         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
175         with direct call to __mbtowc.
176         * libc/stdlib/mblen.c: Ditto.
177         * libc/stdlib/mblen_r.c: Ditto.
178         * libc/stdlib/mbrtowc.c: Ditto.
179         * libc/stdlib/mbstowcs_r.c: Ditto.
180         * libc/stdlib/mbtowc.c: Ditto.
181         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
182         with direct call to __wctomb.
183         * libc/stdlib/wcsnrtombs.c: Ditto.
184         (_wcsnrtombs_r): Ditto.
185         * libc/stdlib/wcstombs_r.c: Ditto.
186         * libc/stdlib/wctob.c: Ditto.
187         * libc/stdlib/wctomb.c: Ditto.
188
189         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
190         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
191         defined.
192         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
193         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
194         defined.
195
196         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
197         ch >= 0.
198
199 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
200
201         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
202         * libc/include/math.h (logb, logbf): ...to here.
203
204 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
205
206         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
207
208 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
209
210         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
211         low-level seek error condition.  Restore old errno in case of
212         success.  Don't use new position after seek as error condition,
213         rather check for return value of -1 and errno.  Handle EINVAL
214         just like ESPIPE.  Only set fp->_offset if errno is 0.
215
216 2009-10-27  Nick Clifton  <nickc@redhat.com>
217
218         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
219
220 2009-10-26  DJ Delorie  <dj@redhat.com>
221
222         * configure.host: Add support for RX architecture.
223         * libc/include/machine/ieeefp.h: Likewise.
224         * libc/include/machine/setjmp.h: Likewise.
225         * libc/include/machine/configure.in: Likewise.
226         * libc/include/machine/configure: Regenerate.
227         * libc/machine/rx: New directory.
228         * libc/machine/rx/*: New files to support RX architecture.
229
230 2009-10-24  Eric Blake  <ebb9@byu.net>
231
232         * libc/include/ctype.h (__ctype_lookup): New macro.
233         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
234         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
235         on 64-bit machines.
236
237 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
238
239         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
240         that to CFLAGS.
241         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
242         as it sets the same flags as we are using.
243         * aclocal.m4: Regenerated.
244         * configure: Ditto.
245         * Makefile.in: Ditto.
246         * iconvdata/aclocal.m4: Ditto.
247         * iconvdata/configure: Ditto.
248         * iconvdata/Makefile.in: Ditto.
249         * doc/aclocal.m4: Ditto.
250         * doc/configure: Ditto.
251         * doc/Makefile.in: Ditto.
252         * libc/aclocal.m4: Ditto.
253         * libc/configure: Ditto.
254         * libc/Makefile.in: Ditto.
255         * libc/*Makefile.in: Ditto.
256         * libc/*aclocal.m4: Ditto.
257         * libc/*configure: Ditto.
258         * libm/*Makefile.in: Ditto.
259         * libm/*aclocal.m4: Ditto.
260         * libm/*configure: Ditto.
261
262 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
263
264         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
265         if not __STRICT_ANSI__ or stdc version C99 or greater.
266         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
267         for fseeko and ftello prototypes.
268
269 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
270
271         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
272
273 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
274
275         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
276         exception for KOI8 charsets.
277
278 2009-10-13  Eric Blake  <ebb9@byu.net>
279
280         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
281         new to POSIX 2008.
282
283 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
284
285         * libc/include/sys/signal.h: Include <sys/types.h> always.
286         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
287         standards.
288
289 2009-10-09  Dave Korn  <dave.korn@artimi.com>
290
291         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
292         defining struct timeval.
293
294 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
295
296         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
297         (__default_locale): New global variable set to the default locale.
298         (__get_locale_env): Return __default_locale rather than fixed "C".
299
300 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
301
302         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
303         * libc/stdlib/assert.c (_assert_func): Do not specify
304         __assert_func if HAVE_ASSERT_FUNC flag is set.
305
306 2009-10-08  Eric Blake  <ebb9@byu.net>
307
308         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
309         (__getopt_long_only_r): Protect declarations, to avoid compiler
310         warning.
311
312 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
313
314         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
315         charset on Cygwin.
316
317 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
318
319         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
320         value encoding.
321         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
322         value decoding.
323
324 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
325
326         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
327         prefix.  Add some words to documentation.
328
329 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
330
331         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
332         characters to their corresponding Windows Unicode value.
333
334 2009-09-28  Michael Eager <eager@eagercon.com>
335
336         * configure.host: Add microblaze.
337         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
338         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
339         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
340         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
341         * libc/include/sys/types.h: Treat XMK like rtems, define
342         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
343         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
344         * libc/machine/configure.in: Add microblaze.
345         * libc/machine/configure: Add microblaze (not regenerated).
346         * libc/machine/microblaze/configure.in: NEW.
347         * libc/machine/microblaze/configure: Generate.
348         * libc/machine/microblaze/Makefile.am: NEW.
349         * libc/machine/microblaze/Makefile.in: Generate.
350         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
351         mallocr.c, longjmp.S, setjmp.S}: NEW.
352         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
353         mALLOc(): return malloc value.
354
355 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
356
357         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
358         (lc_message_charset): Ditto.
359         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
360         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
361         Cygwin.
362         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
363         Cygwin.
364
365 2009-09-26  Eric Blake  <ebb9@byu.net>
366
367         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
368         Add declarations.
369
370 2009-09-24  Eric Blake  <ebb9@byu.net>
371
372         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
373         Add declarations.
374
375 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
376
377         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
378         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
379
380 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
381
382         * libc/include/stdlib.h: Add posix_memalign.
383
384 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
385
386         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
387         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
388
389 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
390
391         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
392         "case $host".
393
394 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
395
396         * libc/include/sys/unistd.h: Declare getpagesize as returning
397         POSIX-mandated int.
398         * libc/sys/linux/sys/unistd.h: Ditto.
399
400 2009-08-31  Takaki Makino  <t@snowelm.com>
401
402         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
403         newer gcc versions.
404         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
405
406 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
407
408         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
409         numbers.
410         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
411         charsets.
412         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
413
414 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
415
416         * libc/locale/locale.c: Update documentation.
417         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
418
419 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
420
421         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
422         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
423         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
424
425 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
426
427         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
428         space" (U+00A0).
429         * libc/ctype/iswblank.c (iswblank): Likewise.
430
431 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
432
433         * libc/locale/locale.c (loadlocale): Throughout check charset string
434         case insensitive and store internal charset string uppercased.  Allow
435         "UTF8" additionally to "UTF-8".  Add this change to documentation.
436
437 2009-08-21  Eric Blake  <ebb9@byu.net>
438
439         * libc/include/iconv.h (iconv): Match POSIX prototype.
440         * libc/iconv/lib/iconv.c (iconv): Likewise.
441
442 2009-08-21  Craig Howland <howland@LGSInnovations.com>
443
444         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
445         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
446
447 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
448
449         * iconvdata/Makefile.am (all): Remove.
450         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
451         (all): ... this.
452         * libc/sys/arc/Makefile.am: Likewise.
453         * libc/sys/arm/Makefile.am: Likewise.
454         * libc/sys/d10v/Makefile.am: Likewise.
455         * libc/sys/decstation/Makefile.am: Likewise.
456         * libc/sys/h8300hms/Makefile.am: Likewise.
457         * libc/sys/h8500hms/Makefile.am: Likewise.
458         * libc/sys/linux/Makefile.am: Likewise.
459         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
460         * libc/sys/m88kbug/Makefile.am: Likewise.
461         * libc/sys/mmixware/Makefile.am: Likewise.
462         * libc/sys/netware/Makefile.am: Likewise.
463         * libc/sys/rdos/Makefile.am: Likewise.
464         * libc/sys/rtems/Makefile.am: Likewise.
465         * libc/sys/sh/Makefile.am: Likewise.
466         * libc/sys/sparc64/Makefile.am: Likewise.
467         * libc/sys/sun4/Makefile.am: Likewise.
468         * libc/sys/sysmec/Makefile.am: Likewise.
469         * libc/sys/sysnec810/Makefile.am: Likewise.
470         * libc/sys/sysnecv850/Makefile.am: Likewise.
471         * libc/sys/sysvi386/Makefile.am: Likewise.
472         * libc/sys/sysvnecv70/Makefile.am: Likewise.
473         * libc/sys/tic80/Makefile.am: Likewise.
474         * libc/sys/w65/Makefile.am: Likewise.
475         * libc/sys/z8ksim/Makefile.am: Likewise.
476         * iconvdata/Makefile.in: Regenerate.
477         * libc/sys/a29khif/Makefile.in: Likewise.
478         * libc/sys/arc/Makefile.in: Likewise.
479         * libc/sys/arm/Makefile.in: Likewise.
480         * libc/sys/d10v/Makefile.in: Likewise.
481         * libc/sys/decstation/Makefile.in: Likewise.
482         * libc/sys/h8300hms/Makefile.in: Likewise.
483         * libc/sys/h8500hms/Makefile.in: Likewise.
484         * libc/sys/linux/Makefile.in: Likewise.
485         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
486         * libc/sys/m88kbug/Makefile.in: Likewise.
487         * libc/sys/mmixware/Makefile.in: Likewise.
488         * libc/sys/netware/Makefile.in: Likewise.
489         * libc/sys/rdos/Makefile.in: Likewise.
490         * libc/sys/rtems/Makefile.in: Likewise.
491         * libc/sys/sh/Makefile.in: Likewise.
492         * libc/sys/sparc64/Makefile.in: Likewise.
493         * libc/sys/sun4/Makefile.in: Likewise.
494         * libc/sys/sysmec/Makefile.in: Likewise.
495         * libc/sys/sysnec810/Makefile.in: Likewise.
496         * libc/sys/sysnecv850/Makefile.in: Likewise.
497         * libc/sys/sysvi386/Makefile.in: Likewise.
498         * libc/sys/sysvnecv70/Makefile.in: Likewise.
499         * libc/sys/tic80/Makefile.in: Likewise.
500         * libc/sys/w65/Makefile.in: Likewise.
501         * libc/sys/z8ksim/Makefile.in: Likewise.
502
503         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
504         from newlib_ldbl_eq_dbl.
505         * configure: Regenerate.
506
507 2009-08-19  Eric Blake  <ebb9@byu.net>
508
509         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
510         * libc/libc.texinfo (Top): Add posix node to menu.
511
512 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
513
514         * newlib.hin: Add comment regarding file being manually edited.
515         * Makefile.am: Add no-op rule for newlib.hin.
516         * Makefile.in: Regenerated.
517
518 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
519
520         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
521
522 2009-08-18  Eric Blake  <ebb9@byu.net>
523
524         * libc/posix/popen.c (popen): Fix documented prototype.
525
526         Improve popen compatibility with glibc.
527         * libc/posix/popen.c (popen): The 2006-08-22 change to use
528         FD_CLOEXEC disagrees with other implementations; instead, use
529         pidlist to work even when fcntl is not available.  Meanwhile,
530         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
531         cygwin-specific code, now that cygwin has its own version.
532         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
533         * libc/posix/posix.tex: New file.
534
535 2009-08-17  Craig Howland <howland@LGSInnovations.com>
536
537         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
538         version of strncpy() (fixing two bugs).
539
540 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
541
542         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
543
544 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
545
546         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
547         HAVE_MKDIR is defined.
548
549 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
550
551         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
552         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
553         (CHEWOUT_FILES): Add mkdirr.def.
554         * libc/reent/Makefile.in: Regenerate.
555         * libc/reent/mkdirr.c: New file.
556
557 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
558
559         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
560         return type instead of int.
561
562 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
563
564         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
565         when a lower-case character is detected.
566
567 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
568
569         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
570         pair handling to be more bullet-proof even with incomplete UTF-8
571         sequences.  Add check for 4 byte sequences resulting in values
572         outside the valid Unicode range.  Add a comment to clarify checking
573         for invalid CESU-8 sequences.
574
575 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
576
577         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
578         of handling incomplete sequences.
579
580 2009-07-22  Eric Blake  <ebb9@byu.net>
581
582         Avoid a fault from locking a closed standard file.
583         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
584         been previously closed.
585
586 2009-07-09  Craig Howland <howland@LGSInnovations.com>
587
588         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
589         isnan() (C99 macro).
590         * libm/math/wf_log.c:  Ditto.
591         * libm/math/wf_j0.c:  Ditto.
592         * libm/math/wf_sqrt.c:  Ditto.
593         * libm/math/wf_pow.c:  Ditto.
594         * libm/math/wf_fmod.c:  Ditto.
595         * libm/math/wf_remainder.c:  Ditto.
596         * libm/math/wf_scalb.c:  Ditto.
597         * libm/math/wf_atanh.c:  Ditto.
598         * libm/math/wf_cosh.c:  Ditto.
599         * libm/math/wf_acos.c:  Ditto.
600         * libm/math/wf_acosh.c:  Ditto.
601         * libm/math/wf_jn.c:  Ditto.
602         * libm/math/wf_log10.c:  Ditto.
603         * libm/math/wf_asin.c:  Ditto.
604         * libm/math/wf_j1.c:  Ditto.
605         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
606         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
607         match that from s_isinf.c.
608         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
609         remove un-necessary extension use (in a similar manner to as was
610         recently done in math.h).
611         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
612         ieeefp.h).
613         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
614
615 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
616
617         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
618         for RTEMS.
619
620 2009-07-03  Eric Blake  <ebb9@byu.net>
621
622         Add mkdtemp, mkstemps.
623         * libc/stdio/mktemp.c: Fix documentation.
624         (_gettemp): Add domkdir and length parameters.  Check for
625         insufficient 'X' suffix.  Drop cygwin-specific code.
626         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
627         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
628         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
629         (mkstemps): Declare them.
630
631         Add fpurge.
632         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
633         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
634         Build it.
635         * libc/stdio/Makefile.in: Regenerated.
636         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
637         * libc/stdio/stdio.tex: Build documentation.
638
639 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
640
641         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
642         sf_fpclassify as these are now used for infinity testing.
643         * Makefile.in: Regenerated.
644
645 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
646
647         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
648         so it can point to an aligned structure or double.
649
650 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
651
652         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
653         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
654         documentation.
655
656 2009-06-17  Michael Eager <eager@eagercon.com>
657
658         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
659         PTHREAD_MUTEX_NORMAL.
660         * libc/include/sys/features.h: Same.
661         * libc/include/sys/types.h: Same.
662
663 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
664
665         * libc/include/locale.h (struct lconv): Add missing members required
666         by POSIX.1-2008.
667         * libc/locale/locale.c (lconv): Initialize new members to default
668         values in "C" locale.
669
670 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
671
672         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
673         radix char instead of assuming length 1.
674         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
675         (gethex): Allow multibyte decimal point.
676         Fix compiler warnings due to different signedness of pointer types.
677         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
678         (_strtod_r): Allow multibyte decimal point.
679         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
680         endptr position if the decimal point is a multibyte char.
681
682 2009-06-16  Craig Howland <howland@LGSInnovations.com>
683
684         * libc/ctype/local.h (__locale_charset): Add arguments to
685         prototype
686         * libc/stdlib/local.h (__locale_charset): Ditto.
687
688 2009-06-16  Craig Howland <howland@LGSInnovations.com>
689
690         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
691         macros to remove un-necessary extension use.  isinf and isnan also
692         changed to use fpclassify.  isfinite macro modified to run faster by
693         only calling fpclassify once instead of possibly twice.
694
695 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
696
697         * libc/ctype/tolower.c (tolower): Cast conversion result from
698         mbtowc/wctomb to unsigned char to avoid negative return values.
699         * libc/ctype/toupper.c (toupper): Ditto.
700
701 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
702
703         * libc/string/wcwidth.c: Optimize for speed.
704
705 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
706
707         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
708         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
709         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
710         (__locale_cjk_lang): New function.
711         * libc/string/local.h (__locale_cjk_lang): Declare.
712         * libc/string/wcwidth.c: Fix comments.
713         (__wcwidth): Handle CJK Ambiguous Width characters according
714         to setting returned by __locale_cjk_lang.
715
716 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
717
718         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
719         thumb2.
720
721 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
722
723         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
724         (__jp2uc): Change the scope to static function.
725         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
726         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
727
728 2009-05-27  Neal H. Walfield  <neal@gnu.org>
729
730         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
731         _JBTYPE and the size of sigset_t.
732
733 2009-05-15  Craig Howland <howland@LGSInnovations.com>
734
735         * configure.in:  Add configuration test for long double type existing
736         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
737         and _LDBL_EQ_DBL tests to not link so that will work with
738         cross-compilers.
739         * configure: Regenerated.
740         * Makefile.in: Ditto.
741         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
742         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
743         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
744         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
745         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
746         *libm/common/s_infconst.c:  Change definitions to use values from
747         float.h instead of non-so-portable integer forms.  Mark as being
748         deprecated (because now removed from math.h, are not used anywhere
749         in Newlib, itself).
750
751 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
752
753         * libc/string/local.h: New file.
754         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
755         characters to Unicode here.  Handle surrogate pairs for UTF-16
756         systems.  Call __wcwidth rather than wcwidth.
757         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
758         wcwidth implementation for Unicode.
759         (bisearch): New static function.
760         (__wcwidth): New function.  Take wint_t rather than wchar_t as
761         parameter to allow full Unicode handling on UTF-16 systems.
762         Move old wcwidth implementation here for non-multibyte aware
763         systems.
764         (wcwidth): Convert japanese wide characters to Unicode here.
765         Call __wcwidth rather than using iswprint/iswcntrl.
766
767 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
768
769         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
770         to jp2uc.c.
771         (__jp2uc): Remove declaration.
772         (_jp2uc): Declare.
773         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
774         (__jp2uc): Remove Cygwin special case.
775         (_jp2uc): New function.  On Cygwin, just return c.
776         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
777         * libc/ctype/iswblank.c (iswblank): Ditto.
778         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
779         * libc/ctype/iswprint.c (iswprint): Ditto.
780         * libc/ctype/iswpunct.c (iswpunt): Ditto.
781         * libc/ctype/iswspace.c (iswspace): Ditto.
782         * libc/ctype/towlower.c (towlower): Ditto.
783         * libc/ctype/towupper.c (towupper): Ditto.
784
785 2009-05-13  Paul Brook  <paul@codesourcery.com>
786
787         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
788         IP before saving.  Likewise when restoring.
789
790 2009-05-13  Paul Brook  <paul@codesourcery.com>
791
792         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
793
794 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
795
796         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
797
798 2009-05-11  Craig Howland <howland@LGSInnovations.com>
799
800         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
801         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
802
803 2009-05-08  Nick Clifton  <nickc@redhat.com>
804
805         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
806         the write-after-approval list.
807
808 2009-04-30  Anthony Green  <green@moxielogic.com>
809
810         * MAINTAINERS: Add myself as moxie maintainer and to the
811         write-after-approval list.
812
813 2009-04-30  Eric Blake  <ebb9@byu.net>
814
815         Allow gcc warning for toupper even with extended charsets.
816         * libc/include/ctype.h (toupper, tolower)
817         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
818         'char' even when we must call the function for correct behavior.
819         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
820
821 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
822
823         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
824         file lock and released before the file lock to avoid a deadlock
825         scenario.
826         * libc/stdio/fgets.c: Ditto.
827         * libc/stdio/fgetwc.c: Ditto.
828         * libc/stdio/fgetws.c: Ditto.
829         * libc/stdio/fread.c: Ditto.
830         * libc/stdio/fseek.c: Ditto.
831         * libc/stdio/getc.c: Ditto.
832         * libc/stdio/getdelim.c: Ditto.
833         * libc/stdio/gets.c: Ditto.
834
835 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
836
837         * configure.in: Add configuration test for long double equals dbl
838         and set flag _LDBL_EQ_DBL if true.
839         * configure: Regenerated.
840         * newlib.hin: Add _LDBL_EQ_DBL flag.
841         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
842         _HAVE_LDBL_MATH.
843         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
844         _HAVE_LDBL_STDLIB.
845         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
846         * libc/stdlib/local.h: Ditto.
847
848 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
849
850         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
851         if __UINTPTR_MAX__ defined.
852
853 2009-04-24  Eric Blake  <ebb9@byu.net>
854
855         Be namespace clean in ctype.h.
856         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
857         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
858         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
859         (isascii, toascii): Don't use 'c' as macro parameter name.
860
861         Trigger gcc warning if isFoo macros are called with plain char.
862         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
863         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
864         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
865         warn when user calls macro with a char argument.
866
867 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
868
869         * libc/string/strcasecmp.c: Optimized rewrite.
870         * libc/string/strncasecmp.c: Fix description.
871         * libc/string/strlwr.c: Avoid passing signed char to tolower.
872         * libc/string/strupr.c: Avoid passing signed char to tolower.
873
874 2009-04-23  Paul Brook  <paul@codesourcery.com>
875             Kazu Hirata  <kazu@codesourcery.com>
876
877         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
878         to malloc.  Allocate dynamically only if it is present.
879         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
880         reference to free.  Call free only if it is present.
881
882 2009-04-22 Anthony Green <green@moxielogic.com>
883
884         * configure.host: Add moxie support.
885         * libc/machine/configure.in: Add moxie support.
886         * libc/machine/configure: Rebuilt.
887         * libc/machine/moxie/aclocal.m4: New file.
888         * libc/machine/moxie/configure: New file.
889         * libc/machine/moxie/configure.in: New file.
890         * libc/machine/moxie/Makefile.am: New file.
891         * libc/machine/moxie/Makefile.in: New file.
892         * libc/machine/moxie/setjmp.S: New file.
893         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
894         * libc/include/machine/ieeefp.h: Add moxie support.
895
896 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
897
898         * libc/stdio/local.h (__chclass, __state_table, __action_table):
899         Add extern to the declarations.
900         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
901
902 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
903
904         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
905         _CTYPE_DATA_128_256.
906         * libc/ctype/ctype_cp.h: Split off all character class values for
907         character 255 from the rest of the definitions.
908         (__ctype_cp): Use the new definitions.  Make sure that the table
909         always contains 0 for EOF (-1).
910         * libc/ctype/ctype_iso.h: Ditto.
911
912 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
913
914         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
915         (__sf_fake_stderr): Declare locally with weak attribute.
916
917 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
918
919         * libc/include/_ansi.h: Move C++ defines to top of file.
920         (_NOTHROW): New macro.
921         (_EXFUN_NOTHROW): Likewise.
922         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
923         (free): Likewise.
924         (malloc): Likewise.
925         (realloc): Likewise.
926         (_malloc_r): Likewise.
927         (_callor_r): Likewise.
928         (_free_r): Likewise.
929         (_realloc_r): Likewise.
930
931 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
932
933         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
934         be _HAVE_LDBL_MATH.
935         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
936         be _HAVE_LDBL_STDLIB.
937
938 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
939
940         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
941         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
942         * libc/stdlib/strtold.c: Include local.h.
943         * libc/stdlib/wcstold.c: Likewise.
944         * libm/common/atanl.c: Likewise.
945         * libm/common/cosl.c: Likewise.
946         * libm/common/sinl.c: Likewise.
947         * libm/common/modfl.c: Likewise.
948         * libm/common/frexpl.c: Likewise.
949         * libm/common/tanhl.c: Likewise.
950         * libm/common/tanl.c: Likewise.
951         * libm/common/expm1l.c: Likewise.
952         * libm/common/log1pl.c: Likewise.
953         * libm/common/ceill.c: Likewise.
954         * libm/common/fabsl.c: Likewise.
955         * libm/common/floorl.c: Likewise.
956         * libm/common/acosl.c: Likewise.
957         * libm/common/asinl.c: Likewise.
958         * libm/common/atan2l.c: Likewise.
959         * libm/common/coshl.c: Likewise.
960         * libm/common/expl.c: Likewise.
961         * libm/common/fmodl.c: Likewise.
962         * libm/common/hypotl.c: Likewise.
963         * libm/common/ldexpl.c: Likewise.
964         * libm/common/log10l.c: Likewise.
965         * libm/common/logl.c: Likewise.
966         * libm/common/powl.c: Likewise.
967         * libm/common/sqrtl.c: Likewise.
968         * libm/common/copysignl.c: Likewise.
969         * libm/common/ilogbl.c: Likewise.
970         * libm/common/nanl.c: Likewise.
971         * libm/common/cbrtl.c: Likewise.
972         * libm/common/asinhl.c: Likewise.
973         * libm/common/nextafterl.c: Likewise.
974         * libm/common/rintl.c: Likewise.
975         * libm/common/scalbnl.c: Likewise.
976         * libm/common/exp2l.c: Likewise.
977         * libm/common/fdiml.c: Likewise.
978         * libm/common/fmal.c: Likewise.
979         * libm/common/fmaxl.c: Likewise.
980         * libm/common/fminl.c: Likewise.
981         * libm/common/lrintl.c: Likewise.
982         * libm/common/lroundl.c: Likewise.
983         * libm/common/nearbyintl.c: Likewise.
984         * libm/common/remquol.c: Likewise.
985         * libm/common/roundl.c: Likewise.
986         * libm/common/scalblnl.c: Likewise.
987         * libm/common/truncl.c: Likewise.
988         * libm/common/acoshl.c: Likewise.
989         * libm/common/atanhl.c: Likewise.
990         * libm/common/erfcl.c: Likewise.
991         * libm/common/erfl.c: Likewise.
992         * libm/common/lgammal.c: Likewise.
993         * libm/common/remainderl.c: Likewise.
994         * libm/common/tgammal.c: Likewise.
995         * libm/common/sinhl.c: Likewise.
996         * libm/common/llroundl.c: Likewise.
997         * libm/common/llrintl.c: Likewise.
998         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
999
1000 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
1001
1002         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
1003         * libc/include/math.h (llrintl): Declare.
1004         * libm/common/llrintl.c: New File.
1005         * libm/common/Makefile.am: New File added.
1006         * libm/common/Makefile.in: Regenerate.
1007
1008 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
1009
1010         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1011         avoid executable test.
1012         * libc/configure: Regenerate.
1013
1014 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
1015
1016         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
1017         * configure: Regenerated.
1018         * Makefile.in: Regenerated.
1019         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
1020         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
1021         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1022         avoid executable test.
1023         * libm/configure: Regenerated.
1024
1025 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
1026
1027         * libc/misc/init.c (__libc_fini_array): Process fini_array in
1028         reverse order as compliant with the ELF specification.
1029
1030 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
1031
1032         * libc/machine/spu/Makefile.am: Add new File.
1033         * libc/machine/spu/Makefile.in: Regenerate.
1034         * libc/machine/spu/fdopen.c: New file.
1035
1036 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
1037
1038         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
1039
1040 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
1041
1042         * libm/libm.texinfo: Add long double function support chapter.
1043         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
1044         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
1045         (strtold, wcstold): Declare.
1046         * libc/stdlib/strtold.c: New File.
1047         * libc/stdlib/wcstold.c: Likewise.
1048         * libc/configure.in: Add long double check.
1049         * libc/configure: Regenerate.
1050         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
1051         * libc/stdlib/Makefile.in: Regenerate.
1052         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
1053         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
1054         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
1055         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
1056         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
1057         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
1058         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
1059         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
1060         * libm/common/atanl.c: New File.
1061         * libm/common/cosl.c: Likewise.
1062         * libm/common/sinl.c: Likewise.
1063         * libm/common/modfl.c: Likewise.
1064         * libm/common/frexpl.c: Likewise.
1065         * libm/common/tanhl.c: Likewise.
1066         * libm/common/tanl.c: Likewise.
1067         * libm/common/expm1l.c: Likewise.
1068         * libm/common/log1pl.c: Likewise.
1069         * libm/common/ceill.c: Likewise.
1070         * libm/common/fabsl.c: Likewise.
1071         * libm/common/floorl.c: Likewise.
1072         * libm/common/acosl.c: Likewise.
1073         * libm/common/asinl.c: Likewise.
1074         * libm/common/atan2l.c: Likewise.
1075         * libm/common/coshl.c: Likewise.
1076         * libm/common/expl.c: Likewise.
1077         * libm/common/fmodl.c: Likewise.
1078         * libm/common/hypotl.c: Likewise.
1079         * libm/common/ldexpl.c: Likewise.
1080         * libm/common/log10l.c: Likewise.
1081         * libm/common/logl.c: Likewise.
1082         * libm/common/powl.c: Likewise.
1083         * libm/common/sqrtl.c: Likewise.
1084         * libm/common/copysignl.c: Likewise.
1085         * libm/common/ilogbl.c: Likewise.
1086         * libm/common/nanl.c: Likewise.
1087         * libm/common/cbrtl.c: Likewise.
1088         * libm/common/asinhl.c: Likewise.
1089         * libm/common/nextafterl.c: Likewise.
1090         * libm/common/rintl.c: Likewise.
1091         * libm/common/scalbnl.c: Likewise.
1092         * libm/common/exp2l.c: Likewise.
1093         * libm/common/fdiml.c: Likewise.
1094         * libm/common/fmal.c: Likewise.
1095         * libm/common/fmaxl.c: Likewise.
1096         * libm/common/fminl.c: Likewise.
1097         * libm/common/lrintl.c: Likewise.
1098         * libm/common/lroundl.c: Likewise.
1099         * libm/common/nearbyintl.c: Likewise.
1100         * libm/common/remquol.c: Likewise.
1101         * libm/common/roundl.c: Likewise.
1102         * libm/common/scalblnl.c: Likewise.
1103         * libm/common/truncl.c: Likewise.
1104         * libm/common/acoshl.c: Likewise.
1105         * libm/common/atanhl.c: Likewise.
1106         * libm/common/erfcl.c: Likewise.
1107         * libm/common/erfl.c: Likewise.
1108         * libm/common/lgammal.c: Likewise.
1109         * libm/common/remainderl.c: Likewise.
1110         * libm/common/tgammal.c: Likewise.
1111         * libm/common/sinhl.c: Likewise.
1112         * libm/common/llroundl.c: Likewise.
1113         * libm/configure.in: Add long double check.
1114         * libm/configure: Regenerate.
1115         * libm/common/Makefile.am: Add new files.
1116         * libm/common/Makefile.in: Regenerate.
1117
1118 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1119
1120         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
1121         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
1122         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
1123         class mappings.
1124         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
1125         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
1126         * libc/ctype/isblank.c (isblank): Special case TAB.
1127         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
1128         in (_U|_L).
1129         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
1130         * libc/include/ctype.h (islower): Same in macro.
1131         (isupper): Ditto.
1132         (isblank): Special case TAB.  Redefine macro for GCC only.
1133
1134 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1135
1136         * libc/stdlib/local.h (__mbtowc): Declare extern.
1137         (__wctomb): Ditto.
1138
1139 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1140
1141         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
1142         recognizes 0x8e and 0x8f lead bytes.
1143         (_iseucjp2): Rename from _iseucjp.
1144         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
1145         triplebyte sequences as well.
1146         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
1147         triplebyte sequences as well.
1148
1149 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
1150
1151         * configure.in: Add square brackets for the array aliasing conftest.
1152         * configure: Regenerate.
1153
1154 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
1155
1156         * libc/string/strncasecmp.c: Optimized rewrite.
1157
1158 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
1159
1160         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
1161         * libc/include/machine/time.h (nanosleep): Declare.
1162
1163 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
1164
1165         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
1166
1167 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1168
1169         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
1170
1171 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1172
1173         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
1174         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
1175
1176 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1177
1178         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
1179         to avoid a warning with -Wmissing-prototypes.
1180
1181 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1182
1183         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
1184
1185 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1186
1187         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
1188         (linux_getpid, linux_gettid): Declare.
1189
1190 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1191
1192         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
1193         profiling.
1194
1195 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1196
1197         * libc/include/math.h: Remove duplicate copysign prototype.
1198         Fix __math_68881 define typo.  Guard functions of the rint family.
1199
1200 2009-04-03  Craig Howland <howland@LGSInnovations.com>
1201
1202         * libm/common/s_llrint.c: New file, implementing llrint().
1203         * libm/common/sf_llrint.c: New file, implementing llrintf().
1204         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
1205         * libm/common/Makefile.in:  Regenerate.
1206
1207 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
1208
1209         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
1210         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
1211         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
1212         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
1213         (__set_ctype): Set __ctype_ptr__ pointer according to definition
1214         of ALLOW_NEGATIVE_CTYPE_INDEX.
1215         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
1216
1217 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
1218
1219         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
1220         source files.  Add a dependency rule for ctype_o to note
1221         changes in ctype_iso.h and ctype_cp.h.
1222         * libc/ctype/Makefile.in: Regenerate.
1223         * libc/ctype/_tolower.c: Remove file.
1224         * libc/ctype/_toupper.c: Remove file.
1225         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
1226         is always defined on Cygwin.
1227         (_ctype_b): Don't make `static const' on Cygwin.
1228         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
1229         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
1230         (__ctype_ptr): Drop definition.
1231         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
1232         (_ctype_): Add Cygwin-specifc asm define.
1233         (__set_ctype): New function to set __ctype_ptr__ according to
1234         current charset.
1235         * libc/ctype/ctype_cp.h: New file containing Windows codepage
1236         specific character class tables.
1237         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
1238         specific character class tables.
1239         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
1240         charset if one of the extended charsets is enabled.
1241         * libc/ctype/toupper.c (toupper): Ditto.
1242         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
1243         (_toupper): Ditto.
1244         (__ctype_ptr__): De-constify.
1245         (toupper): Disable macro on systems supporting extended charsets.
1246         (tolower): Ditto.
1247         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
1248         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
1249         (__set_ctype): Declare unconditionally.
1250         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
1251
1252 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1253
1254         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
1255         of "GB2312".  Fix documentation accordingly.
1256
1257 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1258
1259         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
1260         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
1261         marker in ctype array.
1262         * libc/include/ctype.h (isblank): Add macro.
1263
1264 2009-03-25  Craig Howland <howland@LGSInnovations.com>
1265
1266         * libc/include/math.h:  (llround, llroundf): Declare.
1267         * libm/common/s_llround.c: New file, implementing llround().
1268         * libm/common/sf_llround.c: New file, implementing llroundf().
1269         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
1270         version of function.
1271         * libm/common/sf_lrint.c: Ditto.
1272         * libm/common/sf_logb.c:  Corrected return for subnormal argument
1273         by replacing existing function with a version created from sf_ilogb.c.
1274         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
1275         added documentation for logb() and logbf().
1276         * libm/common/s_signbit.c:  Add signbit() documentation.
1277         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
1278         since log2 uses log(); add note about being derived instead of direct.
1279         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
1280         as well as comments pointing out problems with the implementation.
1281         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
1282         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
1283         corrected by discarding existing function and replacing with Sun
1284         verion, with some enhancements.
1285         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
1286         documentation.
1287         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
1288         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
1289         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
1290         documentation.
1291         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
1292         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
1293         * libm/common/s_rint.c: Add rint() and rintf() documentation.
1294         * libm/common/s_round.c: Add round() and roundf() documentation.
1295         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
1296         * libm/common/s_infinity.c: Add infinity() and infinityf()
1297         documentation.
1298         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
1299         llroundf() documentation.
1300         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
1301         documentation.
1302         * libm/common/isgreater.c: New file for documenting math.h function-like
1303         macros isgreater(), isgreaterequal(), isless(), islessequal(),
1304         islessgreater(), and isunordered().
1305         * libm/common/s_isnan.c: Add documentation for function-like macros
1306         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
1307         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
1308         documentation.
1309         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
1310         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1311         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1312         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1313         isgreater.def (chobj);
1314         re-name all existing chew files (chobj) to match source file base
1315         names (put in underscores), delete all special targets for chew files
1316         (leaving all to be generated by rule).
1317         * libm/common/Makefile.in: regenerate.
1318         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1319         delete TRAD_SYNOPSIS).
1320         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1321         with some history behind the function names.
1322         * libm/math/math.tex: Add includes for newly-added documentation (see
1323         .def additions to common/Makefile.am and math/Makefile.am in this
1324         ChangeLog list), adjusted existing .def file names to match source file
1325         base names (added underscores); add mention of HUGE_VALF; rename
1326         "Version of library" section to "Error Handling" and add some text
1327         about floating-point exception; added section "Standards Compliance And
1328         Portability".
1329         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1330         re-name all existing chew files (chobj) to match source file base
1331         names, delete all special targets for chew files (leaving all to be
1332         generated by rule).
1333         * libm/math/Makefile.in: regenerated
1334         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1335         to a failure when reading macro file for commands < 4 characters;
1336         add -v (verbose) option for printing some debugging information;
1337         get rid of spurious translation of "@*" to "*" (no source files used @*,
1338         so no existing doc pages were affected); clean up some compiler
1339         warnings.
1340         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1341         which has them); Remove ITEM command (redundant with makedoc built-in
1342         "o", not used in any present source file so nothing is lost, anyway).
1343         * HOWTO: New file to hold information for maintainers regarding how
1344         to do things.  Initial sections on documentation and ELIX levels.
1345
1346 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1347
1348         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1349         detect the nul-byte in a big-endian string.
1350
1351 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1352
1353         * libc/string/wcsdup.c: Fix documentation error.
1354         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1355         wcsdup.def rather than wcsdup.
1356         * libc/string/Makefile.in: Regenerated.
1357
1358 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1359
1360         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1361         pointers if category is LC_CTYPE.
1362
1363 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1364
1365         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1366         "GB2312".  Fix documentation accordingly.
1367
1368 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1369
1370         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1371         "eucKR".  Fix documentation accordingly.
1372
1373 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1374
1375         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1376         for "eucJP" charset support.
1377
1378 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1379
1380         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1381         it is used in libc/search.
1382
1383 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1384
1385         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1386         _MB_CAPABLE systems.
1387         * libc/ctype/iswblank.c: Ditto.
1388         * libc/ctype/iswcntrl.c: Ditto.
1389         * libc/ctype/iswprint.c: Ditto.
1390         * libc/ctype/iswpunct.c: Ditto.
1391         * libc/ctype/iswspace.c: Ditto.
1392         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1393         Explain why.
1394         * libc/ctype/towlower.c: Ditto.
1395         * libc/ctype/towupper.c: Ditto.
1396         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1397         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1398         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1399         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1400         and _current_locale as unused.
1401         * libc/locale/locale.c: Add new charset support to documentation.
1402         Include ../stdio/local.h from here.
1403         (lc_ctype_charset): Set to "ASCII" by default.
1404         (lc_message_charset): Ditto.
1405         (_setlocale_r): Don't set _current_category and _current_locale.
1406         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1407         systems, set __mbtowc and __wctomb function pointers to function
1408         corresponding with current charset.  Don't allow non-existant
1409         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1410         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1411         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1412         _current_category and _current_locale.
1413         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1414         * libc/stdlib/Makefile.in: Regenerate.
1415         * libc/stdlib/local.h: Add prototype for __locale_charset.
1416         Add prototypes for __mbtowc and __wctomb pointers.
1417         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1418         functions.
1419         Declare tables and functions from sb_charsets.c.
1420         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1421         by default.
1422         (_mbtowc_r): Just call __mbtowc from here.
1423         (__ascii_mbtowc): New function.
1424         (__iso_mbtowc): New function.
1425         (__cp_mbtowc): New function.
1426         (__utf8_mbtowc): New function.
1427         (__sjis_mbtowc): New function.  Disable on Cygwin.
1428         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1429         (__jis_mbtowc): New function.  Disable on Cygwin.
1430         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1431         conversion tables for all ISO and CP charsets.
1432         (__iso_8859_index): New function.
1433         (__cp_index): New function.
1434         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1435         by default.
1436         (_wctomb_r): Just call __wctomb from here.
1437         (__ascii_wctomb): New function.
1438         (__utf8_wctomb): New function.
1439         (__sjis_wctomb): New function.  Disable on Cygwin.
1440         (__eucjp_wctomb): New function.  Disable on Cygwin.
1441         (__jis_wctomb): New function.  Disable on Cygwin.
1442         (__iso_wctomb): New function.
1443         (__cp_wctomb): New function.
1444
1445 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1446
1447         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1448
1449 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1450
1451         * libc/locale/locale.c (loadlocale): Fix typo in language and
1452         territory evaluation.
1453
1454 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1455
1456         * libc/include/sys/errno.h: Protect various non-standard errnos
1457         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1458         * libc/include/sys/config.h[__CYGWIN__]: Define
1459         __LINUX_ERRNO_EXTENSIONS__.
1460
1461 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1462
1463         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1464         invalid character sequence.
1465
1466         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1467         missing declaration of __locale_charset.
1468         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1469
1470 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1471
1472         * libm/common/s_log2.c: New file.
1473         * libm/common/sf_log2.c: Ditto.
1474         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1475         * libm/common/Makefile.in: Regenerated.
1476         * libc/include/math.h: Add log2 and log2f function prototypes.
1477
1478 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1479
1480         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1481         string correctly.
1482
1483 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1484
1485         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1486
1487 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1488
1489         * libc/machine/arm/strlen.c (strlen): Correctly detect
1490         end-of-string.
1491         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1492         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1493
1494 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1495
1496         * libc/include/sys/errno.h (ESTRPIPE): Define.
1497         * libc/string/strerror.c (strerror): Decode it.
1498
1499 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1500
1501         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1502         * libc/string/Makefile.am: Add wcsdup.c.
1503         * libc/string/Makefile.in: Regenerate.
1504         * libc/string/strings.tex: Add wcsdup documentation reference.
1505         * libc/string/wcsdup.c: New file.
1506
1507 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1508
1509         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1510         !_REENT_ONLY section.
1511
1512 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1513
1514         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1515         to stdlib.h.
1516         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1517         * libc/stdio/mktemp.c: Explain the security risk when using
1518         mktemp.
1519
1520 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1521
1522         * libc/time/time.tex (wcsftime.def):  Include.
1523         * libc/time/wcsftime.c:  Clean up documentation a little.
1524
1525 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1526
1527         * libc/stdio/swscanf.c:  Some documentation corrections.
1528
1529 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1530
1531         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1532         correct how terminating L'\0' is added;
1533         change return to match standard for when output does not fit;
1534         some corrections and enhancements to the docs.
1535         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1536         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1537         enhancements to comments.  (No code changes.)
1538         * libc/time/strftime.c:  Correct some problems that made wcsftime()
1539         not work correctly:  work properly with swprintf returns that are
1540         different from snprintf returns, correct test vector lengths for
1541         when sizeof(wchar_t) > 1.
1542         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
1543         enhancements to match those done to swprintf.c.
1544
1545 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1546
1547         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
1548         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
1549         * libc/stdio/Makefile.in: Regenerate.
1550         * libc/string/strings.tex: Add new documentation references.
1551         * libc/string/wcscasecmp.c: New file.
1552         * libc/string/wcsncasecmp.c: New file.
1553
1554 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1555
1556         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
1557         wscanf): Declare.
1558         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
1559         _wscanf_r): Declare.
1560         * libc/stdio/Makefile.am: Add new wscanf files.
1561         * libc/stdio/Makefile.in: Regenerate.
1562         * libc/stdio/fwscanf.c: New file.
1563         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
1564         __ssvfiwscanf_r): Declare.
1565         * libc/stdio/stdio.tex: Add new documentation references.
1566         * libc/stdio/swscanf.c: New file.
1567         * libc/stdio/vfwscanf.c: New file.
1568         * libc/stdio/vswscanf.c: New file.
1569         * libc/stdio/vwscanf.c: New file.
1570         * libc/stdio/wscanf.c: New file.
1571
1572         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
1573         define if INTEGER_ONLY is defined.  Declare otherwise.
1574         (__ssrefill_r): Ditto.
1575         (_sfread_r): Ditto.
1576
1577         Remove static eofread/eofread1 functions and use __seofread
1578         function instead, throughout.
1579         * libc/stdio/local.h (__seofread): Declare.
1580         * libc/stdio/stdio.c (__seofread): Define.
1581
1582         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
1583         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
1584         * libc/stdio/fread.c (_fread_r): Ditto.
1585         * libc/stdio/vfprintf.c: Ditto.
1586         * libc/stdio/vswprintf.c: Ditto.
1587
1588 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
1589
1590         * libc/machine/arm/arm_asm.h: Fix typo.
1591
1592 2009-03-09  Craig Howland <howland@LGSInnovations.com>
1593
1594         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
1595         defines strftime(), but can also define wcsftime(); add optional
1596         test package; speed up %Y handling.
1597         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
1598         indirectly by including strftime.c) and its documentation.
1599         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
1600         description to match modified description in strftime.c
1601         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
1602         so that wcsftime.o gets rebuilt when strftime changes.
1603         * libc/time/Makefile.in:  Regenerate.
1604         * libc/include/wchar.h (wcsftime): Declare.
1605
1606 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
1607             Corinna Vinschen  <corinna@vinschen.de>
1608
1609         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
1610         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
1611         dereferencing it.
1612         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
1613
1614 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
1615
1616         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
1617         * libc/include/wchar.h: Include stdarg.h.
1618         (__VALIST): Define conditionally.
1619         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
1620         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
1621          _wprintf_r): Declare.
1622         * libc/stdio/Makefile.am: Add new files.
1623         * libc/stdio/Makefile.in: Regenerate.
1624         * libc/stdio/fwprintf.c: New file.
1625         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
1626         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
1627         and move to the __ namespace.
1628         (__chclass, __state_table, __action_table): Declare.
1629         * libc/stdio/stdio.tex: Add new documentation references.
1630         * libc/stdio/swprintf.c: New file.
1631         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
1632         __sprint_r function according to compilation unit.  Use throughout.
1633         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
1634         Make externaly available.  Only define if INTEGER_ONLY is defined.
1635         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
1636         is defined.  Handle stream orientation.
1637         (__sbprintf): Copy FILE's _flags2 member as well.
1638         (__chclass, __state_table, __action_table): Prepend __ to name and
1639         make externally available.
1640         * libc/stdio/vfwprintf.c: New file.
1641         * libc/stdio/vswprintf.c: New file.
1642         * libc/stdio/vwprintf.c: New file.
1643         * libc/stdio/wprintf.c: New file.
1644
1645 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
1646
1647         * libc/locale/locale.c (_setlocale_r): New implementation based on
1648         FreeBSD's setlocale.
1649         (currentlocale): New helper function.
1650         (loadlocale): Ditto.
1651         (__locale_charset): New function.
1652         (__locale_msgcharset): Rename from __locale_charset.
1653         * libc/ctype/local.h (__lc_ctype): Remove declaration.
1654         (__locale_charset): Declare.
1655         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
1656         using __lc_ctype directly.  Only compare against the charset alone.
1657         * libc/ctype/iswblank.c (iswblank): Ditto.
1658         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1659         * libc/ctype/iswprint.c (iswprint): Ditto.
1660         * libc/ctype/iswpunct.c (iswpunct): Ditto.
1661         * libc/ctype/iswspace.c (iswspace): Ditto.
1662         * libc/ctype/towlower.c (towlower): Ditto.
1663         * libc/ctype/towupper.c (towupper): Ditto.
1664         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
1665         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1666         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
1667         __locale_msgcharset instead of __locale_charset.
1668
1669 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1670
1671         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
1672         charset, cast wchar to size_t in case wchar_t is signed.
1673         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
1674
1675 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
1676
1677         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
1678         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
1679         value in case of using a singlebyte charset.
1680
1681 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
1682
1683         * libc/machine/arm/strcpy.c: Add missing comma.
1684
1685 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
1686
1687         * libc/machine/lm32/configure.in: Let
1688         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
1689         * libs/machine/lm32/configure: Regenerate.
1690
1691 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
1692
1693         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
1694           mbsnrtowcs.def, wcsnrtombs.def.
1695         * libc/stdlib/Makefile.in: Regenerate.
1696         * libc/stdlib/stdlib.tex (@menu): Use correct section
1697           names for mbsrtowcs, wcsrtombs.
1698         * libc/stdlib/wcstod.c: Remove stray character in
1699           documentation.
1700
1701 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
1702
1703         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
1704         byte UTF-8 sequences since they are invalid in the Unicode standard.
1705         Handle surrogate pairs in case of wchar_t == UTF-16.
1706         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
1707         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
1708         pairs in case of wchar_t == UTF-16.
1709
1710 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
1711
1712         * libc/stdio/open_memstream.c (stdint.h): Include.
1713
1714 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
1715
1716         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
1717         coupling ttyname_r() and ttyname() due to the latter's large buffer).
1718         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
1719         ttyname.c.
1720         * libc/unix/ttyname.h:  New file (common size definition for the 2
1721         ttyname*c files that are now split).
1722         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
1723         * libc/unix/Makefile.in:  Regenerate.
1724
1725 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
1726
1727         * libc/include/wchar.h (mbsnrtowcs): Declare.
1728         (_mbsnrtowcs_r): Declare.
1729         (wcsnrtombs): Declare.
1730         (_wcsnrtombs_r): Declare.
1731         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
1732         and wcsnrtombs.c.
1733         * libc/stdlib/Makefile.in: Regenerate.
1734         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
1735         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
1736         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
1737         (mbsrtowcs): Ditto.
1738         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
1739         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
1740         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
1741         (wcsrtombs): Ditto.
1742         * libc/stdlib/stdlib.tex: Accommodate new documentation.
1743
1744 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
1745
1746         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
1747         buffer size to be in wchar_t units if wide == 1 is passed in.  In
1748         this case, also initialize the first character of the buffer to be
1749         wide char null.
1750         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
1751         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
1752         incrementing the size_t value n to first check that n is not already
1753         size_t -1.  Fix some compiler warnings.
1754         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
1755
1756 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
1757
1758         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
1759         (struct memstream): Add wide element.
1760         Change saved to a union to take char and wchar_t values.
1761         (memwriter): Accommodate wide-oriented oeprations.
1762         (memseeker): Ditto.
1763         (memseeker64): Ditto.
1764         (memcloser): Ditto.
1765         (internal_open_memstream_r): New static function.  Take functionality
1766         from former _open_memstream_r and handle additional "wide" parameter.
1767         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
1768         from here.
1769         (_open_wmemstream_r): New function.
1770         (open_wmemstream): Ditto.
1771         * libc/include/wchar.h (open_wmemstream): Declare.
1772         (_open_wmemstream_r): Declare.
1773
1774 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
1775
1776         * libc/stdio/fputwc.c: Fix typo in man page info.
1777
1778 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
1779
1780         * libc/include/wchar.h (_wcstod_r): Declare.
1781         (_wcstof_r): Declare.
1782         (wcstod): Declare.
1783         (wcstof): Declare.
1784         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
1785         (CHEWOUT_FILES): Add wcstod.def.
1786         * libc/stdlib/Makefile.in: Regenerate.
1787         * libc/stdlib/stdlib.tex: Add wcstod.
1788         * libc/stdlib/wcstod.c: New file.
1789
1790 2009-02-05  Neal H. Walfield  <neal@gnu.org>
1791
1792         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
1793
1794 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
1795
1796         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
1797         inf and nan processing to not proceed if we have already collected
1798         zeroes.
1799
1800 2009-01-26  DJ Delorie  <dj@redhat.com>
1801
1802         * configure.host (m32c-*-*): Add long long I/O support by default.
1803
1804 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
1805
1806         * libc/machine/arm/arm_asm.h: New file.
1807         * libc/machine/arm/strlen.c: New file.
1808         * libc/machine/arm/strcpy.c: New file.
1809         * libc/machine/arm/strcmp.c: New file.
1810         * libc/machine/arm/Makefile.am: Add new string routines.
1811
1812 2009-01-19  Neal H. Walfield  <neal@gnu.org>
1813
1814         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
1815         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
1816         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
1817         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
1818         not ll.
1819
1820 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
1821
1822         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
1823
1824 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1825
1826         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
1827         each fp.  Let the function being called lock the fp, if necessary.
1828
1829 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
1830
1831         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
1832
1833 2009-01-05  Craig Howland <howland@LGSInnovations.com>
1834
1835         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
1836
1837 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1838
1839         * NEWS: Update with 1.17.0 info.
1840         * README: Ditto.
1841         * acinclude.m4: Change version number to 1.17.0.
1842         * aclocal.m4: Regenerated.
1843         * configure: Ditto.
1844         * doc/aclocal.m4: Ditto.
1845         * doc/configure: Ditto.
1846         * libc/*/aclocal.m4: Ditto.
1847         * libc/*/configure: Ditto.
1848         * libc/libc.texinfo: Ditto.
1849         * libm/*/aclocal.m4: Ditto.
1850         * libm/*/configure: Ditto.
1851         * libm/libm.texinfo: Ditto.
1852         * libc/sys/linux/shared.ld: Add VERS_1.17
1853
1854 2008-12-17  Jon Beniston <jon@beniston.com>
1855
1856         * configure.host: Set syscall_dir for lm32 target.
1857
1858 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
1859
1860         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
1861         are included as part of fputwc and fgetwc, respectively.
1862
1863 2008-12-12  Craig Howland <howland@LGSInnovations.com>
1864
1865         * libc/include/wchar.h:  Added wcstok() declaration.
1866         * libc/string/wcstok.c: New file, implementing wcstok.
1867         * libc/string/Makefile.am: Add wcstok support.
1868         * libc/string/wcstrings.tex: Ditto.
1869         * libc/string/Makefile.in: Regenerated.
1870
1871 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1872
1873         * libc/stdio/fputws.c: Fix documentation.
1874         * libc/stdio/getwchar.c: Ditto.
1875         * libc/stdio/putwchar.c: Ditto.
1876
1877 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1878
1879         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
1880         200112L (SUSv3 compliance).
1881         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
1882
1883 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1884
1885         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
1886         _execve(), _exit().
1887
1888 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1889
1890         * configure.host: Let *rtems* default to c99-formats.
1891
1892 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
1893
1894         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
1895         * libc/stdio/fseek.c:  Ditto.
1896         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
1897
1898 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
1899
1900         * libc/include/sys/time.h (gettimeofday): Change prototype so
1901         2nd parameter is void *, matching SUSV2.
1902         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
1903
1904 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
1905
1906         * configure.host: Add lm32
1907         * libc/include/machine/ieeefp.h: Add __lm32__
1908         * libc/include/machine/setjmp.h: Add __lm32__
1909         * libc/machine/configure.in: Add lm32
1910         * libc/machine/configure: Regenerated.
1911         * libc/machine/lm32/aclocal.m4: New file.
1912         * libc/machine/lm32/configure.in: Ditto.
1913         * libc/machine/lm32/configure: Ditto.
1914         * libc/machine/lm32/Makefile.am: Ditto.
1915         * libc/machine/lm32/Makefile.in: Ditto.
1916         * libc/machine/lm32/setjmp.s: Ditto.
1917
1918 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
1919
1920         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
1921         effect" warnings from gcc.
1922         * libc/include/sys/stdio.h:  Ditto.
1923         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
1924         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
1925         * libc/stdlib/__ten_mu.c:  Ditto.
1926         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
1927         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
1928         already others in file without _ansi method, so did not bother.)
1929         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
1930         definitions.
1931         * libc/time/mktime.c:  Ditto.
1932         * libc/misc/__dprintf.c:  Ditto.
1933         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
1934         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
1935         _funopen_r, and _fopencookie_r.
1936         * libc/include/reent.h:  Add function prototype for _stat64_r, align
1937         _execve_r prototype with POSIX definition for execve.
1938         * libc/reent/execr.c:  Align function prototype with POSIX definition.
1939         * libc/stdio/asniprintf.c:  Add #include "local.h".
1940         * libc/stdio/vasniprintf.c:  Ditto.
1941         * libc/stdio/fread.c:  Remove unused variable newcount.
1942         * libc/stdio/local.h:  Add function prototype for __sccl.
1943         * libc/stdio/open_memstream.c:  Remove unused variable flags.
1944         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
1945         for __sccl since now in local.h.
1946         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
1947         traditional synopsis), remove extraneous stddef.h and limits.h.
1948         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
1949         * libc/syscalls/sysfork.c:  Ditto.
1950         * libc/syscalls/sysgetpid.c:  Ditto.
1951         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
1952         prototype with POSIX definition.
1953         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
1954         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
1955         * libc/syscalls/syskill.c:  Add #include <signal.h>.
1956         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
1957         * libc/syscalls/sysunlink.c:  Ditto.
1958         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
1959         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
1960
1961 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
1962
1963         Implement basic wide char stdio functionality, based on FreeBSD.
1964         * libc/include/stdio.h (__SORD): Define.
1965         (__SWID): Define.
1966         * libc/include/wchar.h: Add declarations for new wide char functions.
1967         (getwc): Define as macro.
1968         (getwchar): Ditto.
1969         (putwc): Ditto.
1970         (putwchar): Ditto.
1971         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
1972         (struct __sFILE64): Ditto.
1973         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
1974         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
1975         and ungetwc.c.
1976         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
1977         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
1978         ungetwc.def.
1979         Add header dependency rules for the new files.
1980         * libc/stdio/Makefile.in: Regenerate.
1981         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
1982         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
1983         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
1984         (__sfmoreglue): Ditto.
1985         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
1986         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
1987         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
1988         * libc/stdio/fread.c (_fread_r): Set stream orientation.
1989         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
1990         _mbstate.
1991         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
1992         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
1993         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
1994         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
1995         * libc/stdio/getwchar.c: New file, implementing getwchar and
1996         _getwchar_r.
1997         * libc/stdio/local.h (ORIENT): New macro.
1998         * libc/stdio/puts.c (_puts_r): Set stream orientation.
1999         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
2000         * libc/stdio/putwchar.c: New file, implementing putwchar and
2001         _putwchar_r.
2002         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
2003         * libc/stdio/stdio.tex: Add documentation for new functions.
2004         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
2005         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
2006         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
2007         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
2008
2009 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
2010
2011         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
2012         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
2013         constants with "long" types where appropriate.
2014         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
2015         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
2016         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
2017         Correct to match logic for defining corresponding types.
2018         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
2019         (SIZE_MAX): Define using __SIZE_MAX__ if available.
2020         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
2021         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
2022         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
2023         (UINT8_C, UINT16_C): Define to give signed values if corresponding
2024         types would promote to int.
2025
2026 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
2027
2028         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
2029         (_POSIX_V6_LP64_OFF64): Ditto.
2030         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
2031
2032 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
2033
2034         * libc/sys/linux/inode.c: Include <dirent.h> instead of
2035         <linux/dirent.h>.
2036         * libc/sys/linux/io64.c: Add weak alias for _stat64.
2037
2038 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
2039
2040         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
2041         to fix GCC warning.
2042
2043 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
2044
2045         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
2046         * libc/machine/spu/Makefile.in: Regenerated.
2047         * libc/machine/spu/spu-gmon.c: New file.
2048         * libc/machine/spu/spu-mcount.S: New file.
2049
2050 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
2051
2052         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
2053
2054 2008-11-27  Craig Howland <howland@LGSInnovations.com>
2055
2056         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
2057         prototypes.
2058         * libc/argz/argz_append.c: Ditto.
2059         * libc/argz/argz_count.c: Ditto.
2060         * libc/argz/argz_create.c: Ditto.
2061         * libc/argz/argz_create_sep.c: Ditto.
2062         * libc/argz/argz_delete.c: Ditto.
2063         * libc/argz/argz_next.c: Ditto.
2064         * libc/argz/argz_stringify.c: Ditto
2065         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
2066         prototypes.
2067         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
2068         prototypes, corrected traditional usage comment.
2069         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
2070
2071 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
2072
2073         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
2074         * libm/machine/spu/headers/asind2.h: Likewise.
2075         * libm/machine/spu/headers/asinhf4.h: Likewise.
2076         * libm/machine/spu/headers/divd2.h: Likewise.
2077         * libm/machine/spu/headers/erf_utils.h: Likewise.
2078         * libm/machine/spu/headers/erfcd2.h: Likewise.
2079         * libm/machine/spu/headers/erfcf4.h: Likewise.
2080         * libm/machine/spu/headers/erfd2.h: Likewise.
2081         * libm/machine/spu/headers/recipd2.h: Likewise.
2082
2083 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
2084
2085         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
2086         __sgetc_r instead of _getchar_r.
2087
2088 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
2089
2090         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
2091         include wchar.h for prototype, remove extraneous includes, use
2092         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
2093         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
2094         base value check noted above), remove extraneous includes.
2095         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
2096         prototype for _svfprintf_r().
2097         * libc/stdio/vasnprintf.c:  Ditto.
2098         * libc/stdio/local.h:  Add function prototype for __submore().
2099         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
2100         _ftello_r.
2101         * libc/posix/namespace.h:  Commented out define for write to
2102         eliminate write() prototype being missing for collate.c (which is
2103         the only file that presently includes namespace.h).
2104         * libc/include/reent.h:  Added _rename_r.
2105         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
2106         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
2107
2108 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2109
2110         * libc/search/hash_func.c: Comment out unused static hash functions.
2111         * libc/reent/stat64r.c: New file.
2112         * libc/reent/Makefile.am: Add stat64r.c support.
2113         * libc/reent/Makefile.in: Regenerated.
2114
2115 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2116
2117         * libc/posix/scandir.c: Fix memory leaks.
2118
2119 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2120
2121         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
2122         * libc/posix/Makefile.in: Regenerated.
2123
2124 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
2125
2126         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
2127         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
2128         * libc/stdio/findfp.c (std): Initialize _flags2.
2129         (__sfp): Ditto.
2130         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
2131         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
2132         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
2133         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
2134
2135 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2136
2137         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
2138         be in sync with current kernels.
2139
2140 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2141             Patrick Mansfield  <patmans@us.ibm.com>
2142             Joel Schopp   <jschopp@austin.ibm.com>
2143
2144         * libc/machine/spu/configure.in: Add __ea detection.
2145         * libc/machine/spu/Makefile.am: Add new files.
2146         * libc/machine/spu/include/ea.h: New file.
2147         * libc/machine/spu/ea_internal.h: Likewise.
2148         * libc/machine/spu/sys/mman.h: Likewise.
2149         * libc/machine/spu/mmap_ea.c: Likewise.
2150         * libc/machine/spu/munmap_ea.c: Likewise.
2151         * libc/machine/spu/mremap_ea.c: Likewise.
2152         * libc/machine/spu/msync_ea.c: Likewise.
2153         * libc/machine/spu/memchr_ea.c: Likewise.
2154         * libc/machine/spu/memcmp_ea.c: Likewise.
2155         * libc/machine/spu/memcpy_ea.c: Likewise.
2156         * libc/machine/spu/memmove_ea.c: Likewise.
2157         * libc/machine/spu/memset_ea.c: Likewise.
2158         * libc/machine/spu/malloc_ea.c: Likewise.
2159         * libc/machine/spu/realloc_ea.c: Likewise.
2160         * libc/machine/spu/calloc_ea.c: Likewise.
2161         * libc/machine/spu/free_ea.c: Likewise.
2162         * libc/machine/spu/posix_memalign_ea.c: Likewise.
2163         * libc/machine/spu/strcat_ea.c: Likewise.
2164         * libc/machine/spu/strchr_ea.c: Likewise.
2165         * libc/machine/spu/strcmp_ea.c: Likewise.
2166         * libc/machine/spu/strcpy_ea.c: Likewise.
2167         * libc/machine/spu/strcspn_ea.c: Likewise.
2168         * libc/machine/spu/strlen_ea.c: Likewise.
2169         * libc/machine/spu/strncat_ea.c: Likewise.
2170         * libc/machine/spu/strncmp_ea.c: Likewise.
2171         * libc/machine/spu/strncpy_ea.c: Likewise.
2172         * libc/machine/spu/strpbrk_ea.c: Likewise.
2173         * libc/machine/spu/strrchr_ea.c: Likewise.
2174         * libc/machine/spu/strspn_ea.c: Likewise.
2175         * libc/machine/spu/strstr_ea.c: Likewise.
2176         * libc/machine/spu/read_ea.c: Likewise.
2177         * libc/machine/spu/pread_ea.c: Likewise.
2178         * libc/machine/spu/readv_ea.c: Likewise.
2179         * libc/machine/spu/write_ea.c: Likewise.
2180         * libc/machine/spu/pwrite_ea.c: Likewise.
2181         * libc/machine/spu/writev_ea.c: Likewise.
2182
2183 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2184
2185         * libc/include/sys/config.h[__mips__]: Don't bother
2186         setting __ATTRIBUTE_IMPURE_PTR__ here.
2187         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
2188         macro anymore.
2189
2190 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
2191
2192         * libc/sys/linux/bits/dirent.h: New header file.
2193         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
2194         <linux/dirent.h>.
2195         * libc/posix/Makefile.am: Remove reallocf.
2196         * libc/posix/Makefile.in: Regenerated.
2197         * libc/posix/reallocf.c: Moved to...
2198         * libc/stdlib/reallocf.c: Here
2199         * libc/stdlib/malloc.c: Add reallocf documentation.
2200         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
2201         * libc/stdlib/Makefile.am: Add reallocf.
2202         * libc/stdlib/Makefile.in: Regenerated.
2203         * libc/posix/_isatty.c: Set errno.
2204
2205 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
2206
2207         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
2208         strdup() and strlen() calls, also getting rid of a compiler warning.
2209
2210 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
2211
2212         * libc/include/sys/config.h: Don't put
2213         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
2214
2215 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2216
2217         * libc/posix/runetype.h: Add include of stddef.h and remove
2218         defining standard types: size_t and wchar_t.
2219
2220 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2221
2222         * libc/include/pthread.h: Remove prototypes for
2223         pthread_attr_getcputime and pthread_attr_setcputime which
2224         were proposed but never approved by the POSIX standard.
2225
2226 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
2227
2228         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
2229
2230 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
2231
2232         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
2233         ignored if desired by a platform.
2234         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
2235         * libc/unix/getcwd.c: Ditto.
2236         * libc/unix/getlogin.c: Ditto.
2237         * libc/unix/getpass.c: Ditto.
2238         * libc/unix/getpwent.c: Ditto.
2239         * libc/unix/getut.c: Ditto.
2240         * libc/unix/pread.c: Ditto.
2241         * libc/unix/pwrite.c: Ditto.
2242         * libc/unix/sigset.c: Ditto.
2243
2244 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
2245
2246         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
2247         ttyname_r.
2248
2249 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2250
2251         * configure.host: RTEMS now uses posix subdirectory.
2252
2253 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2254
2255         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
2256         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
2257
2258 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2259
2260         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
2261         libhover docs generate properly.
2262         * libc/stdio/dprintf.c: Ditto.
2263         * libc/stdio/fflush.c: Ditto.
2264         * libc/stdio/fopencookie.c: Ditto.
2265         * libc/stdio/fread.c: Ditto.
2266         * libc/stdio/fsetpos.c: Ditto.
2267         * libc/stdio/getc_u.c: Ditto.
2268         * libc/stdio/getchar_u.c: Ditto.
2269         * libc/stdio/putc_u.c: Ditto.
2270         * libc/stdio/putchar_u.c: Ditto.
2271         * libc/stdio/remove.c: Ditto.
2272         * libc/stdio/siprintf.c: Ditto.
2273         * libc/stdio/siscanf.c: Ditto.
2274         * libc/stdio/sprintf.c: Ditto.
2275         * libc/stdio/sscanf.c: Ditto.
2276         * libc/stdio/vfprintf.c: Ditto.
2277         * libc/stdio/vfscanf.c: Ditto.
2278         * libc/stdio/viprintf.c: Ditto.
2279         * libc/stdio/viscanf.c: Ditto.
2280         * libc/stdlib/calloc.c: Ditto.
2281         * libc/stdlib/efgcvt.c: Ditto.
2282         * libc/stdlib/envlock.c: Ditto.
2283         * libc/time/asctime.c: Ditto.
2284         * libc/time/ctime.c: Ditto.
2285         * libc/time/gmtime.c: Ditto.
2286         * libc/time/lcltime.c: Ditto.
2287         * libc/time/tzset.c: Ditto.
2288         * libc/stdlib/envlock.h: Moved to libc/include.
2289
2290 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2291
2292         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
2293         * libc/include/envlock.h: New file.
2294         * libc/include/fnmatch.h: Ditto.
2295         * libc/include/glob.h: Ditto.
2296         * libc/include/regex.h: Ditto.
2297         * libc/include/wordexp.h: Ditto.
2298         * libc/posix/Makefile.am: Add new files moved from
2299         libc/sys/linux/stdlib.
2300         * libc/posix/Makefile.in: Regenerated.
2301         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
2302         * libc/posix/cclass.h: Ditto.
2303         * libc/posix/cname.h: Ditto.
2304         * libc/posix/collate.c: Ditto.
2305         * libc/posix/collate.h: Ditto.
2306         * libc/posix/collcmp.c: Ditto.
2307         * libc/posix/engine.c: Ditto.
2308         * libc/posix/fnmatch.3: Ditto.
2309         * libc/posix/glob.3: Ditto.
2310         * libc/posix/fnmatch.c: Ditto.
2311         * libc/posix/glob.c: Ditto.
2312         * libc/posix/namespace.h: Ditto.
2313         * libc/posix/reallocf.c: Ditto.
2314         * libc/posix/regcomp.c: Ditto.
2315         * libc/posix/regerror.c: Ditto.
2316         * libc/posix/regex.3: Ditto.
2317         * libc/posix/regex2.h: Ditto.
2318         * libc/posix/regexec.c: Ditto.
2319         * libc/posix/regfree.c: Ditto.
2320         * libc/posix/rune.h: Ditto.
2321         * libc/posix/runetype.h: Ditto.
2322         * libc/posix/scandir.c: Remove advertising clause which is not in
2323         effect.
2324         * libc/posix/sysexits.h: Ditto.
2325         * libc/posix/un-namespace.h: Ditto.
2326         * libc/posix/utils.h: Ditto.
2327         * libc/posix/wordexp.c: Ditto.
2328         * libc/posix/wordfree.c: Ditto.
2329         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2330         * libc/posix/execle.c: Ditto.
2331         * libc/posix/execlp.c: Ditto.
2332         * libc/posix/execv.c: Ditto.
2333         * libc/posix/execve.c: Ditto.
2334         * libc/posix/execvp.c: Ditto.
2335         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2336         * libc/sys/linux/configure: Regenerated.
2337         * libc/sys/linux/configure.in: Remove stdlib.
2338         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2339         * libc/sys/linux/stdlib/Makefile.am: Removed.
2340         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2341         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2342         * libc/sys/linux/stdlib/cclass.h: Ditto.
2343         * libc/sys/linux/stdlib/cname.h: Ditto.
2344         * libc/sys/linux/stdlib/collate.c: Ditto.
2345         * libc/sys/linux/stdlib/collate.h: Ditto.
2346         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2347         * libc/sys/linux/stdlib/engine.c: Ditto.
2348         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2349         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2350         * libc/sys/linux/stdlib/glob.3: Ditto.
2351         * libc/sys/linux/stdlib/glob.c: Ditto.
2352         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2353         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2354         * libc/sys/linux/stdlib/regerror.c: Ditto.
2355         * libc/sys/linux/stdlib/regex.3: Ditto.
2356         * libc/sys/linux/stdlib/regex2.h: Ditto.
2357         * libc/sys/linux/stdlib/regexec.c: Ditto.
2358         * libc/sys/linux/stdlib/regfree.c: Ditto.
2359         * libc/sys/linux/stdlib/utils.h: Ditto.
2360         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2361         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2362
2363 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2364
2365         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2366
2367 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2368
2369         * libc/include/time.h: Add CLOCK_MONOTONIC.
2370         * libc/include/sys/features.h: Define
2371         _POSIX_MONOTONIC_CLOCK for RTEMS.
2372
2373 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2374
2375         * newlib.hin: Restore to previous 1.14 version which has no
2376         PACKAGE_ macros.
2377
2378 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2379
2380         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2381
2382 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2383
2384         * libc/include/ctype.h (isblank):  isblank is C99.
2385         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2386         have a macro version (as was claimed in the description).
2387
2388 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2389
2390         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2391         %S conversions when the EL/IX level is 1.
2392
2393 2008-10-06  Eric Blake  <ebb9@byu.net>
2394
2395         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2396         is 0.5 or 0.75.
2397
2398 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2399
2400         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2401         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2402
2403 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2404
2405         * libc/string/str-two-way.h (critical_factorization): Cast the index
2406         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2407
2408 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2409
2410         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2411         be size of size_t, not int.
2412         (SIZE_MIN): Remove.
2413         * libc/sys/linux/sys/stdint.h: Ditto.
2414
2415 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2416
2417         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2418         initialization of _rand_next to 1.
2419
2420 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2421             Steve Ellcey  <sje@cup.hp.com>
2422
2423         * configure: Regenerate for new libtool.
2424         * aclocal.m4: Ditto.
2425         * Makefile.in: Ditto.
2426         * newlib.hin: Ditto.
2427         * doc/Makefile.in: Ditto.
2428         * doc/configure: Ditto.
2429         * iconvdata/Makefile.in: Ditto.
2430         * iconvdata/aclocal.m4: Ditto.
2431         * iconvdata/configure: Ditto.
2432         * libc/Makefile.in: Ditto.
2433         * libc/aclocal.m4: Ditto.
2434         * libc/configure: Ditto.
2435         * libc/argz/Makefile.in: Ditto.
2436         * libc/ctype/Makefile.in: Ditto.
2437         * libc/errno/Makefile.in: Ditto.
2438         * libc/iconv/Makefile.in: Ditto.
2439         * libc/iconv/ccs/Makefile.in: Ditto.
2440         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2441         * libc/iconv/ces/Makefile.in: Ditto.
2442         * libc/iconv/lib/Makefile.in: Ditto.
2443         * libc/locale/Makefile.in: Ditto.
2444         * libc/machine/Makefile.in: Ditto.
2445         * libc/machine/aclocal.m4: Ditto.
2446         * libc/machine/configure: Ditto.
2447         * libc/machine/a29k/Makefile.in: Ditto.
2448         * libc/machine/a29k/configure: Ditto.
2449         * libc/machine/arm/Makefile.in: Ditto.
2450         * libc/machine/arm/configure: Ditto.
2451         * libc/machine/bfin/Makefile.in: Ditto.
2452         * libc/machine/bfin/configure: Ditto.
2453         * libc/machine/cris/Makefile.in: Ditto.
2454         * libc/machine/cris/configure: Ditto.
2455         * libc/machine/crx/Makefile.in: Ditto.
2456         * libc/machine/crx/configure: Ditto.
2457         * libc/machine/d10v/Makefile.in: Ditto.
2458         * libc/machine/d10v/configure: Ditto.
2459         * libc/machine/d30v/Makefile.in: Ditto.
2460         * libc/machine/d30v/configure: Ditto.
2461         * libc/machine/fr30/Makefile.in: Ditto.
2462         * libc/machine/fr30/configure: Ditto.
2463         * libc/machine/frv/Makefile.in: Ditto.
2464         * libc/machine/frv/configure: Ditto.
2465         * libc/machine/h8300/Makefile.in: Ditto.
2466         * libc/machine/h8300/configure: Ditto.
2467         * libc/machine/h8500/Makefile.in: Ditto.
2468         * libc/machine/h8500/configure: Ditto.
2469         * libc/machine/hppa/Makefile.in: Ditto.
2470         * libc/machine/hppa/configure: Ditto.
2471         * libc/machine/i386/Makefile.in: Ditto.
2472         * libc/machine/i386/aclocal.m4: Ditto.
2473         * libc/machine/i386/configure: Ditto.
2474         * libc/machine/i960/Makefile.in: Ditto.
2475         * libc/machine/i960/configure: Ditto.
2476         * libc/machine/iq2000/Makefile.in: Ditto.
2477         * libc/machine/iq2000/configure: Ditto.
2478         * libc/machine/m32c/Makefile.in: Ditto.
2479         * libc/machine/m32c/configure: Ditto.
2480         * libc/machine/m32r/Makefile.in: Ditto.
2481         * libc/machine/m32r/configure: Ditto.
2482         * libc/machine/m68hc11/Makefile.in: Ditto.
2483         * libc/machine/m68hc11/configure: Ditto.
2484         * libc/machine/m68k/Makefile.in: Ditto.
2485         * libc/machine/m68k/configure: Ditto.
2486         * libc/machine/m88k/Makefile.in: Ditto.
2487         * libc/machine/m88k/configure: Ditto.
2488         * libc/machine/mep/Makefile.in: Ditto.
2489         * libc/machine/mep/configure: Ditto.
2490         * libc/machine/mips/Makefile.in: Ditto.
2491         * libc/machine/mips/configure: Ditto.
2492         * libc/machine/mn10200/Makefile.in: Ditto.
2493         * libc/machine/mn10200/configure: Ditto.
2494         * libc/machine/mn10300/Makefile.in: Ditto.
2495         * libc/machine/mn10300/configure: Ditto.
2496         * libc/machine/mt/Makefile.in: Ditto.
2497         * libc/machine/mt/configure: Ditto.
2498         * libc/machine/necv70/Makefile.in: Ditto.
2499         * libc/machine/necv70/configure: Ditto.
2500         * libc/machine/powerpc/Makefile.in: Ditto.
2501         * libc/machine/powerpc/configure: Ditto.
2502         * libc/machine/sh/Makefile.in: Ditto.
2503         * libc/machine/sh/configure: Ditto.
2504         * libc/machine/sparc/Makefile.in: Ditto.
2505         * libc/machine/sparc/configure: Ditto.
2506         * libc/machine/spu/Makefile.in: Ditto.
2507         * libc/machine/spu/configure: Ditto.
2508         * libc/machine/tic4x/Makefile.in: Ditto.
2509         * libc/machine/tic4x/configure: Ditto.
2510         * libc/machine/tic80/Makefile.in: Ditto.
2511         * libc/machine/tic80/configure: Ditto.
2512         * libc/machine/v850/Makefile.in: Ditto.
2513         * libc/machine/v850/configure: Ditto.
2514         * libc/machine/w65/Makefile.in: Ditto.
2515         * libc/machine/w65/configure: Ditto.
2516         * libc/machine/x86_64/Makefile.in: Ditto.
2517         * libc/machine/x86_64/configure: Ditto.
2518         * libc/machine/xscale/Makefile.in: Ditto.
2519         * libc/machine/xscale/configure: Ditto.
2520         * libc/machine/xstormy16/Makefile.in: Ditto.
2521         * libc/machine/xstormy16/configure: Ditto.
2522         * libc/machine/z8k/Makefile.in: Ditto.
2523         * libc/machine/z8k/configure: Ditto.
2524         * libc/misc/Makefile.in: Ditto.
2525         * libc/posix/Makefile.in: Ditto.
2526         * libc/reent/Makefile.in: Ditto.
2527         * libc/search/Makefile.in: Ditto.
2528         * libc/signal/Makefile.in: Ditto.
2529         * libc/stdio/Makefile.in: Ditto.
2530         * libc/stdio64/Makefile.in: Ditto.
2531         * libc/stdlib/Makefile.in: Ditto.
2532         * libc/string/Makefile.in: Ditto.
2533         * libc/sys/Makefile.in: Ditto.
2534         * libc/sys/aclocal.m4: Ditto.
2535         * libc/sys/configure: Ditto.
2536         * libc/sys/a29khif/Makefile.in: Ditto.
2537         * libc/sys/a29khif/configure: Ditto.
2538         * libc/sys/arc/Makefile.in: Ditto.
2539         * libc/sys/arc/configure: Ditto.
2540         * libc/sys/arm/Makefile.in: Ditto.
2541         * libc/sys/arm/configure: Ditto.
2542         * libc/sys/d10v/Makefile.in: Ditto.
2543         * libc/sys/d10v/configure: Ditto.
2544         * libc/sys/decstation/Makefile.in: Ditto.
2545         * libc/sys/decstation/configure: Ditto.
2546         * libc/sys/h8300hms/Makefile.in: Ditto.
2547         * libc/sys/h8300hms/configure: Ditto.
2548         * libc/sys/h8500hms/Makefile.in: Ditto.
2549         * libc/sys/h8500hms/configure: Ditto.
2550         * libc/sys/linux/Makefile.in: Ditto.
2551         * libc/sys/linux/aclocal.m4: Ditto.
2552         * libc/sys/linux/configure: Ditto.
2553         * libc/sys/linux/argp/Makefile.in: Ditto.
2554         * libc/sys/linux/cmath/Makefile.in: Ditto.
2555         * libc/sys/linux/dl/Makefile.in: Ditto.
2556         * libc/sys/linux/iconv/Makefile.in: Ditto.
2557         * libc/sys/linux/intl/Makefile.in: Ditto.
2558         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
2559         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
2560         * libc/sys/linux/linuxthreads/configure: Ditto.
2561         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
2562         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
2563         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
2564         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
2565         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
2566         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
2567         * libc/sys/linux/machine/Makefile.in: Ditto.
2568         * libc/sys/linux/machine/aclocal.m4: Ditto.
2569         * libc/sys/linux/machine/configure: Ditto.
2570         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2571         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2572         * libc/sys/linux/machine/i386/configure: Ditto.
2573         * libc/sys/linux/net/Makefile.in: Ditto.
2574         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2575         * libc/sys/m88kbug/Makefile.in: Ditto.
2576         * libc/sys/m88kbug/configure: Ditto.
2577         * libc/sys/mmixware/Makefile.in: Ditto.
2578         * libc/sys/mmixware/configure: Ditto.
2579         * libc/sys/netware/Makefile.in: Ditto.
2580         * libc/sys/netware/configure: Ditto.
2581         * libc/sys/rdos/Makefile.in: Ditto.
2582         * libc/sys/rdos/configure: Ditto.
2583         * libc/sys/rtems/Makefile.in: Ditto.
2584         * libc/sys/rtems/configure: Ditto.
2585         * libc/sys/sh/Makefile.in: Ditto.
2586         * libc/sys/sh/configure: Ditto.
2587         * libc/sys/sparc64/Makefile.in: Ditto.
2588         * libc/sys/sparc64/configure: Ditto.
2589         * libc/sys/sun4/Makefile.in: Ditto.
2590         * libc/sys/sun4/configure: Ditto.
2591         * libc/sys/sysmec/Makefile.in: Ditto.
2592         * libc/sys/sysmec/configure: Ditto.
2593         * libc/sys/sysnec810/Makefile.in: Ditto.
2594         * libc/sys/sysnec810/configure: Ditto.
2595         * libc/sys/sysnecv850/Makefile.in: Ditto.
2596         * libc/sys/sysnecv850/configure: Ditto.
2597         * libc/sys/sysvi386/Makefile.in: Ditto.
2598         * libc/sys/sysvi386/configure: Ditto.
2599         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2600         * libc/sys/sysvnecv70/configure: Ditto.
2601         * libc/sys/tic80/Makefile.in: Ditto.
2602         * libc/sys/tic80/configure: Ditto.
2603         * libc/sys/w65/Makefile.in: Ditto.
2604         * libc/sys/w65/configure: Ditto.
2605         * libc/sys/z8ksim/Makefile.in: Ditto.
2606         * libc/sys/z8ksim/configure: Ditto.
2607         * libc/syscalls/Makefile.in: Ditto.
2608         * libc/time/Makefile.in: Ditto.
2609         * libc/unix/Makefile.in: Ditto.
2610         * libm/Makefile.in: Ditto.
2611         * libm/aclocal.m4: Ditto.
2612         * libm/configure: Ditto.
2613         * libm/common/Makefile.in: Ditto.
2614         * libm/machine/Makefile.in: Ditto.
2615         * libm/machine/aclocal.m4: Ditto.
2616         * libm/machine/configure: Ditto.
2617         * libm/machine/i386/Makefile.in: Ditto.
2618         * libm/machine/i386/aclocal.m4: Ditto.
2619         * libm/machine/i386/configure: Ditto.
2620         * libm/machine/spu/Makefile.in: Ditto.
2621         * libm/machine/spu/configure: Ditto.
2622         * libm/math/Makefile.in: Ditto.
2623         * libm/mathfp/Makefile.in: Ditto.
2624
2625 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
2626
2627         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
2628         contains an equal sign.
2629
2630 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
2631
2632         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2633         new pthread_mutexattr_gettype and pthread_mutexattr_settype
2634         prototypes.
2635         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2636         new mutex type values.
2637         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
2638         field.
2639
2640 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2641
2642         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
2643         name is NULL, empty, or contains equal sign.
2644
2645 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
2646
2647         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
2648         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
2649         return types.
2650         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
2651         names that contain equal chars.
2652         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
2653         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
2654         EINVAL if name contains an equal sign.  Do not remove any equal signs
2655         from the value.
2656         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
2657         if name contains equal sign.  Return -1 if no variable(s) were found
2658         and return 0 otherwise.
2659
2660 2008-09-19  Eric Blake  <ebb9@byu.net>
2661
2662         Supply missing POSIX errno values.
2663         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
2664         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2665
2666 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
2667
2668         * libc/machine/spu/strcpy.h: Add missing header.
2669         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
2670         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
2671
2672 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
2673
2674         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
2675         statement to use "m" instead of "0".
2676         (atomic_add): Ditto.
2677         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
2678         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
2679         * libc/sys/linux/stdlib/glob.c: Ditto.
2680
2681 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2682
2683         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
2684         * libm/machine/spu/headers/acosf4.h: Likewise.
2685         * libm/machine/spu/headers/acoshd2.h: Likewise.
2686         * libm/machine/spu/headers/acoshf4.h: Likewise.
2687         * libm/machine/spu/headers/asind2.h: Likewise.
2688         * libm/machine/spu/headers/asinf4.h: Likewise.
2689         * libm/machine/spu/headers/asinhd2.h: Likewise.
2690         * libm/machine/spu/headers/asinhf4.h: Likewise.
2691         * libm/machine/spu/headers/atan2d2.h: Likewise.
2692         * libm/machine/spu/headers/atan2f4.h: Likewise.
2693         * libm/machine/spu/headers/atand2.h: Likewise.
2694         * libm/machine/spu/headers/atanf4.h: Likewise.
2695         * libm/machine/spu/headers/atanhd2.h: Likewise.
2696         * libm/machine/spu/headers/atanhf4.h: Likewise.
2697         * libm/machine/spu/headers/cos_sin.h: Likewise.
2698         * libm/machine/spu/headers/cosd2.h: Likewise.
2699         * libm/machine/spu/headers/cosf4.h: Likewise.
2700         * libm/machine/spu/headers/coshd2.h: Likewise.
2701         * libm/machine/spu/headers/coshf4.h: Likewise.
2702         * libm/machine/spu/headers/divd2.h: Likewise.
2703         * libm/machine/spu/headers/divf4.h: Likewise.
2704         * libm/machine/spu/headers/erf_utils.h: Likewise.
2705         * libm/machine/spu/headers/erfcd2.h: Likewise.
2706         * libm/machine/spu/headers/erfcf4.h: Likewise.
2707         * libm/machine/spu/headers/erfd2.h: Likewise.
2708         * libm/machine/spu/headers/erff4.h: Likewise.
2709         * libm/machine/spu/headers/exp2d2.h: Likewise.
2710         * libm/machine/spu/headers/exp2f4.h: Likewise.
2711         * libm/machine/spu/headers/expd2.h: Likewise.
2712         * libm/machine/spu/headers/expf4.h: Likewise.
2713         * libm/machine/spu/headers/expm1d2.h: Likewise.
2714         * libm/machine/spu/headers/expm1f4.h: Likewise.
2715         * libm/machine/spu/headers/floord2.h: Likewise.
2716         * libm/machine/spu/headers/floorf4.h: Likewise.
2717         * libm/machine/spu/headers/hypotd2.h: Likewise.
2718         * libm/machine/spu/headers/hypotf4.h: Likewise.
2719         * libm/machine/spu/headers/isnand2.h: Likewise.
2720         * libm/machine/spu/headers/isnanf4.h: Likewise.
2721         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2722         * libm/machine/spu/headers/ldexpf4.h: Likewise.
2723         * libm/machine/spu/headers/lgammad2.h: Likewise.
2724         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2725         * libm/machine/spu/headers/log10d2.h: Likewise.
2726         * libm/machine/spu/headers/log1pd2.h: Likewise.
2727         * libm/machine/spu/headers/log1pf4.h: Likewise.
2728         * libm/machine/spu/headers/log2d2.h: Likewise.
2729         * libm/machine/spu/headers/log2f4.h: Likewise.
2730         * libm/machine/spu/headers/logbf4.h: Likewise.
2731         * libm/machine/spu/headers/logd2.h: Likewise.
2732         * libm/machine/spu/headers/logf4.h: Likewise.
2733         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
2734         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2735         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2736         * libm/machine/spu/headers/powd2.h: Likewise.
2737         * libm/machine/spu/headers/powf4.h: Likewise.
2738         * libm/machine/spu/headers/recipd2.h: Likewise.
2739         * libm/machine/spu/headers/recipf4.h: Likewise.
2740         * libm/machine/spu/headers/rintf4.h: Likewise.
2741         * libm/machine/spu/headers/scalbnf4.h: Likewise.
2742         * libm/machine/spu/headers/signbitd2.h: Likewise.
2743         * libm/machine/spu/headers/sincosd2.h: Likewise.
2744         * libm/machine/spu/headers/sincosf4.h: Likewise.
2745         * libm/machine/spu/headers/sind2.h: Likewise.
2746         * libm/machine/spu/headers/sinf4.h: Likewise.
2747         * libm/machine/spu/headers/sinhd2.h: Likewise.
2748         * libm/machine/spu/headers/sinhf4.h: Likewise.
2749         * libm/machine/spu/headers/sqrtd2.h: Likewise.
2750         * libm/machine/spu/headers/sqrtf4.h: Likewise.
2751         * libm/machine/spu/headers/tand2.h: Likewise.
2752         * libm/machine/spu/headers/tanf4.h: Likewise.
2753         * libm/machine/spu/headers/tanhd2.h: Likewise.
2754         * libm/machine/spu/headers/tanhf4.h: Likewise.
2755         * libm/machine/spu/headers/tgammad2.h: Likewise.
2756         * libm/machine/spu/headers/tgammaf4.h: Likewise.
2757         * libm/machine/spu/headers/truncd2.h: Likewise.
2758         * libm/machine/spu/headers/truncf4.h: Likewise.
2759         * libm/machine/spu/headers/simdmath.h: Likewise.
2760
2761 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2762
2763         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
2764         * libm/machine/spu/headers/asinhd2.h: Likewise.
2765         * libm/machine/spu/headers/atanhd2.h: Likewise.
2766         * libm/machine/spu/headers/atanhf4.h: Likewise.
2767         * libm/machine/spu/headers/erff4.h: Likewise.
2768         * libm/machine/spu/headers/expd2.h: Likewise.
2769         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2770         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2771         * libm/machine/spu/headers/logbf4.h: Likewise.
2772         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2773         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2774         * libm/machine/spu/headers/recipd2.h: Likewise.
2775         * libm/machine/spu/headers/simdmath.h: Likewise.
2776         * libm/machine/spu/headers/acoshd2.: Likewise.
2777
2778 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2779
2780         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
2781         * libm/machine/spu/headers/cbrtf.h: Likewise.
2782
2783 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
2784
2785         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
2786         * libc/machine/spu/spu_timebase.c: New file.
2787         * libc/machine/spu/Makefile.am: Add new file.
2788         * libc/machine/spu/Makefile.in: Regenerated.
2789
2790 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
2791
2792         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
2793         any positive value from user (per std) rather than depending
2794         upon 1).
2795
2796 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
2797
2798         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
2799         for accepting a converted character.
2800
2801 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2802
2803         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
2804         from building pdfs.
2805         * libm/libm.texinfo: Likewise.
2806
2807 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
2808
2809         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
2810         accepting a converted character and continuing the loop.
2811
2812 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2813
2814         * libc/include/ctype.h (_ctype_): Restore for C++ backward
2815         compatability only.
2816
2817 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
2818
2819         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
2820         less than the old __ctype_ptr.
2821         * libc/ctype/isalnum.c: Use __ctype_ptr__.
2822         * libc/ctype/isalpha.c: Ditto.
2823         * libc/ctype/iscntrl.c: Ditto.
2824         * libc/ctype/isdigit.c: Ditto.
2825         * libc/ctype/islower.c: Ditto.
2826         * libc/ctype/isprint.c: Ditto.
2827         * libc/ctype/ispunct.c: Ditto.
2828         * libc/ctype/isspace.c: Ditto.
2829         * libc/ctype/isupper.c: Ditto.
2830         * libc/ctype/isxdigit.c: Ditto.
2831         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
2832         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
2833         from here even though they can still work.
2834
2835 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
2836
2837         * libc/machine/spu/strcpy.h: Fix error in previous patch.
2838
2839 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
2840
2841         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
2842         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2843
2844 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
2845
2846         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2847
2848 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
2849
2850         * libc/machine/mn10300/memset.S: Fix bug where return value is
2851         incorrectly set if number of bytes set is a multiple of 4.
2852
2853 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
2854
2855         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
2856         (strncpy): Cast src to uintptr_t before checking alignment with "&".
2857
2858 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2859
2860         * libc/argz/argz_count.c: Include stddef.h to get size_t.
2861         * libc/argz/argz_extract.c: Ditto.
2862         * libc/argz/argz_stringify.c: Ditto.
2863         * libc/search/hash.h: Ditto.
2864         * libc/sys/linux/include/sched.h: Ditto.
2865         * libc/sys/linux/sys/types.h: Ditto.
2866
2867 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2868
2869         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
2870         source data is taken care of before loop unrolling.
2871
2872 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2873
2874         Fix strict-aliasing issues with _strtod_r and Storeinc.
2875         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
2876         rv, rv0 from double to type U.  Use accessor macros dval, dword0
2877         and dword1 for all accesses except for the ULtod call, where rv.i
2878         replaces the pointer cast.
2879         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
2880         of access macros.  Tweak comment.
2881         Remove #ifdef'd YES_ALIAS code.
2882         (dword0, dword1, dval): Define in terms of uncast union member
2883         access.  Ditto for _DOUBLE_IS_32BITS variants.
2884         (Storeinc): Replace aliasing-flawed microoptimized definition with
2885         alternative suggested in comment.  Remove now stale comment.
2886
2887 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
2888
2889         * libc/include/machine/setjmp.h (_longjmp): Define as function on
2890         Cygwin.
2891         (_setjmp): Ditto.
2892
2893 2008-06-18  Eric Blake  <ebb9@byu.net>
2894
2895         Per Posix, strsignal returns non-const char*.
2896         * libc/include/string.h (strsignal): Fix return type.
2897
2898 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
2899
2900         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
2901         support.
2902
2903 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2904
2905         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
2906         * libc/machine/spu/sys/sched.h: Likewise.
2907         * libc/machine/spu/sys/syscall.h: Likewise.
2908
2909 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2910
2911         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
2912         in generated assembler files.
2913         * libc/machine/spu/fprintf.S: Regenerate.
2914         * libc/machine/spu/fscanf.S: Regenerate.
2915         * libc/machine/spu/printf.S: Regenerate.
2916         * libc/machine/spu/scanf.S: Regenerate.
2917         * libc/machine/spu/snprintf.S: Regenerate.
2918         * libc/machine/spu/sprintf.S: Regenerate.
2919         * libc/machine/spu/sscanf.S: Regenerate.
2920         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
2921         and .size directives.
2922         * libc/machine/spu/setjmp.S (setjmp): Likewise.
2923         (longjmp): Likewise.
2924
2925 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2926
2927         * libc/include/machine/_default_types.h: Fix GNUC check to
2928         handle 4.0 and greater.
2929
2930 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2931
2932         * libc/machine/spu/Makefile.am: Add new files.
2933         * libc/machine/spu/Makefile.in: Likewise.
2934         * libc/machine/spu/include/spu_timer.h: New file to add timer support
2935         using interrupts.
2936         * libc/machine/spu/spu_clock_stop.c: Likewise.
2937         * libc/machine/spu/spu_clock_svcs.c: Likewise.
2938         * libc/machine/spu/spu_timer_flih.S: Likewise.
2939         * libc/machine/spu/spu_timer_free.c: Likewise.
2940         * libc/machine/spu/spu_timer_internal.h: Likewise.
2941         * libc/machine/spu/spu_timer_slih.c: Likewise.
2942         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
2943         * libc/machine/spu/spu_timer_stop.c: Likewise.
2944         * libc/machine/spu/spu_timer_svcs.c: Likewise.
2945
2946 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2947
2948         * libc/machine/spu/strcat.c: Return value fixed.
2949         * libc/machine/spu/strncat.c: Likewise.
2950
2951 2008-05-28  Eric Blake  <ebb9@byu.net>
2952
2953         Fix bug in previous patch.
2954         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
2955
2956 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2957
2958         * libc/string/memset.c: Fix documented prototype to remove
2959         erroneous const attribute on first parameter.
2960
2961 2008-05-26  Eric Blake  <ebb9@byu.net>
2962
2963         Optimize the generic and x86 memchr.
2964         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
2965         Pre-align pointer so unaligned searches aren't penalized.
2966         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
2967         operations are faster than repnz byte searches.
2968
2969 2008-05-26  Eric Blake  <ebb9@byu.net>
2970
2971         Optimize the generic and x86 memset.
2972         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
2973         Pre-align pointer so unaligned stores aren't penalized.
2974         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
2975         Pre-align pointer so unaligned stores aren't penalized.  Prefer
2976         8-byte over 4-byte alignment.  Reduce register pressure.
2977
2978 2008-05-26  Eric Blake  <ebb9@byu.net>
2979
2980         Optimize the generic and x86 strlen.
2981         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
2982         data so unaligned searches aren't penalized.
2983         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
2984         Word operations are faster than repnz byte searches.
2985
2986 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
2987
2988         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2989
2990 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2991
2992         * libc/include/sys/reent.h: Add _h_errno field.
2993         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
2994         now used in net directory.
2995         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
2996         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
2997         in net directory.
2998         * libc/sys/linux/include/netdb.h: Ditto.
2999         * libc/sys/linux/include/resolv.h: Ditto.
3000         * libc/sys/linux/include/stdint.h: Ditto.
3001         * libc/sys/linux/include/arpa/nameser.h: Ditto.
3002         * libc/sys/linux/include/net/ethernet.h: Ditto.
3003         * libc/sys/linux/include/net/if_ppp.h: Ditto.
3004         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
3005         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
3006         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
3007         flags to avoid duplicate definition.
3008         * libc/sys/linux/machine/i386/include/param.h: Ditto.
3009         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
3010         added files.
3011         * libc/sys/linux/net/Makefile.in: Regenerated.
3012         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
3013         * libc/sys/linux/net/getaddrinfo.c: Ditto.
3014         * libc/sys/linux/net/getnameinfo.c: Ditto.
3015         * libc/sys/linux/net/getproto.c: Ditto.
3016         * libc/sys/linux/net/getservent.c: Ditto.
3017         * libc/sys/linux/net/inet_netof.c: Ditto.
3018         * libc/sys/linux/net/inet_lnaof.c: Ditto.
3019         * libc/sys/linux/net/ns_name.c: Ditto.
3020         * libc/sys/linux/net/ns_netint.c: Ditto.
3021         * libc/sys/linux/net/inet_ntoa.c: Ditto.
3022         * libc/sys/linux/net/ns_parse.c: Ditto.
3023         * libc/sys/linux/net/ns_print.c: Ditto.
3024         * libc/sys/linux/net/ns_ttl.c: Ditto.
3025         * libc/sys/linux/net/nsap_addr.c: Ditto.
3026         * libc/sys/linux/net/rcmd.c: Ditto.
3027         * libc/sys/linux/net/res_comp.c: Ditto.
3028         * libc/sys/linux/net/res_data.c: Ditto.
3029         * libc/sys/linux/net/res_debug.c: Ditto.
3030         * libc/sys/linux/net/res_init.c: Ditto.
3031         * libc/sys/linux/net/res_mkquery.c: Ditto.
3032         * libc/sys/linux/net/res_query.c: Ditto.
3033         * libc/sys/linux/net/res_send.c: Ditto.
3034         * libc/sys/linux/net/send.c: Ditto.
3035         * libc/sys/linux/stdlib/collate.c: Ditto.
3036         * libc/sys/linux/sys/ioctl.h: Ditto.
3037         * libc/sys/linux/sys/socket.h: Ditto.
3038         * libc/sys/linux/sys/unistd.h: Ditto.
3039         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
3040         used or because licensing includes advertising clause that cannot be
3041         ignored.
3042         * libc/sys/linux/iconv/strtab.c: Ditto.
3043         * libc/sys/linux/include/libc_private.h: Ditto.
3044         * libc/sys/linux/include/nsswitch.h: Ditto.
3045         * libc/sys/linux/include/net/if_atm.h: Ditto.
3046         * libc/sys/linux/include/net/if_media.h: Ditto.
3047         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
3048         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
3049         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
3050         * libc/sys/linux/intl/locale.alias: Ditto.
3051         * libc/sys/linux/net/addr2ascii.3: Ditto.
3052         * libc/sys/linux/net/bindresvport.c: Ditto.
3053         * libc/sys/linux/net/byteorder.3: Ditto.
3054         * libc/sys/linux/net/res_config.h: Ditto.
3055         * libc/sys/linux/net/ether_addr.c: Ditto.
3056         * libc/sys/linux/net/ethers.3: Ditto.
3057         * libc/sys/linux/net/getaddrinfo.3: Ditto.
3058         * libc/sys/linux/net/gethostbydns.c: Ditto.
3059         * libc/sys/linux/net/gethostbyht.c: Ditto.
3060         * libc/sys/linux/net/gethostbyname.3: Ditto.
3061         * libc/sys/linux/net/gethostbynis.c: Ditto.
3062         * libc/sys/linux/net/gethostnamadr.c: Ditto.
3063         * libc/sys/linux/net/getifaddrs.3: Ditto.
3064         * libc/sys/linux/net/getifaddrs.c: Ditto.
3065         * libc/sys/linux/net/getipnodebyname.3: Ditto.
3066         * libc/sys/linux/net/getnameinfo.3: Ditto.
3067         * libc/sys/linux/net/getnetbydns.c: Ditto.
3068         * libc/sys/linux/net/getnetbyht.c: Ditto.
3069         * libc/sys/linux/net/getnetbynis.c: Ditto.
3070         * libc/sys/linux/net/getnetent.3: Ditto.
3071         * libc/sys/linux/net/getnetnamadr.c: Ditto.
3072         * libc/sys/linux/net/getprotoent.3: Ditto.
3073         * libc/sys/linux/net/getprotoent.c: Ditto.
3074         * libc/sys/linux/net/getprotoname.c: Ditto.
3075         * libc/sys/linux/net/getservbyname.c: Ditto.
3076         * libc/sys/linux/net/getservbyport.c: Ditto.
3077         * libc/sys/linux/net/getservent.3: Ditto.
3078         * libc/sys/linux/net/herror.c: Ditto.
3079         * libc/sys/linux/net/hesiod.3: Ditto.
3080         * libc/sys/linux/net/hesiod.c: Ditto.
3081         * libc/sys/linux/net/if_indextoname.3: Ditto.
3082         * libc/sys/linux/net/inet.3: Ditto.
3083         * libc/sys/linux/net/inet6_option_space.3: Ditto.
3084         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
3085         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
3086         * libc/sys/linux/net/inet_net.3: Ditto.
3087         * libc/sys/linux/net/inet_network.c: Ditto.
3088         * libc/sys/linux/net/innetgr-stub.c: Ditto.
3089         * libc/sys/linux/net/ip6opt.c: Ditto.
3090         * libc/sys/linux/net/iso_addr.3: Ditto.
3091         * libc/sys/linux/net/iso_addr.c: Ditto.
3092         * libc/sys/linux/net/linkaddr.3: Ditto.
3093         * libc/sys/linux/net/linkaddr.c: Ditto.
3094         * libc/sys/linux/net/map_v4v6.c: Ditto.
3095         * libc/sys/linux/net/name6.c: Ditto.
3096         * libc/sys/linux/net/namespace.h: Ditto.
3097         * libc/sys/linux/net/ns.3: Ditto.
3098         * libc/sys/linux/net/ns_addr.c: Ditto.
3099         * libc/sys/linux/net/ns_ntoa.c: Ditto.
3100         * libc/sys/linux/net/nsdispatch.3: Ditto.
3101         * libc/sys/linux/net/nsdispatch.c: Ditto.
3102         * libc/sys/linux/net/nslexer.c: Ditto.
3103         * libc/sys/linux/net/nslexer.l: Ditto.
3104         * libc/sys/linux/net/nsparser.c: Ditto.
3105         * libc/sys/linux/net/nsparser.h: Ditto.
3106         * libc/sys/linux/net/nsparser.y: Ditto.
3107         * libc/sys/linux/net/rcmd.3: Ditto.
3108         * libc/sys/linux/net/rcmdsh.3: Ditto.
3109         * libc/sys/linux/net/res_mkupdate.c: Ditto.
3110         * libc/sys/linux/net/res_update.c: Ditto.
3111         * libc/sys/linux/net/resolver.3: Ditto.
3112         * libc/sys/linux/net/rthdr.c: Ditto.
3113         * libc/sys/linux/net/vars.c: Ditto.
3114         * libc/sys/linux/shlib-compat.h: New file.
3115         * libc/sys/linux/machine/i386/atomic.h: Ditto.
3116         * libc/sys/linux/net/XXX-lookup.c: Ditto.
3117         * libc/sys/linux/net/alias-lookup.c: Ditto.
3118         * libc/sys/linux/net/res_libc.c: Ditto.
3119         * libc/sys/linux/net/aliases.h: Ditto.
3120         * libc/sys/linux/net/check_pf.c: Ditto.
3121         * libc/sys/linux/net/databases.def: Ditto.
3122         * libc/sys/linux/net/digits_dots.c: Ditto.
3123         * libc/sys/linux/net/ether_aton.c: Ditto.
3124         * libc/sys/linux/net/ether_aton_r.c: Ditto.
3125         * libc/sys/linux/net/ether_hton.c: Ditto.
3126         * libc/sys/linux/net/ether_line.c: Ditto.
3127         * libc/sys/linux/net/ether_ntoa.c: Ditto.
3128         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
3129         * libc/sys/linux/net/ether_ntoh.c: Ditto.
3130         * libc/sys/linux/net/etherent.h: Ditto.
3131         * libc/sys/linux/net/ethers-lookup.c: Ditto.
3132         * libc/sys/linux/net/function.def: Ditto.
3133         * libc/sys/linux/net/getXXbyYY.c: Ditto.
3134         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
3135         * libc/sys/linux/net/getXXent.c: Ditto.
3136         * libc/sys/linux/net/getXXent_r.c: Ditto.
3137         * libc/sys/linux/net/getaliasent.c: Ditto.
3138         * libc/sys/linux/net/getaliasent_r.c: Ditto.
3139         * libc/sys/linux/net/getaliasname.c: Ditto.
3140         * libc/sys/linux/net/getaliasname_r.c: Ditto.
3141         * libc/sys/linux/net/gethstbyad.c: Ditto.
3142         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
3143         * libc/sys/linux/net/gethstbynm.c: Ditto.
3144         * libc/sys/linux/net/gethstbynm2.c: Ditto.
3145         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
3146         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
3147         * libc/sys/linux/net/gethstent.c: Ditto.
3148         * libc/sys/linux/net/gethstent_r.c: Ditto.
3149         * libc/sys/linux/net/getnetbyad.c: Ditto.
3150         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
3151         * libc/sys/linux/net/getnetbynm.c: Ditto.
3152         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
3153         * libc/sys/linux/net/getnetent.c: Ditto.
3154         * libc/sys/linux/net/getnetent_r.c: Ditto.
3155         * libc/sys/linux/net/getnetgrent.c: Ditto.
3156         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
3157         * libc/sys/linux/net/getnssent.c: Ditto.
3158         * libc/sys/linux/net/getnssent_r.c: Ditto.
3159         * libc/sys/linux/net/getproto_r.c: Ditto.
3160         * libc/sys/linux/net/getprtent.c: Ditto.
3161         * libc/sys/linux/net/getprtent_r.c: Ditto.
3162         * libc/sys/linux/net/getprtname.c: Ditto.
3163         * libc/sys/linux/net/getprtname_r.c: Ditto.
3164         * libc/sys/linux/net/getrpcbyname.c: Ditto.
3165         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
3166         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
3167         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
3168         * libc/sys/linux/net/getrpcent.c: Ditto.
3169         * libc/sys/linux/net/getrpcent_r.c: Ditto.
3170         * libc/sys/linux/net/getservent_r.c: Ditto.
3171         * libc/sys/linux/net/getsrvbynm.c: Ditto.
3172         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
3173         * libc/sys/linux/net/getsrvbypt.c: Ditto.
3174         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
3175         * libc/sys/linux/net/grp-lookup.c: Ditto.
3176         * libc/sys/linux/net/herrno.c: Ditto.
3177         * libc/sys/linux/net/hosts-lookup.c: Ditto.
3178         * libc/sys/linux/net/ifaddrs.h: Ditto.
3179         * libc/sys/linux/net/ifreq.c: Ditto.
3180         * libc/sys/linux/net/ifreq.h: Ditto.
3181         * libc/sys/linux/net/in6_addr.c: Ditto.
3182         * libc/sys/linux/net/inet6_option.c: Ditto.
3183         * libc/sys/linux/net/inet_mkadr.c: Ditto.
3184         * libc/sys/linux/net/inet_net.c: Ditto.
3185         * libc/sys/linux/net/key-lookup.c: Ditto.
3186         * libc/sys/linux/net/local.h: Ditto.
3187         * libc/sys/linux/net/netgroup.h: Ditto.
3188         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
3189         * libc/sys/linux/net/network-lookup.c: Ditto.
3190         * libc/sys/linux/net/not-cancel.h: Ditto.
3191         * libc/sys/linux/net/ns_samedomain.c: Ditto.
3192         * libc/sys/linux/net/nscd-types.h: Ditto.
3193         * libc/sys/linux/net/nss.h: Ditto.
3194         * libc/sys/linux/net/nsswitch.c: Ditto.
3195         * libc/sys/linux/net/nsswitch.h: Ditto.
3196         * libc/sys/linux/net/opensock.c: Ditto.
3197         * libc/sys/linux/net/proto-lookup.c: Ditto.
3198         * libc/sys/linux/net/pwd-lookup.c: Ditto.
3199         * libc/sys/linux/net/res_debug.h: Ditto.
3200         * libc/sys/linux/net/res_hconf.c: Ditto.
3201         * libc/sys/linux/net/res_hconf.h: Ditto.
3202         * libc/sys/linux/net/rexec.c: Ditto.
3203         * libc/sys/linux/net/rpc-lookup.c: Ditto.
3204         * libc/sys/linux/net/ruserpass.c: Ditto.
3205         * libc/sys/linux/net/service-lookup.c: Ditto.
3206         * libc/sys/linux/net/spwd-lookup.c: Ditto.
3207         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
3208         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
3209
3210 2008-05-21  Eric Blake  <ebb9@byu.net>
3211
3212         Optimize the generic strchr.
3213         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
3214         data so unaligned searches aren't penalized.  Special-case
3215         searching for 0.
3216
3217         Optimize strchr for x86.
3218         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
3219         Pre-align data so unaligned searches aren't penalized.
3220         Special-case searching for 0.
3221
3222 2008-05-20  Nick Clifton  <nickc@redhat.com>
3223
3224         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
3225
3226 2008-05-20  DJ Delorie  <dj@redhat.com>
3227
3228         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
3229
3230 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
3231
3232         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
3233         access macro parameter with parentheses around it.
3234
3235 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
3236
3237         * libc/include/stdint.h (SIZE_MIN): Remove.
3238         (SIZE_MAX): Define.
3239         * testsuite/newlib.stdlib/stdlib.exp: New.
3240         * testsuite/newlib.stdlib/size_max.c: Likewise.
3241
3242 2008-04-29  Eric Blake  <ebb9@byu.net>
3243
3244         Fix 2008-04-14 regression in asprintf(ptr,"").
3245         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
3246         baggage.
3247         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
3248         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
3249         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
3250         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
3251         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
3252         an initial buffer for asprintf.
3253
3254 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3255
3256         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
3257         (fstatat): Fix type of third parameter.
3258
3259 2008-04-25  Nick Clifton  <nickc@redhat.com>
3260
3261         * libc/machine/arm/setjmp.S: Fix thumb2 support.
3262
3263 2008-04-24  Nick Clifton  <nickc@redhat.com>
3264
3265         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
3266         should be _DOUBLE_IS_32BITS.
3267
3268 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3269
3270         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
3271         (UTIME_OMIT): Ditto.
3272         (utimensat): Declare for Cygwin.
3273         (futimens): Ditto.
3274
3275 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
3276
3277         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
3278         * libc/include/math.h: Likewise.
3279
3280 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
3281
3282         * libc/include/stdio.h (renameat): Declare for Cygwin.
3283         (symlinkat): Ditto.
3284         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
3285         (faccessat): Declare for Cygwin.
3286         (fchownat): Ditto.
3287         (linkat): Ditto.
3288         (readlinkat): Ditto.
3289         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
3290         (AT_EACCESS): Ditto.
3291         (AT_SYMLINK_NOFOLLOW): Ditto.
3292         (AT_SYMLINK_FOLLOW): Ditto.
3293         (AT_REMOVEDIR): Ditto.
3294         (futimesat): Declare for Cygwin.
3295         (openat): Ditto.
3296         (unlinkat): Ditto.
3297         * libc/include/sys/stat.h (fchmodat): Ditto.
3298         (fstatat): Ditto.
3299         (mkdirat): Ditto.
3300         (mkfifoat): Ditto.
3301         (mknodat): Ditto.
3302
3303 2008-04-22  Nick Clifton  <nickc@redhat.com>
3304
3305         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
3306         register load/store instructions.
3307
3308 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3309
3310         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3311
3312 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3313
3314         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3315
3316 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3317
3318         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3319         * libc/machine/spu/Makefile.am: Add new file impure.c.
3320         * libc/machine/spu/Makefile.in: Regenerate.
3321         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3322
3323 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3324
3325         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3326         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3327         to build special versions for sprintf/sscanf family functions.
3328         * libc/stdio/Makefile.in: Regenerated.
3329         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3330         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3331         family of functions (i.e. no I/O) and does not support floating-point.
3332         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3333         _svfprintf_r which is optimized to work with sprintf family of
3334         functions and not use I/O.
3335         [STRING_ONLY](__sprint_r): New string only version of static function.
3336         designed to work with sprintf family of functions.
3337         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3338         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3339         family of functions (i.e. no I/O) and no float-point support.
3340         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3341         __ssvfscanf_r which is optimized to work with sscanf family of
3342         functions and does not require I/O functions.
3343         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3344         * libc/stdio/snprintf.c: Ditto.
3345         * libc/stdio/sprintf.c: Ditto.
3346         * libc/stdio/vasnprintf.c: Ditto.
3347         * libc/stdio/vasprintf.c: Ditto.
3348         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3349         * libc/stdio/sniprintf.c: Ditto.
3350         * libc/stdio/vasiprintf.c: Ditto.
3351         * libc/stdio/vsiprintf.c: Ditto.
3352         * libc/stdio/vsniprintf.c: Ditto.
3353         * libc/stdio/vsprintf.c: Ditto.
3354         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3355         _ssvfscanf_r, and _ssvfiscanf_r.
3356         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3357         * libc/stdio/vsscanf.c: Ditto.
3358         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3359         * libc/stdio/vsiscanf.c: Ditto.
3360
3361 2008-04-04  DJ Delorie  <dj@redhat.com>
3362
3363         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3364         * libc/sys/configure: Regenerate with autoconf 2.61.
3365         * libc/machine/configure: Regenerate with autoconf 2.61.
3366
3367 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3368
3369         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3370         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3371         * libc/machine/spu/Makefile.am: Add memcmp.c.
3372         * libc/machine/spu/Makefile.in: Rebuild.
3373         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3374
3375 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3376
3377         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3378           -DMISSING_SYSCALL_NAMES.
3379
3380 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3381
3382         * libc/machine/spu/Makefile.am: Add assert.c.
3383         * libc/machine/spu/Makefile.in: Regenerate.
3384         * libc/machine/spu/assert.c: New file.
3385
3386 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3387
3388         * libc/include/reent.h: Define _func_r functions in this file to
3389         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3390         defined.
3391
3392 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3393
3394         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3395         constants when building for Cygwin.
3396
3397 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3398
3399         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3400         stdin gets resolved properly before refilling.
3401
3402 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3403
3404         * libc/include/getopt.h: Hide newlib extensions under
3405         the __need_getopt_newlib flag.
3406         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3407         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3408         with their own getopt implementation.
3409         * configure.host: Specify HAVE_GETOPT for x86-linux.
3410
3411 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3412
3413         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3414         this macro completely instead of referring to CHECK_STD_INIT which
3415         is only found in libc/stdio/local.h.
3416         * libc/stdio/dprintf.c: Add include of local.h.
3417         * libc/stdio/vdprintf.c: Ditto.
3418         * libc/stdio/vdiprintf.c: Ditto.
3419
3420 2008-03-04  Eric Blake  <ebb9@byu.net>
3421
3422         Fix strtod("nan()", ptr).
3423         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3424         n-char-sequence is omitted, still parse the ().
3425
3426 2008-03-03  Eric Blake  <ebb9@byu.net>
3427
3428         Fix ftell bug after ungetc.
3429         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3430         ftell.
3431         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3432         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3433         repositioning underlying fd offset.
3434
3435 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3436
3437         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3438         (required_argument, optional_argument): Ditto.
3439
3440 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3441
3442         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3443         data area so as to support reentrant calls.  Change all callers
3444         to fill in data area with global values and restore any changes
3445         to the global values after call.
3446         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3447         to support reentrancy that add a data area argument.
3448         * libc/include/getopt.h: Add new _r routines and provide macros
3449         so they can be called with using double-underscores.
3450
3451 2008-02-21  Eric Blake  <ebb9@byu.net>
3452
3453         Fix strtod("-0x", NULL).
3454         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3455         fails.
3456
3457 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3458
3459         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3460         for user specifying --disable-newlib-io-long-long on configure.
3461         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3462         reentrant pointer passed in rather than _REENT.
3463
3464 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3465
3466         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3467         arguments better for long options and short options not
3468         appearing as the first option in a sequence.
3469
3470 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3471
3472         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3473         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3474         * libc/machine/spu/strcpy.c: Use _strcpy.
3475         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3476         str[n]cpy and str[n]cat.
3477         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3478         * libc/machine/spu/strncpy.c: Use _strcpy.
3479
3480 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3481
3482         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3483         calculation of its value.
3484
3485 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3486
3487         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3488         Make ISO C.
3489
3490 2008-01-21  DJ Delorie  <dj@redhat.com>
3491
3492         * libc/sys/sh/syscalls.c (_isatty): New.
3493
3494 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3495
3496         * Makefile.am (crt1.o): Use correct source.
3497         * Makefile.in: Regenerated.
3498
3499 2008-01-15  Eric Blake  <ebb9@byu.net>
3500
3501         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3502         * libc/string/Makefile: Regenerate.
3503
3504 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3505
3506         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3507         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3508         (sigsetjmp): Use __SIGMASK_FUNC.
3509         (siglongjmp): Ditto.
3510         (_setjmp): Define as macro.
3511         (_longjmp): Ditto.
3512
3513 2008-01-11  Eric Blake  <ebb9@byu.net>
3514
3515         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3516         * libc/string/str-two-way.h: New file.
3517         * libc/string/memmem.c (memmem): New file.
3518         * libc/include/string.h (memmem): Declare for all platforms.
3519         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3520         not optimizing for space.
3521         * libc/string/strcasestr.c (strcasestr): Likewise.
3522         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3523         (ELIX_2_SOURCES): ...this.
3524         (ELIX_4_SOURCES): New category, for memmem.
3525         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3526         (CHEWOUT_FILES): Build documentation for memmem.
3527         * libc/string/strings.tex: Include new docs.
3528
3529 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3530
3531         * libc/machine/m68k/memcpy.S: Remove % from register references
3532         as this is already handled by m68kasm.h.
3533         * libc/machine/m68k/memset.S: Ditto.
3534
3535 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3536
3537         * libc/machine/m68k/m68kasm.h: New file.
3538         * libc/machine/m68k/setjmp.S: Remove common definitions and
3539         place in m68kasm.h.  Include "m68kasm.h".
3540         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
3541         SYM() macro when referencing function name.
3542         * libc/machine/m68k/memset.S: Ditto.
3543
3544 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
3545
3546         Make isatty syscall handling consistent with other newlib syscalls.
3547
3548         * libc/include/_syslist.h: Add _isatty.
3549         * libc/include/reent.h: Add _isatty_r.
3550         * libc/include/sys/unistd.h: Add _isatty.
3551         * libc/posix/Makefile.am: Add new _isatty.c file.
3552         * libc/posix/Makefile.in: Regenerated.
3553         * libc/posix/_isatty.c: New file.
3554         * libc/posix/isatty.c: Changed to call _isatty().
3555         * libc/reent/Makefile.am: Add new isattyr.c file.
3556         * libc/reent/Makefile.in: Regenerated.
3557         * libc/reent/isattyr.c: New file.
3558         * libc/stdio/freopen.c: Changed to call _isatty_r().
3559         * libc/stdio/makebuf.c: Ditto.
3560         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
3561         * libc/sys/arc/isatty.c: Ditto.
3562         * libc/sys/arm/syscalls.c: Ditto.
3563         * libc/sys/d10v/syscalls.c: Ditto.
3564         * libc/sys/h8300hms/syscalls.c: Ditto.
3565         * libc/sys/h8500hms/syscalls.c: Ditto.
3566         * libc/sys/linux/Makefile.am: Add new isatty.c file.
3567         * libc/sys/linux/Makefile.in: Regenerated.
3568         * libc/sys/linux/isatty.c: New file.
3569         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
3570         * libc/syscalls/Makefile.in: Regenerated.
3571         * libc/syscalls/sysisatty.c: New file.
3572
3573 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
3574
3575         * libc/syscalls/sysclose.c: Always call reentrant version of the
3576         underlying syscall since one is guaranteed to exist in libc/reent.
3577         * libc/syscalls/sysexecve.c: Ditto.
3578         * libc/syscalls/sysfcntl.c: Ditto.
3579         * libc/syscalls/sysfork.c: Ditto.
3580         * libc/syscalls/sysfstat.c: Ditto.
3581         * libc/syscalls/sysgetpid.c: Ditto.
3582         * libc/syscalls/sysgettod.c: Ditto.
3583         * libc/syscalls/syskill.c: Ditto.
3584         * libc/syscalls/syslink.c: Ditto.
3585         * libc/syscalls/syslseek.c: Ditto.
3586         * libc/syscalls/sysopen.c: Ditto.
3587         * libc/syscalls/sysread.c: Ditto.
3588         * libc/syscalls/syssbrk.c: Ditto.
3589         * libc/syscalls/sysstat.c: Ditto.
3590         * libc/syscalls/systimes.c: Ditto.
3591         * libc/syscalls/sysunlink.c: Ditto.
3592         * libc/syscalls/syswait.c: Ditto.
3593         * libc/syscalls/syswrite.c: Ditto.
3594
3595 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3596
3597         * NEWS: Update with 1.16.0 info.
3598         * README: Ditto.
3599         * acinclude.m4: Change version number to 1.16.0.
3600         * aclocal.m4: Regenerated.
3601         * configure: Ditto.
3602         * doc/aclocal.m4: Ditto.
3603         * doc/configure: Ditto.
3604         * libc/*/aclocal.m4: Ditto.
3605         * libc/*/configure: Ditto.
3606         * libc/libc.texinfo: Ditto.
3607         * libm/*/aclocal.m4: Ditto.
3608         * libm/*/configure: Ditto.
3609         * libm/libm.texinfo: Ditto.
3610         * libc/sys/linux/shared.ld: Add VERS_1.16.
3611
3612 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3613
3614         * libc/string/strcasestr.c: Remove id macro.
3615         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
3616         field reference to be __sched_priority.
3617         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
3618         * libc/sys/linux/linuxthreads/manager.c: Ditto.
3619         * libc/sys/linux/stdlib/collate.c: Remove id macro.
3620         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3621         * libc/sys/linux/stdlib/engine.c: Ditto.
3622         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3623         * libc/sys/linux/stdlib/glob.c: Ditto.
3624         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3625         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3626         * libc/sys/linux/stdlib/regerror.c: Ditto.
3627         * libc/sys/linux/stdlib/regexec.c: Ditto.
3628         * libc/sys/linux/stdlib/regfree.c: Ditto.
3629         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
3630         * libc/sys/linux/include/argp.h: Ditto.
3631         * libc/sys/linux/sys/libc-lock.h: New file.
3632         * libc/sys/linux/sys/stdint.h: Ditto.
3633         * libc/sys/linux/include/sched.h: New file.
3634
3635 2007-12-19  Dave Korn  <dave.korn@artimi.com>
3636             Jeff Johnston  <jjohnstn@redhhat.com>
3637
3638         * libc/include/_ansi.h: Add _LONG_LONG definition.
3639         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
3640         prototypes.
3641         * libc/machine/i386/machine/fastmath.h: Add support for new i386
3642         fast math versions of rint, lrint, and llrint family functions.
3643         * libm/machine/i386/Makefile.am: Add new files.
3644         * libm/machine/i386/Makefile.in: Regenerated.
3645         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
3646         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
3647         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
3648         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
3649         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
3650
3651 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3652
3653         * libc/include/sys/features.h: Add checks for C90 compilers using
3654         -ansi.
3655
3656 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3657
3658         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
3659         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
3660         wcpncpy.c.
3661         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
3662         * libc/string/Makefile.in: Regenerate.
3663         * libc/string/wcpcpy.c: New file.
3664         * libc/string/wcpncpy.c: New file.
3665         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
3666
3667 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3668
3669         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
3670         _wcsrtombs_r.
3671
3672 2007-11-19  Nick Clifton  <nickc@redhat.com>
3673
3674         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
3675         * libc/machine/mn10300/Makefile.in: Regenerate.
3676         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
3677         .debug_frame section.
3678         * libc/machine/mn10300/memcmp.S: Likewise.
3679         * libc/machine/mn10300/memcpy.S: Likewise.
3680         * libc/machine/mn10300/memset.S: Likewise.
3681         * libc/machine/mn10300/strchr.S: Likewise.
3682         * libc/machine/mn10300/strcmp.S: Likewise.
3683         * libc/machine/mn10300/strcpy.S: Likewise.
3684         * libc/machine/mn10300/strlen.S: Likewise.
3685
3686 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
3687
3688         * libc/include/sys/_default_fcntl.h: New header file that
3689         is the default version of sys/fcntl.h.
3690         * libc/include/sys/fcntl.h: Changed to simply include
3691         sys/_default_fcntl.h.
3692         * libc/sys/arm/sys/fcntl.h: New file that includes
3693         sys/_default_fcntl.h and defines O_BINARY.
3694
3695 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
3696
3697         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
3698
3699 2007-11-07  Dave Brolley  <brolley@redhat.com>
3700
3701         * libc/machine/configure: Regenerated to pick up mep-elf changes.
3702
3703         * Contribute mep-elf from Red Hat
3704         2006-10-27  DJ Delorie  <dj@redhat.com>
3705
3706         * libc/include/machine/setjmp.h: Add MeP support.
3707
3708         2003-04-17  DJ Delorie  <dj@redhat.com>
3709
3710         * configure.host (mep-*-*): Support "long long" type.
3711
3712         2001-06-06  DJ Delorie  <dj@redhat.com>
3713
3714         * libc/include/machine/ieeefp.h (mep): Support little endian too.
3715
3716         2001-05-14  DJ Delorie  <dj@redhat.com>
3717
3718         * configure.host: Add mep's machine_dir.
3719         * libc/include/setjmp.h: Add mep support.
3720         * libc/machine/mep: New.
3721         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
3722
3723         2001-05-04  DJ Delorie  <dj@redhat.com>
3724
3725         * configure.host: Add mep.
3726         * libc/include/machine/ieeefp.h: Ditto.
3727
3728 2007-10-31  DJ Delorie  <dj@redhat.com>
3729
3730         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
3731         signal table, just use a default, in case initialization cause
3732         recursion.
3733
3734 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3735
3736         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
3737         size if output buffer is NULL.
3738
3739 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3740
3741         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
3742         fix when handling negative input values.  Make function
3743         consistent with math directory and glibc version such that
3744         inf and nan values return inf and nan respectively with no
3745         errno setting.
3746         * libm/mathfp/sf_logarithm.c: Ditto.
3747         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
3748         * libm/math/wf_log.c: Ditto.
3749         * libm/math/w_log10.c: Ditto.
3750         * libm/math/wf_log10.c: Ditto.
3751
3752 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3753
3754         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
3755         return -inf.
3756         * libm/mathfp/sf_logarithm.c: Ditto.
3757
3758 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3759
3760         * libc/machine/i386/machine/fastmath.h: New file.
3761
3762 2007-10-13  Eric Blake  <ebb9@byu.net>
3763
3764         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
3765         Correctly nest else within conditionals.
3766         Reported by Artur Lipowski.
3767
3768 2007-10-09  Nick Clifton  <nickc@redhat.com>
3769
3770         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
3771         the STT_COMMON type.
3772
3773 2007-10-09  Ben Elliston  <bje@au.ibm.com>
3774
3775         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
3776         before simdmath.h to get a definition for `vector'.
3777         * libm/machine/spu/headers/asind2.h: Likewise.
3778
3779 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3780
3781         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
3782         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
3783         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
3784         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
3785         * libm/machine/spu/headers/acos.h: Add domain check.
3786         * libm/machine/spu/headers/acosf.h: Ditto.
3787         * libm/machine/spu/headers/acosh.h: Ditto.
3788         * libm/machine/spu/headers/acoshf.h: Ditto.
3789         * libm/machine/spu/headers/asin.h: Ditto.
3790         * libm/machine/spu/headers/asinf.h: Ditto.
3791         * libm/machine/spu/headers/atanh.h: Ditto.
3792         * libm/machine/spu/headers/atanhf.h: Ditto.
3793         * libm/machine/spu/headers/fmod.h: Ditto.
3794         * libm/machine/spu/headers/fmodf.h: Ditto.
3795         * libm/machine/spu/headers/log.h: Ditto.
3796         * libm/machine/spu/headers/log10.h: Ditto.
3797         * libm/machine/spu/headers/log1p.h: Ditto.
3798         * libm/machine/spu/headers/log1pf.h: Ditto.
3799         * libm/machine/spu/headers/log2.h: Ditto.
3800         * libm/machine/spu/headers/log2f.h: Ditto.
3801         * libm/machine/spu/headers/sqrt.h: Ditto.
3802         * libm/machine/spu/headers/sqrtf.h: Ditto.
3803         * libm/machine/spu/headers/tgamma.h: Ditto.
3804         * libm/machine/spu/headers/tgammaf.h: Ditto.
3805
3806 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3807
3808         * libm/machine/spu/Makefile.am: Add new C files.
3809         * libm/machine/spu/Makefile.in: Regenerate.
3810         * libm/machine/spu/headers/acos.h: New file.
3811         * libm/machine/spu/headers/acosd2.h: Ditto.
3812         * libm/machine/spu/headers/acosf.h: Ditto.
3813         * libm/machine/spu/headers/acosf4.h: Ditto.
3814         * libm/machine/spu/headers/acosh.h: Ditto.
3815         * libm/machine/spu/headers/acoshd2.h: Ditto.
3816         * libm/machine/spu/headers/acoshf.h: Ditto.
3817         * libm/machine/spu/headers/acoshf4.h: Ditto.
3818         * libm/machine/spu/headers/asin.h: Ditto.
3819         * libm/machine/spu/headers/asind2.h: Ditto.
3820         * libm/machine/spu/headers/asinf.h: Ditto.
3821         * libm/machine/spu/headers/asinf4.h: Ditto.
3822         * libm/machine/spu/headers/asinh.h: Ditto.
3823         * libm/machine/spu/headers/asinhd2.h: Ditto.
3824         * libm/machine/spu/headers/asinhf.h: Ditto.
3825         * libm/machine/spu/headers/asinhf4.h: Ditto.
3826         * libm/machine/spu/headers/atan.h: Ditto.
3827         * libm/machine/spu/headers/atan2.h: Ditto.
3828         * libm/machine/spu/headers/atan2d2.h: Ditto.
3829         * libm/machine/spu/headers/atan2f.h: Ditto.
3830         * libm/machine/spu/headers/atan2f4.h: Ditto.
3831         * libm/machine/spu/headers/atand2.h: Ditto.
3832         * libm/machine/spu/headers/atanf4.h: Ditto.
3833         * libm/machine/spu/headers/atanh.h: Ditto.
3834         * libm/machine/spu/headers/atanhd2.h: Ditto.
3835         * libm/machine/spu/headers/atanhf.h: Ditto.
3836         * libm/machine/spu/headers/atanhf4.h: Ditto.
3837         * libm/machine/spu/headers/cos.h: Ditto.
3838         * libm/machine/spu/headers/cos_sin.h: Ditto.
3839         * libm/machine/spu/headers/cosd2.h: Ditto.
3840         * libm/machine/spu/headers/cosf.h: Ditto.
3841         * libm/machine/spu/headers/cosf4.h: Ditto.
3842         * libm/machine/spu/headers/cosh.h: Ditto.
3843         * libm/machine/spu/headers/coshd2.h: Ditto.
3844         * libm/machine/spu/headers/coshf.h: Ditto.
3845         * libm/machine/spu/headers/coshf4.h: Ditto.
3846         * libm/machine/spu/headers/divd2.h: Ditto.
3847         * libm/machine/spu/headers/divf4.h: Ditto.
3848         * libm/machine/spu/headers/erf.h: Ditto.
3849         * libm/machine/spu/headers/erf_utils.h: Ditto.
3850         * libm/machine/spu/headers/erfc.h: Ditto.
3851         * libm/machine/spu/headers/erfcd2.h: Ditto.
3852         * libm/machine/spu/headers/erfcf.h: Ditto.
3853         * libm/machine/spu/headers/erfcf4.h: Ditto.
3854         * libm/machine/spu/headers/erfd2.h: Ditto.
3855         * libm/machine/spu/headers/erff.h: Ditto.
3856         * libm/machine/spu/headers/erff4.h: Ditto.
3857         * libm/machine/spu/headers/exp.h: Ditto.
3858         * libm/machine/spu/headers/exp2.h: Ditto.
3859         * libm/machine/spu/headers/exp2d2.h: Ditto.
3860         * libm/machine/spu/headers/exp2f4.h: Ditto.
3861         * libm/machine/spu/headers/expd2.h: Ditto.
3862         * libm/machine/spu/headers/expf4.h: Ditto.
3863         * libm/machine/spu/headers/expm1.h: Ditto.
3864         * libm/machine/spu/headers/expm1d2.h: Ditto.
3865         * libm/machine/spu/headers/expm1f.h: Ditto.
3866         * libm/machine/spu/headers/expm1f4.h: Ditto.
3867         * libm/machine/spu/headers/floord2.h: Ditto.
3868         * libm/machine/spu/headers/floorf4.h: Ditto.
3869         * libm/machine/spu/headers/hypot.h: Ditto.
3870         * libm/machine/spu/headers/hypotd2.h: Ditto.
3871         * libm/machine/spu/headers/hypotf.h: Ditto.
3872         * libm/machine/spu/headers/hypotf4.h: Ditto.
3873         * libm/machine/spu/headers/isnan.h: Ditto.
3874         * libm/machine/spu/headers/isnand2.h: Ditto.
3875         * libm/machine/spu/headers/isnanf.h: Ditto.
3876         * libm/machine/spu/headers/isnanf4.h: Ditto.
3877         * libm/machine/spu/headers/ldexpd2.h: Ditto.
3878         * libm/machine/spu/headers/ldexpf4.h: Ditto.
3879         * libm/machine/spu/headers/lgamma.h: Ditto.
3880         * libm/machine/spu/headers/lgammad2.h: Ditto.
3881         * libm/machine/spu/headers/lgammaf.h: Ditto.
3882         * libm/machine/spu/headers/lgammaf4.h: Ditto.
3883         * libm/machine/spu/headers/log.h: Ditto.
3884         * libm/machine/spu/headers/log10.h: Ditto.
3885         * libm/machine/spu/headers/log10d2.h: Ditto.
3886         * libm/machine/spu/headers/log1p.h: Ditto.
3887         * libm/machine/spu/headers/log1pd2.h: Ditto.
3888         * libm/machine/spu/headers/log1pf.h: Ditto.
3889         * libm/machine/spu/headers/log1pf4.h: Ditto.
3890         * libm/machine/spu/headers/log2.h: Ditto.
3891         * libm/machine/spu/headers/log2d2.h: Ditto.
3892         * libm/machine/spu/headers/log2f4.h: Ditto.
3893         * libm/machine/spu/headers/logbf.h: Ditto.
3894         * libm/machine/spu/headers/logbf4.h: Ditto.
3895         * libm/machine/spu/headers/logd2.h: Ditto.
3896         * libm/machine/spu/headers/logf4.h: Ditto.
3897         * libm/machine/spu/headers/nearbyintf.h: Ditto.
3898         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
3899         * libm/machine/spu/headers/nextafter.h: Ditto.
3900         * libm/machine/spu/headers/nextafterd2.h: Ditto.
3901         * libm/machine/spu/headers/nextafterf.h: Ditto.
3902         * libm/machine/spu/headers/nextafterf4.h: Ditto.
3903         * libm/machine/spu/headers/pow.h: Ditto.
3904         * libm/machine/spu/headers/powd2.h: Ditto.
3905         * libm/machine/spu/headers/powf.h: Ditto.
3906         * libm/machine/spu/headers/powf4.h: Ditto.
3907         * libm/machine/spu/headers/recipd2.h: Ditto.
3908         * libm/machine/spu/headers/recipf4.h: Ditto.
3909         * libm/machine/spu/headers/rintf.h: Ditto.
3910         * libm/machine/spu/headers/rintf4.h: Ditto.
3911         * libm/machine/spu/headers/scalbnf4.h: Ditto.
3912         * libm/machine/spu/headers/signbit.h: Ditto.
3913         * libm/machine/spu/headers/signbitd2.h: Ditto.
3914         * libm/machine/spu/headers/simdmath.h: Ditto.
3915         * libm/machine/spu/headers/sin.h: Ditto.
3916         * libm/machine/spu/headers/sincos.h: Ditto.
3917         * libm/machine/spu/headers/sincosd2.h: Ditto.
3918         * libm/machine/spu/headers/sincosf.h: Ditto.
3919         * libm/machine/spu/headers/sincosf4.h: Ditto.
3920         * libm/machine/spu/headers/sind2.h: Ditto.
3921         * libm/machine/spu/headers/sinf.h: Ditto.
3922         * libm/machine/spu/headers/sinf4.h: Ditto.
3923         * libm/machine/spu/headers/sinh.h: Ditto.
3924         * libm/machine/spu/headers/sinhd2.h: Ditto.
3925         * libm/machine/spu/headers/sinhf.h: Ditto.
3926         * libm/machine/spu/headers/sinhf4.h: Ditto.
3927         * libm/machine/spu/headers/sqrtd2.h: Ditto.
3928         * libm/machine/spu/headers/sqrtf.h: Ditto.
3929         * libm/machine/spu/headers/sqrtf4.h: Ditto.
3930         * libm/machine/spu/headers/tan.h: Ditto.
3931         * libm/machine/spu/headers/tand2.h: Ditto.
3932         * libm/machine/spu/headers/tanf.h: Ditto.
3933         * libm/machine/spu/headers/tanf4.h: Ditto.
3934         * libm/machine/spu/headers/tanh.h: Ditto.
3935         * libm/machine/spu/headers/tanhd2.h: Ditto.
3936         * libm/machine/spu/headers/tanhf.h: Ditto.
3937         * libm/machine/spu/headers/tanhf4.h: Ditto.
3938         * libm/machine/spu/headers/tgamma.h: Ditto.
3939         * libm/machine/spu/headers/tgammad2.h: Ditto.
3940         * libm/machine/spu/headers/tgammaf.h: Ditto.
3941         * libm/machine/spu/headers/tgammaf4.h: Ditto.
3942         * libm/machine/spu/headers/truncd2.h: Ditto.
3943         * libm/machine/spu/headers/truncf4.h: Ditto.
3944         * libm/machine/spu/log2.c: Ditto.
3945         * libm/machine/spu/s_asinh.c: Ditto.
3946         * libm/machine/spu/s_atan.c: Ditto.
3947         * libm/machine/spu/s_cos.c: Ditto.
3948         * libm/machine/spu/s_erf.c: Ditto.
3949         * libm/machine/spu/s_expm1.c: Ditto.
3950         * libm/machine/spu/s_isnan.c: Ditto.
3951         * libm/machine/spu/s_log1p.c: Ditto.
3952         * libm/machine/spu/s_nextafter.c: Ditto.
3953         * libm/machine/spu/s_sin.c: Ditto.
3954         * libm/machine/spu/s_tan.c: Ditto.
3955         * libm/machine/spu/s_tanh.c: Ditto.
3956         * libm/machine/spu/sf_asinh.c: Ditto.
3957         * libm/machine/spu/sf_cos.c: Ditto.
3958         * libm/machine/spu/sf_erf.c: Ditto.
3959         * libm/machine/spu/sf_expm1.c: Ditto.
3960         * libm/machine/spu/sf_log1p.c: Ditto.
3961         * libm/machine/spu/sf_logb.c: Ditto.
3962         * libm/machine/spu/sf_nearbyint.c: Ditto.
3963         * libm/machine/spu/sf_nextafter.c: Ditto.
3964         * libm/machine/spu/sf_rint.c: Ditto.
3965         * libm/machine/spu/sf_sin.c: Ditto.
3966         * libm/machine/spu/sf_tan.c: Ditto.
3967         * libm/machine/spu/sf_tanh.c: Ditto.
3968         * libm/machine/spu/w_acos.c: Ditto.
3969         * libm/machine/spu/w_acosh.c: Ditto.
3970         * libm/machine/spu/w_asin.c: Ditto.
3971         * libm/machine/spu/w_atan2.c: Ditto.
3972         * libm/machine/spu/w_atanh.c: Ditto.
3973         * libm/machine/spu/w_cosh.c: Ditto.
3974         * libm/machine/spu/w_exp.c: Ditto.
3975         * libm/machine/spu/w_exp2.c: Ditto.
3976         * libm/machine/spu/w_hypot.c: Ditto.
3977         * libm/machine/spu/w_lgamma.c: Ditto.
3978         * libm/machine/spu/w_log.c: Ditto.
3979         * libm/machine/spu/w_log10.c: Ditto.
3980         * libm/machine/spu/w_pow.c: Ditto.
3981         * libm/machine/spu/w_sincos.c: Ditto.
3982         * libm/machine/spu/w_sinh.c: Ditto.
3983         * libm/machine/spu/w_tgamma.c: Ditto.
3984         * libm/machine/spu/wf_acos.c: Ditto.
3985         * libm/machine/spu/wf_acosh.c: Ditto.
3986         * libm/machine/spu/wf_asin.c: Ditto.
3987         * libm/machine/spu/wf_atan2.c: Ditto.
3988         * libm/machine/spu/wf_atanh.c: Ditto.
3989         * libm/machine/spu/wf_cosh.c: Ditto.
3990         * libm/machine/spu/wf_hypot.c: Ditto.
3991         * libm/machine/spu/wf_lgamma.c: Ditto.
3992         * libm/machine/spu/wf_pow.c: Ditto.
3993         * libm/machine/spu/wf_sincos.c: Ditto.
3994         * libm/machine/spu/wf_sinh.c: Ditto.
3995         * libm/machine/spu/wf_sqrt.c: Ditto.
3996         * libm/machine/spu/wf_tgamma.c: Ditto.
3997
3998 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3999
4000         * configure.host: Define _POSIX_MODE to match the existing vector
4001         math code, as we don't support the matherr callout.
4002         * libm/machine/spu/Makefile.am: New file.
4003         * libm/machine/spu/Makefile.in: Auto-generated.
4004         * libm/machine/spu/headers/atanf.h: New file.
4005         * libm/machine/spu/headers/cbrt.h: Ditto.
4006         * libm/machine/spu/headers/cbrtf.h: Ditto.
4007         * libm/machine/spu/headers/ceil.h: Ditto.
4008         * libm/machine/spu/headers/ceilf.h: Ditto.
4009         * libm/machine/spu/headers/copysign.h: Ditto.
4010         * libm/machine/spu/headers/copysignf.h: Ditto.
4011         * libm/machine/spu/headers/exp2f.h: Ditto.
4012         * libm/machine/spu/headers/expf.h: Ditto.
4013         * libm/machine/spu/headers/fabs.h: Ditto.
4014         * libm/machine/spu/headers/fabsf.h: Ditto.
4015         * libm/machine/spu/headers/fdim.h: Ditto.
4016         * libm/machine/spu/headers/fdimf.h: Ditto.
4017         * libm/machine/spu/headers/floor.h: Ditto.
4018         * libm/machine/spu/headers/floorf.h: Ditto.
4019         * libm/machine/spu/headers/fma.h: Ditto.
4020         * libm/machine/spu/headers/fmaf.h: Ditto.
4021         * libm/machine/spu/headers/fmax.h: Ditto.
4022         * libm/machine/spu/headers/fmaxf.h: Ditto.
4023         * libm/machine/spu/headers/fmin.h: Ditto.
4024         * libm/machine/spu/headers/fminf.h: Ditto.
4025         * libm/machine/spu/headers/fmod.h: Ditto.
4026         * libm/machine/spu/headers/fmodf.h: Ditto.
4027         * libm/machine/spu/headers/frexp.h: Ditto.
4028         * libm/machine/spu/headers/frexpf.h: Ditto.
4029         * libm/machine/spu/headers/ilogb.h: Ditto.
4030         * libm/machine/spu/headers/ilogbf.h: Ditto.
4031         * libm/machine/spu/headers/ldexp.h: Ditto.
4032         * libm/machine/spu/headers/ldexpf.h: Ditto.
4033         * libm/machine/spu/headers/llrint.h: Ditto.
4034         * libm/machine/spu/headers/llrintf.h: Ditto.
4035         * libm/machine/spu/headers/llround.h: Ditto.
4036         * libm/machine/spu/headers/llroundf.h: Ditto.
4037         * libm/machine/spu/headers/log10f.h: Ditto.
4038         * libm/machine/spu/headers/log2f.h: Ditto.
4039         * libm/machine/spu/headers/logf.h: Ditto.
4040         * libm/machine/spu/headers/lrint.h: Ditto.
4041         * libm/machine/spu/headers/lrintf.h: Ditto.
4042         * libm/machine/spu/headers/lround.h: Ditto.
4043         * libm/machine/spu/headers/lroundf.h: Ditto.
4044         * libm/machine/spu/headers/nearbyint.h: Ditto.
4045         * libm/machine/spu/headers/remainder.h: Ditto.
4046         * libm/machine/spu/headers/remainderf.h: Ditto.
4047         * libm/machine/spu/headers/remquo.h: Ditto.
4048         * libm/machine/spu/headers/remquof.h: Ditto.
4049         * libm/machine/spu/headers/rint.h: Ditto.
4050         * libm/machine/spu/headers/round.h: Ditto.
4051         * libm/machine/spu/headers/roundf.h: Ditto.
4052         * libm/machine/spu/headers/scalbn.h: Ditto.
4053         * libm/machine/spu/headers/scalbnf.h: Ditto.
4054         * libm/machine/spu/headers/sqrt.h: Ditto.
4055         * libm/machine/spu/headers/trunc.h: Ditto.
4056         * libm/machine/spu/headers/truncf.h: Ditto.
4057         * libm/machine/spu/headers/vec_literal.h: Ditto.
4058         * libm/machine/spu/llrint.c: Ditto.
4059         * libm/machine/spu/llrintf.c: Ditto.
4060         * libm/machine/spu/llround.c: Ditto.
4061         * libm/machine/spu/llroundf.c: Ditto.
4062         * libm/machine/spu/log2f.c: Ditto.
4063         * libm/machine/spu/s_cbrt.c: Ditto.
4064         * libm/machine/spu/s_ceil.c: Ditto.
4065         * libm/machine/spu/s_copysign.c: Ditto.
4066         * libm/machine/spu/s_fabs.c: Ditto.
4067         * libm/machine/spu/s_fdim.c: Ditto.
4068         * libm/machine/spu/s_floor.c: Ditto.
4069         * libm/machine/spu/s_fma.c: Ditto.
4070         * libm/machine/spu/s_fmax.c: Ditto.
4071         * libm/machine/spu/s_fmin.c: Ditto.
4072         * libm/machine/spu/s_frexp.c: Ditto.
4073         * libm/machine/spu/s_ilogb.c: Ditto.
4074         * libm/machine/spu/s_ldexp.c: Ditto.
4075         * libm/machine/spu/s_lrint.c: Ditto.
4076         * libm/machine/spu/s_lround.c: Ditto.
4077         * libm/machine/spu/s_nearbyint.c: Ditto.
4078         * libm/machine/spu/s_remquo.c: Ditto.
4079         * libm/machine/spu/s_rint.c: Ditto.
4080         * libm/machine/spu/s_round.c: Ditto.
4081         * libm/machine/spu/s_scalbn.c: Ditto.
4082         * libm/machine/spu/s_trunc.c: Ditto.
4083         * libm/machine/spu/sf_atan.c: Ditto.
4084         * libm/machine/spu/sf_cbrt.c: Ditto.
4085         * libm/machine/spu/sf_ceil.c: Ditto.
4086         * libm/machine/spu/sf_copysign.c: Ditto.
4087         * libm/machine/spu/sf_fabs.c: Ditto.
4088         * libm/machine/spu/sf_fdim.c: Ditto.
4089         * libm/machine/spu/sf_floor.c: Ditto.
4090         * libm/machine/spu/sf_fma.c: Ditto.
4091         * libm/machine/spu/sf_fmax.c: Ditto.
4092         * libm/machine/spu/sf_fmin.c: Ditto.
4093         * libm/machine/spu/sf_frexp.c: Ditto.
4094         * libm/machine/spu/sf_ilogb.c: Ditto.
4095         * libm/machine/spu/sf_ldexp.c: Ditto.
4096         * libm/machine/spu/sf_lrint.c: Ditto.
4097         * libm/machine/spu/sf_lround.c: Ditto.
4098         * libm/machine/spu/sf_remquo.c: Ditto.
4099         * libm/machine/spu/sf_round.c: Ditto.
4100         * libm/machine/spu/sf_scalbn.c: Ditto.
4101         * libm/machine/spu/sf_trunc.c: Ditto.
4102         * libm/machine/spu/w_fmod.c: Ditto.
4103         * libm/machine/spu/w_remainder.c: Ditto.
4104         * libm/machine/spu/w_sqrt.c: Ditto.
4105         * libm/machine/spu/wf_exp.c: Ditto.
4106         * libm/machine/spu/wf_exp2.c: Ditto.
4107         * libm/machine/spu/wf_fmod.c: Ditto.
4108         * libm/machine/spu/wf_log.c: Ditto.
4109         * libm/machine/spu/wf_log10.c: Ditto.
4110         * libm/machine/spu/wf_remainder.c: Ditto.
4111
4112 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4113
4114         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
4115
4116 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4117
4118         * libc/include/sched.h: New file, just include sys/sched.h.
4119         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
4120         prototype.
4121         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
4122         struct utimbuf definition.
4123
4124 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4125
4126         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
4127         specific struct and typedef.
4128
4129 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
4130
4131         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
4132         typedef dev_t, gid_t, and uid_t.
4133         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
4134         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
4135         Change to lower case for all __foo_t_defined names.
4136         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
4137         __uid_t, and __gid_t making them all four bytes. Change to lower case
4138         for all __foo_t_defined names.
4139
4140 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
4141
4142         * libc/reent/renamer.c: New file.
4143         * libc/reent/Makefile.am: Add new file.
4144         * libc/reent/Makefile.in: Regenerated.
4145         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
4146         and add check for rename syscall.
4147
4148 2007-09-17  Eric Blake  <ebb9@byu.net>
4149
4150         Obey POSIX on printf("%.s", (char*)NULL).
4151         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
4152         for %s on NULL.  Skip NULL check when optimizing for size.
4153
4154 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4155
4156         * libc/include/sys/_types.h: Protect all types with flag
4157         checks to allow definition in machine/_types.h.
4158
4159 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4160
4161         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
4162         definitions in light of the previous change.
4163
4164 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
4165
4166         * libc/include/machine/_default_types.h: New file, contains what
4167         was previously in libc/include/machine/_types.h.
4168         * libc/include/machine/_types.h: Now only includes
4169         machine/_default_types.h.
4170         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
4171         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
4172         with conditional declarations.
4173         * libc/machine/spu/machine/_types.h: New file, add SPU specific
4174         typedefs for _fpos_t and _fpos64_t.
4175
4176 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4177
4178         * libc/include/math.h (_M_LOG2E): Replace with..
4179         (_M_LOG2_E): New macro.
4180         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
4181
4182 2007-09-06  Brian Dessent  <brian@dessent.net>
4183
4184         * libc/reent/getreent.c: Allow for case where __getreent is
4185         defined as a macro.
4186
4187 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
4188
4189         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
4190         (log2): Use _M_LOG2E instead of M_LOG2E.
4191         (log2f): Ditto.
4192         (M_LOG2E): Define to be _M_LOG2E.
4193
4194 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
4195
4196         * libm/math/wf_tgamma.c: Add missing include.
4197
4198 2007-08-31  Antony King  <antony.king@st.com>
4199
4200         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
4201         bits and redefine associated dword0 macro (rvalue issue).
4202         * libc/stdio/vfieeefp.h: Ditto.
4203         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
4204         to prevent setting dword1 which is an rvalue only.
4205
4206 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
4207
4208         * configure.host: Added support for x86_64.
4209         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
4210         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
4211         * libc/machine/x86_64/aclocal.m4: Generated.
4212         * libc/machine/x86_64/configure.in: New.
4213         * libc/machine/x86_64/configure: Generated.
4214         * libc/machine/x86_64/Makefile.am: New.
4215         * libc/machine/x86_64/Makefile.in: Generated.
4216         * libc/machine/x86_64/setjmp.S: New.
4217         * libc/machine/x86_64/memcpy.S: New.
4218         * libc/machine/x86_64/memset.S: New.
4219         * libc/machine/configure.in: Added support for x86_64.
4220         * libc/machine/configure: Regenerated.
4221
4222 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
4223
4224         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
4225         to int before comparing it to a signed int value.
4226
4227 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
4228
4229         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
4230         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
4231         Define.
4232
4233 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
4234
4235         Reduce the memory consumption of variable argument functions
4236         for SPU (cell):
4237         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
4238           to assembler sources.
4239         * libc/machine/spu/Makefile.in: Regenerated.
4240         * libc/machine/spu/stdio.c: Add __check_init function wrapping
4241           CHECK_INIT macro to use from assembler routines.
4242         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
4243         * libc/machine/spu/fiprintf.S: New file.
4244         * libc/machine/spu/fiscanf.S: Ditto.
4245         * libc/machine/spu/fprintf.S: Ditto.
4246         * libc/machine/spu/fscanf.S: Ditto.
4247         * libc/machine/spu/iprintf.S: Ditto.
4248         * libc/machine/spu/iscanf.S: Ditto.
4249         * libc/machine/spu/printf.S: Ditto.
4250         * libc/machine/spu/scanf.S: Ditto.
4251         * libc/machine/spu/siprintf.S: Ditto.
4252         * libc/machine/spu/siscanf.S: Ditto.
4253         * libc/machine/spu/sniprintf.S: Ditto.
4254         * libc/machine/spu/snprintf.S: Ditto.
4255         * libc/machine/spu/sprintf.S: Ditto.
4256         * libc/machine/spu/sscanf.S: Ditto.
4257         * libc/machine/spu/stack_reg_va.S: Ditto.
4258         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
4259         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
4260         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
4261         * libc/machine/spu/fiscanf.c: Ditto.
4262         * libc/machine/spu/fprintf.c: Ditto.
4263         * libc/machine/spu/fscanf.c: Ditto.
4264         * libc/machine/spu/iprintf.c: Ditto.
4265         * libc/machine/spu/iscanf.c: Ditto.
4266         * libc/machine/spu/printf.c: Ditto.
4267         * libc/machine/spu/scanf.c: Ditto.
4268         * libc/machine/spu/siprintf.c: Ditto.
4269         * libc/machine/spu/siscanf.c: Ditto.
4270         * libc/machine/spu/sniprintf.c: Ditto.
4271         * libc/machine/spu/snprintf.c: Ditto.
4272         * libc/machine/spu/sprintf.c: Ditto.
4273         * libc/machine/spu/sscanf.c: Ditto.
4274
4275 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
4276
4277         * libc/include/tar.h: New.
4278
4279 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
4280
4281         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
4282         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
4283         * libc/sys/linux/intl/Makefile.in: Regenerated.
4284         * libc/sys/linux/intl/stpcpy.c: Renamed to...
4285         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
4286
4287 2007-08-02  Eric Blake  <ebb9@byu.net>
4288
4289         Implement fmemopen and open_memstream.
4290         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
4291         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
4292         New file.
4293         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
4294         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
4295         functions together.
4296         (fmemopen, open_memstream): Declare new functions.
4297         * libc/stdio/stdio.tex: Document them.
4298         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
4299         fmemopen and open_memstream.
4300         * libc/stdio/Makefile.in: Regenerate.
4301
4302 2007-07-31  Eric Blake  <ebb9@byu.net>
4303
4304         More POSIX stream corner cases.
4305         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
4306         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
4307         requested.
4308         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
4309
4310 2007-07-18  Eric Blake  <ebb9@byu.net>
4311
4312         Fix 'make info'.
4313         * libc/stdio/stdio.tex: Add missing include.
4314         * libc/stdio/vfprintf.c: Use expected node name.
4315         * libc/stdio/vfscanf.c: Likewise.
4316         * libc/stdio/sscanf.c: Likewise.
4317         * libc/stdio/sprintf.c: Likewise.
4318         * libc/stdio/siscanf.c: Likewise.
4319         * libc/stdio/siprintf.c: Likewise.
4320         * libc/stdio/fopencookie.c: Quote raw {}.
4321         Reported by DJ Delorie.
4322
4323 2007-07-13  Eric Blake  <ebb9@byu.net>
4324
4325         Fix fflush issues.
4326         * libc/stdio/fflush.c (_fflush_r): New function.
4327         (fflush): Fix reentrancy and large offset behavior.
4328         * libc/include/stdio.h (_fflush_r): Add prototype.
4329         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4330         * libc/stdio/freopen.c (_freopen_r): Likewise.
4331         * libc/stdio/fseek.c (_fseek_r): Likewise.
4332         * libc/stdio/ftell.c (_ftell_r): Likewise.
4333         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4334         * libc/stdio/refill.c (__srefill_r): Likewise.
4335         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4336         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4337         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4338         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4339         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4340         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4341         32-bit version if not large file.
4342         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4343         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4344
4345         Documentation updates.
4346         * libc/stdio/ungetc.c: Document ungetc.
4347         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4348         of files with documentation.
4349         * libc/stdio/Makefile.in: Regenerate.
4350         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4351
4352 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4353
4354         * libc/include/math.h: Fix so C99 functions/macros are accessible
4355         when -std=c99 is used when compiling and not when using C89.
4356
4357 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4358
4359         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4360         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4361         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4362         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4363         wcstoull_r.c.
4364         (CHEWOUT_FILES): Add .def files accordingly.
4365         * libc/stdlib/Makefile.in: Regenerate.
4366         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4367         * libc/stdlib/strtoll.c: Fix portability note.
4368         * libc/stdlib/strtoull.c: Ditto.
4369         * libc/stdlib/wcstol.c: New file.
4370         * libc/stdlib/wcstoll.c: New file.
4371         * libc/stdlib/wcstoll_r.c: New file.
4372         * libc/stdlib/wcstoul.c: New file.
4373         * libc/stdlib/wcstoull.c: New file.
4374         * libc/stdlib/wcstoull_r.c: New file.
4375
4376 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4377
4378         * libc/include/sys/time.h (gettimeofday): Change to proper
4379         prototype where second parameter is void *.
4380         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4381         accordingly.
4382         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4383         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4384         * libc/sys/rdos/gettod.c: Ditto.
4385         * libc/sys/sh/syscalls.c: Ditto.
4386         * libc/time/time.c (time): Change call to _gettimeofday_r
4387         to pass NULL as 2nd argument.
4388
4389 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4390
4391         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4392         * libc/sys/linux/intl/l10nflist.c: Ditto.
4393
4394 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4395
4396         * libc/include/wchar.h: Add prototype for wcsxfrm.
4397         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4398         (CHEWOUT_FILES): Add wcsxfrm.def.
4399         * libc/string/Makefile.in: Regenerate.
4400         * libc/string/wcsxfrm.c: New file.
4401         * libc/string/wcstrings.tex: Add wcsxfrm.
4402
4403 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4404
4405         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4406         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4407         stpncpy.c.
4408         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4409         * libc/string/Makefile.in: Regenerate.
4410         * libc/string/stpcpy.c: New file.
4411         * libc/string/stpncpy.c: New file.
4412         * libc/string/strings.tex: Add stpcpy and stpncpy.
4413
4414 2007-06-27  Eric Blake  <ebb9@byu.net>
4415
4416         Support __func__ in assert, as required by C99.
4417         * libc/stdlib/assert.c (__assert_func): New function.
4418         (__assert): Use __assert_func.
4419         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4420         possible.
4421
4422 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4423
4424         * libc/machine/spu/perror.c: Pass errno as the second argument to
4425         the assist call.
4426
4427 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4428
4429         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4430         defines; expose ftruncate, truncate and sync prototypes.
4431
4432 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4433
4434         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4435         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4436         visible.
4437
4438 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4439
4440         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4441         from a dropped patch.
4442         * libc/machine/spu/Makefile.in: Regenerate.
4443
4444 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4445
4446         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4447         it just calls open with appropriate arguments.
4448         * libc/machine/spu/Makefile.am: Add creat.c.
4449         * libc/machine/spu/Makefile.in: Regenerate.
4450
4451 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4452
4453         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4454         I accidentally dropped.
4455         * libc/machine/spu/Makefile.in: Regenerated.
4456
4457 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4458
4459         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4460         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4461         form and move outside of OS flag checks.
4462         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4463         * libc/machine/spu/Makefile.in: Regenerate.
4464         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4465         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4466
4467 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4468
4469         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4470         Define confstr constants for Cygwin.  Add comment.
4471
4472 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4473
4474         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4475         file-handle and a direct syscall, just use _open.
4476         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4477         file-handle.
4478
4479         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4480         passing on the exit value.
4481
4482 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4483
4484         * libc/string/strcasestr.c: New file.
4485         * libc/include/string.h: Add strcasestr.
4486         * libc/string/strings.tex: Add strcasestr.
4487         * libc/string/Makefile.am: Ditto.
4488         * libc/string/Makefile.in: Regenerated.
4489
4490 2007-06-06  Christian Groessler  <chris@groessler.org>
4491
4492         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4493         rnd is done after the last local variable declaration.
4494
4495 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4496
4497         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4498
4499 2007-06-05  Christian Groessler  <chris@groessler.org>
4500
4501         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4502         declaration to top of function in keeping with C89 standard.
4503
4504 2007-06-04  Eric Blake  <ebb9@byu.net>
4505
4506         Implement funopen, fopencookie.
4507         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4508         Switch to reentrant callbacks.
4509         * libc/include/stdio.h (funopen): Fix declaration.
4510         (fopencookie): Declare.
4511         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4512         (__sseek64, __swrite64): Fix prototypes.
4513         [__SCLE]: Pull in setmode declaration.
4514         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4515         reentrancy.
4516         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4517         (__sseek64, __swrite64): Fix reentrancy.
4518         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4519         reentrancy.
4520         * libc/stdio/ftell.c (_ftell_r): Likewise.
4521         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4522         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4523         * libc/stdio/freopen.c (_freopen_r): Likewise.
4524         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4525         * libc/stdio/refill.c (__srefill_r): Likewise.
4526         * libc/stdio/siscanf.c (eofread): Likewise.
4527         * libc/stdio/sscanf.c (eofread): Likewise.
4528         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4529         * libc/stdio/vsscanf.c (eofread1): Likewise.
4530         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4531         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4532         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4533         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4534         could be fixed.
4535         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4536         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4537         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4538         new files.
4539         * libc/stdio/Makefile.in: Regenerate.
4540
4541 2007-05-29  Eric Blake  <ebb9@byu.net>
4542
4543         Avoid more compiler warnings.
4544         * libc/stdlib/btowc.c: Add missing header.
4545         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
4546         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
4547         * libc/stdlib/wctob.c: Add missing header.
4548         * libc/string/strcpy.c (strcpy): Avoid warnings.
4549         * libc/string/strrchr.c (strrchr): Likewise.
4550
4551 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
4552
4553         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
4554         argument.
4555         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
4556         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
4557         on empty input strings.
4558         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
4559         looping through argz.
4560         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
4561
4562 2007-05-27  Brian Dessent  <brian@dessent.net>
4563
4564         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
4565         handling %p.
4566
4567 2007-05-25  Eric Blake  <ebb9@byu.net>
4568
4569         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
4570
4571 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
4572             Charles Wilson  <libtool@cwilson.fastmail.fm>
4573
4574         * libtool.m4: removed
4575         * configure.in: invoke _LD_DECL_SED before conditionally initializing
4576         libtool.  Move AC_PROG_AWK outside conditional.
4577         * libc/sys/linux/configure.in: Ditto.
4578         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4579         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4580         * libc/sys/linux/machine/i386/configure.in: Ditto.
4581
4582         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
4583         initializing libtool.
4584         * libc/configure.in: Ditto.
4585         * libc/machine/configure.in: Ditto.
4586         * libc/machine/i386/configure.in: Ditto.
4587         * libc/sys/configure.in: Ditto.
4588         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4589         * libc/sys/linux/machine/configure.in: Ditto.
4590         * libm/configure.in: Ditto.
4591         * libm/machine/configure.in: Ditto.
4592
4593         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
4594         * doc/Makefile.am: Ditto.
4595         * iconvdata/Makefile.am: Ditto.
4596         * libc/Makefile.am: Ditto.
4597         * libc/machine/Makefile.am: Ditto.
4598         * libc/machine/a29k/Makefile.am: Ditto.
4599         * libc/machine/arm/Makefile.am: Ditto.
4600         * libc/machine/bfin/Makefile.am: Ditto.
4601         * libc/machine/cris/Makefile.am: Ditto.
4602         * libc/machine/crx/Makefile.am: Ditto.
4603         * libc/machine/d10v/Makefile.am: Ditto.
4604         * libc/machine/d30v/Makefile.am: Ditto.
4605         * libc/machine/fr30/Makefile.am: Ditto.
4606         * libc/machine/frv/Makefile.am: Ditto.
4607         * libc/machine/h8300/Makefile.am: Ditto.
4608         * libc/machine/h8500/Makefile.am: Ditto.
4609         * libc/machine/hppa/Makefile.am: Ditto.
4610         * libc/machine/i386/Makefile.am: Ditto.
4611         * libc/machine/i960/Makefile.am: Ditto.
4612         * libc/machine/iq2000/Makefile.am: Ditto.
4613         * libc/machine/m32c/Makefile.am: Ditto.
4614         * libc/machine/m32r/Makefile.am: Ditto.
4615         * libc/machine/m68hc11/Makefile.am: Ditto.
4616         * libc/machine/m68k/Makefile.am: Ditto.
4617         * libc/machine/m88k/Makefile.am: Ditto.
4618         * libc/machine/mips/Makefile.am: Ditto.
4619         * libc/machine/mn10200/Makefile.am: Ditto.
4620         * libc/machine/mn10300/Makefile.am: Ditto.
4621         * libc/machine/mt/Makefile.am: Ditto.
4622         * libc/machine/necv70/Makefile.am: Ditto.
4623         * libc/machine/powerpc/Makefile.am: Ditto.
4624         * libc/machine/sh/Makefile.am: Ditto.
4625         * libc/machine/sparc/Makefile.am: Ditto.
4626         * libc/machine/spu/Makefile.am: Ditto.
4627         * libc/machine/tic4x/Makefile.am: Ditto.
4628         * libc/machine/tic80/Makefile.am: Ditto.
4629         * libc/machine/v850/Makefile.am: Ditto.
4630         * libc/machine/w65/Makefile.am: Ditto.
4631         * libc/machine/xscale/Makefile.am: Ditto.
4632         * libc/machine/xstormy16/Makefile.am: Ditto.
4633         * libc/machine/z8k/Makefile.am: Ditto.
4634         * libc/sys/Makefile.am: Ditto.
4635         * libc/sys/a29khif/Makefile.am: Ditto.
4636         * libc/sys/arc/Makefile.am: Ditto.
4637         * libc/sys/arm/Makefile.am: Ditto.
4638         * libc/sys/d10v/Makefile.am: Ditto.
4639         * libc/sys/decstation/Makefile.am: Ditto.
4640         * libc/sys/h8300hms/Makefile.am: Ditto.
4641         * libc/sys/h8500hms/Makefile.am: Ditto.
4642         * libc/sys/linux/Makefile.am: Ditto.
4643         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4644         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4645         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4646         * libc/sys/linux/machine/Makefile.am: Ditto.
4647         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4648         * libc/sys/m88kbug/Makefile.am: Ditto.
4649         * libc/sys/mmixware/Makefile.am: Ditto.
4650         * libc/sys/netware/Makefile.am: Ditto.
4651         * libc/sys/rdos/Makefile.am: Ditto.
4652         * libc/sys/rtems/Makefile.am: Ditto.
4653         * libc/sys/sh/Makefile.am: Ditto.
4654         * libc/sys/sparc64/Makefile.am: Ditto.
4655         * libc/sys/sun4/Makefile.am: Ditto.
4656         * libc/sys/sysmec/Makefile.am: Ditto.
4657         * libc/sys/sysnec810/Makefile.am: Ditto.
4658         * libc/sys/sysnecv850/Makefile.am: Ditto.
4659         * libc/sys/sysvi386/Makefile.am: Ditto.
4660         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4661         * libc/sys/tic80/Makefile.am: Ditto.
4662         * libc/sys/w65/Makefile.am: Ditto.
4663         * libc/sys/z8ksim/Makefile.am: Ditto.
4664         * libm/Makefile.am: Ditto.
4665         * libm/machine/Makefile.am: Ditto.
4666         * libm/machine/i386/Makefile.am: Ditto.
4667         * libm/machine/spu/Makefile.am: Ditto.
4668
4669         * aclocal.m4: Regenerate.
4670         * iconvdata/aclocal.m4: Regenerate.
4671         * libc/aclocal.m4: Regenerate.
4672         * libc/machine/aclocal.m4: Regenerate.
4673         * libc/machine/i386/aclocal.m4: Regenerate.
4674         * libc/sys/aclocal.m4: Regenerate.
4675         * libc/sys/linux/aclocal.m4: Regenerate.
4676         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
4677         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
4678         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
4679         * libc/sys/linux/machine/aclocal.m4: Regenerate.
4680         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
4681         * libm/aclocal.m4: Regenerate.
4682         * libm/machine/aclocal.m4: Regenerate.
4683         * libm/machine/i386/aclocal.m4: Regenerate.
4684
4685         * Makefile.in: Regenerate.
4686         * doc/Makefile.in: Regenerate.
4687         * iconvdata/Makefile.in: Regenerate.
4688         * libc/Makefile.in: Regenerate.
4689         * libc/argz/Makefile.in: Regenerate.
4690         * libc/ctype/Makefile.in: Regenerate.
4691         * libc/errno/Makefile.in: Regenerate.
4692         * libc/iconv/Makefile.in: Regenerate.
4693         * libc/iconv/ccs/Makefile.in: Regenerate.
4694         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
4695         * libc/iconv/ces/Makefile.in: Regenerate.
4696         * libc/iconv/lib/Makefile.in: Regenerate.
4697         * libc/locale/Makefile.in: Regenerate.
4698         * libc/machine/Makefile.in: Regenerate.
4699         * libc/machine/a29k/Makefile.in: Regenerate.
4700         * libc/machine/arm/Makefile.in: Regenerate.
4701         * libc/machine/bfin/Makefile.in: Regenerate.
4702         * libc/machine/cris/Makefile.in: Regenerate.
4703         * libc/machine/crx/Makefile.in: Regenerate.
4704         * libc/machine/d10v/Makefile.in: Regenerate.
4705         * libc/machine/d30v/Makefile.in: Regenerate.
4706         * libc/machine/fr30/Makefile.in: Regenerate.
4707         * libc/machine/frv/Makefile.in: Regenerate.
4708         * libc/machine/h8300/Makefile.in: Regenerate.
4709         * libc/machine/h8500/Makefile.in: Regenerate.
4710         * libc/machine/hppa/Makefile.in: Regenerate.
4711         * libc/machine/i386/Makefile.in: Regenerate.
4712         * libc/machine/i960/Makefile.in: Regenerate.
4713         * libc/machine/iq2000/Makefile.in: Regenerate.
4714         * libc/machine/m32c/Makefile.in: Regenerate.
4715         * libc/machine/m32r/Makefile.in: Regenerate.
4716         * libc/machine/m68hc11/Makefile.in: Regenerate.
4717         * libc/machine/m68k/Makefile.in: Regenerate.
4718         * libc/machine/m88k/Makefile.in: Regenerate.
4719         * libc/machine/mips/Makefile.in: Regenerate.
4720         * libc/machine/mn10200/Makefile.in: Regenerate.
4721         * libc/machine/mn10300/Makefile.in: Regenerate.
4722         * libc/machine/mt/Makefile.in: Regenerate.
4723         * libc/machine/necv70/Makefile.in: Regenerate.
4724         * libc/machine/powerpc/Makefile.in: Regenerate.
4725         * libc/machine/sh/Makefile.in: Regenerate.
4726         * libc/machine/sparc/Makefile.in: Regenerate.
4727         * libc/machine/spu/Makefile.in: Regenerate.
4728         * libc/machine/tic4x/Makefile.in: Regenerate.
4729         * libc/machine/tic80/Makefile.in: Regenerate.
4730         * libc/machine/v850/Makefile.in: Regenerate.
4731         * libc/machine/w65/Makefile.in: Regenerate.
4732         * libc/machine/xscale/Makefile.in: Regenerate.
4733         * libc/machine/xstormy16/Makefile.in: Regenerate.
4734         * libc/machine/z8k/Makefile.in: Regenerate.
4735         * libc/misc/Makefile.in: Regenerate.
4736         * libc/posix/Makefile.in: Regenerate.
4737         * libc/reent/Makefile.in: Regenerate.
4738         * libc/search/Makefile.in: Regenerate.
4739         * libc/signal/Makefile.in: Regenerate.
4740         * libc/stdio/Makefile.in: Regenerate.
4741         * libc/stdio64/Makefile.in: Regenerate.
4742         * libc/stdlib/Makefile.in: Regenerate.
4743         * libc/string/Makefile.in: Regenerate.
4744         * libc/sys/Makefile.in: Regenerate.
4745         * libc/sys/a29khif/Makefile.in: Regenerate.
4746         * libc/sys/arc/Makefile.in: Regenerate.
4747         * libc/sys/arm/Makefile.in: Regenerate.
4748         * libc/sys/d10v/Makefile.in: Regenerate.
4749         * libc/sys/decstation/Makefile.in: Regenerate.
4750         * libc/sys/h8300hms/Makefile.in: Regenerate.
4751         * libc/sys/h8500hms/Makefile.in: Regenerate.
4752         * libc/sys/linux/Makefile.in: Regenerate.
4753         * libc/sys/linux/argp/Makefile.in: Regenerate.
4754         * libc/sys/linux/cmath/Makefile.in: Regenerate.
4755         * libc/sys/linux/dl/Makefile.in: Regenerate.
4756         * libc/sys/linux/iconv/Makefile.in: Regenerate.
4757         * libc/sys/linux/intl/Makefile.in: Regenerate.
4758         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
4759         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
4760         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
4761         * libc/sys/linux/machine/Makefile.in: Regenerate.
4762         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
4763         * libc/sys/linux/net/Makefile.in: Regenerate.
4764         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
4765         * libc/sys/m88kbug/Makefile.in: Regenerate.
4766         * libc/sys/mmixware/Makefile.in: Regenerate.
4767         * libc/sys/netware/Makefile.in: Regenerate.
4768         * libc/sys/rdos/Makefile.in: Regenerate.
4769         * libc/sys/rtems/Makefile.in: Regenerate.
4770         * libc/sys/sh/Makefile.in: Regenerate.
4771         * libc/sys/sparc64/Makefile.in: Regenerate.
4772         * libc/sys/sun4/Makefile.in: Regenerate.
4773         * libc/sys/sysmec/Makefile.in: Regenerate.
4774         * libc/sys/sysnec810/Makefile.in: Regenerate.
4775         * libc/sys/sysnecv850/Makefile.in: Regenerate.
4776         * libc/sys/sysvi386/Makefile.in: Regenerate.
4777         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
4778         * libc/sys/tic80/Makefile.in: Regenerate.
4779         * libc/sys/w65/Makefile.in: Regenerate.
4780         * libc/sys/z8ksim/Makefile.in: Regenerate.
4781         * libc/syscalls/Makefile.in: Regenerate.
4782         * libc/time/Makefile.in: Regenerate.
4783         * libc/unix/Makefile.in: Regenerate.
4784         * libm/Makefile.in: Regenerate.
4785         * libm/common/Makefile.in: Regenerate.
4786         * libm/machine/Makefile.in: Regenerate.
4787         * libm/machine/i386/Makefile.in: Regenerate.
4788         * libm/machine/spu/Makefile.in: Regenerate.
4789         * libm/math/Makefile.in: Regenerate.
4790         * libm/mathfp/Makefile.in: Regenerate.
4791
4792         * configure: Regenerate.
4793         * iconvdata/configure: Regenerate.
4794         * libc/configure: Regenerate.
4795         * libc/machine/configure: Regenerate.
4796         * libc/machine/i386/configure: Regenerate.
4797         * libc/sys/configure: Regenerate.
4798         * libc/sys/linux/configure: Regenerate.
4799         * libc/sys/linux/linuxthreads/configure: Regenerate.
4800         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
4801         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
4802         * libc/sys/linux/machine/configure: Regenerate.
4803         * libc/sys/linux/machine/i386/configure: Regenerate.
4804         * libm/configure: Regenerate.
4805         * libm/machine/configure: Regenerate.
4806         * libm/machine/i386/configure: Regenerate.
4807
4808 2007-05-23  Eric Blake  <ebb9@byu.net>
4809
4810         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
4811         sizeof(void*) is 8 but sizeof(long) is 4.
4812         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
4813         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
4814         to fix reentrancy and bug on encoding error in multibyte locales.
4815         Always return EOF on read error.
4816
4817 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
4818
4819         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
4820         prototype.
4821         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
4822         instead of the slot 0 value, remove any now unused variables, and
4823         for some cases, now store the result in an int vs int*.
4824         * libc/machine/spu/feof.c: Ditto.
4825         * libc/machine/spu/ferror.c: Ditto.
4826         * libc/machine/spu/fflush.c: Ditto.
4827         * libc/machine/spu/fgetc.c: Ditto.
4828         * libc/machine/spu/fgetpos.c: Ditto.
4829         * libc/machine/spu/fgets.c: Ditto.
4830         * libc/machine/spu/fileno.c: Ditto.
4831         * libc/machine/spu/fopen.c: Ditto.
4832         * libc/machine/spu/fprintf.c: Ditto.
4833         * libc/machine/spu/fputc.c: Ditto.
4834         * libc/machine/spu/fputs.c: Ditto.
4835         * libc/machine/spu/fread.c: Ditto.
4836         * libc/machine/spu/freopen.c: Ditto.
4837         * libc/machine/spu/fscanf.c: Ditto.
4838         * libc/machine/spu/fseek.c: Ditto.
4839         * libc/machine/spu/fsetpos.c: Ditto.
4840         * libc/machine/spu/ftell.c: Ditto.
4841         * libc/machine/spu/fwrite.c: Ditto.
4842         * libc/machine/spu/getc.c: Ditto.
4843         * libc/machine/spu/getchar.c: Ditto.
4844         * libc/machine/spu/gets.c: Ditto.
4845         * libc/machine/spu/printf.c: Ditto.
4846         * libc/machine/spu/putc.c: Ditto.
4847         * libc/machine/spu/putchar.c: Ditto.
4848         * libc/machine/spu/puts.c: Ditto.
4849         * libc/machine/spu/remove.c: Ditto.
4850         * libc/machine/spu/rename.c: Ditto.
4851         * libc/machine/spu/scanf.c: Ditto.
4852         * libc/machine/spu/setvbuf.c: Ditto.
4853         * libc/machine/spu/snprintf.c: Ditto.
4854         * libc/machine/spu/sprintf.c: Ditto.
4855         * libc/machine/spu/sscanf.c: Ditto.
4856         * libc/machine/spu/tmpfile.c: Ditto.
4857         * libc/machine/spu/tmpnam.c: Ditto.
4858         * libc/machine/spu/ungetc.c: Ditto.
4859         * libc/machine/spu/vfprintf.c: Ditto.
4860         * libc/machine/spu/vfscanf.c: Ditto.
4861         * libc/machine/spu/vprintf.c: Ditto.
4862         * libc/machine/spu/vscanf.c: Ditto.
4863         * libc/machine/spu/vsnprintf.c: Ditto.
4864         * libc/machine/spu/vsprintf.c: Ditto.
4865         * libc/machine/spu/vsscanf.c: Ditto.
4866
4867 2007-05-23  Eric Blake  <ebb9@byu.net>
4868
4869         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
4870         Avoid warning when !FLOATING_POINT.
4871         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
4872         slightly.
4873
4874 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
4875
4876         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
4877         to zero.
4878         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
4879         use with C++.
4880
4881 2007-05-18  Eric Blake  <ebb9@byu.net>
4882
4883         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
4884         compilers.
4885         * libc/stdio/vfscanf.c: Likewise.
4886
4887 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
4888
4889         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
4890         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
4891         * libm/math/wf_atan2.c: Ditto.
4892
4893 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
4894
4895         * libm/common/Makefile.am: Add support for exp10, exp10f,
4896         pow10, and pow10f functions.
4897         * libm/common/Makefile.in: Regenerated.
4898         * libm/common/s_pow10.c: New file.
4899         * libm/common/sf_pow10.c: Ditto.
4900         * libm/common/s_exp10.c: Ditto.
4901         * libm/common/sf_exp10.c: Ditto.
4902         * libc/include/math.h [!pow10]: New pow10 prototype.
4903         [!pow10f]: New pow10f prototype.
4904         [!exp10]: New exp10 prototype.
4905         [!exp10f]: New exp10f prototype.
4906
4907 2007-05-17  Charles Wilson  <cygwin@...>
4908
4909         * stdio/tmpfile.c: Include <sys/stat.h>.
4910         * stdio64/tmpfile64.c: Ditto.
4911
4912 2007-05-16  Eric Blake  <ebb9@byu.net>
4913
4914         Close security hole in tmpfile.
4915         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
4916         generation and opening the fd.
4917         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
4918
4919         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
4920         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
4921         required by POSIX.
4922         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
4923         avoid clash with <math.h>.
4924
4925         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
4926         * libc/search/hash.c (__hash_open): Likewise.
4927
4928 2007-05-14 Eric Blake <ebb9@byu.net>
4929
4930         Reduce stack size of *printf.
4931         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
4932         in %f.  Avoid malloc when possible for %S.
4933         (BUF): Improve stack locality by using smaller size.
4934         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
4935         (exponent): Use smaller stack size.
4936
4937 2007-05-11  Eric Blake  <ebb9@byu.net>
4938
4939         Minimize printf/scanf size on platforms that don't need C99.
4940         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
4941         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
4942         * configure.in (newlib-io-c99-formats): New configure option.
4943         (_WANT_IO_C99_FORMATS): Define appropriately.
4944         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
4945         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
4946         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
4947         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
4948         Likewise.
4949         * configure: Regenerate.
4950
4951         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
4952         (get_arg): Support '%a' and '%A'.
4953
4954 2007-05-09  Eric Blake  <ebb9@byu.net>
4955
4956         Allow zero size with non-null buf in *asnprintf.
4957         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
4958         user's buf.
4959         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
4960         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4961         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
4962
4963 2007-05-07  Charles Wilson  <cygwin@...>
4964
4965         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
4966
4967 2007-05-03  Eric Blake  <ebb9@byu.net>
4968
4969         Add support for asnprintf, and improve *printf documentation.
4970         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
4971         (ELIX_2_SOURCES): ...to this.
4972         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
4973         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
4974         (CHEWOUT_FILES): Include diprintf in documentation.
4975         * libc/stdio/Makefile.in: Regenerate.
4976         * libc/stdio/diprintf.c: Improve documentation.
4977         * libc/stdio/dprintf.c: Likewise.
4978         * libc/stdio/siprintf.c: Likewise.
4979         * libc/stdio/sprintf.c: Likewise.
4980         * libc/stdio/vfprintf.c: Likewise.
4981         * libc/stdio/viprintf.c: Likewise.
4982         * libc/stdio/vsniprintf.c: Consolidate documentation.
4983         * libc/stdio/asiprintf.c: Refer to documentation.
4984         * libc/stdio/asprintf.c: Likewise.
4985         * libc/stdio/fiprintf.c: Likewise.
4986         * libc/stdio/fprintf.c: Likewise.
4987         * libc/stdio/iprintf.c: Likewise.
4988         * libc/stdio/printf.c: Likewise.
4989         * libc/stdio/sniprintf.c: Likewise.
4990         * libc/stdio/vdiprintf.c: Likewise.
4991         * libc/stdio/vdprintf.c: Likewise.
4992         * libc/stdio/vsiprintf.c: Likewise.
4993         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
4994         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
4995         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
4996         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
4997         file.
4998         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
4999         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
5000         typical case.
5001         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
5002         * libc/include/stdio.h: Add prototypes for new functions; sort
5003         existing functions.
5004
5005 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
5006
5007         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5008         and memset.S.
5009         * libc/machine/m68k/Makefile.in: Regenerate.
5010         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
5011         * libc/machine/m68k/memset.S: Likewise.
5012
5013 2007-05-01  Eric Blake  <ebb9@byu.net>
5014
5015         * libc/stdio64/local64.h: Delete, move contents to...
5016         * libc/stdio/local.h: ...here.
5017         * libc/stdio64/fdopen64.c: Update includes.
5018         * libc/stdio64/fopen64.c: Likewise.
5019         * libc/stdio64/freopen64.c: Likewise.
5020         * libc/stdio64/fseeko64.c: Likewise.
5021         * libc/stdio64/ftello64.c: Likewise.
5022         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
5023         and stderr with 64-bit offset.
5024         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
5025         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
5026         * libc/stdio/mktemp.c (_gettemp): Likewise.
5027
5028 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
5029
5030         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
5031         to treatment of NaN and +-inf arguments.
5032         * libm/math/ef_pow.c: Ditto.
5033         * libm/math/w_pow.c: Ditto.
5034         * libm/math/wf_pow.c: Ditto.
5035         * libm/math/w_acos.c: Fix domain errors to return NaN.
5036         * libm/math/w_asin.c: Ditto.
5037         * libm/math/wf_acos.c: Ditto.
5038         * libm/math/wf_asin.c: Ditto.
5039         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
5040         * libm/math/wf_log.c: Ditto.
5041         * libm/math/wf_log10.c: Ditto.
5042         * libm/math/w_log10.c: Ditto.
5043
5044 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
5045
5046         * libc/machine/m68k/Makefile.am: Temporarily remove
5047         memcpy.S and memset.S until logic can be confirmed for
5048         !(__mcoldfile__) case.
5049         * libc/machine/m68k/Makefile.in: Regenerated.
5050
5051 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
5052
5053         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5054         and memset.S.
5055         * libc/machine/m68k/Makefile.in: Regenerate.
5056         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
5057
5058 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
5059
5060         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
5061         overridden via machine/ieeefp.h.
5062         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
5063         macros for isnan and related macros.
5064         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
5065         overridden via machine/ieeefp.h.
5066         * libm/machine/spu/Makefile.am: Add new files.
5067         * libm/machine/spu/Makefile.in: Autogenerate with new files.
5068         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
5069         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
5070         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
5071         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
5072         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
5073         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
5074         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
5075
5076 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
5077
5078         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
5079         * libm/common/sf_fpclassify.c: ...here.  New file.
5080         * libm/common/Makefile.am: Add sf_fpclassify.c.
5081         * libm/common/Makefile.in: Regenerated.
5082
5083 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5084
5085         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
5086         ppu linux values. This file is a copy of the cris/sys/errno.h plus
5087         a few changes (see spu errno.h comments).
5088
5089 2007-04-25  Eric Blake  <ebb9@byu.net>
5090
5091         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
5092         that promote to int.
5093
5094 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5095
5096         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
5097         we clear the proper bits in the fpscr, and don't set some random ones.
5098
5099 2007-04-24  Eric Blake  <ebb9@byu.net>
5100
5101         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
5102         or NaN with %05f.
5103
5104         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
5105         _MB_CAPABLE.
5106
5107         * libc/include/limits.h (NL_ARGMAX): Define a default value.
5108         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
5109         NL_ARGMAX, if present.
5110
5111 2007-04-23  Brian Dessent  <brian@dessent.net>
5112
5113         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
5114         has been specified with types 'f', 'F', 'g', or 'G', ensure the
5115         trailing decimal is printed.
5116
5117 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
5118
5119         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
5120         file.  Override Autoconf-2.59's version of these macros with
5121         fixed handling of multiple adjacent whitespace in arguments.
5122         * aclocal.m4: Regenerated forcefully.
5123         * configure: Ditto.
5124         * Makefile.in: Ditto.
5125         * libc/*Makefile.in: Ditto.
5126         * libc/*aclocal.m4: Ditto.
5127         * libc/*configure: Ditto.
5128         * libm/*Makefile.in: Ditto.
5129         * libm/*aclocal.m4: Ditto.
5130         * libm/*configure: Ditto.
5131
5132 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
5133
5134         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
5135         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
5136         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
5137         * libc/sys/arc/Makefile.in: Regenerated.
5138
5139 2007-04-17  Brian Dessent  <brian@dessent.net>
5140
5141         * libc/stdio/sscanf.c: Update documentation comments.
5142         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
5143
5144 2007-04-12  Eric Blake  <ebb9@byu.net>
5145
5146         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
5147         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
5148         (get_arg): Handle %1$F, %1$n.
5149
5150 2007-04-10  Eric Blake  <ebb9@byu.net>
5151
5152         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
5153         CFLAGS=-O0.
5154
5155 2007-04-09  Eric Blake  <ebb9@byu.net>
5156
5157         * libc/include/stdio.h: Add gcc format attributes to printf and
5158         scanf families.
5159
5160 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
5161
5162         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
5163         even if the passed in length n is shorter than the source string.
5164         This matches both the non-spu specific and the glibc strxfrm
5165         behaviour.
5166
5167 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
5168
5169         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
5170         functions registering additional atexit functions.
5171
5172         * testsuite/lib/flags.exp (newlib_include_flags): Drop
5173         -I${newlib_dir}.
5174
5175 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
5176
5177         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
5178         prototype.
5179         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
5180         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
5181         * libc/machine/spu/fclose.c: Ditto.
5182         * libc/machine/spu/feof.c: Ditto.
5183         * libc/machine/spu/ferror.c: Ditto.
5184         * libc/machine/spu/fflush.c: Ditto.
5185         * libc/machine/spu/fgetc.c: Ditto.
5186         * libc/machine/spu/fgetpos.c: Ditto.
5187         * libc/machine/spu/fgets.c: Ditto.
5188         * libc/machine/spu/fileno.c: Ditto.
5189         * libc/machine/spu/fopen.c: Ditto.
5190         * libc/machine/spu/fprintf.c: Ditto.
5191         * libc/machine/spu/fputc.c: Ditto.
5192         * libc/machine/spu/fputs.c: Ditto.
5193         * libc/machine/spu/fread.c: Ditto.
5194         * libc/machine/spu/freopen.c: Ditto.
5195         * libc/machine/spu/fscanf.c: Ditto.
5196         * libc/machine/spu/fseek.c: Ditto.
5197         * libc/machine/spu/fsetpos.c: Ditto.
5198         * libc/machine/spu/ftell.c: Ditto.
5199         * libc/machine/spu/fwrite.c: Ditto.
5200         * libc/machine/spu/getc.c: Ditto.
5201         * libc/machine/spu/getchar.c: Ditto.
5202         * libc/machine/spu/gets.c: Ditto.
5203         * libc/machine/spu/perror.c: Ditto.
5204         * libc/machine/spu/printf.c: Ditto.
5205         * libc/machine/spu/putc.c: Ditto.
5206         * libc/machine/spu/putchar.c: Ditto.
5207         * libc/machine/spu/puts.c: Ditto.
5208         * libc/machine/spu/remove.c: Ditto.
5209         * libc/machine/spu/rename.c: Ditto.
5210         * libc/machine/spu/rewind.c: Ditto.
5211         * libc/machine/spu/scanf.c: Ditto.
5212         * libc/machine/spu/setbuf.c: Ditto.
5213         * libc/machine/spu/setvbuf.c: Ditto.
5214         * libc/machine/spu/snprintf.c: Ditto.
5215         * libc/machine/spu/sprintf.c: Ditto.
5216         * libc/machine/spu/sscanf.c: Ditto.
5217         * libc/machine/spu/tmpfile.c: Ditto.
5218         * libc/machine/spu/tmpnam.c: Ditto.
5219         * libc/machine/spu/ungetc.c: Ditto.
5220         * libc/machine/spu/vfprintf.c: Ditto.
5221         * libc/machine/spu/vfscanf.c: Ditto.
5222         * libc/machine/spu/vprintf.c: Ditto.
5223         * libc/machine/spu/vscanf.c: Ditto.
5224         * libc/machine/spu/vsnprintf.c: Ditto.
5225         * libc/machine/spu/vsprintf.c: Ditto.
5226         * libc/machine/spu/vsscanf.c: Ditto.
5227
5228 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
5229
5230         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
5231
5232 2007-04-04  Eric Blake  <ebb9@byu.net>
5233
5234         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
5235         (asiprintf): Avoid overhead.
5236         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
5237         (asprintf): Avoid overhead.
5238         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
5239         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
5240         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
5241         (fiprintf): Avoid overhead.
5242         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
5243         (fprintf): Avoid overhead.
5244         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
5245         (iprintf): Avoid overhead.
5246         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
5247         (printf): Avoid overhead.
5248         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
5249         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
5250         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
5251         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
5252         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
5253         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
5254         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
5255         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
5256         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
5257         vdiprintf.c.
5258         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
5259         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
5260
5261 2007-03-30  Dave Korn  <dave.korn@artimi.com>
5262
5263         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
5264         conflicting inline semantics between C99 and GNU89.
5265         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
5266         compatible with -fkeep-inline-functions usage.
5267         (__sputc_r):  Likewise for consistency even though disabled.
5268
5269 2007-03-29  Nick Clifton  <nickc@redhat.com>
5270
5271         Reflect changes made to generic vfprintf.c:
5272         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5273         and add a "struct reent *" argument.
5274         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5275         argument and call _VFPRINTF_R instead of VFPRINTF.
5276         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5277         Fix uses of __sprint() and __sbprintf.
5278
5279 2007-03-20  Nick Clifton  <nickc@redhat.com>
5280
5281         Reflect changes made to generic vfprintf.c:
5282         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5283         and add a "struct reent *" argument.
5284         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5285         argument and call _VFPRINTF_R instead of VFPRINTF.
5286         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5287         Fix uses of __sprint() and __sbprintf.
5288
5289 2007-03-16  Charles Wilson  <cygwin@...>
5290
5291         * libc/argz/argz_insert.c: "before" pointer is
5292         invalid after *argz realloc.  Compute offset
5293         between "before" and *argz, and use it after
5294         reallocation instead.
5295
5296 2007-03-16  Eric Blake  <ebb9@byu.net>
5297
5298         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
5299         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5300
5301 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
5302
5303         * configure.in: Add new --enable-newlib-reent-small option.
5304         * configure: Regenerated.
5305         * acconfig.h: Add _WANT_REENT_SMALL.
5306         * newlib.hin: Regenerated minus PACKAGE macros to add
5307         _WANT_REENT_SMALL macro.
5308         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
5309         if not already set.
5310         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5311         there is no buffer.
5312         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5313         use reentrant pointer passed in when resetting the file
5314         pointer to one of the std streams.
5315
5316 2007-03-15  Eric Blake  <ebb9@byu.net>
5317
5318         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5319         (__smakebuf): Rename...
5320         (__smakebuf_r): to this.
5321         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5322         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5323         allocation, then rename...
5324         (__smakebuf_r): ...to this and fix reentrancy.
5325         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5326         allocation, then rename...
5327         (__swsetup_r): ...to this and fix reentrancy.
5328         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5329         * libc/stdio/refill.c (__srefill_r): Likewise.
5330         * libc/stdio/fclose.c (_fclose_r): Likewise.
5331         * libc/stdio/fread.c (_fread_r): Likewise.
5332         * libc/stdio/freopen.c (_freopen_r): Likewise.
5333         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5334         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5335         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5336         failed asprintf allocation, and fix reentrancy.
5337         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5338         as required by POSIX.
5339         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5340         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5341         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5342
5343 2007-03-12  Eric Blake  <ebb9@byu.net>
5344
5345         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5346         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5347         allocation to caller.
5348         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5349         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5350         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5351
5352 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5353
5354         * libm/math/w_pow.c: Fix typo in documentation comment.
5355
5356 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5357
5358         * libc/reent/timer.c: Removed (split into two new files).
5359         * libc/reent/timesr.c: New file for _times_r.
5360         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5361         * reent/Makefile.in: Remove timer.c, add timesr.c and
5362         gettimeofdayr.c.
5363         * libc/reent/Makefile.am: Regenerate.
5364
5365 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5366
5367         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5368
5369 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5370
5371         * libc/machine/spu/Makefile.am: Add new objects.
5372         * libc/machine/spu/Makefile.in: Regenerated.
5373         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5374         integer-only version.
5375         * libc/machine/spu/fiscanf.c: Ditto.
5376         * libc/machine/spu/iprintf.c: Ditto.
5377         * libc/machine/spu/iscanf.c: Ditto.
5378         * libc/machine/spu/siprintf.c: Ditto.
5379         * libc/machine/spu/siscanf.c: Ditto.
5380         * libc/machine/spu/sniprintf.c: Ditto.
5381         * libc/machine/spu/vfiprintf.c: Ditto.
5382         * libc/machine/spu/vfiscanf.c: Ditto.
5383         * libc/machine/spu/viprintf.c: Ditto.
5384         * libc/machine/spu/viscanf.c: Ditto.
5385         * libc/machine/spu/vsiprintf.c: Ditto.
5386         * libc/machine/spu/vsiscanf.c: Ditto.
5387         * libc/machine/spu/vsniprintf.c: Ditto.
5388         * libc/machine/spu/fprintf.c: Add support for integer-only
5389         version.
5390         * libc/machine/spu/fscanf.c: Ditto.
5391         * libc/machine/spu/printf.c: Ditto.
5392         * libc/machine/spu/scanf.c: Ditto.
5393         * libc/machine/spu/snprintf.c: Ditto.
5394         * libc/machine/spu/sprintf.c: Ditto.
5395         * libc/machine/spu/sscanf.c: Ditto.
5396         * libc/machine/spu/vfprintf.c: Ditto.
5397         * libc/machine/spu/vfscanf.c: Ditto.
5398         * libc/machine/spu/vprintf.c: Ditto.
5399         * libc/machine/spu/vscanf.c: Ditto.
5400         * libc/machine/spu/vsnprintf.c: Ditto.
5401         * libc/machine/spu/vsprintf.c: Ditto.
5402         * libc/machine/spu/vsscanf.c: Ditto.
5403
5404 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5405
5406         * libc/include/stdio.h: Add declaration for vsiprintf.
5407
5408 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5409
5410         Add a floating point environment for SPU (cell):
5411
5412         * configure.host: add libm_machine_dir=spu.
5413         * libm/machine/configure: Add spu.
5414         * libm/machine/configure.in: regenerated with spu added.
5415         * libc/machine/spu/include/fenv.h: New file.
5416         * libc/machine/spu/sys/fenv.h: Ditto.
5417         * libm/machine/spu/Makefile.am: Ditto.
5418         * libm/machine/spu/Makefile.in: Ditto.
5419         * libm/machine/spu/aclocal.m4: Ditto.
5420         * libm/machine/spu/configure: Ditto.
5421         * libm/machine/spu/configure.in: Ditto.
5422         * libm/machine/spu/fe_dfl_env.c: Ditto.
5423         * libm/machine/spu/feclearexcept.c: Ditto.
5424         * libm/machine/spu/fegetenv.c: Ditto.
5425         * libm/machine/spu/fegetexceptflag.c: Ditto.
5426         * libm/machine/spu/fegetround.c: Ditto.
5427         * libm/machine/spu/feholdexcept.c: Ditto.
5428         * libm/machine/spu/feraiseexcept.c: Ditto.
5429         * libm/machine/spu/fesetenv.c: Ditto.
5430         * libm/machine/spu/fesetexceptflag.c: Ditto.
5431         * libm/machine/spu/fesetround.c: Ditto.
5432         * libm/machine/spu/fetestexcept.c: Ditto.
5433         * libm/machine/spu/feupdateenv.c: Ditto.
5434         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5435         * libm/machine/spu/headers/fefpscr.h: Ditto.
5436         * libm/machine/spu/headers/fegetenv.h: Ditto.
5437         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5438         * libm/machine/spu/headers/fegetround.h: Ditto.
5439         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5440         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5441         * libm/machine/spu/headers/fesetenv.h: Ditto.
5442         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5443         * libm/machine/spu/headers/fesetround.h: Ditto.
5444         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5445         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5446
5447 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5448
5449         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5450         Cygwin.
5451
5452 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5453
5454         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5455         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5456
5457 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5458
5459         * libc/include/sys/features.h: Add definition of all supported
5460         _POSIX_xxx values for Cygwin.
5461         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5462         on Cygwin.
5463         (pthread_rwlockattr_t): Ditto.
5464         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5465         required by SUSv3.  Unify formatting.
5466
5467 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5468
5469         * libc/include/sys/errno.h: Add ECANCELED.
5470
5471 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5472             Kazunori Asayama <asayama@sm.sony.co.jp>
5473
5474         * libc/machine/spu/Makefile.am: Add objects.
5475         * libc/machine/spu/Makefile.in: Regenerated.
5476         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5477         implementation.
5478         * libc/machine/spu/snprintf.c: Ditto.
5479         * libc/machine/spu/sprintf.c: Ditto.
5480         * libc/machine/spu/sscanf.c: Ditto.
5481         * libc/machine/spu/remove.c: Ditto.
5482         * libc/machine/spu/rename.c: Ditto.
5483         * libc/machine/spu/tmpnam.c: Ditto.
5484         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5485         stdio stuffs.
5486         * libc/machine/spu/vsprintf.c: Ditto.
5487
5488 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5489             Kazunori Asayama <asayama@sm.sony.co.jp>
5490
5491         * configure.host: Enable SPU specific stdio directory.
5492         * libc/machine/spu/Makefile.am: Add objects.
5493         * libc/machine/spu/Makefile.in: Regenerated.
5494         * libc/machine/spu/c99ppe.h: Add macros and function
5495         declarations to initialize SPU specific stdio stuffs.
5496         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5497         specific FILE structures.
5498         * libc/machine/spu/perror.c: Add initialization routine of
5499         stdio stuffs.
5500         * libc/machine/spu/printf.c: Ditto.
5501         * libc/machine/spu/putchar.c: Ditto.
5502         * libc/machine/spu/puts.c: Ditto.
5503         * libc/machine/spu/vprintf.c: Ditto.
5504         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5505         implementation.
5506         * libc/machine/spu/feof.c: Ditto.
5507         * libc/machine/spu/ferror.c: Ditto.
5508         * libc/machine/spu/fileno.c: Ditto.
5509         * libc/machine/spu/fopen.c: Ditto.
5510         * libc/machine/spu/fclose.c: Ditto.
5511         * libc/machine/spu/freopen.c: Ditto.
5512         * libc/machine/spu/fflush.c: Ditto.
5513         * libc/machine/spu/fseek.c: Ditto.
5514         * libc/machine/spu/ftell.c: Ditto.
5515         * libc/machine/spu/rewind.c: Ditto.
5516         * libc/machine/spu/fgetpos.c: Ditto.
5517         * libc/machine/spu/fsetpos.c: Ditto.
5518         * libc/machine/spu/fread.c: Ditto.
5519         * libc/machine/spu/fwrite.c: Ditto.
5520         * libc/machine/spu/getc.c: Ditto.
5521         * libc/machine/spu/getchar.c: Ditto.
5522         * libc/machine/spu/gets.c: Ditto.
5523         * libc/machine/spu/fgetc.c: Ditto.
5524         * libc/machine/spu/fgets.c: Ditto.
5525         * libc/machine/spu/ungetc.c: Ditto.
5526         * libc/machine/spu/putc.c: Ditto.
5527         * libc/machine/spu/fputc.c: Ditto.
5528         * libc/machine/spu/fputs.c: Ditto.
5529         * libc/machine/spu/vfprintf.c: Ditto.
5530         * libc/machine/spu/vfscanf.c: Ditto.
5531         * libc/machine/spu/fprintf.c: Ditto.
5532         * libc/machine/spu/fscanf.c: Ditto.
5533         * libc/machine/spu/scanf.c: Ditto.
5534         * libc/machine/spu/vscanf.c: Ditto.
5535         * libc/machine/spu/setbuf.c: Ditto.
5536         * libc/machine/spu/setvbuf.c: Ditto.
5537         * libc/machine/spu/tmpfile.c: Ditto.
5538
5539 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
5540
5541         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
5542         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
5543         around stdio macros that manipulate fields in the normal file
5544         structure.
5545         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
5546         <sys/custom_file.h> to define custom FILE structure.
5547         * libc/include/sys/custom_file.h: New default header file
5548         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
5549         * libc/machine/spu/sys/custom_file.h: New file.
5550
5551 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
5552
5553         * configure.host: Define stdio directory as a variable.
5554         * libc/Makefile.am: Define stdio related names
5555         as macros.
5556         * libc/configure.in: Add detection routine of stdio directory.
5557         * libc/Makefile.in: Regenerated.
5558         * libc/configure: Ditto.
5559         * libc/argz/Makefile.in: Ditto.
5560         * libc/ctype/Makefile.in: Ditto.
5561         * libc/errno/Makefile.in: Ditto.
5562         * libc/iconv/Makefile.in: Ditto.
5563         * libc/iconv/ccs/Makefile.in: Ditto.
5564         * libc/iconv/ccs/binary/Makefile.in: Ditto.
5565         * libc/iconv/ces/Makefile.in: Ditto.
5566         * libc/iconv/lib/Makefile.in: Ditto.
5567         * libc/locale/Makefile.in: Ditto.
5568         * libc/misc/Makefile.in: Ditto.
5569         * libc/posix/Makefile.in: Ditto.
5570         * libc/reent/Makefile.in: Ditto.
5571         * libc/search/Makefile.in: Ditto.
5572         * libc/signal/Makefile.in: Ditto.
5573         * libc/stdio/Makefile.in: Ditto.
5574         * libc/stdio64/Makefile.in: Ditto.
5575         * libc/stdlib/Makefile.in: Ditto.
5576         * libc/string/Makefile.in: Ditto.
5577         * libc/syscalls/Makefile.in: Ditto.
5578         * libc/time/Makefile.in: Ditto.
5579         * libc/unix/Makefile.in: Ditto.
5580
5581 2007-01-30  Ben Elliston  <bje@au.ibm.com>
5582
5583         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
5584         fmt member.
5585         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
5586         (printf): Pass fmt to va_start to suppress a warning.
5587
5588         * libc/search/hash.c (init_hash): Make `info' parameter const.
5589
5590 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
5591
5592         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
5593         * libc/machine/spu/vec_literal.h: Ditto.
5594         * libc/machine/spu/strncmp.c: Ditto.
5595
5596 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
5597             Kazu Hirata  <kazu@codesourcery.com>
5598
5599         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
5600         for E500V1 and E500V2.
5601
5602 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
5603
5604         * libm/configure.in: Always configure machine directory.
5605         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
5606         unconditionally.
5607         * libm/configure: Regenerated.
5608         * libm/Makefile.in: Ditto.
5609         * libm/*/Makefile.in: Ditto.
5610
5611 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
5612
5613         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
5614
5615 2007-01-02  Ben Elliston  <bje@au.ibm.com>
5616
5617         * doc/makedoc.c: Include <stdlib.h>.
5618         (malloc, realloc): Remove extern declarations.
5619
5620 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5621
5622         * NEWS: Update with 1.15.0 info.
5623         * README: Ditto.
5624         * acinclude.m4: Change version number to 1.15.0.
5625         * aclocal.m4: Regenerated.
5626         * configure: Ditto.
5627         * doc/aclocal.m4: Ditto.
5628         * doc/configure: Ditto.
5629         * libc/*/aclocal.m4: Ditto.
5630         * libc/*/configure: Ditto.
5631         * libc/libc.texinfo: Ditto.
5632         * libm/*/aclocal.m4: Ditto.
5633         * libm/*/configure: Ditto.
5634         * libm/libm.texinfo: Ditto.
5635         * libc/sys/linux/shared.ld: Add VERS_1.15.
5636
5637 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
5638
5639         Merge from newlib-csl-20060320-branch:
5640         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5641                     Kazu Hirata  <kazu@codesourcery.com>
5642
5643         * configure.host: Recognize fido.
5644
5645 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
5646
5647         * libc/machine/spu/c99ppe.h: New file
5648         * libc/machine/spu/perror.c: New file to override libc/stdio version.
5649         * libc/machine/spu/printf.c: New file
5650         * libc/machine/spu/putchar.c: New file
5651         * libc/machine/spu/puts.c: New file
5652         * libc/machine/spu/vprintf.c: New file
5653         * libc/machine/spu/vsnprintf.c: New file
5654         * libc/machine/spu/vsprintf.c: New file
5655         * libc/machine/spu/Makefile.am: Add new targets.
5656         * libc/machine/spu/Makefile.in: Regenerated.
5657
5658 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5659
5660         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
5661         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
5662
5663 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5664
5665         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
5666         2.6.5 version of Doug Lea's malloc which is the basis of
5667         this code.
5668
5669 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
5670
5671         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
5672
5673 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
5674             Eric Blake  <ebb9@byu.net>
5675
5676         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5677         read but unused data.
5678         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
5679         even read streams may have side effects that must happen.
5680
5681 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5682
5683         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
5684         correctly.
5685
5686 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5687
5688         * libc/include/alloca.h: Add undef alloca to work with xlc.
5689
5690 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
5691
5692         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
5693         cell spu.
5694
5695 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5696
5697         * libc/machine/spu/strncpy.c: Add padding.
5698
5699 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5700
5701         * testsuite/newlib.string/tstring.c:
5702
5703 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
5704
5705         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
5706         * libc/machine/spu/strrchr.c: Ditto.
5707
5708 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
5709
5710         * libc/include/math.h: Allow C99 functions/macros to be
5711         defined for C++ even when __STRICT_ANSI__.
5712
5713 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
5714
5715         * libc/stdio/makebuf.c (__smakebuf): If dealing with
5716         an asprintf-family buffer, make the default initial size 64.
5717
5718 2006-11-29  Eric Blake  <ebb9@byu.net>
5719
5720         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
5721         asprintf, as well as quadratic realloc behavior.
5722
5723 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
5724
5725         * libc/machine/spu/memset.c: Fix type of explicit cast.
5726         * libc/machine/spu/strncmp.c: Add explicit cast.
5727         * libc/machine/spu/strrchr.c: Ditto.
5728         * libc/machine/spu/strspn.c: Ditto.
5729
5730 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
5731
5732         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
5733         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
5734         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
5735         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
5736         * libc/machine/spu/strncat.c: Explicit cast.
5737         * libc/machine/spu/strncmp.c: Use spu_splats.
5738         * libc/machine/spu/strncpy.c: Explicit cast.
5739         * libc/machine/spu/strrchr.c: Use spu_splats.
5740         * libc/machine/spu/strspn.c: Use spu_splats.
5741
5742 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
5743
5744         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
5745
5746 2006-11-14  Eric Blake  <ebb9@byu.net>
5747
5748         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
5749         (chclass): ' is a flag.  j, t, and z are modifiers.
5750
5751 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
5752
5753         * configure.host: Add support for bfin.
5754         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
5755         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
5756         * libc/machine/bfin/aclocal.m4: Generate.
5757         * libc/machine/bfin/configure.in: New.
5758         * libc/machine/bfin/configure: Generate.
5759         * libc/machine/bfin/Makefile.am: New.
5760         * libc/machine/bfin/Makefile.in: Generate.
5761         * libc/machine/bfin/setjmp.S: New.
5762         * libc/machine/bfin/longjmp.S: New.
5763         * libc/machine/configure.in: Add bfin support.
5764         * libc/machine/configure: Generate.
5765
5766 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
5767
5768         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
5769         (_PC_FILESIZEBITS): Add definition.
5770         (_PC_2_SYMLINKS): Ditto.
5771         (_PC_SYMLINK_MAX): Ditto.
5772
5773 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
5774
5775         * libc/machine/spu/memcpy.c: Override generic function with vectorized
5776         version optimized for the cell spu.
5777         * libc/machine/spu/memmove.c: Ditto.
5778         * libc/machine/spu/memset.c: Ditto.
5779         * libc/machine/spu/strcat.c: Ditto.
5780         * libc/machine/spu/strchr.c: Ditto.
5781         * libc/machine/spu/strcmp.c: Ditto.
5782         * libc/machine/spu/strcpy.c: Ditto.
5783         * libc/machine/spu/strcspn.c: Ditto.
5784         * libc/machine/spu/strlen.c: Ditto.
5785         * libc/machine/spu/strncat.c: Ditto.
5786         * libc/machine/spu/strncmp.c: Ditto.
5787         * libc/machine/spu/strncpy.c: Ditto.
5788         * libc/machine/spu/strpbrk.c: Ditto.
5789         * libc/machine/spu/strrchr.c: Ditto.
5790         * libc/machine/spu/strspn.c: Ditto.
5791         * libc/machine/spu/strxfrm.c: Ditto.
5792         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
5793         removing altivec style initializers.
5794         * libc/machine/spu/Makefile.am: Add new files to list so they build
5795         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
5796
5797 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
5798
5799         * README: Add a brief section on how to regenerate
5800         configuration files in newlib.
5801
5802 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
5803
5804         * libc/include/math.h: (exception): Add a comment
5805         telling fixincludes that we handle C vs. C++ issue.
5806
5807 2006-10-11  Yang Tse  <yangsita@gmail.com>
5808
5809         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
5810         braced-groups.
5811
5812 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
5813
5814         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
5815
5816 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
5817
5818         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
5819         for clearerr, feof, or fileno.
5820         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
5821         the dummy std stream scheme to use pointers to const external
5822         fake files, one for each standard stream.
5823         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
5824         argument.  For _REENT_SMALL, reset the file pointer if it
5825         matches one of the fake std stream pointers.
5826         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
5827         argument.
5828         * libc/stdio/fclose.c: Ditto.
5829         * libc/stdio/feof.c: Ditto.
5830         * libc/stdio/ferror.c: Ditto.
5831         * libc/stdio/fflush.c: Ditto.
5832         * libc/stdio/fgetc.c: Ditto.
5833         * libc/stdio/fgets.c: Ditto.
5834         * libc/stdio/fileno.c: Ditto.
5835         * libc/stdio/findfp.c: Ditto.
5836         * libc/stdio/fputc.c: Ditto.
5837         * libc/stdio/fputs.c: Ditto.
5838         * libc/stdio/fread.c: Ditto.
5839         * libc/stdio/freopen.c: Ditto.
5840         * libc/stdio/fseek.c: Ditto.
5841         * libc/stdio/ftell.c: Ditto.
5842         * libc/stdio/fwrite.c: Ditto.
5843         * libc/stdio/getc.c: Ditto.
5844         * libc/stdio/getdelim.c: Ditto.
5845         * libc/stdio/putc.c: Ditto.
5846         * libc/stdio/refill.c: Ditto.
5847         * libc/stdio/setvbuf.c: Ditto.
5848         * libc/stdio/ungetc.c: Ditto.
5849         * libc/stdio/vfprintf.c: Ditto.
5850         * libc/stdio/vfscanf.c: Ditto.
5851         * libc/stdio/wbuf.c: Ditto.: Ditto.
5852         * libc/stdio/wsetup.c: Ditto.
5853         * libc/stdio64/freopen64.c: Ditto.
5854         * libc/stdio64/fseeko64.c: Ditto.
5855         * libc/stdio64/ftello64.c: Ditto.
5856         * libc/machine/powerpc/vfprintf.c: Ditto.
5857         * libc/machine/powerpc/vfscanf.c: Ditto.
5858
5859 2006-09-22  Paul Brook  <paul@codesourcery.com>
5860
5861         * libc/include/sys/reent.h: Define and use __reent_assert.
5862
5863 2006-09-13  Joel Sherrill <joel@oarcorp.com>
5864
5865         * libc/include/pthread.h: Add pthread barriers,
5866         rwlocks, and spinlocks.  Change const to
5867         _CONST and prefix parameter names with
5868         an underscore.
5869         * libc/include/sys/types.h: Add id and attribute
5870         types for barriers, wrlocks, and spinlocks.
5871         * libc/include/sys/features.h: Enable barriers,
5872         wrlocks, and spinlocks for RTEMS.
5873
5874 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
5875
5876         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
5877         supposed to be writable.
5878         * libm/common/s_lib_ver.c: Ditto.
5879
5880 2006-09-12  Paul Brook  <paul@codesourcery.com>
5881
5882         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
5883
5884 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
5885
5886
5887         * libc/machine/xstormy16/Makefile.am:
5888         Add $(lpfx) prefix to LIBADD objects.
5889         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
5890         * libc/machine/xstormy16/Makefile.in: Regenerated.
5891
5892 2006-09-06  Eric Blake  <ebb9@byu.net>
5893
5894         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
5895         't', and 'z' modifiers.
5896
5897 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
5898
5899         Merge from newlib-csl-20060320-branch:
5900         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
5901
5902         * configure.host: Tell it we have _rename and _system when
5903         building m68k-unknown-elf.
5904
5905 2006-08-29  Paul Brook  <paul@codesourcery.com>
5906
5907         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
5908
5909 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
5910
5911         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
5912         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
5913         This is needed to build all AVR and H8300 RTEMS multilib variants.
5914
5915 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
5916
5917         * libc/machine/configure.in: Add configuration for SPU.
5918         * libc/machine/configure: Regenerated.
5919         * libc/machine/spu/memcpy.c: Include string.h.
5920
5921 2006-08-22  Eric Blake  <ebb9@byu.net>
5922
5923         * libc/posix/popen.c (popen): Don't close output end of pipe in
5924         child if stdout was closed on entry.
5925         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
5926
5927 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
5928
5929         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
5930         line.
5931
5932 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
5933
5934         * libc/time/gmtime.c: Correct man page; clock is not a
5935         local time and no conversion occurs.
5936
5937 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5938
5939         * configure.host (newlib_cflags) [spu]: Add special compiler
5940         options to reduce size.
5941
5942 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5943
5944         * configure.host: Add spu support.
5945         * libc/include/stdint.h: Ditto.
5946         * libc/include/machine/ieeefp.h: Ditto.
5947         * libc/include/machine/setjmp.h: Ditto.
5948         * libc/include/sys/config.h: Ditto.
5949         * libc/include/sys/types.h: Ditto.
5950         * libc/machine/spu/Makefile.am: New file.
5951         * libc/machine/spu/Makefile.in: Ditto.
5952         * libc/machine/spu/aclocal.m4: Ditto.
5953         * libc/machine/spu/configure: Ditto.
5954         * libc/machine/spu/configure.in: Ditto.
5955         * libc/machine/spu/memcpy.c: Ditto.
5956         * libc/machine/spu/setjmp.S: Ditto.
5957
5958 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5959
5960         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
5961         properly.
5962
5963 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
5964
5965         * libc/Makefile.am: Add libc_TEXINFOS dependency on
5966         generated .texi files.
5967         * libm/Makefile.am: Add libm_TEXINFOS dependency on
5968         generated .texi files.
5969         * libc/Makefile.in: Regenerated.
5970         * libm/Makefile.in: Ditto.
5971
5972 2006-08-01  Thiemo Seufer  <ths@mips.com>
5973             Nigel Stephens  <nigel@mips.com>
5974
5975         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
5976         define this to force _impure_ptr to live in the .sdata section.
5977
5978 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5979
5980         * acinclude.m4: Check for readelf tool.
5981         * configure.in: Use ${READELF} instead of hard-coding.
5982         * Regenerate all aclocal.m4, Makefile.in, and configure files.
5983
5984 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5985
5986         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
5987         to avoid conflict with newer glibc's revision of mremap.
5988
5989 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
5990
5991         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
5992         floating-point format support.  Also redefine
5993         dword0 and dword1 macros.
5994         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5995         to prevent setting dword1 which is an rvalue only.
5996
5997 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5998
5999         * libc/stdlib/Makefile.am: Add new gdtoa routines.
6000         * libc/stdlib/Makefile.in: Regenerated.
6001         * libc/stdlib/gd_qnan.h: New file.
6002         * libc/stdlib/gdtoa-gethex.c: Ditto.
6003         * libc/stdlib/gdtoa-hexnan.c: Ditto.
6004         * libc/stdlib/gdtoa.h: Ditto.
6005         * libc/stdlib/mprec.c: Add new helper routines needed by
6006         the new gdtoa code.
6007         * libc/stdlib/mprec.h: Integrate some defines and prototypes
6008         used by gdtoa routines here.
6009         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
6010         which adds C99 support such as nan, inf, and hexadecimal input
6011         format.
6012
6013 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
6014
6015         * libc/include/stdio.h (__sgetc_r): Fix typo.
6016         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
6017         * libc/stdio/rget.c (__srbuf): Reinstantiate.
6018         * libc/stdio/wbuf.c (__swbuf): Ditto.
6019
6020 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
6021
6022         * libc/include/stdio.h: Add new reentrant I/O prototypes for
6023         read/write functions.  Change getc/putc macros to have reentrant underlying
6024         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
6025         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
6026         new reentrant I/O functions/macros for reading/writing.
6027         * libc/stdio/fgets.c: Ditto.
6028         * libc/stdio/fputc.c: Ditto.
6029         * libc/stdio/fputs.c: Ditto.
6030         * libc/stdio/fread.c: Ditto.
6031         * libc/stdio/fseek.c: Ditto.
6032         * libc/stdio64/fseeko64.c: Ditto.
6033         * libc/stdio/fwrite.c: Ditto.
6034         * libc/stdio/getc.c: Ditto.
6035         * libc/stdio/getc_u.c: Ditto.
6036         * libc/stdio/getchar.c: Ditto.
6037         * libc/stdio/getchar_u.c: Ditto.
6038         * libc/stdio/putc.c: Ditto.
6039         * libc/stdio/putc_u.c: Ditto.
6040         * libc/stdio/putchar.c: Ditto.
6041         * libc/stdio/puts.c: Ditto.
6042         * libc/stdio/vfprintf.c: Ditto.
6043         * libc/stdio/vfscanf.c: Ditto.
6044         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
6045         Change all previous callers of __sfvwrite.  Set errno to EBADF and
6046         set error flag on if attempt is made to write to file that does not
6047         allow writing.
6048         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
6049         * libc/stdio/local.h: Ditto.
6050         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
6051         Set errno to EBADF and the error flag on if attempt is made to
6052         read unreadable file.  Change all previous callers of __srefill.
6053         * libc/stdio/rget.c
6054         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
6055         all previous callers of __swbuf.
6056         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
6057         huge value macros are already defined correctly for i386 by <math.h>.
6058
6059 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
6060
6061         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
6062         Make them do something useful in the ARM_RDI_MONITOR case.
6063
6064 2006-06-07  Fred Fish  <fnf@specifix.com>
6065
6066         * libc/search/hash_bigkey.c (MIN,MAX): Remove
6067         defines that are already supplied by <sys/param.h>.
6068
6069 2006-06-07  Fred Fish  <fnf@specifix.com>
6070
6071         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
6072
6073 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
6074
6075         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
6076         usleep.c.
6077         * libc/posix/Makefile.in: Regenerate.
6078         * libc/posix/sleep.c: New file.
6079         * libc/posix/usleep.c: Ditto.
6080
6081 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
6082
6083         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
6084         -DABORT_PROVIDED flag.
6085         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
6086         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
6087
6088 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6089
6090         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
6091         * Makefile.in: Regenerated.
6092         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
6093         extraneous CFLAGS reference now that CCASFLAGS are being extended
6094         properly via multilib.
6095         * libc/machine/sh/Makefile.in: Regenerated.
6096
6097 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
6098
6099         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
6100         sigismember.
6101
6102 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6103
6104         * libc/misc/dprintf.c: Removed.
6105         * libc/misc/__dprintf.c: Renamed from dprintf.c.
6106         * libc/misc/Makefile.am: Changed appropriately for rename.
6107         * libc/misc/Makefile.in: Regenerated.
6108
6109 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6110
6111         * libc/include/stdio.h: Protect dprintf prototype
6112         with #ifndef dprintf so as to not interfere with
6113         historical code defining their own dprintf macro.
6114
6115 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
6116
6117         * libc/include/stdio.h: Add prototypes for fiscanf,
6118         iscanf, and siscanf.
6119
6120 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
6121
6122         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
6123         (DEF_NEWLIB_VERSION).
6124         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
6125         * configure: Regenerate.
6126
6127 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
6128
6129         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
6130         lib_a_SOURCES.
6131         * libc/ctype/Makefile.in: Regenerated.
6132
6133 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
6134
6135         * libc/machine/arm/Makefile.am: Fix a typo.
6136         * libc/machine/arm/Makefile.in: Regenerated.
6137
6138 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
6139
6140         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6141         * libc/machine/sh/Makefile.in: Regenerate.
6142
6143 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
6144
6145         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6146         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
6147
6148 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
6149
6150         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
6151         .s.
6152         * libc/sys/sysnec810/Makefile.in: Regenerated.
6153         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
6154         * libc/sys/sysnec810/io.S: Ditto.
6155         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
6156         * libc/sys/sysnec810/io.s: Ditto.
6157
6158 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
6159
6160         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
6161         be specified instead of object, do so.
6162         * libc/ctype/Makefile.am: Ditto.
6163         * libc/iconv/ccs/Makefile.am: Ditto.
6164         * libc/iconv/ces/Makefile.am: Ditto.
6165         * libc/iconv/lib/Makefile.am: Ditto.
6166         * libc/locale/Makefile.am: Ditto.
6167         * libc/posix/Makefile.am: Ditto.
6168         * libc/reent/Makefile.am: Ditto.
6169         * libc/search/Makefile.am: Ditto.
6170         * libc/stdio/Makefile.am: Ditto.
6171         * libc/stdio64/Makefile.am: Ditto.
6172         * libc/stdlib/Makefile.am: Ditto.
6173         * libc/string/Makefile.am: Ditto.
6174         * libc/syscalls/Makefile.am: Ditto.
6175         * libc/unix/Makefile.am: Ditto.
6176         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
6177         prefix added automatically.  Any specified rules must use $(lpfx) for
6178         object file names.
6179         * libc/machine/arm/Makefile.am: Ditto.
6180         * libc/machine/cris/Makefile.am: Ditto.
6181         * libc/machine/crx/Makefile.am: Ditto.
6182         * libc/machine/d10v/Makefile.am: Ditto.
6183         * libc/machine/d30v/Makefile.am: Ditto.
6184         * libc/machine/fr30/Makefile.am: Ditto.
6185         * libc/machine/frv/Makefile.am: Ditto.
6186         * libc/machine/h8300/Makefile.am: Ditto.
6187         * libc/machine/h8500/Makefile.am: Ditto.
6188         * libc/machine/hppa/Makefile.am: Ditto.
6189         * libc/machine/i386/Makefile.am: Ditto.
6190         * libc/machine/i960/Makefile.am: Ditto.
6191         * libc/machine/iq2000/Makefile.am: Ditto.
6192         * libc/machine/m32c/Makefile.am: Ditto.
6193         * libc/machine/m32r/Makefile.am: Ditto.
6194         * libc/machine/m68hc11/Makefile.am: Ditto.
6195         * libc/machine/m68k/Makefile.am: Ditto.
6196         * libc/machine/m88k/Makefile.am: Ditto.
6197         * libc/machine/mips/Makefile.am: Ditto.
6198         * libc/machine/mn10200/Makefile.am: Ditto.
6199         * libc/machine/mn10300/Makefile.am: Ditto.
6200         * libc/machine/mt/Makefile.am: Ditto.
6201         * libc/machine/necv70/Makefile.am: Ditto.
6202         * libc/machine/powerpc/Makefile.am: Ditto.
6203         * libc/machine/sh/Makefile.am: Ditto.
6204         * libc/machine/sh/Makefile.in: Ditto.
6205         * libc/machine/sparc/Makefile.am: Ditto.
6206         * libc/machine/tic4x/Makefile.am: Ditto.
6207         * libc/machine/tic80/Makefile.am: Ditto.
6208         * libc/machine/v850/Makefile.am: Ditto.
6209         * libc/machine/w65/Makefile.am: Ditto.
6210         * libc/machine/xscale/Makefile.am: Ditto.
6211         * libc/machine/xstormy16/Makefile.am: Ditto.
6212         * libc/machine/z8k/Makefile.am: Ditto.
6213         * libc/sys/a29khif/Makefile.am: Ditto.
6214         * libc/sys/arm/Makefile.am: Ditto.
6215         * libc/sys/d10v/Makefile.am: Ditto.
6216         * libc/sys/h8300hms/Makefile.am: Ditto.
6217         * libc/sys/h8500hms/Makefile.am: Ditto.
6218         * libc/sys/linux/Makefile.am: Ditto.
6219         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6220         * libc/sys/linux/net/Makefile.am: Ditto.
6221         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6222         * libc/sys/m88kbug/Makefile.am: Ditto.
6223         * libc/sys/mmixware/Makefile.am: Ditto.
6224         * libc/sys/rdos/Makefile.am: Ditto.
6225         * libc/sys/rtems/Makefile.am: Ditto.
6226         * libc/sys/sh/Makefile.am: Ditto.
6227         * libc/sys/sun4/Makefile.am: Ditto.
6228         * libc/sys/sysmec/Makefile.am: Ditto.
6229         * libc/sys/sysnec810/Makefile.am: Ditto.
6230         * libc/sys/sysnecv850/Makefile.am: Ditto.
6231         * libc/sys/sysvi386/Makefile.am: Ditto.
6232         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6233         * libc/sys/tic80/Makefile.am: Ditto.
6234         * libc/sys/w65/Makefile.am: Ditto.
6235         * libc/sys/z8ksim/Makefile.am: Ditto.
6236         * libc/machine/necv70/fastmath.S: Renamed from .s file.
6237         * libc/machine/necv70/setjmp.S: Ditto.
6238         * libc/machine/necv70/fastmath.s: Removed.
6239         * libc/machine/necv70/setjmp.s: Ditto.
6240         * libc/machine/w65/*.S: New files renamed from .s files.
6241         * libc/machine/w65/*.s: Renamed and removed.
6242         * libc/sys/a29khif/*.S: New files renamed from .s files.
6243         * libc/sys/a29khif/*.s: Renamed and removed.
6244         * libc/sys/sysvi386/*.S: New files renamed from .s files.
6245         * libc/sys/sysvi386/*.s: Renamed and removed.
6246         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
6247         * libc/sys/sysvnecv70/*.s: Renamed and removed.
6248         * libc/*Makefile.in: Regenerated as appropriate.
6249
6250 2006-04-24  DJ Delorie  <dj@redhat.com>
6251
6252         * libc/machine/sh/configure.in: Avoid link tests.
6253         * libc/machine/sh/configure: Regenerate.
6254
6255 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
6256
6257         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
6258         (sigaddset, sigemptyset): Add return code.
6259
6260 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
6261
6262         * acinclude.m4: New _NEWLIB_VERSION.
6263         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
6264         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
6265         Use new form of AC_INIT_AUTOMAKE.
6266         * configure.in: AC_PREREQ(2.59).
6267         Use autoconf-2.5.x version of AC_INIT.
6268         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
6269         autoconf-2.13's AC_OUTPUT.
6270         * libm/configure.in: Ditto.
6271         * libm/machine/configure.in: Ditto.
6272         * libm/machine/i386/configure.in: Ditto.
6273         * libc/configure.in: Ditto.
6274         * libc/machine/a29k/configure.in: Ditto.
6275         * libc/machine/arm/configure.in: Ditto.
6276         * libc/machine/configure.in: Ditto.
6277         * libc/machine/mn10300/configure.in: Ditto.
6278         * libc/machine/powerpc/configure.in: Ditto.
6279         * libc/machine/z8k/configure.in: Ditto.
6280         * libc/machine/h8300/configure.in: Ditto.
6281         * libc/machine/mips/configure.in: Ditto.
6282         * libc/machine/crx/configure.in: Ditto.
6283         * libc/machine/m68hc11/configure.in: Ditto.
6284         * libc/machine/h8500/configure.in: Ditto.
6285         * libc/machine/xscale/configure.in: Ditto.
6286         * libc/machine/d10v/configure.in: Ditto.
6287         * libc/machine/fr30/configure.in: Ditto.
6288         * libc/machine/sh/configure.in: Ditto.
6289         * libc/machine/tic80/configure.in: Ditto.
6290         * libc/machine/m32r/configure.in: Ditto.
6291         * libc/machine/xstormy16/configure.in: Ditto.
6292         * libc/machine/i386/configure.in: Ditto.
6293         * libc/machine/d30v/configure.in: Ditto.
6294         * libc/machine/mn10200/configure.in: Ditto.
6295         * libc/machine/frv/configure.in: Ditto.
6296         * libc/machine/mt/configure.in: Ditto.
6297         * libc/machine/i960/configure.in: Ditto.
6298         * libc/machine/v850/configure.in: Ditto.
6299         * libc/machine/necv70/configure.in: Ditto.
6300         * libc/machine/tic4x/configure.in: Ditto.
6301         * libc/machine/cris/configure.in: Ditto.
6302         * libc/machine/m68k/configure.in: Ditto.
6303         * libc/machine/m32c/configure.in: Ditto.
6304         * libc/machine/hppa/configure.in: Ditto.
6305         * libc/machine/w65/configure.in: Ditto.
6306         * libc/machine/iq2000/configure.in: Ditto.
6307         * libc/machine/sparc/configure.in: Ditto.
6308         * libc/machine/m88k/configure.in: Ditto.
6309         * libc/sys/linux/configure.in: Ditto.
6310         * libc/sys/linux/machine/configure.in: Ditto.
6311         * libc/sys/linux/machine/i386/configure.in: Ditto.
6312         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6313         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6314         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6315         * libc/sys/arm/configure.in: Ditto.
6316         * libc/sys/configure.in: Ditto.
6317         * libc/sys/decstation/configure.in: Ditto.
6318         * libc/sys/a29khif/configure.in: Ditto.
6319         * libc/sys/sysnecv850/configure.in: Ditto.
6320         * libc/sys/d10v/configure.in: Ditto.
6321         * libc/sys/netware/configure.in: Ditto.
6322         * libc/sys/mmixware/configure.in: Ditto.
6323         * libc/sys/h8500hms/configure.in: Ditto.
6324         * libc/sys/sh/configure.in: Ditto.
6325         * libc/sys/tic80/configure.in: Ditto.
6326         * libc/sys/rdos/configure.in: Ditto.
6327         * libc/sys/sysmec/configure.in: Ditto.
6328         * libc/sys/sysvi386/configure.in: Ditto.
6329         * libc/sys/h8300hms/configure.in: Ditto.
6330         * libc/sys/sparc64/configure.in: Ditto.
6331         * libc/sys/arc/configure.in: Ditto.
6332         * libc/sys/sysnec810/configure.in: Ditto.
6333         * libc/sys/m88kbug/configure.in: Ditto.
6334         * libc/sys/sysvnecv70/configure.in: Ditto.
6335         * libc/sys/z8ksim/configure.in: Ditto.
6336         * libc/sys/rtems/configure.in: Ditto.
6337         * libc/sys/w65/configure.in: Ditto.
6338         * libc/sys/sun4/configure.in: Ditto.
6339         * doc/configure.in: Ditto.
6340         * iconvdata/configure.in: Ditto.
6341         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6342
6343 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * acinclude.m4: Properly add square brackets for
6346         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6347         macros no longer available.  Add LIB_AM_PROG_AS to
6348         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6349         macro.  Substitute lpfx (library object prefix).
6350         * configure.host: Set lpfx depending on whether
6351         libtool is used or not.
6352         * configure.in: Individually specify libc and libm
6353         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6354         necessary.
6355         * Makefile.am: Use $(lpfx) to get object names for
6356         math-library functions that should also be in libc.
6357         * libc/machine/configure.in: Use case statement to determine
6358         AC_CONFIG_SUBDIRS statement.
6359         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6360         * libc/sys/linux/machine/configure.in: Ditto.
6361         * libc/sys/configure.in: Ditto.
6362         * libm/machine/configure.in: Ditto.
6363         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6364         * libm/configure.in: Add AM_CONDITIONAL statement
6365         for HAVE_LIBM_MACHINE_DIR.
6366         * libc/machine/a29k/Makefile.am: Modified to work with
6367         latest automake.  Change includes setting AM_CCASFLAGS
6368         so building .S files will properly pick up flags used
6369         to build C files.
6370         * libc/machine/arm/Makefile.am: Ditto.
6371         * libc/machine/crx/Makefile.am: Ditto.
6372         * libc/machine/d10v/Makefile.am: Ditto.
6373         * libc/machine/d30v/Makefile.am: Ditto.
6374         * libc/machine/fr30/Makefile.am: Ditto.
6375         * libc/machine/frv/Makefile.am: Ditto.
6376         * libc/machine/h8300/Makefile.am: Ditto.
6377         * libc/machine/h8500/Makefile.am: Ditto.
6378         * libc/machine/hppa/Makefile.am: Ditto.
6379         * libc/machine/i386/Makefile.am: Ditto.
6380         * libc/machine/iq2000/Makefile.am: Ditto.
6381         * libc/machine/m32c/Makefile.am: Ditto.
6382         * libc/machine/m32r/Makefile.am: Ditto.
6383         * libc/machine/m68hc11/Makefile.am: Ditto.
6384         * libc/machine/m68k/Makefile.am: Ditto.
6385         * libc/machine/m88k/Makefile.am: Ditto.
6386         * libc/machine/mips/Makefile.am: Ditto.
6387         * libc/machine/mn10200/Makefile.am: Ditto.
6388         * libc/machine/mn10300/Makefile.am: Ditto.
6389         * libc/machine/mt/Makefile.am: Ditto.
6390         * libc/machine/necv70/Makefile.am: Ditto.
6391         * libc/machine/powerpc/Makefile.am: Ditto.
6392         * libc/machine/sh/Makefile.am: Ditto.
6393         * libc/machine/sparc/Makefile.am: Ditto.
6394         * libc/machine/tic4x/Makefile.am: Ditto.
6395         * libc/machine/tic80/Makefile.am: Ditto.
6396         * libc/machine/v850/Makefile.am: Ditto.
6397         * libc/machine/w65/Makefile.am: Ditto.
6398         * libc/machine/xscale/Makefile.am: Ditto.
6399         * libc/machine/xstormy16/Makefile.am: Ditto.
6400         * libc/machine/z8k/Makefile.am: Ditto.
6401         * libc/sys/a29khif/Makefile.am: Ditto.
6402         * libc/sys/arc/Makefile.am: Ditto.
6403         * libc/sys/arm/Makefile.am: Ditto.
6404         * libc/sys/d10v/Makefile.am: Ditto.
6405         * libc/sys/decstation/Makefile.am: Ditto.
6406         * libc/sys/h8300hms/Makefile.am: Ditto.
6407         * libc/sys/h8500hms/Makefile.am: Ditto.
6408         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6409         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6410         * libc/sys/m88kbug/Makefile.am: Ditto.
6411         * libc/sys/mmixware/Makefile.am: Ditto.
6412         * libc/sys/netware/Makefile.am: Ditto.
6413         * libc/sys/rdos/Makefile.am: Ditto.
6414         * libc/sys/rtems/Makefile.am: Ditto.
6415         * libc/sys/sh/Makefile.am: Ditto.
6416         * libc/sys/sparc64/Makefile.am: Ditto.
6417         * libc/sys/sysmec/Makefile.am: Ditto.
6418         * libc/sys/sysnec810/Makefile.am: Ditto.
6419         * libc/sys/sysnecv850/Makefile.am: Ditto.
6420         * libc/sys/sysvi386/Makefile.am: Ditto.
6421         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6422         * libc/sys/tic80/Makefile.am: Ditto.
6423         * libc/sys/w65/Makefile.am: Ditto.
6424         * libc/sys/z8ksim/Makefile.am: Ditto.
6425         * libm/machine/i386/Makefile.am: Ditto.
6426         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6427         trap.S so that automake will generate a .S.o suffix rule.
6428         * libc/argz/Makefile.am: Modified to work with
6429         latest automake.  Change includes adding lib_a_CFLAGS
6430         so automake doesn't complain about libtool and non-libtool
6431         libraries sharing objects.
6432         * libc/ctype/Makefile.am: Ditto.
6433         * libc/errno/Makefile.am: Ditto.
6434         * libc/iconv/ccs/Makefile.am: Ditto.
6435         * libc/iconv/ces/Makefile.am: Ditto.
6436         * libc/iconv/lib/Makefile.am: Ditto.
6437         * libc/locale/Makefile.am: Ditto.
6438         * libc/misc/Makefile.am: Ditto.
6439         * libc/posix/Makefile.am: Ditto.
6440         * libc/reent/Makefile.am: Ditto.
6441         * libc/search/Makefile.am: Ditto.
6442         * libc/signal/Makefile.am: Ditto.
6443         * libc/stdio/Makefile.am: Ditto.
6444         * libc/stdio64/Makefile.am: Ditto.
6445         * libc/stdlib/Makefile.am: Ditto.
6446         * libc/string/Makefile.am: Ditto.
6447         * libc/sys/linux/Makefile.am: Ditto.
6448         * libc/sys/linux/argp/Makefile.am: Ditto.
6449         * libc/sys/linux/cmath/Makefile.am: Ditto.
6450         * libc/sys/linux/dl/Makefile.am: Ditto.
6451         * libc/sys/linux/iconv/Makefile.am: Ditto.
6452         * libc/sys/linux/intl/Makefile.am: Ditto.
6453         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6454         * libc/sys/linux/net/Makefile.am: Ditto.
6455         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6456         * libc/syscalls/Makefile.am: Ditto.
6457         * libc/time/Makefile.am: Ditto.
6458         * libc/unix/Makefile.am: Ditto.
6459         * libm/Makefile.am: Ditto.
6460         * libm/common/Makefile.am: Ditto.
6461         * libm/math/Makefile.am: Ditto.
6462         * libm/mathfp/Makefile.am: Ditto.
6463         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6464
6465 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6466
6467         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6468         anymore.  Assume there is a gettimeofday syscall.
6469
6470 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6471
6472         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6473         for the declaration of n_long.
6474
6475 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6476
6477         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6478         struct sockaddr.
6479         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6480         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6481         (IFF_NOTRAILERS): New define.
6482         (struct ifreq): Add ifru_netmask.
6483         (ifr_netmask): New define.
6484
6485 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6486
6487         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6488         match sys/ioctl.h.
6489
6490 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6491
6492         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6493         linux-newlib libc implementations.
6494
6495 2006-03-29  Eric Blake  <ebb9@byu.net>
6496
6497         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6498         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6499
6500 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6501
6502         * libc/sys/linux/io.c (__mknod): Fix declaration of
6503         syscall to pass a dev_t as third argument rather than
6504         a pointer to dev_t.
6505
6506 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6507
6508         * libc/sys/linux/net/name6.c: Fix struct references.
6509
6510 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6511
6512         * configure.host: Allow hosts to set the default
6513         newlib_atexit_dynamic_alloc value.
6514         * configure.in: Likewise.
6515         * configure: Regenerated.
6516
6517 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6518
6519         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6520         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6521         option.
6522         * configure: Regenerated.
6523         * newlib.hin: Regenerated.
6524         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6525         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6526         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6527         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6528
6529 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6530
6531         * libc/sys/linux/linuxthreads/config.h: Remove definition
6532         of UINT32_C.
6533
6534 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6535
6536         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6537         for a string I/O file that isn't using the asprintf family.
6538
6539 2006-03-07  Eric Blake  <ebb9@byu.net>
6540
6541         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
6542         filename, allow read-only or write-only FILE atop O_RDWR file
6543         descriptor.
6544         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
6545
6546 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
6547
6548         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
6549         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
6550
6551 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
6552
6553         * libm/math/math.tex: Fix reference to sisnan.def which
6554         is now in common subdirectory.
6555         * libm/mathfp/mathfp.tex: Ditto.
6556
6557 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
6558
6559         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
6560         s_isnand, and sf_isnanf object files.
6561         * Makefile.in: Regenerated.
6562         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
6563         conflict if <math.h> has previously been included.
6564         * libc/include/math.h
6565         * libc/include/math.h: Make isnan and isinf macros to
6566         conform to C99.
6567         (__isinfd, __isinff, __isnand, __isnanf): New functions.
6568         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
6569         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
6570         sf_isinf files which have been moved from math/mathfp directories.
6571         * libm/common/Makefile.in: Regenerated.
6572         * libm/common/s_isinfd.c: New file.
6573         * libm/common/s_isnand.c: Ditto.
6574         * libm/common/sf_isinff.c: Ditto.
6575         * libm/common/sf_isnanf.c: Ditto.
6576         * libm/common/s_isinf.c: Moved from libm/math directory.
6577         * libm/common/s_isnan.c: Ditto.
6578         * libm/common/sf_isinf.c: Ditto.
6579         * libm/common/sf_isnan.c: Ditto.
6580         * libm/math/Makefile.am: Remove isinf and isnan family functions
6581         which have been moved into common directory.
6582         * libm/mathfp/Makefile.am: Ditto.
6583         * libm/math/Makefile.in: Regenerated.
6584         * libm/mathfp/Makefile.in: Ditto.
6585         * libm/math/s_isinf.c: Removed.
6586         * libm/math/s_isnan.c: Ditto.
6587         * libm/math/sf_isinf.c: Ditto.
6588         * libm/math/sf_isnan.c: Ditto.
6589         * libm/mathfp/s_isinf.c: Ditto.
6590         * libm/mathfp/s_isnan.c: Ditto.
6591         * libm/mathfp/sf_isinf.c: Ditto.
6592         * libm/mathfp/sf_isnan.c: Ditto.
6593
6594 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
6595
6596         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
6597         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
6598         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
6599         seek, turn off the __SNPT no-optimization flag.
6600
6601 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
6602
6603         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
6604         will be defined.
6605         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
6606         <features.h> to preset special flags.
6607
6608 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
6609
6610         * libc/include/sys/time.h (struct timeval): Change member types
6611         according to SUSv3.
6612         * libc/include/sys/types.h (useconds_t): Change to unsigned
6613         according to SUSv3.
6614         (suseconds_t): Define type.
6615
6616 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
6617             David Carne  <davidcarne@gmail.com>
6618
6619         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
6620         instead of strlen to determine number of bytes to copy.
6621         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
6622         before looking at storage location.
6623
6624 2006-02-07  Paul Brook  <paul@codesourcery.com>
6625
6626         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
6627         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
6628         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
6629         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
6630         * libc/sys/arm/trap.S: Disable for Thumb-2.
6631
6632 2006-01-31  Leif Ekblad  <leif@rdos.net>
6633
6634         * configure.host: RDOS support added
6635         * libc/include/sys/config.h: Ditto.
6636         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
6637         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
6638         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
6639         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
6640         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
6641         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
6642         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
6643         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
6644         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
6645         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
6646         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
6647         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
6648         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
6649         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
6650         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
6651         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
6652         * libc/sys/rdos/write.c: Ditto.
6653
6654 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
6655
6656         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
6657         so as not to define PACKAGE and VERSION in newlib.h.
6658         * aclocal.m4: Regenerated.
6659         * configure: Ditto.
6660         * newlib.hin: Ditto.
6661
6662 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
6663
6664         * acconfig.h: New file to generate newlib.hin from.
6665         * newlib.hin: Regenerated.
6666         * stamp-h.in: Regenerated.
6667         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
6668         called automatically.
6669         * Makefile.in: Regenerated.
6670         * acinclude.m4: Add proper comment for hack in previous change.
6671         * aclocal.m4 */aclocal.m4: Regenerated.
6672         * configure */configure: Regenerated.
6673
6674 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6675
6676         * acinclude.m4: Add hack to prevent INSTALL in subdirs
6677         from being set to "../".
6678         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
6679         * aclocal.m4: Regenerated.
6680         * configure: Ditto.
6681         * Makefile.in: Ditto.
6682         * doc/aclocal.m4: Ditto.
6683         * doc/configure: Ditto.
6684         * iconvdata/aclocal.m4: Ditto.
6685         * iconvdata/configure: Ditto.
6686         * libc/*/aclocal.m4: Ditto.
6687         * libc/*/configure: Ditto.
6688         * libc/libc.texinfo: Ditto.
6689         * libm/*/aclocal.m4: Ditto.
6690         * libm/*/configure: Ditto.
6691
6692 2006-01-10  Eric Blake  <ebb9@byu.net>
6693
6694         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
6695         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6696
6697 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
6698
6699         * libm/mathfp/s_frexp.c: Check for special values on
6700         the original input, not the manipulated output value.
6701         * libm/mathfp/sf_frexp.c: Ditto.
6702         * libm/mathfp/s_atangent.c: Don't use local value branch
6703         when checking for quadrant.
6704         * libm/mathfp/sf_atangent.c: Ditto.
6705
6706 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
6707
6708         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
6709         * libc/stdio64/freopen64.c: Ditto.
6710
6711 2006-01-09  Eric Blake  <ebb9@byu.net>
6712
6713         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
6714         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6715
6716 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6717
6718         * libc/sys/linux/include/getopt.h: Add macros needed by
6719         new version of getopt.c in libc/stdlib.
6720
6721 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
6722
6723         * libc/stdlib/getopt.c: Replaced with version
6724         that adds getopt_long and getopt_long_only support.
6725         * libc/include/getopt.h: New file.
6726
6727 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6728
6729         * NEWS: Update with 1.14.0 info.
6730         * README: Ditto.
6731         * acinclude.m4: Change version number to 1.14.0.
6732         * aclocal.m4: Regenerated.
6733         * configure: Ditto.
6734         * doc/aclocal.m4: Ditto.
6735         * doc/configure: Ditto.
6736         * libc/*/aclocal.m4: Ditto.
6737         * libc/*/configure: Ditto.
6738         * libc/libc.texinfo: Ditto.
6739         * libm/*/aclocal.m4: Ditto.
6740         * libm/*/configure: Ditto.
6741         * libm/libm.texinfo: Ditto.
6742         * libc/sys/linux/shared.ld: Add VERS_1.14.
6743
6744 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6745
6746         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
6747         take a pointer to struct stat64 rather than struct stat.
6748
6749 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
6750
6751         * libc/include/stdint.h: Prefer long over int for int32_t.
6752         Use __have_long32 to set up int32_t.
6753         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
6754         (Sync with stdint.h).
6755
6756 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
6757
6758         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
6759         typo in O_NDELAY comment.
6760
6761 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
6762
6763         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
6764         * libc/include/machine/setjmp.h (__mt__): Likewise.
6765         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
6766         * libc/machine/configure.in: Ditto.
6767
6768 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
6769
6770         * configure.host: Replace ms1 arch with mt arch.
6771         * libc/machine/mt: Renamed from ms1 dir.
6772
6773 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
6774
6775         * libc/include/sys/types.h: Remove the ifdef armour around
6776         standard POSIX types.
6777
6778 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6779
6780         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
6781         rtems_gxx_key_delete, rtems_gxx_getspecific,
6782         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
6783         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
6784         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
6785
6786 2005-12-05  Christopher Faylor  <cgf@timesys.com>
6787
6788         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
6789         file.  Declare unsetenv and _unsetenv_r when not cygwin.
6790
6791 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
6792
6793         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
6794         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
6795
6796 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6797
6798         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
6799
6800 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6801
6802         * include/time.h: Remove more cygwin-specific stuff.
6803
6804 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6805
6806         * include/time.h: Move cygwin declarations to cygwin-specific header.
6807         * include/sys/time.h: Rename cygwin include to "sys_time.h".
6808
6809 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
6810
6811         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
6812         in libc/sys/linux/include.
6813         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
6814         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
6815         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
6816         in libc/sys/linux/dl.
6817
6818 2005-11-11  Christopher Faylor  <cgf@timesys.com>
6819
6820         * libc/include/sys/time.h: For cygwin, use general header rather than
6821         specific "sys/select.h".
6822
6823 2005-11-08  Tom Walsh  <tom@openhardware.net>
6824
6825         * libc/time/tzvars.c: New file.
6826         * libc/time/tzset_r.c: Moved globals into tzvars.c
6827         so other time functions needn't link in __tzset_r and its
6828         dependencies.
6829         * libc/time/Makefile.am: Add the new file.
6830         * libc/time/Makefile.in: Regenerated.
6831
6832 2005-11-08  Christopher Faylor  <cgf@timesys.com>
6833
6834         * libc/include/string.h: Add cygwin-specific function declaration.
6835
6836 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
6837
6838         * libc/include/ieeefp.h: Add C++ guards.
6839
6840 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
6841
6842         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
6843         * libc/unix/getlogin.c: Ditto.
6844         * libc/unix/getpass.c: Ditto.
6845         * libc/unix/getut.c: Ditto.
6846         * libc/unix/ttyname.c: Ditto.
6847
6848 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
6849
6850         * libc/include/sys/unistd.h (readlink, symlink): Provide these
6851         prototypes by default.
6852         * libc/sys/linux/include/unistd.h (readlink): Remove this
6853         prototype.
6854         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
6855         prototypes.
6856
6857 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
6858
6859         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
6860
6861 2005-10-31  Darin Johnson  <darin@usa.net>
6862
6863         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
6864         correct for constants.
6865
6866 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6867
6868         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
6869         * libc/stdio/siscanf.c: Likewise.
6870         * libc/stdio/sprintf.c: Likewise.
6871         * libc/stdio/sscanf.c: Likewise.
6872         * libc/stdio/vfprintf.c: Likewise.
6873         * libc/stdio/vfscanf.c: Likewise.
6874         * libc/stdio/viprintf.c: Likewise.
6875         * libc/stdio/viscanf.c: Likewise.
6876
6877 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6878
6879         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
6880         example to use "_end" symbol instead of "end".  Change write  example
6881         to use "outbyte" instead of "writechar".
6882
6883 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6884
6885         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
6886         * libc/ctype/islower.c: Likewise.
6887         * libc/ctype/isupper.c: Likewise.
6888         * libc/ctype/iswalnum.c: Likewise.
6889         * libc/ctype/iswalpha.c: Likewise.
6890         * libc/ctype/iswblank.c: Likewise.
6891         * libc/ctype/iswcntrl.c: Likewise.
6892         * libc/ctype/iswdigit.c: Likewise.
6893         * libc/ctype/iswgraph.c: Likewise.
6894         * libc/ctype/iswlower.c: Likewise.
6895         * libc/ctype/iswprint.c: Likewise.
6896         * libc/ctype/iswpunct.c: Likewise.
6897         * libc/ctype/iswspace.c: Likewise.
6898         * libc/ctype/iswupper.c: Likewise.
6899         * libc/ctype/iswxdigit.c: Likewise.
6900         * libc/ctype/tolower.c: Likewise.
6901         * libc/ctype/toupper.c: Likewise.
6902         * libc/ctype/towctrans.c: Likewise.
6903         * libc/ctype/towlower.c: Likewise.
6904         * libc/ctype/towupper.c: Likewise.
6905         * libc/string/strcasecmp.c: Likewise.
6906         * libc/string/strcoll.c: Likewise.
6907         * libc/string/strings.tex: Likewise.
6908         * libc/string/strlwr.c: Likewise.
6909         * libc/string/strncasecmp.c: Likewise.
6910         * libc/string/strupr.c: Likewise.
6911         * libc/string/wcscoll.c: Likewise.
6912         * libc/string/wcslcat.c: Likewise.
6913         * libc/string/wcslcpy.c: Likewise.
6914         * libc/string/wcsnlen.c: Likewise.
6915         * libc/string/wcsstr.c: Likewise.
6916         * libc/string/wcstrings.tex: Likewise.
6917         * libc/string/wmemchr.c: Likewise.
6918         * libc/string/wmemcmp.c: Likewise.
6919         * libc/string/wmemcpy.c: Likewise.
6920         * libc/string/wmemmove.c: Likewise.
6921         * libc/string/wmemset.c: Likewise.
6922
6923 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6924
6925         * libc/misc/unctrl.c: Replace FUNCTION description.
6926         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
6927         * libc/stdio/getdelim.c: Fix spelling errors.
6928         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
6929         * libc/stdio/putw.c: Likewise.
6930         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
6931         documentation.
6932         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
6933         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
6934         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
6935         * libc/stdlib/mlock.c: Likewise.
6936         * libc/stdlib/mstats.c: Likewise.
6937         * libc/time/tzlock.c: Likewise.
6938         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
6939         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
6940         and hyphenate "pseudo-random".
6941         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
6942         * libc/string/strncat.c: Likewise.
6943         * libc/string/memchr.c: Remove extra ">" character in  documentation.
6944         * libc/string/strcspn.c: Use "characters" instead of "chars".
6945         * libc/string/strpbrk.c: Likewise.
6946         * libc/string/strerror_r.c: Capitalize "GNU".
6947         * libc/string/strnlen.c: Likewise.
6948         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
6949         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
6950         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
6951         * libc/string/wcschr.c: Likewise.
6952         * libc/string/wcscmp.c: Likewise.
6953         * libc/string/wcscpy.c: Likewise.
6954         * libc/string/wcscspn.c: Likewise.
6955         * libc/string/wcslen.c: Likewise.
6956         * libc/string/wcsncat.c: Likewise.
6957         * libc/string/wcsncmp.c: Likewise.
6958         * libc/string/wcsncpy.c: Likewise.
6959         * libc/string/wcsnlen.c: Likewise.
6960         * libc/string/wcspbrk.c: Likewise.
6961         * libc/string/wcsrchr.c: Likewise.
6962         * libc/string/wcsspn.c: Likewise.
6963         * libc/string/wmemchr.c: Likewise.
6964         * libc/string/wmemcmp.c: Likewise.
6965         * libc/string/wmemcpy.c: Likewise.
6966         * libc/string/wmemset.c: Likewise.
6967         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
6968         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
6969         * libc/string/wcwidth.c: Likewise.
6970         * libm/common/s_modf.c: Remove extra period from documentation.
6971         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
6972         documentation.
6973         * libm/mathfp/s_isnan.c: Likewise.
6974         * libm/math/s_ldexp.c: Fix punctuation.
6975         * libm/mathfp/s_ldexp.c: Likewise.
6976         * libm/math/w_log.c: Likewise.
6977         * libm/mathfp/s_logarithm.c: Likewise.
6978         * libm/math/w_j0.c: Add spaces to FUNCTION description.
6979         * libm/mathfp/w_jn.c: Likewise.
6980
6981 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
6982
6983         * libc/posix/scandir.c (scandir): Update the function
6984         prototype to match the header.
6985         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
6986         extraneous #endif.
6987         * libc/sys/linux/sys/lock.h: Do not include
6988         machine/weakalias.h, since it's not used by this file.
6989
6990 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
6991
6992         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
6993         directories can override properly.
6994
6995 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
6996
6997         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
6998         gcc is 3.3 or greater, use special gcc builtins.
6999
7000 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
7001
7002         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
7003
7004 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
7005
7006         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
7007
7008 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7009
7010         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
7011         * libm/common/Makefile.am: Add s_infconst.c support.
7012         * libm/common/Makefile.in: Regenerated.
7013         * libm/common/s_infconst.c: New file with float and
7014         long double infinity support added.
7015         * libm/math/Makefile.am: Remove s_infconst.c support.
7016         * libm/math/Makefile.in: Regenerated.
7017         * libm/math/s_infconst.c: Moved to common directory.
7018         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
7019         * libm/mathfp/Makefile.in: Regenerated.
7020         * libm/mathfp/s_infconst.c: Moved to common directory.
7021
7022 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7023
7024         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
7025         dbgprintf to prevent conflict with new dprintf function.
7026
7027 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7028
7029         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
7030         "nan" processing for systems that have long double support.
7031
7032 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7033
7034         * libc/sys/linux/sys/types.h (int8_t): Add type.
7035
7036 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7037
7038         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
7039         * libm/common/Makefile.in: Regenerate.
7040         * libm/common/common.tex: Delete file.
7041         * libm/math/math.tex: Include .def files from common/.
7042         * libm/mathfp/mathfp.tex: Likewise.
7043
7044 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7045
7046         * libc/libc.texinfo (Top): Surround this node with @ifnottex
7047         instead of @ifinfo.  Update menu to add Introduction and match
7048         SUBDIRS order.
7049         (Introduction): New section.
7050
7051 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7052
7053         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
7054         with "Red Hat newlib C Library".
7055         * libc/sys.tex (Stubs): Likewise.
7056         * libm/math/math.tex (Math): Likewise.
7057         * libm/mathfp/mathfp.tex (Math): Likewise.
7058
7059 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
7060
7061         * libc/include/stdio.h (dprintf): New declaration.
7062         (vdprintf): Ditto.
7063         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
7064         and vdprintf.c.
7065         * libc/stdio/Makefile.in: Regenerate.
7066         * libc/stdio/dprintf.c: New file.
7067         * libc/stdio/vdprintf.c: New file.
7068         * libc/stdio/stdio.tex (dprintf): New entry.
7069
7070 2005-10-11  David Weatherford  <weath@tensilica.com>
7071
7072         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
7073         Print "inf" and "nan" in lowercase for e/f/g formats and in
7074         uppercase for E/F/G formats.
7075
7076 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
7077
7078         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
7079         to ENOMEM on failure.
7080
7081 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
7082
7083         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
7084
7085 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
7086
7087         * libc/include/stdint.h: Move magic to set __have_long* to the
7088         beginning.  Use #if __have* instead of #if defined(__have*).
7089         Minor typo fixes.
7090
7091 2005-10-04  James E Wilson  <wilson@specifix.com>
7092
7093         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
7094         #error.
7095
7096 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
7097
7098         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
7099         incorporate Ralf's change below.
7100
7101 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
7102
7103         * libc/include/stdint.h:
7104         Use __INTMAX_TYPE__ to derive intmax_t.
7105         Use __UINTMAX_TYPE__ to derive uintmax_t.
7106         Fix minor typo.
7107
7108 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
7109
7110         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
7111         handling GCC >= 4.
7112
7113 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7114
7115         * libc/sys/linux/include/stdint.h: Update to match functionality
7116         of generic newlib stdint.h.
7117
7118 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7119
7120         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
7121         and do not #undef the macro after it is used.  Fix typos.
7122         Also change 64-bit constants to use the __have_long64 and
7123         __have_longlong64 flags to determine if long or long long
7124         constants should be used.
7125         * libc/include/inttypes.h: Include stddef.h to get wchar_t
7126         type defined.
7127
7128 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
7129
7130         * libc/include/stdint.h: Fix typo in names of
7131         LEAST macros.
7132
7133 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7134
7135         * libc/sys/rtems/include/inttypes.h: Moved to...
7136         * libc/include/inttypes.h: ...here.
7137
7138 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
7139
7140         * libc/sys/rtems/include/stdint.h: Moved to...
7141         * libc/include/stdint.h: ...here.
7142
7143 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
7144
7145         * Makefile.am: Add include files under bits sub-directory.
7146         * Makefile.in: Regenerated.
7147         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
7148         actual value of 1 to be compatible with newer glibc headers.
7149         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
7150         glibc headers.
7151         * libc/sys/linux/sys/dirent.h: Ditto.
7152         * libc/sys/linux/argp/argp-xinl.c: Ditto.
7153         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
7154         profile_fixup routines are marked used so they won't be
7155         optimized away.
7156         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
7157         to mark functions as weak.
7158         * libc/sys/linux/dl/dl-open.c: Ditto.
7159         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
7160         rules about lvalues.
7161         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
7162         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
7163         weak_extern macro to mark functions as weak.  Instead always
7164         use #pragma weak.
7165         * iconvdata/jis0208.h: Fix to work with gcc4.
7166         * libc/sys/linux/dl/dl-load.c: Ditto.
7167         * libc/sys/linux/dl/dl-reloc.c: Ditto.
7168         * libc/sys/linux/dl/do-rel.h: Ditto.
7169         * libc/sys/linux/dl/dynamic-link.h: Ditto.
7170         * libc/sys/linux/include/ltdl.h: Ditto.
7171         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
7172         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
7173         * libc/sys/linux/net/ns_ntoa.c: Ditto.
7174         * libc/sys/linux/bits/initspin.h: New file.
7175         * libc/sys/linux/bits/libc-lock.h: Ditto.
7176         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
7177         * libc/sys/linux/bits/typesizes.h: Ditto.
7178
7179 2005-09-08  Eric Blake  <ebb9@byu.net>
7180
7181         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
7182         before is NULL.
7183
7184 2005-09-08  Brian Dessent  <brian@dessent.net>
7185
7186         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
7187         mantissa.
7188         * s_lrint.c: Ditto.
7189
7190 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
7191
7192         * libc/include/stdio.h: Add prototype for viprintf.
7193
7194 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
7195
7196         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
7197         any positive power results in 0.
7198         * libm/mathfp/sf_pow.c (powf): Ditto.
7199
7200 2005-08-31  Paul Brook  <paul@codesourcery.com>
7201
7202         * configure.host: Set have_crt0 to no for Arm targts when not
7203         providing syscalls.  Set sys_dir=arm unconditionally.
7204         Default have_crt0 based on sys_dir.
7205         * configure.in: Use have_crt0.
7206         * libc/configure.in: Ditto.
7207         * libc/sys/configure.in: Ditto.
7208         * configure: Regenerate.
7209         * libc/configure: Regenerate.
7210         * libc/sys/configure: Regenerate.
7211         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
7212         Only build other files when providing syscalls.
7213         * libc/sys/arm/Makefile.in: Regenerate.
7214         * libc/sys/arm/aeabi_atexit.c: New file.
7215
7216 2005-08-26  Christopher Faylor  <cgf@timesys.com>
7217
7218         * libc/include/string.h: Revert previous change.
7219
7220 2005-08-25  Christopher Faylor  <cgf@timesys.com>
7221
7222         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
7223
7224 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
7225
7226         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
7227         define _opendir as opendir, _readdir as readdir, and
7228         _closedir as closedir so that the implementations in
7229         libc/posix will be used.
7230
7231 2005-08-10  DJ Delorie  <dj@redhat.com>
7232
7233         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
7234
7235 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
7236
7237         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
7238         * libm/common/s_max.c: Ditto.
7239         * libm/common/sf_fmin.c: Ditto.
7240         * libm/common/s_min.c: Ditto.
7241
7242 2005-08-10  DJ Delorie  <dj@redhat.com>
7243
7244         * configure.host: Add m32c support.
7245         * libc/include/machine/ieeefp.h: Likewise.
7246         * libc/include/machine/setjmp.h: Likewise.
7247         * libc/include/sys/config.h: Likewise.
7248         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
7249         * libc/machine/m32c/aclocal.m4: New file.
7250         * libc/machine/m32c/configure: Ditto.
7251         * libc/machine/m32c/configure.in: Ditto.
7252         * libc/machine/m32c/Makefile.am: Ditto.
7253         * libc/machine/m32c/Makefile.in: Ditto.
7254         * libc/machine/m32c/setjmp.S: Ditto.
7255
7256 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
7257
7258         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
7259         to the value for 2^126.
7260
7261 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
7262
7263         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
7264         used.
7265
7266 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
7267            Darin Petkov <darin@tensilica.com>
7268
7269        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
7270
7271 2005-07-19  Paul Brook  <paul@codesourcery.com>
7272
7273         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
7274
7275 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
7276
7277         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
7278         names after PASS and FAIL which do not depend on source directory
7279         name or on whether test passed or failed.
7280         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
7281
7282 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
7283
7284         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
7285
7286 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
7287
7288         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
7289         twice for the same directory. _closedir calls free, and freeing
7290         the same pointer twice may cause a crash.
7291
7292 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
7293
7294         * configure.host: Added entry for ms1*.
7295         * libc/include/machine/ieeefp.h: Handle ms1.
7296         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
7297         * libc/machine/ms1/aclocal.m4: New.
7298         * libc/machine/ms1/configure: New.
7299         * libc/machine/ms1/configure.in: New.
7300         * libc/machine/ms1/Makefile.am: New.
7301         * libc/machine/ms1/Makefile.in: New.
7302         * libc/machine/ms1/setjmp.S: New.
7303
7304 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
7305
7306         * Makefile.am (site.exp): Set tmpdir.
7307         * Makefile.in: Regenerated.
7308         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
7309         executables in $tmpdir.
7310         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7311         libgloss version if not running in the build directory.
7312         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7313         $tmpdir.
7314         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7315         in $tmpdir.
7316
7317 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7318
7319         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7320         and miscalculation caused by fp representation of zero.
7321         * libm/common/sf_lrint.c (lrintf):  Likewise.
7322
7323 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7324
7325         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7326         determine characteristics of long double.  Use a union instead.
7327         * ldtoa.c (_ldtoa_r): Ditto.
7328         (_ldcheck): Ditto.
7329         (_strtold): Ditto.
7330         (union uconv): New union.
7331
7332 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7333
7334         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7335         instead of memcpy.
7336
7337 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7338
7339         * configure.host (mn10300-*): Add long long I/O support by default.
7340
7341 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7342
7343         * libc/sys/linux/getpwuid.c: Removed.
7344         * libc/sys/linux/getpwnam.c: Removed.
7345         * libc/sys/linux/getpwent.c: New file containing logic
7346         from files removed above.  This allows overriding of file
7347         in libc/unix.
7348         * libc/sys/linux/Makefile.am: Support changes above.
7349         * libc/sys/linux/Makefile.in: Regenerated.
7350
7351 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7352
7353         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7354         when checking for multiple flags.
7355
7356 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7357
7358         * configure.host <cris-*-* | crisv32-*-*>: Set
7359         default_newlib_io_long_long="yes".
7360
7361 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7362
7363         * libc/include/libgen.h: New file.
7364
7365 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7366
7367         * libc/unix/Makefile.am: Add support for basename and dirname.
7368         * libc/unix/Makefile.in: Regenerated.
7369         * libc/unix/basename.c: New file.
7370         * libc/unix/dirname.c: New file.
7371
7372 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7373
7374         * libc/sys/linux/inode.c (lchown): New function.
7375
7376 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7377
7378         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7379         ELIX level is defined.
7380         * libc/unix/Makefile.in: Regenerated.
7381
7382 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7383
7384         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7385         something that looks like a "NaN", put back the characters processed.
7386
7387 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7388
7389         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7390
7391 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7392
7393         * configure.host: For cygwin, redefine CC with cygwin include directory
7394         first to mimic the behavior of the top-level configury.  Move include
7395         directory out of newlib_cflags.
7396
7397 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7398
7399         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7400         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7401         than errno.
7402
7403 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7404
7405         * libc/include/machine/_types.h: Make trivial change to comment to
7406         avoid a spurious warning from gcc.
7407
7408 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7409
7410         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7411         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7412         reent.h include.
7413
7414 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7415             Corinna Vinschen  <corinna@vinschen.de>
7416
7417         * libc/include/ctype.h: Remove invalid +1 offset from
7418         ctype macro references to __ctype_ptr.
7419         (_ctype_): Move declaration outside #ifndef __cplusplus.
7420
7421 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7422
7423         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7424         evaluate first parameter only once.
7425         (siglongjmp): Ditto.
7426
7427 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7428
7429         * configure.in: Add new check to see if compiler supports
7430         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7431         * configure: Regenerated.
7432         * Makefile.in: Ditto.
7433         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7434         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7435         aliasing the _ctype_ array to _ctype_b.
7436         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7437         _ctype_ as deprecated.
7438
7439 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7440
7441         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7442         -DCOMPACT_CTYPE.
7443
7444 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7445
7446         * libc/sys/rtems/include/inttypes.h: New file.
7447         * libc/sys/rtems/include/stdint.h: Ditto.
7448
7449 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7450
7451         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7452
7453 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7454
7455         * libc/include/machine/_types.h: New file.
7456         * libc/include/sys/types.h: Do not check for __rtems__
7457         when including <machine/_types.h>.  Remove some redundant
7458         declarations now that <machine/_types.h> is included.
7459         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7460         shared header file.
7461
7462 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7463
7464         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7465         L qualifier for these long constants.
7466
7467 2005-02-25  Eric Blake  <ebb9@byu.net>
7468
7469         * libc/include/time.h (__tzrule_struct): Make offset long, since
7470         a 16-bit int overflows on a 12-hour offset.
7471         * libc/sys/linux/include/time.h: Ditto.
7472         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7473         * libc/time/mktm_r.c: Ditto.
7474         * libc/time/gettzinfo.c: Ditto.
7475         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7476         years.  Fix '%z' to use long, not int.
7477
7478 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7479
7480         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7481         manipulate float values in integer form.
7482         * libm/common/sf_round.c: Ditto.
7483
7484 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7485
7486         * libc/include/sys/types.h [__rtems__]: Include new
7487         header file machine/_types.h.
7488         * libc/include/machine/types.h: Ditto.
7489         * libc/sys/rtems/machine/_types.h: New file.
7490
7491 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7492
7493         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7494         (timezone): Drop cast from definition.
7495
7496 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7497
7498         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7499         (__tzrule_type, __tzinfo_type): New types.
7500         (__gettzinfo): New function.
7501         * libc/sys/linux/include/time.h: Ditto.
7502         * libc/time/Makefile.am: Add gettzinfo.c.
7503         * libc/time/Makefile.in: Regenerated.
7504         * libc/time/local.h: Moved __tzrule_type to time.h.
7505         * libc/time/mktime.c: Call __gettzinfo to reference
7506         __tznorth, __tzyear, and __tzrule array.
7507         * libc/time/mktm_r.c: Ditto.
7508         * libc/time/strftime.c: Ditto.
7509         * libc/time/tzset_r.c: Ditto.  Also remove definition
7510         of __tzrule which is now in gettzinfo.c.  Change _timezone
7511         references to not cast to time_t.
7512         * libc/time/gettzinfo.c: New file.
7513
7514 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7515
7516         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7517
7518 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7519
7520         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7521
7522 2005-02-16  Eric Blake  <ebb9@byu.net>
7523
7524         * libc/time/time.tex: Improve the documentation.
7525         * libc/time/strftime.c: Improve the documentation.
7526         (iso_year_adjust): New helper function.
7527         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7528         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7529         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7530         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7531         Avoid core dumps on valid inputs (maxsize == 0, or
7532         tim_p->tm_isdst > 1).
7533
7534 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7535
7536         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7537         members to uid_t and gid_t according to SUSv3.
7538         * libc/include/sys/time.h (utimes):  Change second parameter
7539         to const according to SUSv3.
7540
7541 2005-02-07  Antony King  <antony.king@st.com>
7542
7543         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
7544         called before _flockfile to prevent lock object use before
7545         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
7546         take a struct _reent * instead of a FILE *.
7547         * libc/stdio/fclose.c (_fclose_r): Ditto.
7548         * libc/stdio/feof.c (feof): Ditto.
7549         * libc/stdio/ferror.c (ferror): Ditto.
7550         * libc/stdio/fflush.c (fflush): Ditto.
7551         * libc/stdio/fgetc.c (fgetc): Ditto.
7552         * libc/stdio/fgets.c (fgets): Ditto.
7553         * libc/stdio/fileno.c (fileno): Ditto.
7554         * libc/stdio/fputc.c (fputc): Ditto.
7555         * libc/stdio/fputs.c (fputs): Ditto.
7556         * libc/stdio/fread.c (fread): Ditto.
7557         * libc/stdio/freopen.c (_freopen_r): Ditto.
7558         * libc/stdio/fseek.c (_fseek_r): Ditto.
7559         * libc/stdio/ftell.c (_ftell_r): Ditto.
7560         * libc/stdio/fwrite.c (fwrite): Ditto.
7561         * libc/stdio/getc.c (getc): Ditto.
7562         * libc/stdio/getdelim.c (__getdelim): Ditto.
7563         * libc/stdio/putc.c (putc): Ditto.
7564         * libc/stdio/setvbuf.c (setvbuf): Ditto.
7565         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
7566         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
7567         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7568         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
7569         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
7570         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
7571         _reent * instead of a FILE * and so replace incorrect use of
7572         _REENT with argument.
7573         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
7574         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
7575         CHECK_INIT() take a struct _reent * instead of a FILE *.
7576         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
7577         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
7578         * libc/stdio/perror.c (perror): Ditto.
7579         * libc/stdio/printf.c (printf, _printf_r): Ditto.
7580         * libc/stdio/putchar.c (putchar): Ditto.
7581         * libc/stdio/puts.c (puts): Ditto.
7582         * libc/stdio/refill.c (__srefill): Ditto.
7583         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
7584         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
7585         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
7586         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
7587         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
7588         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
7589         * libc/stdio/wbuf.c (__swbuf): Ditto.
7590         * libc/stdio/wsetup.c (__swsetup): Ditto.
7591         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
7592         * libc/stdlib/mstats.c (_mstats_r): Ditto.
7593         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
7594         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
7595         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
7596         to _flockfile and _funlockfile; rely on locking in _ftell_r.
7597         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
7598         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
7599         initialision of _data field in FILE structure.
7600         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
7601
7602 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7603
7604         * libc/stdio/findfp.c (__sinit): Protect with new lock.
7605         (__sinit_lock): New lock.
7606         (__sinit_lock_acquire, __sinit_lock_release): New functions.
7607         * libc/stdio/local.h: Add reference to new __sinit locking
7608         functions.
7609
7610 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7611
7612         * libc/include/math.h (isfinite, isnormal, isunordered): Change
7613         input variable names to avoid mixups with nesting macros.
7614
7615 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7616
7617         * configure.host: Add support for cris-*-* and crisv32-*-*.
7618         * libc/include/machine/ieeefp.h: Ditto.
7619         * libc/include/machine/setjmp.h: Ditto.
7620         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
7621         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
7622         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
7623         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
7624         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
7625         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
7626         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
7627         files.
7628
7629 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7630
7631         * testsuite/newlib.string/memmove1.c: New test.
7632
7633 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7634
7635         * testsuite/include/check.h: Include stdlib.h.
7636
7637 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7638
7639         * Makefile.am (stmp-targ-include): Support include header files
7640         from machine directories.
7641         (install-data-local): Ditto.
7642         * Makefile.in: Regenerate.
7643
7644 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7645
7646         * libc/include/string.h: Remove Linux-specific declaration of
7647         strsignal and add #include <sys/string.h>.
7648         * libc/include/sys/string.h: New file.
7649         * libc/include/sys/linux/sys/string.h: New file with strsignal
7650         declaration deleted above.
7651
7652 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7653
7654         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
7655         to POSIX standard for "C" locale.  Allow %E and %O modifiers
7656         to be ignored as long as they precede valid specifiers according
7657         to POSIX.
7658
7659 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7660
7661         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7662         environment variable is set.
7663
7664 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7665
7666         * tzset_r.c (_tzname): Add a comma.
7667
7668 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
7669
7670         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
7671         _VFPRINTF_R.
7672
7673 2005-01-07  Paul Brook  <paul@codesourcery.com>
7674
7675         * configure.in: Add test for .init_array.
7676         * configure: Regenerate.
7677         * newlib.hin: Add HAVE_INITFINI_ARRAY.
7678         * libc/misc/Makefile.am: Add init.c
7679         * libc/misc/Makefile.in: Regenerate.
7680         * libc/misc/init.c: New file.
7681         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
7682         _init/_fini if they exist.
7683
7684 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7685
7686         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
7687         * (strtof): Ditto.
7688         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
7689         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
7690         functions for use by strtod and strtof.
7691         * Makefile.in: Regenerated.
7692
7693 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7694
7695         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
7696         bit-test in combination with NULL test.
7697
7698 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7699
7700         * README: Fix typo of LGPL.  Change "license" to "copyright".
7701
7702 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
7703
7704         * NEWS: Update with 1.13.0 info.
7705         * README: Ditto.
7706         * acinclude.m4: Change version number to 1.13.0.
7707         * aclocal.m4: Regenerated.
7708         * configure: Ditto.
7709         * doc/aclocal.m4: Ditto.
7710         * doc/configure: Ditto.
7711         * libc/*/aclocal.m4: Ditto.
7712         * libc/*/configure: Ditto.
7713         * libc/libc.texinfo: Ditto.
7714         * libm/*/aclocal.m4: Ditto.
7715         * libm/*/configure: Ditto.
7716         * libm/libm.texinfo: Ditto.
7717         * libc/sys/linux/shared.ld: Add VERS_1.13.
7718
7719 2004-12-17  Christian Groessler  <chris@groessler.org>
7720
7721         * libc/machine/z8k/memcmp.S: New file.
7722         * libc/machine/z8k/memcpy.S: Ditto.
7723         * libc/machine/z8k/memmove.S: Ditto.
7724         * libc/machine/z8k/memset.S: Ditto.
7725         * libc/machine/z8k/Makefile.am: Add new files.
7726         * libc/machine/z8k/Makefile.in: Regenerated.
7727         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
7728         part.  Implement Z8002 stdcall version.
7729
7730 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
7731
7732         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
7733         a low-level read if we don't get the full amount of bytes so
7734         EOF or error flags will be set.
7735
7736 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
7737
7738         * libc/time/tzset_r (_tzset_r): Properly skip over
7739         '/' when it is detected.
7740
7741 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7742
7743         * libc/time/tzset_r (_tzset_r): Fix loop.
7744
7745 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7746
7747         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
7748         m_day.
7749         (__tzcalc_limits): Fix reference to month array to be zero-based.
7750
7751 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
7752
7753         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
7754         and usleep.
7755
7756 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
7757
7758         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
7759         libgcc dependencies.
7760         (libm_la_LDFLAGS): Ditto.
7761         * Makefile.in: Regenerated.
7762
7763 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
7764
7765         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
7766         our link to use readlink so as to preserve any relative link created
7767         by install-toollibLIBRARIES.
7768         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
7769
7770 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
7771
7772         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
7773         time_t before including sys/stat.h, which uses it.
7774         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
7775         <linux/time.h> just prior to definition of __KERNEL__ so as to
7776         allow building on Debian Linux where otherwise, mktime would
7777         be redefined.
7778
7779 2004-11-26  Paul Brook  <paul@codesourcery.com>
7780
7781         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
7782
7783 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7784
7785         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
7786         const for value string parameter to match Single Unix and glibc.
7787         * libc/stdlib/putenv.c: Ditto.
7788         * libc/stdlib/putenv_r.c: Ditto.
7789
7790 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7791
7792         * libc/stdio/Makefile.am: Fix missing vfscanf.
7793         * libc/stdio/Makefile.in: Regenerated.
7794
7795 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
7796
7797         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
7798         do some reordering.
7799         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
7800         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
7801         family functions.
7802         * libc/stdio/Makefile.in: Regenerated.
7803         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
7804         * libc/stdio/iprintf.c: Ditto.
7805         * libc/stdio/local.h (__svfiscanf_r): New prototype.
7806         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
7807         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
7808         * libc/stdio/stdio.tex: Add new functions.
7809         * libc/stdio/vfscanf.c: Split out __sccl function to separate
7810         file and add special name defines so this file can be used
7811         to build vfiscanf.o.
7812         * libc/stdio/asiprintf.c: New file.
7813         * libc/stdio/fiscanf.c: Ditto.
7814         * libc/stdio/iscanf.c: Ditto.
7815         * libc/stdio/sccl.c: Ditto.
7816         * libc/stdio/siscanf.c: Ditto.
7817         * libc/stdio/vasiprintf.c: Ditto.
7818         * libc/stdio/viprintf.c: Ditto.
7819         * libc/stdio/viscanf.c: Ditto.
7820         * libc/stdio/vsiprintf.c: Ditto.
7821         * libc/stdio/vsiscanf.c: Ditto.
7822         * libc/stdio/vsniprintf.c: Ditto.
7823
7824 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
7825
7826         * libc/include/stdio.h: Add sniprintf.
7827         * libc/stdio/Makefile.am: Add sniprintf.c.
7828         * libc/stdio/Makefile.in: Regenerated.
7829         * libc/stdio/sniprintf.c: New file.
7830         * libc/stdio/stdio.tex: Add sniprintf.
7831
7832 2004-11-17  Christopher Faylor  <cgf@timesys.com>
7833
7834         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
7835         EOF flag if successful.
7836
7837 2004-10-28  Christopher Faylor  <cgf@timesys.com>
7838
7839         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
7840         so that all relevant definitions have been performed for use in the
7841         include.
7842
7843 2004-10-26  Jason Tishler  <jason@tishler.net>
7844
7845         * libc/stdio/fread.c (fread): Fix return value for unbuffered
7846         fread.
7847
7848 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7849
7850         * libc/include/machine/setjmp.h: Add AVR support.
7851         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
7852
7853 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
7854
7855         * libc/include/sys/signal.h: If <signal.h> didn't include
7856         this header file, include <signal.h> to account for
7857         applications that take advantage that the two header
7858         files are the same in glibc.
7859
7860 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
7861
7862         * configure.host: Add support for crx.
7863         * libc/include/machine/ieeefp.h: Ditto.
7864         * libc/include/machine/setjmp.h: Ditto.
7865         * libc/machine/crx/Makefile.am: New file.
7866         * libc/machine/crx/configure.in: Ditto.
7867         * libc/machine/crx/setjmp.S: Ditto.
7868         * libc/machine/crx/getenv.c: Ditto.
7869         * libc/machine/crx/aclocal.m4: Generate.
7870         * libc/machine/crx/configure: Ditto.
7871         * libc/machine/crx/Makefile.in: Ditto.
7872         * libc/machine/crx/sys/asm.h: New file.
7873         * libc/machine/crx/sys/libh.h: Ditto.
7874         * libc/machine/crx/sys/syscall.h: Ditto.
7875
7876 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
7877
7878         * Makefile.am (stmp-targ-include): Support sys header files
7879         from machine directories.
7880         * Makefile.in: Regenerated.
7881
7882 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
7883
7884         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
7885         count skipped zero characters as part of the nread count for %n.
7886         * libc/machine/powerpc/vfscanf.c: Ditto.
7887
7888 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
7889
7890         * libc/stdio/local.h: Include <stdlib.h>.
7891
7892 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
7893
7894         * libc/stdio/fread.c (fread): Include <malloc.h>.
7895
7896 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
7897
7898         * libc/stdio/fread.c (fread):  For non-space-optimized case,
7899         add special code for unbuffered files to use user buffer and
7900         only require one low-level system read.
7901
7902 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
7903
7904         * libc/machine/xscale/setjmp.S: New file, copied from
7905         libc/machine/arm/setjmp.S.
7906         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
7907         * libc/machine/xscale/Makefile.in: Regenerate.
7908
7909 2004-09-16  Antony King  <antony.king@st.com>
7910
7911         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
7912         with locking API.
7913         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
7914         check for__SSTR in _flags and if set, skip lock request.
7915         (_funlockfile)[!SINGLE_THREAD]: Ditto.
7916         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
7917         not NULL.
7918         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
7919         initialisation of _file to -1 in local FILE.
7920         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
7921         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
7922         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
7923         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7924         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
7925         _flags in local FILE to prevent locking.
7926         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7927
7928 2004-09-16  Antony King  <antony.king@st.com>
7929
7930         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
7931         and only walk the reentrancy parameter.
7932         (_fwalk_reent): Ditto.
7933         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
7934
7935 2004-09-16  Antony King  <antony.king@st.com>
7936
7937         * libc/stdio64/freopen64.c: Remove casting of fp lock to
7938         _LOCK_RECURSIVE_T.
7939
7940 2004-09-16  Antony King  <antony.king@st.com>
7941
7942         * libc/time/tzlock.c: Add default stubs that use generic
7943         locking code.
7944
7945 2004-09-16  Antony King  <antony.king@st.com>
7946
7947         * libc/ctype/ctype.tex: Added missing documentation.
7948         * libc/stdio/stdio.tex Ditto.
7949         * libc/stdlib/stdlib.tex Ditto.
7950         * libc/string/strings.tex Ditto.
7951         * libc/time/time.tex: Ditto.
7952         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
7953
7954 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
7955
7956         * libc/reent/impure.c (reent_data): Define as alias to impure_data
7957         when building for Cygwin.
7958         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
7959         _global_impure_ptr.
7960
7961 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
7962
7963         * configure.host: Reverting 2004-09-14 change as fix has occurred on
7964         Cygwin side.
7965         * configure.in: Ditto.
7966         * libc/configure.in: Ditto.
7967         * libc/sys/configure.in: Ditto.
7968         * configure: Ditto.
7969         * libc/configure: Ditto.
7970         * libc/sys/configure: Ditto.
7971         * libc/include/sys/reent.h: Ditto.
7972         * libc/stdlib/__atexit.c: Ditto.
7973         * libc/stdlib/__call_atexit.c: Ditto.
7974         * libc/stdlib/cxa_atexit.c: Ditto.
7975         * libc/stdlib/cxa_finalize.c: Ditto.
7976         * libc/sys/cygwin/Makefile.am: Removed again.
7977         * libc/sys/cygwin/Makefile.in: Ditto.
7978         * libc/sys/cygwin/aclocal.m4: Ditto.
7979         * libc/sys/cygwin/configure: Ditto.
7980         * libc/sys/cygwin/configure.in: Ditto.
7981         * libc/sys/cygwin/dummy.c: Ditto.
7982         * libc/sys/cygwin/sys/reent.h: Ditto.
7983
7984 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
7985
7986         * configure.host: Add Cygwin sys directory.
7987         * configure.in: Do not set CRT0 for cygwin.
7988         * libc/configure.in: Ditto.
7989         * libc/sys/configure.in: Ditto.
7990         * configure: Regenerated.
7991         * libc/configure: Ditto.
7992         * libc/sys/configure: Ditto.
7993         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
7994         * libc/stdlib/__atexit.c: Keep cxa support protected by new
7995         __REENT_HAS_CXA_SUPPORT flag.
7996         * libc/stdlib/__call_atexit.c: Ditto.
7997         * libc/stdlib/cxa_atexit.c: Ditto.
7998         * libc/stdlib/cxa_finalize.c: Ditto.
7999         * libc/sys/cygwin/Makefile.am: New file.
8000         * libc/sys/cygwin/Makefile.in: Ditto.
8001         * libc/sys/cygwin/aclocal.m4: Ditto.
8002         * libc/sys/cygwin/configure: Ditto.
8003         * libc/sys/cygwin/configure.in: Ditto.
8004         * libc/sys/cygwin/dummy.c: Ditto.
8005         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
8006         version of reent.h.
8007
8008 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8009
8010         * libc/iconv/iconv.tex: Updated with new content.
8011         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
8012         instead of NLS_DEFAULT_NLSPATH.
8013         * libc/iconv/lib/iconvnls.h: Fix typo.
8014         * libc/include/sys/iconvnls.h: New file.
8015
8016 2004-09-09  Paul Brook  <paul@codesourcery.com>
8017
8018         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
8019         and _is_cxa.
8020         (struct _atexit): Add _next when _REENT_SMALL.
8021         (struct _reent): Add _atexit0 when _REENT_SMALL.
8022         (_REENT_INIT_PTR): Adjust.
8023         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
8024         __call_exit.c.
8025         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
8026         * libc/stdlib/Makefile.in: Regenerate.
8027         * libc/stdlib/__atexit.c: New file.
8028         * libc/stdlib/__call_atexit.c: New file.
8029         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
8030         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
8031         * libc/stdlib/cxa_atexit.c: New file.
8032         * libc/stdlib/cxa_finalize.c: New file.
8033         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
8034         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
8035         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
8036         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
8037         _on_exit_args_ptr.
8038
8039 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
8040
8041         * libc/include/sys/unistd.h (getpass): Change prototype to use
8042         const instead of __const.
8043
8044 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
8045
8046         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
8047         #if.
8048
8049 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
8050
8051         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
8052         on linux systems with glibc 2.3.3 installed.
8053         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
8054         profile_fixup so newlib can build on fc3 system.
8055
8056 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
8057
8058         Introduce SH2a support.
8059         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
8060         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
8061         __SH2A_SINGLE_ONLY__, too.
8062         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
8063         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
8064         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
8065         2004-02-10  DJ Delorie  <dj@redhat.com>
8066         * libc/sys/sh/crt0.S (start_l): Support sh2a.
8067
8068 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
8069
8070         * libc/time/strptime.c: Correct full-name of "March" typo.
8071
8072 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
8073
8074         * configure.host (h8300*-*-*): Default long long printing support.
8075
8076 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
8077
8078         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
8079         calls, if realloc fails, free up buffer as it is no longer
8080         used.
8081
8082 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8083
8084         * libc/iconv/iconv.tex: Updated to represent recent changes.
8085         * libc/iconv/lib/iconv.c: Documentation updated.
8086
8087 2004-07-07  Nick Clifton  <nickc@redhat.com>
8088
8089         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
8090         for xStormy16.
8091
8092 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
8093
8094         * configure.host (mips*-*-elf*): Default long long printing
8095         support.
8096
8097 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
8098
8099         * libc/Makefile.am (libc.dvi): Add target and specify
8100         same dependencies as libc.info.
8101         * libc/Makefile.in: Regenerated.
8102         * libm/Makefile.am (libm.dvi): Add target and specify
8103         same dependencies as libm.info.
8104         * libm/Makefile.in: Regenerated.
8105
8106 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8107
8108         * acinclude.m4: Move --enable-newlib-iconv option back here.
8109         * configure.in: Remove --enable-newlib-iconv option.  Don't
8110         tie iconv support to --enable-newlib-mb.
8111         * aclocal.m4: Regenerated.
8112         * configure: Ditto.
8113         * doc/aclocal.m4, doc/configure: Ditto.
8114         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
8115         * libm/*/aclocal.m4: Ditto.
8116         * libm/*/configure: Ditto.
8117         * libc/*/aclocal.m4: Ditto.
8118         * libc/*/configure: Ditto.
8119
8120 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8121
8122         * acinclude.m4: Move iconv options into configure.in.
8123         * aclocal.m4: Regenerated.
8124         * configure: Ditto.
8125         * configure.in: Add iconv options.
8126         * newlib.hin: Add new iconv encodings and remove deleted ones.
8127         * doc/aclocal.m4: Regenerated.
8128         * doc/configure: Ditto.
8129         * iconvdata/aclocal.m4: Ditto.
8130         * iconvdata/configure: Ditto.
8131         * libc/iconv: Design change.  New size-optimized ccs format.
8132         * libc/iconv/AUTHORS: Removed.
8133         * libc/iconv/COPYING: Ditto.
8134         * libc/iconv/README.ORIGINAL: Ditto.
8135         * libc/iconv/README.TODO: Ditto.
8136         * libc/iconv/charset.aliases: Ditto.
8137         * libc/iconv/encoding.aliases: New file.
8138         * libc/iconv/Makefile.am: Updated.
8139         * libc/iconv/Makefile.in: Regenerated.
8140         * libc/iconv/iconv.tex: Updated.
8141         * libc/iconv/ccs/Makefile.am: Ditto.
8142         * libc/iconv/ccs/Makefile.in: Regenerated.
8143         * libc/iconv/ccs/big5.c: Updated.
8144         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8145         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8146         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8147         * libc/iconv/ccs/cp775.c: Ditto.
8148         * libc/iconv/ccs/cp850.c: Ditto.
8149         * libc/iconv/ccs/cp852.c: Ditto.
8150         * libc/iconv/ccs/cp855.c: Ditto.
8151         * libc/iconv/ccs/cp866.c: Ditto.
8152         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8153         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
8154         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8155         * libc/iconv/ccs/iconv_mktbl: Ditto.
8156         * libc/iconv/ccs/jis_x0201.c: Ditto.
8157         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8158         * libc/iconv/ccs/shift_jis.c: Ditto.
8159         * libc/iconv/ccs/us_ascii.c: Ditto.
8160         * libc/iconv/ccs/ccs.h: New file.
8161         * libc/iconv/ccs/ccsbi.c: Ditto.
8162         * libc/iconv/ccs/ccsbi.h: Ditto.
8163         * libc/iconv/ccs/ccsnames.h: Ditto.
8164         * libc/iconv/ccs/iso_8859_10.c: Ditto.
8165         * libc/iconv/ccs/iso_8859_11.c: Ditto.
8166         * libc/iconv/ccs/iso_8859_13.c: Ditto.
8167         * libc/iconv/ccs/iso_8859_14.c: Ditto.
8168         * libc/iconv/ccs/iso_8859_3.c: Ditto.
8169         * libc/iconv/ccs/iso_8859_6.c: Ditto.
8170         * libc/iconv/ccs/iso_8859_7.c: Ditto.
8171         * libc/iconv/ccs/iso_8859_8.c: Ditto.
8172         * libc/iconv/ccs/iso_8859_9.c: Ditto.
8173         * libc/iconv/ccs/iso_ir_111.c: Ditto.
8174         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
8175         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
8176         * libc/iconv/ccs/koi8_ru.c: Ditto.
8177         * libc/iconv/ccs/koi8_uni.c: Ditto.
8178         * libc/iconv/ccs/mktbl.pl: Ditto.
8179         * libc/iconv/ccs/win_1250.c: Ditto.
8180         * libc/iconv/ccs/win_1251.c: Ditto.
8181         * libc/iconv/ccs/win_1252.c: Ditto.
8182         * libc/iconv/ccs/win_1253.c: Ditto.
8183         * libc/iconv/ccs/win_1254.c: Ditto.
8184         * libc/iconv/ccs/win_1255.c: Ditto.
8185         * libc/iconv/ccs/win_1256.c: Ditto.
8186         * libc/iconv/ccs/win_1257.c: Ditto.
8187         * libc/iconv/ccs/win_1258.c: Ditto.
8188         * libc/iconv/ccs/iso_8859_15.c: Updated.
8189         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8190         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8191         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8192         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8193         * libc/iconv/ccs/koi8_r.c: Ditto.
8194         * libc/iconv/ccs/koi8_u.c: Ditto.
8195         * libc/iconv/ccs/ksx1001.c: Ditto.
8196         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
8197         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8198         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8199         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8200         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8201         * libc/iconv/ccs/binary/Makefile.am: Updated.
8202         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
8203         * libc/iconv/ccs/binary/big5.cct: Updated.
8204         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8205         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8206         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8207         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
8208         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
8209         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
8210         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
8211         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
8212         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8213         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8214         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8215         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8216         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8217         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8218         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8219         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8220         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8221         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
8222         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
8223         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
8224         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
8225         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
8226         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
8227         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
8228         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
8229         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
8230         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
8231         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
8232         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
8233         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
8234         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
8235         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
8236         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
8237         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
8238         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
8239         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
8240         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
8241         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
8242         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
8243         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
8244         * libc/iconv/ces/Makefile.am: Updated.
8245         * libc/iconv/ces/Makefile.in: Regenerated.
8246         * libc/iconv/ces/ucs-2-internal.c: Updated.
8247         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8248         * libc/iconv/ces/utf-16.c: Ditto.
8249         * libc/iconv/ces/utf-8.c: Ditto.
8250         * libc/iconv/ces/cesbi.c: New file.
8251         * libc/iconv/ces/cesbi.h: Ditto.
8252         * libc/iconv/ces/cesdeps.h: Ditto.
8253         * libc/iconv/ces/euc.c: Ditto.
8254         * libc/iconv/ces/mkdeps.pl: Ditto.
8255         * libc/iconv/ces/table-pcs.c: Ditto.
8256         * libc/iconv/ces/table.c: Ditto.
8257         * libc/iconv/ces/ucs-2.c: Ditto.
8258         * libc/iconv/ces/ucs-4.c: Ditto.
8259         * libc/iconv/ces/us-ascii.c: Ditto.
8260         * libc/iconv/ces/euc-jp.c: Removed.
8261         * libc/iconv/ces/euc-kr.c: Ditto.
8262         * libc/iconv/ces/euc-tw.c: Ditto.
8263         * libc/iconv/ces/gb2312.c: Ditto.
8264         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
8265         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8266         * libc/iconv/lib/Makefile.am: Updated.
8267         * libc/iconv/lib/Makefile.in: Regenerated.
8268         * libc/iconv/lib/endian.h: Updated.
8269         * libc/iconv/lib/iconv.c: Ditto.
8270         * libc/iconv/lib/local.h: Ditto.
8271         * libc/iconv/lib/aliases.c: Removed.
8272         * libc/iconv/lib/bialiasesi.c: Ditto.
8273         * libc/iconv/lib/biccs.c: Ditto.
8274         * libc/iconv/lib/bices.c: Ditto.
8275         * libc/iconv/lib/ccs.c: Ditto.
8276         * libc/iconv/lib/ces.c: Ditto.
8277         * libc/iconv/lib/ces_euc.c: Ditto.
8278         * libc/iconv/lib/ces_iso2022.c: Ditto.
8279         * libc/iconv/lib/ces_table.c: Ditto.
8280         * libc/iconv/lib/converter.c: Ditto.
8281         * libc/iconv/lib/deps.h: Ditto.
8282         * libc/iconv/lib/loaddata.c: Ditto.
8283         * libc/iconv/lib/aliasesbi.c: New file.
8284         * libc/iconv/lib/aliasesi.c: Ditto.
8285         * libc/iconv/lib/conv.h: Ditto.
8286         * libc/iconv/lib/encnames.h: Ditto.
8287         * libc/iconv/lib/encoding.deps: Ditto.
8288         * libc/iconv/lib/iconvnls.c: Ditto.
8289         * libc/iconv/lib/iconvnls.h: Ditto.
8290         * libc/iconv/lib/nullconv.c: Ditto.
8291         * libc/iconv/lib/ucsconv.c: Ditto.
8292         * libc/iconv/lib/ucsconv.h: Ditto.
8293         * libc/include/iconv.h: Update copyright.
8294         * libc/*/aclocal.m4: Regenerated.
8295         * libc/*/configure: Ditto.
8296         * libm/*/aclocal.m4: Ditto.
8297         * libm/*/configure: Ditto.
8298
8299 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
8300
8301         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
8302         instead of typedefing jmp_buf.
8303
8304         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
8305         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
8306         * libc/machine/h8300/defines.h (LEN): New macro.
8307         * libc/machine/h8300/memcpy.S: Add h8sx version.
8308         * libc/machine/h8300/memset.S: Likewise.
8309         * libc/machine/h8300/strcmp.S: Likewise.
8310         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8311         * libc/machine/h8300/h8sx_strcpy.S: New file.
8312         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8313         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8314         __H8300SX__.
8315         * libc/include/machine/setjmp.h: Likewise.
8316         * libc/include/sys/config.h: Likewise.
8317         * libc/machine/h8300/defines.h: Likewise.
8318         * libc/machine/h8300/setjmp.S: Likewise.
8319         * libc/machine/h8300/strcmp.S: Likewise.
8320         * libc/sys/h8300hms/close.S: Likewise.
8321         * libc/sys/h8300hms/fstat.S: Likewise.
8322         * libc/sys/h8300hms/lseek.S: Likewise.
8323         * libc/sys/h8300hms/read.S: Likewise.
8324         * libc/sys/h8300hms/write.S: Likewise.
8325         * libc/sys/h8300hms/crt0.S: Likewise.
8326         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8327         __H8300SX__ is defined.
8328         * libc/sys/h8300hms/setarch.h: Likewise.
8329
8330 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8331
8332         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8333         out change which set _GLOBAL_REENT to _global_impure_ptr until
8334         we understand why Cygwin breaks because of it.
8335
8336 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8337
8338         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8339         __syscall_return macro for systems with vsyscall.
8340
8341 2004-06-11  Antony King  <antony.king@st.com>
8342
8343         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8344         _flock_t to be of type _LOCK_RECURSIVE_T.
8345         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8346         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8347         (_global_impure_ptr): New declaration.
8348         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8349         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8350         <sys/reent.h>.
8351         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8352         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8353         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8354         * libc/stdio/fclose.c: Remove casting of fp lock to
8355         _LOCK_RECURSIVE_T.
8356         * libc/stdio/findfp.c: Ditto.
8357         * libc/stdio/fopen.c: Ditto.
8358         * libc/stdio/freopen.c: Ditto.
8359         * libc/stdio/vfprintf.c: Ditto.
8360         * libc/stdio64/fopen64.c: Ditto.
8361         * libc/stdlib/envlock.c: Add default stubs that use generic
8362         locking code.
8363         * libc/stdlib/mlock.c: Ditto.
8364
8365         Jeff Johnston  <jjohnstn@redhat.com>
8366         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8367         (_flock_t): Change to be a struct containing a single member
8368         named mutex which is of type __flock_mutex_t.
8369
8370 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8371
8372         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8373         from /usr/include/asm/signal.h instead of kernel sources.  Also
8374         default max to 32 if not found in header file.
8375         * libc/sys/linux/Makefile.in: Regenerated.
8376         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8377         systems where __syscall_return is not defined.
8378         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8379         systems to use syscall() function instead of assembler interrupt.
8380
8381 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8382
8383         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8384         files from libc/sys/arm to libc/machine/arm.
8385         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8386         library build support for files moved from libc/sys/arm.
8387         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8388         references to access and setjmp.
8389         * configure.host: Add checks for newlib_may_supply_syscalls to
8390         determine whether or not to use sys/arm directory and use
8391         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8392
8393 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8394
8395         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8396         reset digit flags appropriately after we have discovered "0x".
8397         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8398
8399 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8400
8401         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8402         from here ...
8403         (_VFPRINTF_R): ... to here so all I/O printf routines
8404         are covered.
8405
8406 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8407
8408         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8409         redefinition.
8410         * libc/search/hash.c: Ditto.
8411
8412 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8413
8414         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8415         (_WANT_IO_LONG_LONG): Ditto.
8416         (_WANT_IO_LONG_DOUBLE): Ditto.
8417         * configure.in: Add new configuration options
8418         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8419         which tie to new defines in newlib.hin.
8420         * configure: Regenerated.
8421         * configure.host: Add checks for new configuration options.  Also
8422         fix up check for --enable-newlib-io-pos-args so configuration
8423         option will override any default for a given platform.
8424         Remove defining compiler flags for the _WANT_IO* options.
8425         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8426         instead of looking for old compiler flags.
8427         * libc/stdio/vfscanf.c: Ditto.
8428         * libc/stdio/vfieeefp.h: Ditto.
8429         * libc/machine/powerpc/vfprintf.c: Ditto.
8430         * libc/machine/powerpc/vfscanf.c: Ditto.
8431
8432 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8433
8434         * testsuite/include/check.h: Add include of <stdio.h>.
8435
8436 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8437
8438         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8439
8440 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8441
8442         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8443         of free.
8444
8445 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8446
8447         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8448         list for reentrant pointer.  Call _vfiprintf_r.
8449         * libc/stdio/siprintf.c (_siprintf_r): New function.
8450         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8451         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8452         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8453         prototypes.
8454
8455 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8456
8457         * libc/include/sys/param.h: Remove endian info and include
8458         <machine/endian.h> instead.
8459         * libc/include/machine/endian.h: New file.
8460         * libc/include/machine/param.h: Ditto.
8461         * libc/machine/arm/machine/endian.h: Ditto.
8462         * libc/machine/arm/machine/param.h: Ditto.
8463         * libc/sys/arm/sys/param.h: Removed.
8464         * libc/sys/sysvi386/sys/param.h: Ditto.
8465         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8466
8467 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8468
8469         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8470         multibyte functions return failure for %C, %S, %lc, and %ls
8471         format specifiers.
8472
8473 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8474
8475         * testsuite/include/check.h (CHECK): Add flush of stdout.
8476
8477 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8478
8479         * libc/include/stdio.h (_ungetc_r): New prototype.
8480         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8481         (__submore): Add reentrant struct pointer argument.
8482         (ungetc): Change to call _ungetc_r.
8483
8484 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8485
8486         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8487         function pointer argument.
8488         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8489         to specify function pointer arguments.
8490         (__fwalk, __fwalk_reent): Ditto.
8491
8492 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8493
8494         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8495         CT_INT case.
8496
8497 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8498
8499         * configure.in: Define _MB_CAPABLE if mb supported.
8500         * configure: Regenerated.
8501         * configure.host: Remove manual setting of MB_CAPABLE compiler
8502         flag.
8503         * newlib.hin: Add _MB_CAPABLE flag.
8504         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8505         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8506         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8507         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8508         * libc/ctype/jp2uc.c: Ditto.
8509         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8510         * libc/locale/locale.c: Ditto
8511         * libc/machine/powerpc/vfscanf.c: Ditto
8512         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8513         * libc/stdlib/mblen.c: Ditto
8514         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8515         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8516         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8517         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8518         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8519         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8520         * libc/sys/linux/intl/explodename.c: Ditto
8521         * libc/sys/linux/intl/finddomain.c: Ditto
8522         * libc/sys/linux/intl/l10nflist.c: Ditto
8523         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8524         * libc/sys/linux/intl/localealias.c: Ditto
8525
8526 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8527
8528         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8529         (__svfscanf_r): In integer conversions, leave out leading zeroes
8530         which are not part of a base prefix.
8531         Keep track of width truncation to fit into buf, not counting left-out
8532         zeroes against width till the truncation has been compensated for.
8533         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8534
8535 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8536
8537         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8538
8539 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8540
8541         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
8542         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
8543         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
8544         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
8545         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
8546         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
8547         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
8548         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
8549         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
8550         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
8551         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
8552         libc/stdio/getchar.c libc/stdio/getchar_u.c,
8553         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
8554         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
8555         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
8556         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
8557         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
8558         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
8559         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
8560         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
8561         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
8562         libc/stdio/siprintf.c libc/stdio/snprintf.c,
8563         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
8564         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
8565         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
8566         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
8567         libc/stdio/vprintf.c libc/stdio/vscanf.c,
8568         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
8569         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
8570         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
8571         copyright notices to top of file, ensure that <_ansi.h> is
8572         included, be consistent with open parentheses, use _DEFUN macro,
8573         include "local.h" where needed, and remove various compiler
8574         warnings.
8575
8576 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
8577
8578         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
8579         (__svfscanf_r): In integer conversions, leave out leading zeroes
8580         which are not part of a base prefix.
8581         Keep track of width truncation to fit into buf, not counting left-out
8582         zeroes against width till the truncation has been compensated for.
8583
8584 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8585
8586         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
8587
8588 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8589
8590         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
8591
8592 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
8593
8594         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
8595         to SUSv3.
8596
8597 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8598
8599         * libc/stdio/fclose.c (_fclose_r): New function.
8600         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
8601         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
8602         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
8603         * libc/include/stdio.h (_fclose_r): New prototype.
8604         * libc/stdio/fopen.c: Fix typo in comment.
8605
8606 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8607
8608         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
8609         to handle _r reentrant functions.
8610
8611 2004-04-08  Eric Christopher  <echristo@redhat.com>
8612
8613         * libc/include/machine/setjmp.h: Fix endif locations.
8614
8615 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8616
8617         * libc/time/strptime.c: Add standard includes to avoid
8618         warning messages at compilation time.
8619
8620 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
8621
8622         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
8623         of file.
8624
8625 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
8626
8627         * libc/machine/h8300/Makefile.am: Reformat slightly.
8628         * libc/machine/h8300/Makefile.in: Regenerate.
8629
8630 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
8631
8632         * libc/stdio/findfp.c (__fp_lock_all): Add call to
8633         __sfp_lock_acquire.
8634         (__fp_unlock_all): Add call to __sfp_lock_release.
8635
8636 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
8637
8638         * libc/stdio/fclose.c (fclose): Protect file pointer list when
8639         releasing a file.
8640          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
8641         fwalk.
8642         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
8643         _flockfile/_funlockfile.
8644         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
8645         to recursive.
8646         Change __lock_acquire/__lock_release calls for __sfp_lock to
8647         __sfp_lock_acquire/__sfp_lock_release throughout.
8648         (std): Make sure that file lock is only initialized once.
8649         (__sfp): Move _file initialization. Initialize file lock.
8650         (__sfp_lock_acquire): New function.
8651         (__sfp_lock_release): Ditto.
8652         (__fp_lock_all): Remove __sfp_lock_acquire call.
8653         (__fp_unlock_all): Remove __sfp_lock_release call.
8654         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
8655         Add calls to _flockfile/_funlockfile. Remove
8656         __lock_init_recursive call.
8657         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
8658         * libc/stdio/fwalk.c (__fwalk): New static function.
8659         (_fwalk): Protect file pointer list. Use __fwalk to walk through
8660         file pointers.
8661         * libc/stdio/local.h: Add defines for
8662         __sfp_lock_acquire/__sfp_lock_release when
8663         single threaded. Add function prototypes otherwise.
8664         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
8665         _flockfile/_funlockfile.
8666         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
8667         Add calls to _flockfile/_funlockfile. Remove
8668          __lock_init_recursive call.
8669         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
8670         list.
8671
8672 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
8673
8674         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
8675         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
8676         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
8677         to be __LOCK_INIT_RECURSIVE.
8678
8679 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
8680
8681         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
8682         _exit.c with _exit.S.
8683         * libc/sys/h8300hms/Makefile.in: Regenerate.
8684         * libc/sys/h8300hms/_exit.c: Remove.
8685         * libc/sys/h8300hms/_exit.S: New.
8686
8687 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
8688
8689         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
8690         Change __sfp_lock to static global.
8691         (__fp_lock): New static function.
8692         (__fp_unlock): Ditto.
8693         (__fp_lock_all): New function.
8694         (__fp_unlock_all): Ditto.
8695
8696 2004-02-10  Christopher Faylor  <cgf@redhat.com>
8697
8698         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
8699         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
8700         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
8701         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
8702
8703 2004-02-09  Christopher Faylor  <cgf@redhat.com>
8704
8705         * libc/include/time.h (TIMER_RELTIME): New define.
8706
8707 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
8708
8709         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
8710         * libc/stdlib/Makefile.in: Regenerated.
8711
8712 2004-02-08  Christopher Faylor  <cgf@redhat.com>
8713
8714         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
8715         * libc/include/sys/reent.h (__getreent): Protect against possibly being
8716         defined.
8717         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
8718
8719 2004-02-05  Paul Brook  <paul@codesourcery.com>
8720
8721         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
8722         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
8723
8724 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
8725
8726         * NEWS: Update with 1.12.0 info.
8727         * README: Ditto.
8728         * acinclude.m4: Change version number to 1.12.0.
8729         * aclocal.m4: Regenerated.
8730         * configure: Ditto.
8731         * doc/aclocal.m4: Ditto.
8732         * doc/configure: Ditto.
8733         * libc/*/aclocal.m4: Ditto.
8734         * libc/*/configure: Ditto.
8735         * libc/libc.texinfo: Ditto.
8736         * libm/*/aclocal.m4: Ditto.
8737         * libm/*/configure: Ditto.
8738         * libm/libm.texinfo: Ditto.
8739         * libc/sys/linux/shared.ld: Add VERS_1.12.
8740
8741 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
8742
8743         * configure.host: Add support for tic4x.
8744         * libc/include/machine/ieeefp.h: Ditto.
8745         * libc/include/machine/setjmp.h: Ditto.
8746         * libc/machine/tic4x/Makefile.am: New file.
8747         * libc/machine/tic4x/configure.in: Ditto.
8748         * libc/machine/tic4x/setjmp.S: Ditto.
8749         * libc/machine/tic4x/aclocal.m4: Generated.
8750         * libc/machine/tic4x/configure: Ditto.
8751         * libc/machine/tic4x/Makefile.in: Ditto.
8752
8753 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
8754
8755         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
8756         file chain on the passed in reentrancy struct if it
8757         is _GLOBAL_REENT.
8758
8759 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8760             Jeff Johnston  <jjohnstn@redhat.com>
8761
8762         * libc/iconv/iconv.tex: Updated with more information.
8763
8764 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
8765             Jeff Johnston  <jjohnstn@redhat.com>
8766
8767         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
8768         struct for std streams and traverse the global reeentrancy
8769         struct for all other streams.
8770
8771 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
8772
8773         * libc/stdlib/atexit.c: Protect global atexit list with a
8774         lock when newlib is multithreaded.
8775
8776 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8777
8778         * configure.in: Add support to generate iconv converter flags
8779         for newlib.h
8780         * newlib.hin: Add iconv converter flags.
8781         * configure: Regenerated.
8782         * libc/Makefile.in: Ditto.
8783         * libc/configure.in: Moved iconv converter parsing logic to
8784         top level newlib configure.in.
8785         * libc/configure: Regenerated.
8786         * libc/iconv/Makefile.in: Ditto.
8787         * libc/iconv/README.TODO
8788         * libc/iconv/charset.aliases: Remove wrong BE aliases for
8789         UCS2/UCS4/UTF8.
8790         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
8791         newlib.h can be used.
8792         * libc/iconv/ces/Makefile.am: Ditto.
8793         * libc/iconv/lib/Makefile.am: Ditto.
8794         * libc/iconv/ccs/Makefile.in: Regenerated.
8795         * libc/iconv/ces/Makefile.in: Ditto.
8796         * libc/iconv/lib/Makefile.in: Ditto.
8797         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
8798         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
8799         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
8800         defined in newlib.h.
8801         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8802         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8803         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8804         * libc/iconv/ccs/cp775.c: Ditto.
8805         * libc/iconv/ccs/cp850.c: Ditto.
8806         * libc/iconv/ccs/cp852.c: Ditto.
8807         * libc/iconv/ccs/cp855.c: Ditto.
8808         * libc/iconv/ccs/cp866.c: Ditto.
8809         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8810         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8811         * libc/iconv/ccs/iso_8859_15.c: Ditto.
8812         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8813         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8814         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8815         * libc/iconv/ccs/jis_x0201.c: Ditto.
8816         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8817         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8818         * libc/iconv/ccs/koi8_r.c: Ditto.
8819         * libc/iconv/ccs/koi8_u.c: Ditto.
8820         * libc/iconv/ccs/ksx1001.c: Ditto.
8821         * libc/iconv/ccs/shift_jis.c: Ditto.
8822         * libc/iconv/ccs/us_ascii.c: Ditto.
8823         * libc/iconv/ccs/binary/big5.cct: Newly generated.
8824         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8825         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8826         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8827         * libc/iconv/ccs/binary/cp775.cct: Ditto.
8828         * libc/iconv/ccs/binary/cp850.cct: Ditto.
8829         * libc/iconv/ccs/binary/cp852.cct: Ditto.
8830         * libc/iconv/ccs/binary/cp855.cct: Ditto.
8831         * libc/iconv/ccs/binary/cp866.cct: Ditto.
8832         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
8833         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8834         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8835         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8836         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8837         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8838         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8839         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8840         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8841         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8842         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8843         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8844         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8845         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8846         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
8847         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
8848         * libc/iconv/ces/euc-kr.c: Ditto.
8849         * libc/iconv/ces/euc-tw.c: Ditto.
8850         * libc/iconv/ces/gb2312.c: Ditto.
8851         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
8852         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8853         * libc/iconv/ces/ucs-2-internal.c: Ditto.
8854         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8855         * libc/iconv/ces/utf-16.c: Ditto.
8856         * libc/iconv/ces/utf-8.c: Ditto.
8857         * libc/iconv/lib/aliases.c: Ditto.
8858         * libc/iconv/lib/biccs.c: Ditto.
8859         * libc/iconv/lib/bices.c: Ditto.
8860         * libc/iconv/lib/ccs.c: Ditto.
8861         * libc/iconv/lib/ces.c: Ditto.
8862         * libc/iconv/lib/ces_euc.c: Ditto.
8863         * libc/iconv/lib/ces_iso2022.c: Ditto.
8864         * libc/iconv/lib/ces_table.c: Ditto.
8865         * libc/iconv/lib/converter.c: Ditto.
8866         * libc/iconv/lib/deps.h: Ditto.
8867         * libc/iconv/lib/endian.h: Ditto.
8868         * libc/iconv/lib/iconv.c: Ditto.
8869         * libc/iconv/lib/loaddata.c: Ditto.
8870         * libc/iconv/lib/local.h: Include newlib.h.
8871         * libc/argz/Makefile.in: Regenerated.
8872         * libc/ctype/Makefile.in: Ditto.
8873         * libc/errno/Makefile.in: Ditto.
8874         * libc/iconv/ccs/binary/Makefile.in: Ditto.
8875         * libc/locale/Makefile.in: Ditto.
8876         * libc/misc/Makefile.in: Ditto.
8877         * libc/posix/Makefile.in: Ditto.
8878         * libc/reent/Makefile.in: Ditto.
8879         * libc/search/Makefile.in: Ditto.
8880         * libc/signal/Makefile.in: Ditto.
8881         * libc/stdio/Makefile.in: Ditto.
8882         * libc/stdio64/Makefile.in: Ditto.
8883         * libc/stdlib/Makefile.in: Ditto.
8884         * libc/string/Makefile.in: Ditto.
8885         * libc/syscalls/Makefile.in: Ditto.
8886         * libc/time/Makefile.in: Ditto.
8887         * libc/unix/Makefile.in: Ditto.
8888         * testsuite/newlib.iconv/iconv.exp: New file.
8889         * testsuite/newlib.iconv/iconvjp.c: Ditto.
8890         * testsuite/newlib.iconv/iconvnm.c: Ditto.
8891         * testsuite/newlib.iconv/iconvru.c: Ditto.
8892
8893 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8894
8895         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
8896         (--enable-newlib-builtin-converters): Ditto.
8897         * configure.in: Add code to set _ICONV_ENABLED flag.
8898         Set _MB_LEN_MAX to 1 if not mb enabled.
8899         * configure: Regenerated.
8900         * aclocal.m4: Ditto.
8901         * Makefile.in: Ditto.
8902         * newlib.hin: Add _ICONV_ENABLED flag.
8903         * libc/Makefile.am: Add support for iconv.
8904         * libc/configure.in: Ditto.
8905         * libc/Makefile.in: Regenerated.
8906         * libc/aclocal.m4: Ditto.
8907         * libc/configure: Ditto.
8908         * libc/libc.texinfo: Add iconv documentation.
8909         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
8910         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
8911         libc/iconv/README.TODO, libc/iconv/charset.aliases,
8912         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
8913         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
8914         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
8915         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
8916         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
8917         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
8918         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
8919         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
8920         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
8921         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
8922         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
8923         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
8924         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
8925         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
8926         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
8927         libc/iconv/ccs/binary/big5.cct,
8928         libc/iconv/ccs/binary/cns11643_plane1.cct,
8929         libc/iconv/ccs/binary/cns11643_plane14.cct,
8930         libc/iconv/ccs/binary/cns11643_plane2.cct,
8931         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
8932         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
8933         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
8934         libc/iconv/ccs/binary/iso_8859_1.cct,
8935         libc/iconv/ccs/binary/iso_8859_15.cct,
8936         libc/iconv/ccs/binary/iso_8859_2.cct,
8937         libc/iconv/ccs/binary/iso_8859_4.cct,
8938         libc/iconv/ccs/binary/iso_8859_5.cct,
8939         libc/iconv/ccs/binary/jis_x0201.cct,
8940         libc/iconv/ccs/binary/jis_x0208_1983.cct,
8941         libc/iconv/ccs/binary/jis_x0212_1990.cct,
8942         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
8943         libc/iconv/ccs/binary/ksx1001.cct,
8944         libc/iconv/ccs/binary/shift_jis.cct,
8945         libc/iconv/ccs/binary/us_ascii.cct,
8946         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
8947         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
8948         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
8949         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
8950         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
8951         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
8952         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
8953         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
8954         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
8955         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
8956         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
8957         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
8958         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
8959         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
8960         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
8961         * libc/sys/linux/include/iconv.h: Ditto.
8962         * libc/include/sys/_types.h (_iconv_t): Added.
8963         * doc/aclocal.m4: Regenerated.
8964         * doc/configure: Ditto.
8965         * doc/Makefile.in: Ditto.
8966         * iconvdata/Makefile.in: Ditto.
8967         * iconvdata/aclocal.m4: Ditto.
8968         * iconvdata/configure: Ditto.
8969         * libc/*aclocal.m4: Ditto.
8970         * libc/*Makefile.in: Ditto.
8971         * libc/*configure: Ditto.
8972         * libm/*aclocal.m4: Ditto.
8973         * libm/*Makefile.in: Ditto.
8974         * libm/*configure: Ditto.
8975
8976 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8977
8978         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
8979         by a lock when newlib is multithreaded.
8980
8981 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
8982
8983         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
8984         pointer to match C99 spec.
8985         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
8986         dst is NULL.  Also fix to not alter src pointer when dst is NULL
8987         and call _mbrtowc_r instead of _mbtowc_r.
8988         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
8989         of _wctomb_r.
8990
8991 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
8992
8993         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
8994         * libc/stdio/freopen.c (freopen): Ditto.
8995
8996 2004-01-16  Christopher Faylor  <cgf@redhat.com>
8997
8998         * libc/stdio/vfprintf.c: Add sys/lock.h include.
8999
9000 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
9001
9002         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
9003         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
9004         Add calls to __lock_init_recursive and __lock_close_recursive
9005         instead.
9006
9007 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
9008
9009         * libc/stdio/fclose.c: Include sys/lock.h.
9010         (fclose): Destroy lock when file is closed.
9011         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
9012         member.
9013         * libc/stdio/freopen.c: Include sys/lock.h.
9014         (_freopen_r): Destroy lock when file is closed.
9015         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
9016         _lock member.
9017
9018 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
9019
9020         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
9021         Remove warnings.
9022
9023 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
9024
9025         * libc/sys/rtems/sys/queue.h: New file.
9026         * libc/include/sys/signal.h: Reflect renumbering of signals to
9027         fit into 32-bit mask.
9028         * libc/include/sys/unistd.h: Add fdatasync() prototype.
9029         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
9030         required.  In particular, add the reentrant variants of libc calls.
9031         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
9032
9033 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
9034
9035         * libc/sys/arm/syscalls.c (unistd.h): Include it.
9036         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
9037         Similarly for stdout and stderr.
9038
9039 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
9040
9041         * libc/libc.texinfo: Correct escape character for @ sign
9042         so file will be processed by make info.  Update copyright years.
9043         * libm/libm.texinfo: Ditto.
9044
9045 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
9046
9047         * libc/include/sys/stat.h: No longer include stat-dj.h.
9048         * libc/include/sys/stat-dj.h: Removed.
9049
9050 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
9051
9052         * libc/include/wchar.h: Include <sys/reent.h>.
9053
9054 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9055
9056         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
9057         when defining _mbrtowc.
9058         * libc/stdlib/mbsinit.c: Ditto.
9059         * libc/stdlib/mbsrtowcs.c: Ditto.
9060         * libc/stdlib/wcrtomb.c: Ditto.
9061         * libc/stdlib/wcsrtombs.c: Ditto.
9062         * libc/stdlib/wctob.c: Ditto.
9063
9064 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9065
9066         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
9067         errors when defining _mbrtowc.
9068         * libc/stdlib/mbsinit.c: Ditto.
9069         * libc/stdlib/mbsrtowcs.c: Ditto.
9070
9071 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9072
9073         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
9074         errors when defining _mbrtowc.
9075
9076 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9077
9078         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
9079         of mb routines for %lc and %ls support.
9080         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
9081         %ls, and %S support.  Remove CYGNUS_NEC markers and
9082         code within.
9083
9084 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
9085
9086         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
9087         _wcrtomb_r, and _wcsrtombs_r.
9088
9089 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
9090
9091         * libc/include/sys/fcntl.h: Don't define struct flock when on
9092         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
9093
9094 2003-11-28  Christopher Faylor  <cgf@redhat.com>
9095
9096         * libc/include/sys/signal.h: Use system specific signal file when
9097         building on cygwin.
9098
9099 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9100
9101         * libc/include/stdlib.h (_atoi_r): New prototype.
9102         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
9103
9104 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9105
9106         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
9107         * libc/stdlib/atol.c (_atol_r): New reentrant function.
9108         * libc/stdlib/atoll.c (_atoll_r): Ditto.
9109
9110 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9111             Jeff Johnston  <jjohnstn@redhat.com>
9112
9113         * libc/include/stdlib.h (lldiv_t): New type.
9114         (atoll, llabs, lldiv): New prototypes.
9115         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
9116         * libc/stdlib/stdlib.tex: Ditto.
9117         * libc/stdlib/Makefile.in: Regenerated.
9118         * libc/stdlib/atoll.c: New file.
9119         * libc/stdlib/llabs.c: Ditto.
9120         * libc/stdlib/lldiv.c: Ditto.
9121
9122 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
9123
9124         * libc/include/fcntl.h: Declare syscalls only when building newlib.
9125         * libc/include/unistd.h: Ditto.
9126         * libc/include/stat.h: Ditto.  Also declare struct stat64.
9127
9128 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9129
9130         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
9131         specifier to use ch instead of *fmt.
9132
9133 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9134
9135         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
9136         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
9137         use simple byte logic.
9138
9139 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
9140
9141         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
9142         _strtold routine for processing floats and doubles since it
9143         is not as fast as _strtod_r.
9144
9145 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
9146
9147         * libc/machine/h8300/defines.h : Correct pointer register defines
9148         for normal mode.
9149         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
9150         for normal mode.
9151         * libc/machine/h8300/reg_memcpy.S : Likewise.
9152         * libc/machine/h8300/reg_memset.S : Likewise.
9153         * libc/machine/h8300/strcmp.S : Likewise.
9154
9155 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
9156
9157         * configure.host: Enable positional arguments for printf
9158         family for Cygwin.
9159         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
9160         pointer reference for quad_ptr_t.
9161
9162 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
9163
9164         * libc/stdio/scanf.c: Don't include local.h more than once.
9165
9166 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
9167
9168         * libc/include/sys/fcntl.h: Declare _open64.
9169         * libc/include/sys/stat.h: Declare _fstat64.
9170         * libc/include/sys/unistd.h: Declare _lseek64.
9171
9172 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
9173
9174         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
9175         (setprogname): Ditto.
9176
9177 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
9178
9179         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
9180         to use (Ebits + 1) which accounts for the sign-bit.
9181
9182 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9183
9184         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
9185         x86 build.
9186         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
9187         and set up default flags to pass to aclocal.
9188         * iconvdata/Makefile.in: Regenerated.
9189         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
9190         and getpwuid routines.
9191         * libc/sys/linux/Makefile.in: Regenerated.
9192         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
9193         applications to link with newlib's shared libc library.
9194         * libc/sys/linux/getpwnam.c: Ditto.
9195         * libc/sys/linux/getpwuid.c: Ditto.
9196         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
9197         that were formerly supplied by /usr/include/linux/types.h with
9198         kernel types.
9199         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
9200         test _ELIX_LEVEL macro.
9201
9202 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9203
9204         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
9205         referring to _NO_LONGLONG macro.
9206
9207 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
9208
9209         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
9210         in LOG() macro so this will compile on gcc 3.4 and up.
9211         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9212         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9213         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9214         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9215         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9216         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9217         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9218         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9219         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9220         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9221         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9222         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9223         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9224         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9225         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9226         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9227         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9228         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9229         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9230         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9231         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9232         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9233         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9234         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9235         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9236         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9237         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9238         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9239         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9240         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9241         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9242         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9243         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9244         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9245         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9246         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9247
9248 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9249             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9250
9251         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
9252         %ls, %S, %lc, and %C format specifiers.
9253         (get_arg): Ditto.
9254         * libc/stdio/sprintf.c: Add documentation regarding new
9255         format specifiers added in vfprintf.c.
9256
9257 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9258
9259         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
9260         to make code work as specified in standard.
9261
9262 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
9263
9264         * configure.in: Use absolute newlib basedir when forming
9265         CC_FOR_NEWLIB include options.
9266         * configure: Regenerated.
9267
9268 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9269
9270         * libc/string/wcsnlen.c: New file.
9271         * libc/include/wchar.h: Add wcsnlen prototype.
9272         * libc/string/Makefile.am: Add wcsnlen support.
9273         * libc/string/Makefile.in: Regenerated.
9274         * libc/string/wcstrings.tex: Add wcsnlen documentation.
9275
9276 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
9277
9278         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
9279
9280 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
9281
9282         * libc/locale/locale.c: Use double quotes in code.
9283         * libc/locale/locale.tex: Likewise.
9284         * libc/libc.texinfo: Hyphenate "floating-point".
9285         * libc/machine/necv70/necv70.tex: Likewise.
9286         * libc/stdio/sprintf.c: Likewise.
9287         * libc/stdio/sscanf.c: Likewise.
9288         * libc/stdlib/atof.c: Likewise.
9289         * libc/stdlib/ldtoa.c: Fix comment typo.
9290         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
9291         * libc/stdlib/ldiv.c: Likewise.
9292         * libm/common/s_expm1.c: Likewise.
9293         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
9294         * libm/common/s_infinity: Hyphenate "double- and single-precision".
9295         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
9296         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
9297         and "floating-point".
9298         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
9299         * libm/math/e_pow.c: Fix comment typo.
9300         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
9301         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
9302         * libm/math/s_atan.c: Likewise.
9303         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
9304         * libm/math/s_isnan.c: Hyphenate "single-precision" and
9305         "floating-point".  Use "nonzero".
9306         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9307         * libm/math/w_acos.c: Likewise.
9308         * libm/math/w_acosh.c: Likewise.
9309         * libm/math/w_asin.c: Likewise.
9310         * libm/math/w_atan2.c: Likewise.
9311         * libm/math/w_atanh.c: Likewise.
9312         * libm/math/w_cosh.c: Likewise.
9313         * libm/math/w_exp.c: Likewise.
9314         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9315         version of 2^x in the description.
9316         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9317         * libm/math/w_gamma.c: Likewise.
9318         * libm/math/w_hypot.c: Likewise.
9319         * libm/math/w_j0.c: Likewise.
9320         * libm/math/w_sinh.c: Likewise.
9321         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9322         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9323         "floating-point".
9324         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9325         * libm/mathfp/e_atanh.c: Likewise.
9326         * libm/mathfp/e_hypot.c: Likewise.
9327         * libm/mathfp/er_lgamma.c: Likewise.
9328         * libm/mathfp/s_acos.c: Likewise.
9329         * libm/mathfp/s_asine.c: Likewise.
9330         * libm/mathfp/s_asinh.c: Likewise.
9331         * libm/mathfp/s_atan.c: Likewise.
9332         * libm/mathfp/s_atan2.c: Likewise.
9333         * libm/mathfp/s_atangent.c: Likewise.
9334         * libm/mathfp/s_cosh.c: Likewise.
9335         * libm/mathfp/s_exp.c: Likewise.
9336         * libm/mathfp/s_fmod.c: Likewise.
9337         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9338         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9339         "floating-point".  Use "nonzero".
9340         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9341         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9342         * libm/mathfp/s_sineh.c: Likewise.
9343         * libm/mathfp/w_jn.c: Likewise.
9344
9345 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9346
9347         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9348         lines, to enable parallel make.
9349         * Makefile.in: Rebuilt.
9350
9351 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9352
9353         * libc/time/clock.c: Clarify documentation of return value when no
9354         measurement is available.
9355
9356 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9357
9358         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9359         * libm/configure: Regenerate.
9360         * libm/Makefile.in: Ditto.
9361
9362 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9363
9364         * libc/machine/sh/strncpy.S: New file.
9365         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9366         * libc/machine/sh/Makefile.in: Regenerate.
9367
9368 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9369
9370         * MAINTAINERS: Update my e-mail address.
9371
9372 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9373
9374         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9375
9376 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9377
9378         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9379         prototype.
9380         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9381         _simdldcheck().  Also add unsigned cast for index variable in
9382         for loop using sizeof operators.
9383         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9384         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9385         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9386         plus fix shift calculation for determining if there is a
9387         carry from word2.
9388
9389 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9390
9391         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9392         setgroupent for Cygwin.
9393
9394 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9395
9396         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9397         is different for _REENT_SMALL than when using regular reent
9398         struct.
9399
9400 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9401
9402         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9403         modern versions of GCC issue a warning.
9404
9405         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9406         after continuation characters that induces a warning from modern
9407         versions of GCC.
9408
9409 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9410
9411         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9412         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9413
9414 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9415
9416         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9417         * libc/stdlib/exit.c : Ditto.
9418         * libc/stdlib/on_exit.c: Ditto.
9419
9420 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9421
9422         * libc/include/reent.h: Define stat64 as __stat64 when
9423         compiling newlib for Cygwin.
9424
9425 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9426
9427         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9428         __stat64 when compiling newlib.
9429
9430 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9431
9432         * libc/include/stdio.h: Allow the io64 function prototypes for
9433         Cygwin when compiling newlib.
9434         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9435         to expose the Cygwin struct __stat64 type.
9436         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9437         pointer.
9438         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9439
9440 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9441
9442         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9443         definition to fseeko64.
9444
9445 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9446
9447         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9448         * libc/stdio: Globally remove/replace all references to fp->_data.
9449         Replace with _REENT or _GLOBAL_REENT where appropriate.
9450         * libc/stdio/asprintf.c: Ditto.
9451         * libc/stdio/fclose.c: Ditto.
9452         * libc/stdio/fvwrite.c: Ditto.
9453         * libc/stdio/makebuf.c: Ditto.
9454         * libc/stdio/refill.c: Ditto.
9455         * libc/stdio/local.h: Ditto.
9456         * libc/stdio/setvbuf.c: Ditto.
9457         * libc/stdio/sscanf.c: Ditto.
9458         * libc/stdio/stdio.c: Ditto.
9459         * libc/stdio/ungetc.c: Ditto.
9460         * libc/stdio/vfscanf.c: Ditto.
9461         * libc/stdio/vsscanf.c: Ditto.
9462         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9463         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9464         * libc/stdio/vsnprintf.c: Ditto.
9465         * libc/stdio/vsprintf.c: Ditto.
9466         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9467         instead of _REENT to walk file list.
9468         * libc/stdio/fflush.c: Ditto.
9469         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9470         version call reentrant version with _REENT argument.
9471         * libc/stdio/fsetpos.c: Ditto.
9472         * libc/stdio/fseek.c: Ditto.
9473         * libc/stdio/fseeko.c: Ditto.
9474         * libc/stdio/ftell.c: Ditto.
9475         * libc/stdio/ftello.c: Ditto.
9476         * libc/stdio/freopen.c: Ditto.
9477         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9478         new files to chain.  Also use _GLOBAL_REENT pointer for
9479         cleaning up.
9480         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9481         * libc/stdio/siprintf.c: Ditto.
9482         * libc/stdio/iprintf.c: Ditto.
9483         * libc/stdio/fprintf.c: Ditto.
9484         * libc/stdio/printf.c: Ditto.
9485         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9486         * libc/stdio/sprintf.c: Ditto.
9487         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9488         * libc/stdio/rewind.c: Call _fseek_r directly.
9489         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9490         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9491         data pointer.
9492         (get_arg): Add extra struct _reent pointer argument.
9493         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9494         to fp->_data.
9495         * libc/stdio64/fopen64.c: Ditto.
9496         * libc/stdio64/freopen64.c: Ditto.
9497         * libc/stdio64/fsetpos64.c: Ditto.
9498         * libc/stdio64/ftello64.c: Ditto.
9499         * libc/stdio64/local64.h: Ditto.
9500         * libc/stdio64/stdio64.c: Ditto.
9501         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9502         _fstat64_r for the meantime.
9503
9504 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9505
9506         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9507         overflow detection.
9508
9509 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9510
9511         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9512         extern "C".
9513
9514 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9515
9516         * libc/include/math.h: Add prototypes for __signbitf and
9517         __signbitd.
9518
9519 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9520
9521         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9522         correct type of conversion when dealing with EUCJP or SJIS.
9523         * libc/ctype/iswblank.c: Ditto.
9524         * libc/ctype/iswcntrl.c: Ditto.
9525         * libc/ctype/iswprint.c: Ditto.
9526         * libc/ctype/iswpunct.c: Ditto.
9527         * libc/ctype/iswspace.c: Ditto.
9528         * libc/ctype/towlower.c: Ditto.
9529         * libc/ctype/towupper.c: Ditto.
9530
9531 2003-07-31  Nick Clifton  <nickc@redhat.com>
9532
9533         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9534         before calling main, in case it saves its argument registers.
9535         Remove reference to deleted v850ea port.
9536         * configure.host: Remove reference to deleted v850ea port.
9537         Do not use -mv850 when building for v850e target.  This
9538         prevents the ctbp system register from being initialised.
9539
9540 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
9541
9542         * libc/stdio/vfprintf.c: Set output size to 1 when
9543         we have %f format with precision 0 and # flag not specified.
9544
9545 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
9546
9547         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
9548         .am33_2.
9549
9550 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9551
9552         * libc/stdio64/fdopen64.c: Include sys/lock.h.
9553
9554 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9555
9556         * configure.host: Find cygwin include directory, when appropriate.
9557
9558 2003-07-24  Christopher Faylor  <cgf@redhat.com>
9559
9560         * libc/stdio64/fdopen64.c: New file.
9561         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
9562         * libc/stdio64/Makefile.in: Regenerate.
9563         * libc/include/stdio.h (fdopen64): Define.
9564         * libc/include/stdio.h (_fdopen64_r): Ditto.
9565
9566 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9567
9568         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9569         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
9570         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
9571         restore callee-saved FP registers.
9572
9573 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9574
9575         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
9576         for __sh__.
9577         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
9578         truncate.c.
9579         * libc/sys/sh/Makefile.in: Regenerate.
9580         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
9581         * libc/sys/sh/ftruncate.c: New file.
9582         * libc/sys/sh/truncate.c: Likewise.
9583
9584 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9585
9586         * libc/include/math.h (nan, nanf): Update prototype to C99.
9587         * libm/common/s_nan.c (nan): Likewise.
9588         * libm/common/s_nanf.c (nanf, nan): Likewise.
9589         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
9590
9591 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
9592
9593         * libc/include/stdbool.h: Removed as this is defined by gcc.
9594
9595 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
9596
9597         * libc/include/stdbool.h: New header file defined by C99.
9598
9599 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9600
9601         * libc/include/sys/types.h (int8_t): Make signed.
9602
9603 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9604
9605         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
9606
9607 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
9608
9609         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
9610         on if we actually created the shared memory file exclusively.
9611
9612 2003-06-27  Joe Vornehm  <joev@mitre.org>
9613
9614         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
9615         comparisons to account for unsigned internal value w.
9616
9617 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
9618
9619         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
9620         wrbuf for a non-creating open.
9621
9622 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
9623
9624         * libc/machine/h8300/setarch.h: New.
9625         * libc/machine/h8300/memcpy.S: Use it.
9626         * libc/machine/h8300/memset.S: Likewise.
9627         * libc/machine/h8300/reg_memcpy.S: Likewise.
9628         * libc/machine/h8300/reg_memset.S: Likewise.
9629         * libc/machine/h8300/setjmp.S: Likewise.
9630         * libc/machine/h8300/strcmp.S: Likewise.
9631
9632 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
9633
9634         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
9635         to atexit().
9636
9637 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9638
9639         * configure.host (iq2000): Add tabs.
9640
9641 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9642
9643         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
9644         to handle latest on_exit change.
9645         * libc/sys/linux/Makefile.am: Remove special compilation
9646         for malloc.c and mcheck.c.
9647         * libc/sys/linux/Makefile.in: Regenerated.
9648         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
9649         after including <features.h>.
9650         * libc/sys/linux/mcheck.c: Ditto.
9651         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
9652         for <features.h>.
9653         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
9654         add -DNOT_IN_libc to C flags.
9655         * libc/sys/linux/intl/Makefile.in: Regenerated.
9656         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
9657         * libc/sys/linux/linuxthreads/semaphore.h: Include
9658         <bits/pthreadtypes.h>.
9659         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
9660         including <features.h>.
9661         * libc/sys/linux/sys/lock.h: Ditto.
9662
9663 2003-06-11  Nick Clifton  <nickc@redhat.com>
9664
9665         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
9666         _on_exit_args_ptr.
9667
9668 2003-06-10  Stan Cox  <scox@redhat.com>
9669             Anthony Green  <green@redhat.com>
9670
9671         * configure.host: Add iq2000 support.
9672         * newlib/libc/include/machine/ieeefp.h: Ditto.
9673         * newlib/libc/include/machine/setjmp.h: Ditto.
9674         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
9675         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
9676         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
9677         libc/machine/iq2000/Makefile.in: New files.
9678
9679 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
9680
9681         * libc/sys/h8300hms/setarch.h: New file.
9682         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
9683         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
9684         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
9685         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
9686
9687 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
9688
9689         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
9690         definition.
9691         * libc/argz/argz_add_sep.c: Ditto.
9692         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
9693         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
9694         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
9695         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
9696         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
9697         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
9698         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
9699         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
9700         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
9701         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
9702         * libc/posix/execl.c libc/posix/execle.c: Ditto.
9703         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
9704         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
9705         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
9706         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
9707         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
9708         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
9709         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
9710         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
9711         * libc/search/twalk.c libc/signal/signal.c: Ditto.
9712
9713 2003-06-05  Nick Clifton  <nickc@redhat.com>
9714
9715         * libc/include/sys/reent.h (struct _on_exit_args): New
9716         structure containing fields used by the on_exit() function.
9717         (struct _atexit): Include struct _on_exit_args.  For
9718         _REENT_SMALL do his via a pointer that is initialised when
9719         needed.
9720         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
9721         structure, if one has been allocated.
9722         * libc/stdlib/atexit.c (atexit): Update indirection to
9723         _fntypes field.
9724         * libc/stdlib/on_exit.c (on_exit): Indirect via the
9725         _on_exit_args structure.  For _REENT_SMALL, allocate a
9726         structure if one does not exist.
9727         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
9728         structure.
9729
9730 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
9731
9732         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
9733         * libc/sys/linux/net/Makefile.in: Regenerated.
9734
9735 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9736
9737         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
9738         * libc/reent/fcntlr.c: Ditto.
9739         * libc/reent/fstat64r.c: Ditto.
9740         * libc/reent/linkr.c: Ditto.
9741         * libc/reent/lseek64r.c: Ditto.
9742         * libc/reent/lseekr.c: Ditto.
9743         * libc/reent/openr.c: Ditto.
9744         * libc/reent/readr.c: Ditto.
9745         * libc/reent/reent.c: Ditto.
9746         * libc/reent/sbrkr.c: Ditto.
9747         * libc/reent/signalr.c: Ditto.
9748         * libc/reent/signgam.c: Ditto.
9749         * libc/reent/statr.c: Ditto.
9750         * libc/reent/timer.c: Ditto.
9751         * libc/reent/unlinkr.c: Ditto.
9752         * libc/reent/writer.c: Ditto.
9753         * libc/syscalls/sysclose.c: Ditto.
9754         * libc/syscalls/sysexecve.c: Ditto.
9755         * libc/syscalls/sysfcntl.c: Ditto.
9756         * libc/syscalls/sysfork.c: Ditto.
9757         * libc/syscalls/sysfstat.c: Ditto.
9758         * libc/syscalls/sysgetpid.c: Ditto.
9759         * libc/syscalls/sysgettod.c: Ditto.
9760         * libc/syscalls/syskill.c: Ditto.
9761         * libc/syscalls/syslink.c: Ditto.
9762         * libc/syscalls/syslseek.c: Ditto.
9763         * libc/syscalls/sysopen.c: Ditto.
9764         * libc/syscalls/sysread.c: Ditto.
9765         * libc/syscalls/syssbrk.c: Ditto.
9766         * libc/syscalls/sysstat.c: Ditto.
9767         * libc/syscalls/systimes.c: Ditto.
9768         * libc/syscalls/sysunlink.c: Ditto.
9769         * libc/syscalls/syswait.c: Ditto.
9770         * libc/syscalls/syswrite.c: Ditto.
9771
9772 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
9773
9774         * libc/time/tzset_r.c: Change local variables that are
9775         set via sscanf using the %h format specifier to be unsigned short
9776         instead of int.
9777
9778 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
9779
9780         * configure.host:  Allow i[34567]86 variant.
9781         * configure.in: Likewise.
9782         * README: Likewise to the docs.
9783         * configure: Regenerated.
9784         * Makefile.in: Ditto.
9785
9786 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
9787             Tom Fitzsimmons  <fitzsim@redhat.com>
9788
9789         * configure.in: Add iconvdata support for x86 linux.
9790         * configure: Regenerated.
9791         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
9792         library, iconv, and linuxthreads support.
9793         * libc/sys/linux/configure.in: Ditto.
9794         * libc/sys/linux/Makefile.in: Regenerated.
9795         * libc/sys/linux/configure: Ditto.
9796         * iconvdata/EUC-JP.irreversible: New file.
9797         * iconvdata/Makefile.am: Ditto.
9798         * iconvdata/Makefile.in: Ditto.
9799         * iconvdata/SJIS.irreversible: Ditto.
9800         * iconvdata/aclocal.m4: Ditto.
9801         * iconvdata/configure: Ditto.
9802         * iconvdata/configure.in: Ditto.
9803         * iconvdata/dummy.c: Ditto.
9804         * iconvdata/euc-jp.c: Ditto.
9805         * iconvdata/gconv-modules: Ditto.
9806         * iconvdata/jis0201.c: Ditto.
9807         * iconvdata/jis0201.h: Ditto.
9808         * iconvdata/jis0208.c: Ditto.
9809         * iconvdata/jis0208.h: Ditto.
9810         * iconvdata/jis0212.c: Ditto.
9811         * iconvdata/jis0212.h: Ditto.
9812         * iconvdata/sjis.c: Ditto.
9813         * libc/include/errno.h: Protect definition of error_t.
9814         * libc/sys/linux/gethostid.c: New file.
9815         * libc/sys/linux/sethostid.c: Ditto.
9816         * libc/sys/linux/dl/Makefile.am: Ditto.
9817         * libc/sys/linux/dl/Makefile.in: Ditto.
9818         * libc/sys/linux/dl/abi-tag.h: Ditto.
9819         * libc/sys/linux/dl/atomicity.h: Ditto.
9820         * libc/sys/linux/dl/dl-addr.c: Ditto.
9821         * libc/sys/linux/dl/dl-cache.c: Ditto.
9822         * libc/sys/linux/dl/dl-cache.h: Ditto.
9823         * libc/sys/linux/dl/dl-close.c: Ditto.
9824         * libc/sys/linux/dl/dl-debug.c: Ditto.
9825         * libc/sys/linux/dl/dl-deps.c: Ditto.
9826         * libc/sys/linux/dl/dl-dst.h: Ditto.
9827         * libc/sys/linux/dl/dl-error.c: Ditto.
9828         * libc/sys/linux/dl/dl-fini.c: Ditto.
9829         * libc/sys/linux/dl/dl-init.c: Ditto.
9830         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
9831         * libc/sys/linux/dl/dl-libc.c: Ditto.
9832         * libc/sys/linux/dl/dl-librecon.h: Ditto.
9833         * libc/sys/linux/dl/dl-load.c: Ditto.
9834         * libc/sys/linux/dl/dl-lookup.c: Ditto.
9835         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
9836         * libc/sys/linux/dl/dl-minimal.c: Ditto.
9837         * libc/sys/linux/dl/dl-misc.c: Ditto.
9838         * libc/sys/linux/dl/dl-object.c: Ditto.
9839         * libc/sys/linux/dl/dl-open.c: Ditto.
9840         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
9841         * libc/sys/linux/dl/dl-profile.c: Ditto.
9842         * libc/sys/linux/dl/dl-profstub.c: Ditto.
9843         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9844         * libc/sys/linux/dl/dl-runtime.c: Ditto.
9845         * libc/sys/linux/dl/dl-support.c: Ditto.
9846         * libc/sys/linux/dl/dl-sym.c: Ditto.
9847         * libc/sys/linux/dl/dl-version.c: Ditto.
9848         * libc/sys/linux/dl/dlfcn.h: Ditto.
9849         * libc/sys/linux/dl/do-lookup.h: Ditto.
9850         * libc/sys/linux/dl/do-rel.h: Ditto.
9851         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9852         * libc/sys/linux/dl/kernel-features.h: Ditto.
9853         * libc/sys/linux/dl/ldsodefs.h: Ditto.
9854         * libc/sys/linux/dl/libintl.h: Ditto.
9855         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
9856         * libc/sys/linux/dl/unsecvars.h: Ditto.
9857         * libc/sys/linux/iconv/Makefile.am: Ditto.
9858         * libc/sys/linux/iconv/Makefile.in: Ditto.
9859         * libc/sys/linux/iconv/categories.def: Ditto.
9860         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
9861         * libc/sys/linux/iconv/gconv.c: Ditto.
9862         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
9863         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
9864         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
9865         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
9866         * libc/sys/linux/iconv/gconv_close.c: Ditto.
9867         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
9868         * libc/sys/linux/iconv/gconv_db.c: Ditto.
9869         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
9870         * libc/sys/linux/iconv/gconv_int.h: Ditto.
9871         * libc/sys/linux/iconv/gconv_open.c: Ditto.
9872         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9873         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
9874         * libc/sys/linux/iconv/hash-string.h: Ditto.
9875         * libc/sys/linux/iconv/iconv.c: Ditto.
9876         * libc/sys/linux/iconv/iconv.h: Ditto.
9877         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
9878         * libc/sys/linux/iconv/iconv_close.c: Ditto.
9879         * libc/sys/linux/iconv/iconv_open.c: Ditto.
9880         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
9881         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
9882         * libc/sys/linux/iconv/loadinfo.h: Ditto.
9883         * libc/sys/linux/iconv/localeinfo.h: Ditto.
9884         * libc/sys/linux/iconv/loop.c: Ditto.
9885         * libc/sys/linux/iconv/skeleton.c: Ditto.
9886         * libc/sys/linux/iconv/strtab.c: Ditto.
9887         * libc/sys/linux/include/dl-hash.h: Ditto.
9888         * libc/sys/linux/include/dlfcn.h: Ditto.
9889         * libc/sys/linux/include/fnmatch.h: Ditto.
9890         * libc/sys/linux/include/gconv.h: Ditto.
9891         * libc/sys/linux/include/glob.h: Ditto.
9892         * libc/sys/linux/include/hesiod.h: Ditto.
9893         * libc/sys/linux/include/ifaddrs.h: Ditto.
9894         * libc/sys/linux/include/libc_private.h: Ditto.
9895         * libc/sys/linux/include/link.h: Ditto.
9896         * libc/sys/linux/include/namespace.h: Ditto.
9897         * libc/sys/linux/include/netconfig.h: Ditto.
9898         * libc/sys/linux/include/netdb.h: Ditto.
9899         * libc/sys/linux/include/nsswitch.h: Ditto.
9900         * libc/sys/linux/include/regex.h: Ditto.
9901         * libc/sys/linux/include/resolv.h: Ditto.
9902         * libc/sys/linux/include/rune.h: Ditto.
9903         * libc/sys/linux/include/runetype.h: Ditto.
9904         * libc/sys/linux/include/semaphore.h: Ditto.
9905         * libc/sys/linux/include/setlocale.h: Ditto.
9906         * libc/sys/linux/include/un-namespace.h: Ditto.
9907         * libc/sys/linux/include/wordexp.h: Ditto.
9908         * libc/sys/linux/include/arpa/ftp.h: Ditto.
9909         * libc/sys/linux/include/arpa/inet.h: Ditto.
9910         * libc/sys/linux/include/arpa/nameser.h: Ditto.
9911         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
9912         * libc/sys/linux/include/arpa/telnet.h: Ditto.
9913         * libc/sys/linux/include/arpa/tftp.h: Ditto.
9914         * libc/sys/linux/include/net/bpf.h: Ditto.
9915         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
9916         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
9917         * libc/sys/linux/include/net/bridge.h: Ditto.
9918         * libc/sys/linux/include/net/ethernet.h: Ditto.
9919         * libc/sys/linux/include/net/fddi.h: Ditto.
9920         * libc/sys/linux/include/net/if.h: Ditto.
9921         * libc/sys/linux/include/net/if_arc.h: Ditto.
9922         * libc/sys/linux/include/net/if_arp.h: Ditto.
9923         * libc/sys/linux/include/net/if_atm.h: Ditto.
9924         * libc/sys/linux/include/net/if_dl.h: Ditto.
9925         * libc/sys/linux/include/net/if_gif.h: Ditto.
9926         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
9927         * libc/sys/linux/include/net/if_llc.h: Ditto.
9928         * libc/sys/linux/include/net/if_media.h: Ditto.
9929         * libc/sys/linux/include/net/if_mib.h: Ditto.
9930         * libc/sys/linux/include/net/if_ppp.h: Ditto.
9931         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
9932         * libc/sys/linux/include/net/if_slvar.h: Ditto.
9933         * libc/sys/linux/include/net/if_sppp.h: Ditto.
9934         * libc/sys/linux/include/net/if_stf.h: Ditto.
9935         * libc/sys/linux/include/net/if_tap.h: Ditto.
9936         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
9937         * libc/sys/linux/include/net/if_tun.h: Ditto.
9938         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
9939         * libc/sys/linux/include/net/if_types.h: Ditto.
9940         * libc/sys/linux/include/net/if_var.h: Ditto.
9941         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
9942         * libc/sys/linux/include/net/intrq.h: Ditto.
9943         * libc/sys/linux/include/net/iso88025.h: Ditto.
9944         * libc/sys/linux/include/net/net_osdep.h: Ditto.
9945         * libc/sys/linux/include/net/netisr.h: Ditto.
9946         * libc/sys/linux/include/net/pfil.h: Ditto.
9947         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
9948         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
9949         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
9950         * libc/sys/linux/include/net/radix.h: Ditto.
9951         * libc/sys/linux/include/net/raw_cb.h: Ditto.
9952         * libc/sys/linux/include/net/route.h: Ditto.
9953         * libc/sys/linux/include/net/slcompress.h: Ditto.
9954         * libc/sys/linux/include/net/slip.h: Ditto.
9955         * libc/sys/linux/include/net/zlib.h: Ditto.
9956         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
9957         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
9958         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
9959         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
9960         * libc/sys/linux/include/netinet/igmp.h: Ditto.
9961         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
9962         * libc/sys/linux/include/netinet/in.h: Ditto.
9963         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
9964         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
9965         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
9966         * libc/sys/linux/include/netinet/in_var.h: Ditto.
9967         * libc/sys/linux/include/netinet/ip.h: Ditto.
9968         * libc/sys/linux/include/netinet/ip6.h: Ditto.
9969         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
9970         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
9971         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
9972         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
9973         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
9974         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
9975         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
9976         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
9977         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
9978         * libc/sys/linux/include/netinet/tcp.h: Ditto.
9979         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
9980         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
9981         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
9982         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
9983         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
9984         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
9985         * libc/sys/linux/include/netinet/udp.h: Ditto.
9986         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
9987         * libc/sys/linux/include/netinet6/ah.h: Ditto.
9988         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
9989         * libc/sys/linux/include/netinet6/esp.h: Ditto.
9990         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
9991         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
9992         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
9993         * libc/sys/linux/include/netinet6/in6.h: Ditto.
9994         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
9995         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
9996         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
9997         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
9998         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
9999         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
10000         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
10001         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
10002         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
10003         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
10004         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
10005         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
10006         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
10007         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
10008         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
10009         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
10010         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
10011         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
10012         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
10013         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
10014         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
10015         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
10016         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
10017         * libc/sys/linux/include/netns/idp.h: Ditto.
10018         * libc/sys/linux/include/netns/idp_var.h: Ditto.
10019         * libc/sys/linux/include/netns/ns.h: Ditto.
10020         * libc/sys/linux/include/netns/ns_error.h: Ditto.
10021         * libc/sys/linux/include/netns/ns_if.h: Ditto.
10022         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
10023         * libc/sys/linux/include/netns/sp.h: Ditto.
10024         * libc/sys/linux/include/netns/spidp.h: Ditto.
10025         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
10026         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
10027         * libc/sys/linux/include/netns/spp_var.h: Ditto.
10028         * libc/sys/linux/include/rpc/Makefile: Ditto.
10029         * libc/sys/linux/include/rpc/auth.h: Ditto.
10030         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
10031         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
10032         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
10033         * libc/sys/linux/include/rpc/clnt.h: Ditto.
10034         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
10035         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
10036         * libc/sys/linux/include/rpc/des.h: Ditto.
10037         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
10038         * libc/sys/linux/include/rpc/nettype.h: Ditto.
10039         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
10040         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
10041         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
10042         * libc/sys/linux/include/rpc/raw.h: Ditto.
10043         * libc/sys/linux/include/rpc/rpc.h: Ditto.
10044         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
10045         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
10046         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
10047         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
10048         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
10049         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
10050         * libc/sys/linux/include/rpc/svc.h: Ditto.
10051         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
10052         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
10053         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
10054         * libc/sys/linux/include/rpc/types.h: Ditto.
10055         * libc/sys/linux/include/rpc/xdr.h: Ditto.
10056         * libc/sys/linux/intl/Makefile.am: Ditto.
10057         * libc/sys/linux/intl/Makefile.in: Ditto.
10058         * libc/sys/linux/intl/bindtextdom.c: Ditto.
10059         * libc/sys/linux/intl/catgets.c: Ditto.
10060         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
10061         * libc/sys/linux/intl/config.h: Ditto.
10062         * libc/sys/linux/intl/dcgettext.c: Ditto.
10063         * libc/sys/linux/intl/dcigettext.c: Ditto.
10064         * libc/sys/linux/intl/dcngettext.c: Ditto.
10065         * libc/sys/linux/intl/dgettext.c: Ditto.
10066         * libc/sys/linux/intl/dngettext.c: Ditto.
10067         * libc/sys/linux/intl/explodename.c: Ditto.
10068         * libc/sys/linux/intl/finddomain.c: Ditto.
10069         * libc/sys/linux/intl/gettext.c: Ditto.
10070         * libc/sys/linux/intl/gettext.h: Ditto.
10071         * libc/sys/linux/intl/gettextP.h: Ditto.
10072         * libc/sys/linux/intl/hash-string.h: Ditto.
10073         * libc/sys/linux/intl/l10nflist.c: Ditto.
10074         * libc/sys/linux/intl/loadinfo.h: Ditto.
10075         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
10076         * libc/sys/linux/intl/locale.alias: Ditto.
10077         * libc/sys/linux/intl/localealias.c: Ditto.
10078         * libc/sys/linux/intl/ngettext.c: Ditto.
10079         * libc/sys/linux/intl/open_catalog.c: Ditto.
10080         * libc/sys/linux/intl/plural.c: Ditto.
10081         * libc/sys/linux/intl/plural.y: Ditto.
10082         * libc/sys/linux/intl/stpcpy.c: Ditto.
10083         * libc/sys/linux/intl/textdomain.c: Ditto.
10084         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
10085         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
10086         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
10087         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
10088         * libc/sys/linux/linuxthreads/attr.c: Ditto.
10089         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
10090         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
10091         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
10092         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
10093         * libc/sys/linux/linuxthreads/config.h: Ditto.
10094         * libc/sys/linux/linuxthreads/configure: Ditto.
10095         * libc/sys/linux/linuxthreads/configure.in: Ditto.
10096         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
10097         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
10098         * libc/sys/linux/linuxthreads/events.c: Ditto.
10099         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
10100         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
10101         * libc/sys/linux/linuxthreads/internals.h: Ditto.
10102         * libc/sys/linux/linuxthreads/join.c: Ditto.
10103         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
10104         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
10105         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
10106         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
10107         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
10108         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
10109         * libc/sys/linux/linuxthreads/manager.c: Ditto.
10110         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
10111         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
10112         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
10113         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
10114         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
10115         * libc/sys/linux/linuxthreads/prio.c: Ditto.
10116         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
10117         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
10118         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
10119         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
10120         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
10121         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
10122         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
10123         * libc/sys/linux/linuxthreads/queue.h: Ditto.
10124         * libc/sys/linux/linuxthreads/reent.c: Ditto.
10125         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
10126         * libc/sys/linux/linuxthreads/restart.h: Ditto.
10127         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
10128         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
10129         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
10130         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
10131         * libc/sys/linux/linuxthreads/signals.c: Ditto.
10132         * libc/sys/linux/linuxthreads/specific.c: Ditto.
10133         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
10134         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
10135         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
10136         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
10137         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
10138         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
10139         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
10140         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
10141         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
10142         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
10143         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
10144         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
10145         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
10146         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
10147         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
10148         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
10149         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
10150         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
10151         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
10152         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
10153         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
10154         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
10155         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
10156         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
10157         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
10158         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
10159         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
10160         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
10161         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
10162         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
10163         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
10164         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
10165         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
10166         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
10167         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
10168         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
10169         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
10170         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
10171         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
10172         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
10173         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
10174         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
10175         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
10176         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
10177         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
10178         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
10179         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
10180         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
10181         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
10182         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
10183         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
10184         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
10185         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
10186         * libc/sys/linux/linuxthreads/unload.c: Ditto.
10187         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
10188         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
10189         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
10190         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
10191         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
10192         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
10193         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
10194         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
10195         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
10196         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
10197         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
10198         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
10199         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
10200         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
10201         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
10202         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
10203         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
10204         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
10205         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
10206         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
10207         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
10208         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
10209         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
10210         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
10211         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
10212         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
10213         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
10214         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
10215         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
10216         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
10217         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
10218         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
10219         * libc/sys/linux/net/Makefile.am: Ditto.
10220         * libc/sys/linux/net/Makefile.in: Ditto.
10221         * libc/sys/linux/net/addr2ascii.3: Ditto.
10222         * libc/sys/linux/net/addr2ascii.c: Ditto.
10223         * libc/sys/linux/net/ascii2addr.c: Ditto.
10224         * libc/sys/linux/net/base64.c: Ditto.
10225         * libc/sys/linux/net/bindresvport.c: Ditto.
10226         * libc/sys/linux/net/byteorder.3: Ditto.
10227         * libc/sys/linux/net/ether_addr.c: Ditto.
10228         * libc/sys/linux/net/ethers.3: Ditto.
10229         * libc/sys/linux/net/getaddrinfo.3: Ditto.
10230         * libc/sys/linux/net/getaddrinfo.c: Ditto.
10231         * libc/sys/linux/net/gethostbydns.c: Ditto.
10232         * libc/sys/linux/net/gethostbyht.c: Ditto.
10233         * libc/sys/linux/net/gethostbyname.3: Ditto.
10234         * libc/sys/linux/net/gethostbynis.c: Ditto.
10235         * libc/sys/linux/net/gethostnamadr.c: Ditto.
10236         * libc/sys/linux/net/getifaddrs.3: Ditto.
10237         * libc/sys/linux/net/getifaddrs.c: Ditto.
10238         * libc/sys/linux/net/getipnodebyname.3: Ditto.
10239         * libc/sys/linux/net/getnameinfo.3: Ditto.
10240         * libc/sys/linux/net/getnameinfo.c: Ditto.
10241         * libc/sys/linux/net/getnetbydns.c: Ditto.
10242         * libc/sys/linux/net/getnetbyht.c: Ditto.
10243         * libc/sys/linux/net/getnetbynis.c: Ditto.
10244         * libc/sys/linux/net/getnetent.3: Ditto.
10245         * libc/sys/linux/net/getnetnamadr.c: Ditto.
10246         * libc/sys/linux/net/getproto.c: Ditto.
10247         * libc/sys/linux/net/getprotoent.3: Ditto.
10248         * libc/sys/linux/net/getprotoent.c: Ditto.
10249         * libc/sys/linux/net/getprotoname.c: Ditto.
10250         * libc/sys/linux/net/getservbyname.c: Ditto.
10251         * libc/sys/linux/net/getservbyport.c: Ditto.
10252         * libc/sys/linux/net/getservent.3: Ditto.
10253         * libc/sys/linux/net/getservent.c: Ditto.
10254         * libc/sys/linux/net/herror.c: Ditto.
10255         * libc/sys/linux/net/hesiod.3: Ditto.
10256         * libc/sys/linux/net/hesiod.c: Ditto.
10257         * libc/sys/linux/net/if_indextoname.3: Ditto.
10258         * libc/sys/linux/net/ifname.c: Ditto.
10259         * libc/sys/linux/net/inet.3: Ditto.
10260         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
10261         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
10262         * libc/sys/linux/net/inet_addr.c: Ditto.
10263         * libc/sys/linux/net/inet_lnaof.c: Ditto.
10264         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
10265         * libc/sys/linux/net/inet_net.3: Ditto.
10266         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
10267         * libc/sys/linux/net/inet_net_pton.c: Ditto.
10268         * libc/sys/linux/net/inet_neta.c: Ditto.
10269         * libc/sys/linux/net/inet_netof.c: Ditto.
10270         * libc/sys/linux/net/inet_network.c: Ditto.
10271         * libc/sys/linux/net/inet_ntoa.c: Ditto.
10272         * libc/sys/linux/net/inet_ntop.c: Ditto.
10273         * libc/sys/linux/net/inet_pton.c: Ditto.
10274         * libc/sys/linux/net/innetgr-stub.c: Ditto.
10275         * libc/sys/linux/net/ip6opt.c: Ditto.
10276         * libc/sys/linux/net/iso_addr.3: Ditto.
10277         * libc/sys/linux/net/iso_addr.c: Ditto.
10278         * libc/sys/linux/net/issetugid-stub.c: Ditto.
10279         * libc/sys/linux/net/linkaddr.3: Ditto.
10280         * libc/sys/linux/net/linkaddr.c: Ditto.
10281         * libc/sys/linux/net/map_v4v6.c: Ditto.
10282         * libc/sys/linux/net/name6.c: Ditto.
10283         * libc/sys/linux/net/namespace.h: Ditto.
10284         * libc/sys/linux/net/ns.3: Ditto.
10285         * libc/sys/linux/net/ns_addr.c: Ditto.
10286         * libc/sys/linux/net/ns_name.c: Ditto.
10287         * libc/sys/linux/net/ns_netint.c: Ditto.
10288         * libc/sys/linux/net/ns_ntoa.c: Ditto.
10289         * libc/sys/linux/net/ns_parse.c: Ditto.
10290         * libc/sys/linux/net/ns_print.c: Ditto.
10291         * libc/sys/linux/net/ns_ttl.c: Ditto.
10292         * libc/sys/linux/net/nsap_addr.c: Ditto.
10293         * libc/sys/linux/net/nsdispatch.3: Ditto.
10294         * libc/sys/linux/net/nsdispatch.c: Ditto.
10295         * libc/sys/linux/net/nslexer.c: Ditto.
10296         * libc/sys/linux/net/nslexer.l: Ditto.
10297         * libc/sys/linux/net/nsparser.c: Ditto.
10298         * libc/sys/linux/net/nsparser.h: Ditto.
10299         * libc/sys/linux/net/nsparser.y: Ditto.
10300         * libc/sys/linux/net/rcmd.3: Ditto.
10301         * libc/sys/linux/net/rcmd.c: Ditto.
10302         * libc/sys/linux/net/rcmdsh.3: Ditto.
10303         * libc/sys/linux/net/rcmdsh.c: Ditto.
10304         * libc/sys/linux/net/recv.c: Ditto.
10305         * libc/sys/linux/net/res_comp.c: Ditto.
10306         * libc/sys/linux/net/res_config.h: Ditto.
10307         * libc/sys/linux/net/res_data.c: Ditto.
10308         * libc/sys/linux/net/res_debug.c: Ditto.
10309         * libc/sys/linux/net/res_init.c: Ditto.
10310         * libc/sys/linux/net/res_mkquery.c: Ditto.
10311         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10312         * libc/sys/linux/net/res_query.c: Ditto.
10313         * libc/sys/linux/net/res_send.c: Ditto.
10314         * libc/sys/linux/net/res_update.c: Ditto.
10315         * libc/sys/linux/net/resolver.3: Ditto.
10316         * libc/sys/linux/net/rthdr.c: Ditto.
10317         * libc/sys/linux/net/send.c: Ditto.
10318         * libc/sys/linux/net/un-namespace.h: Ditto.
10319         * libc/sys/linux/net/vars.c: Ditto.
10320         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10321         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10322         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10323         * libc/sys/linux/stdlib/cclass.h: Ditto.
10324         * libc/sys/linux/stdlib/cname.h: Ditto.
10325         * libc/sys/linux/stdlib/collate.c: Ditto.
10326         * libc/sys/linux/stdlib/collate.h: Ditto.
10327         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10328         * libc/sys/linux/stdlib/engine.c: Ditto.
10329         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10330         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10331         * libc/sys/linux/stdlib/glob.3: Ditto.
10332         * libc/sys/linux/stdlib/glob.c: Ditto.
10333         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10334         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10335         * libc/sys/linux/stdlib/regerror.c: Ditto.
10336         * libc/sys/linux/stdlib/regex.3: Ditto.
10337         * libc/sys/linux/stdlib/regex2.h: Ditto.
10338         * libc/sys/linux/stdlib/regexec.c: Ditto.
10339         * libc/sys/linux/stdlib/regfree.c: Ditto.
10340         * libc/sys/linux/stdlib/utils.h: Ditto.
10341         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10342         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10343         * libc/sys/linux/sys/dlfcn.h: Ditto.
10344         * libc/sys/linux/sys/elfclass.h: Ditto.
10345         * libc/sys/linux/sys/event.h: Ditto.
10346         * libc/sys/linux/sys/ioccom.h: Ditto.
10347         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10348         * libc/sys/linux/sys/link.h: Ditto.
10349         * libc/sys/linux/sys/lock.h: Ditto.
10350         * libc/sys/linux/sys/param.h: Ditto.
10351         * libc/sys/linux/sys/socket.h: Ditto.
10352         * libc/sys/linux/sys/sockio.h: Ditto.
10353
10354 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10355
10356         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10357         normal mode
10358         * newlib/libc/machine/h8300/memset.S: Likewise
10359         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10360         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10361         * newlib/lib/machine/h8300/setjmp.S: Likewise
10362         * newlib/lib/machine/h8300/strcmp.S: Likewise
10363         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10364
10365 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10366
10367         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10368         * libc/include/stdio.h: Ditto.
10369         * libc/include/sys/config.h: Ditto.
10370         * libc/stdio/mktemp.c: Ditto.
10371
10372 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10373
10374         * libc/locale/ldpart.c (__part_load_locale): Substitute
10375         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10376         * libc/search/hash.c (__hash_open): Ditto.
10377         (init_hash): Ditto.
10378         * libc/stdio/fseek.c (fseek): Ditto.
10379         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10380         * libc/stdio/mktemp.c (_gettemp): Ditto.
10381
10382 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10383
10384         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10385
10386 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10387
10388         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10389         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10390         if __CYGWIN_USE_BIG_TYPES__ is set.
10391         * libc/search/hash.c (__hash_open): Ditto.
10392         (init_hash): Ditto.
10393         * libc/stdio/fseek.c (fseek): Ditto.
10394         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10395         * libc/stdio/mktemp.c (_gettemp): Ditto.
10396         * libc/sys/cygwin/Makefile.am: Remove.
10397         * libc/sys/cygwin/Makefile.in: Remove.
10398         * libc/sys/cygwin/aclocal.m4: Remove.
10399         * libc/sys/cygwin/configure: Remove.
10400         * libc/sys/cygwin/configure.in: Remove.
10401         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10402         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10403         directory.
10404         * libc/sys/cygwin/sys/param.h: Ditto.
10405         * libc/sys/cygwin/sys/utime.h: Ditto.
10406         * libc/sys/cygwin/sys/utmp.h: Ditto.
10407
10408 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10409
10410         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10411
10412 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10413
10414         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10415         64 bit inodes.
10416
10417 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10418
10419         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10420         Include cygwin/config.h instead.
10421
10422 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10423
10424         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10425         all code with #ifdef __SPE__ test.
10426         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10427
10428 2003-04-15  Chris January <chris@atomice.net>
10429
10430         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10431         Cygwin.
10432
10433 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10434
10435         * libc/machine/sh/memset.S: Avoid clobbering volatile
10436         objects following a tiny to-be-set array in the same quadword.
10437
10438 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10439
10440         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10441         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10442         * libc/string/Makefile.in: Regenerated.
10443         * libc/string/wcswidth.c: New file.
10444         * libc/string/wcwidth.c: New file.
10445         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10446
10447 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10448
10449         * libc/machine/sh/memset.S: Fix problem with alloco region
10450         exceeding destination region for length >= 88 bytes, start
10451         & 0x16 == 0, end & 0x1f == 18.
10452
10453 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10454
10455         * libc/string/wcscoll.c: Fix comment.
10456
10457 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10458
10459         * libc/include/wchar.h: Add definition for wcscoll.
10460         * libc/string/Makefile.am: Add wcscoll.c.
10461         * libc/string/Makefile.in: Regenerated.
10462         * libc/string/wcscoll.c: New file.
10463         * libc/string/wcstrings.tex: Add wcscoll.
10464
10465 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10466
10467         * libc/stdio/sscanf.c: Update flags description.
10468         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10469         type.
10470         (__svfscanf_r): Add 'hh' and 'll' handling.
10471
10472 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10473
10474         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10475         __d_position member to _off_t.
10476
10477 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10478
10479         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10480         count all characters used to create number against maximum width.
10481         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10482
10483 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10484
10485         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10486         support.
10487         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10488         flag to support simulator only extensions.
10489
10490 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10491
10492         * libc/string/wcschr.c: (wcschr): Look for character first,
10493         then for end of string, so you can do wcschr(x, '\0').
10494
10495 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10496
10497         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10498         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10499         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10500         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10501         * libc/stdio/fseeko.c (fseeko): Ditto.
10502         * libc/stdio/ftello.c (ftello): Ditto.
10503         * libc/stdio/stdio.c (__swrite): Ditto.
10504         (__sseek): Ditto.
10505         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10506         * libc/stdio/fseek.c (fseek): Ditto.
10507         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10508         * libc/stdio/ftell.c (ftell): Ditto.
10509         * libc/stdio/local.h: Declare __sseek using _off_t.
10510
10511 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10512
10513         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10514
10515 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10516
10517         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10518         Cygwin.
10519
10520 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10521
10522         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10523         Cygwin.
10524         * libc/include/sys/stat.h: Ditto.
10525         * libc/include/sys/unistd.h: Ditto.
10526         * libc/sys/cygwin/sys/dirent.h: Ditto.
10527
10528 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10529
10530         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10531         declaration of getopt and avoid getopt_long declaration.
10532         * libc/sys/cygwin/include/unistd.h: Remove.
10533
10534 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10535
10536         * configure.host: Define stdio64_dir for Cygwin.
10537         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10538         Cygwin 64bit file access requirements.
10539         Drop definition of f*64() functions when compiled for Cygwin.
10540         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
10541         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
10542         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
10543
10544 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
10545
10546         * libc/include/sys/reent.h: Remove extraneous _sig_func
10547         declaration.
10548
10549 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
10550
10551         * libc/sys/h8300hms/Makefile.am: Add support for new files.
10552         * libc/sys/h8300hms/Makefile.in: Regenerated.
10553         * libc/sys/h8300hms/close.S: New file.
10554         * libc/sys/h8300hms/fstat.S: Ditto.
10555         * libc/sys/h8300hms/lseek.S: Ditto.
10556         * libc/sys/h8300hms/open.S: Ditto.
10557         * libc/sys/h8300hms/stat.S: Ditto.
10558         * libc/sys/h8300hms/read.S: New file to replace read.c.
10559         * libc/sys/h8300hms/read.c: Removed.
10560         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
10561         _lseek, _close, _stat, _fstat.
10562         * libc/sys/h8300hms/write.S: New file to replace write.c.
10563         * libc/sys/h8300hms/write.c: Removed.
10564
10565 2003-02-20  Nick Clifton  <nickc@redhat.com>
10566
10567         * Add support for Cirrus Maverick ARM co-processor:
10568
10569         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
10570
10571                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
10572                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
10573
10574         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
10575
10576                 * configure.host: set sys_dir, syscall_dir, and
10577                 newlib_cflags for ep9312 host.
10578
10579         * configure.host: Restore alpha sorting of entries in case
10580         statements.
10581
10582 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10583
10584         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
10585
10586 2003-02-18  Christian Groessler  <chris@groessler.org>
10587
10588         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
10589         support z8001 segmented mode.
10590
10591 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
10592
10593         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
10594         with a NULL value.
10595
10596 2003-02-10  Christopher Faylor  <cgf@redhat.com>
10597
10598         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
10599         Don't define some types under cygwin.
10600
10601 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
10602
10603         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
10604         option to allow disabling of syscalls being supplied in newlib.
10605         * aclocal.m4: Regenerated.
10606         * configure: Ditto.
10607         * configure.host: Add support of new configuration option and add
10608         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
10609         * doc/aclocal.m4: Regenerated.
10610         * doc/configure: Ditto.
10611         * libc/*aclocal.m4: Ditto.
10612         * libc/*configure: Ditto.
10613         * libm/*aclocal.m4: Ditto.
10614         * libm/*configure: Ditto.
10615         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
10616         is disabled.
10617         * libc/sys/arm/Makefile.in: Regenerated.
10618
10619 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
10620
10621         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
10622         -1 to be sure it cannot later match a valid file fd causing
10623         isatty() to return 1.
10624         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
10625         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
10626         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
10627
10628 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
10629
10630         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
10631         buffer based on the precision, after we have processed the input value
10632         in a local buffer and know its relative magnitude.
10633
10634 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10635
10636         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
10637         into registers r1 and r2, so that the simulator can distinguish
10638         this trap from a breakpoint trap.  Copied from libgloss.
10639
10640 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10641
10642         * libc/sys/h8300hms/crt0.S (_start): Change local label
10643         from .loop to .Loop, so that ld and gdb will ignore it.
10644
10645 2003-01-29  Jason Tishler  <jason@tishler.net>
10646
10647         * libc/include/time.h: Declare nanosleep() under Cygwin.
10648
10649 2003-01-24  Nick Clifton  <nickc@redhat.com>
10650
10651         * Add sh2e support:
10652
10653         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
10654
10655                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
10656                 * libc/machine/sh/setjmp.S: Likewise.
10657                 * libc/include/machine/ieeefp.h: Likewise.
10658
10659 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
10660
10661         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
10662         for Cygwin.
10663
10664 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
10665
10666         * libc/time/difftime.c : Typecast the result to double.
10667
10668 2003-01-20  Christopher Faylor  <cgf@redhat.com>
10669
10670         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
10671
10672 2003-01-18  Nick Clifton  <nickc@redhat.com>
10673
10674         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
10675         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
10676
10677 2003-01-16  Joel Sherrill <joel@OARcorp.com>
10678
10679         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
10680         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
10681         constants are defined in each file in the shared versions in
10682         libc/include.
10683         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
10684         autoconf can link programs.
10685         * libc/include/machine/types.h: Explicitly specify signed on
10686         intXX_t types to ensure they are signed.
10687
10688 2003-01-14  Christopher Faylor  <cgf@redhat.com>
10689
10690         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
10691         extensions.
10692
10693 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
10694
10695         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
10696
10697 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
10698
10699         * libc/stdio/sprintf.c: fix typo
10700         * libc/stdio/vfprintf.c: fix typo
10701
10702 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
10703
10704         * configure.host: Support long double I/O for x86-linux.
10705         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
10706         large enough to hold formatted result.
10707         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
10708
10709 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10710
10711         * Makefile.am: Add vasprintf.
10712         * Makefile.in: Regenerated.
10713
10714 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10715
10716         * asprintf.c (_asprintf_r): insure both declarations
10717         are the same.
10718
10719 2002-12-28  Christopher Faylor  <cgf@redhat.com>
10720
10721         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
10722         than defining getopt directly.
10723
10724 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10725
10726         * NEWS: Update with 1.11.0 info.
10727         * README: Ditto.
10728         * acinclude.m4: Change version number to 1.11.0.
10729         * aclocal.m4: Regenerated.
10730         * configure: Ditto.
10731         * doc/aclocal.m4: Ditto.
10732         * doc/configure: Ditto.
10733         * libc/*/aclocal.m4: Ditto.
10734         * libc/*/configure: Ditto.
10735         * libc/libc.texinfo: Ditto.
10736         * libm/*/aclocal.m4: Ditto.
10737         * libm/*/configure: Ditto.
10738         * libm/libm.texinfo: Ditto.
10739         * libc/sys/linux/shared.ld: Add VERS_1.11.
10740
10741 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10742
10743         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
10744         Solutions to Red Hat Inc.
10745         * libc/machine/i386/f_atan2f.S: Ditto.
10746         * libc/machine/i386/f_exp.c: Ditto.
10747         * libc/machine/i386/f_expf.c: Ditto.
10748         * libc/machine/i386/f_frexp.S: Ditto.
10749         * libc/machine/i386/f_frexpf.S: Ditto.
10750         * libc/machine/i386/f_ldexp.S: Ditto.
10751         * libc/machine/i386/f_ldexpf.S: Ditto.
10752         * libc/machine/i386/f_log.S: Ditto.
10753         * libc/machine/i386/f_log10.S: Ditto.
10754         * libc/machine/i386/f_log10f.S: Ditto.
10755         * libc/machine/i386/f_logf.S: Ditto.
10756         * libc/machine/i386/f_pow.c: Ditto.
10757         * libc/machine/i386/f_powf.c: Ditto.
10758         * libc/machine/i386/f_tan.S: Ditto.
10759         * libc/machine/i386/f_tanf.S: Ditto.
10760         * libc/machine/i386/memchr.S: Ditto.
10761         * libc/machine/i386/memcmp.S: Ditto.
10762         * libc/machine/i386/memcpy.S: Ditto.
10763         * libc/machine/i386/memmove.S: Ditto.
10764         * libc/machine/i386/memset.S: Ditto.
10765         * libc/machine/i386/strchr.S: Ditto.
10766         * libc/machine/i386/strlen.S: Ditto.
10767         * libm/machine/i386/f_atan2.S: Ditto.
10768         * libm/machine/i386/f_atan2f.S: Ditto.
10769         * libm/machine/i386/f_exp.c: Ditto.
10770         * libm/machine/i386/f_expf.c: Ditto.
10771         * libm/machine/i386/f_frexp.S: Ditto.
10772         * libm/machine/i386/f_frexpf.S: Ditto.
10773         * libm/machine/i386/f_ldexp.S: Ditto.
10774         * libm/machine/i386/f_ldexpf.S: Ditto.
10775         * libm/machine/i386/f_log.S: Ditto.
10776         * libm/machine/i386/f_log10.S: Ditto.
10777         * libm/machine/i386/f_log10f.S: Ditto.
10778         * libm/machine/i386/f_logf.S: Ditto.
10779         * libm/machine/i386/f_pow.c: Ditto.
10780         * libm/machine/i386/f_powf.c: Ditto.
10781         * libm/machine/i386/f_tan.S: Ditto.
10782         * libm/machine/i386/f_tanf.S: Ditto.
10783
10784 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10785
10786         * libc/stdlib/environ.c: Update license to Red Hat.
10787         * libc/machine/hppa/setjmp.S: Ditto.
10788         * libm/test/Makefile.in: Ditto.
10789
10790 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
10791
10792         * configure.host: Remove references to go32.
10793         * libc/sys/go32/*: Removed.
10794
10795 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
10796
10797         * libc/include/sys/config.h: Change setting of INT_MAX
10798         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
10799         __H8300S__.  Also consolidate flag settings for these
10800         platforms.
10801
10802 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
10803
10804         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
10805         for i386-rtems targets.
10806
10807 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
10808
10809         * libc/include/stdlib.h (strtof): New prototype (from C99).
10810         (strtodf): Changed from prototype to macro which redefines
10811         to strtof.
10812         * libc/stdlib/atof.c: Change documentation to refer to strtof
10813         instead of strtodf.
10814         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
10815         strtodf.
10816         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
10817         (strtof): New function.
10818         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
10819         calls strtof.
10820
10821 2002-11-27  Christopher Faylor  <cgf@redhat.com>
10822
10823         * libc/string/memset.c (memset): Fix comment.
10824
10825 2002-11-26  Christopher Faylor  <cgf@redhat.com>
10826
10827         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
10828         function.
10829
10830 2002-11-25  Christopher Faylor  <cgf@redhat.com>
10831
10832         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
10833         variable, introduced below, everywhere.
10834
10835 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
10836
10837         * libc/string/memset.c (memset): Make it safe even if
10838         sizeof (int) = 2.
10839
10840 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
10841
10842         * configure.in: Change check for libc/include in ${CC} to
10843         use an intermediate value so as to work with different shells.
10844         * configure: Regenerated.
10845         * Makefile.in: Ditto.
10846
10847 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
10848
10849         * libc/sys/h8300hms/read.c: Add support for normal mode
10850         architecture.
10851
10852 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
10853
10854         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
10855         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
10856         when -mint32 is used.
10857
10858 2002-11-18  Nick Clifton  <nickc@redhat.com>
10859
10860         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
10861
10862 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
10863
10864         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
10865         only issue one pass/fail message for a compile/link/execute.
10866         * testsuite/newlib.elix/elix.exp: New file.
10867         * testsuite/newlib.elix/tmmap.c: Ditto.
10868
10869 2002-11-06  Christopher Faylor  <cgf@redhat.com>
10870
10871         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
10872         * libc/stdlib/mlock.c: Ditto.
10873         * libc/stdlib/msize.c: Ditto.
10874         * libc/stdlib/msize.c: Ditto.
10875         * libc/stdlib/mtrim.c: Ditto.
10876         * libc/stdlib/valloc.c: Ditto.
10877
10878 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
10879
10880         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
10881         for inf/nan, make sure that the check ignores the sign bit.
10882
10883 2002-11-07  Joel Sherrill <joel@OARcorp.com>
10884
10885         * libc/sys/rtems/machine: New directory.
10886         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
10887         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
10888         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
10889         targets more BSD like when installed without requiring files to
10890         be overwritten at install point when RTEMS itself is installed.
10891         * Makefile.am: Pick up system dependent machine .h files such as
10892         might be found on a BSD-ish system.
10893         * Makefile.in: Regenerate.
10894         * libc/include/machine/types.h: When on an RTEMS target, define a
10895         few BSD flavor types.
10896
10897 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
10898
10899         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
10900
10901 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10902
10903         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
10904         * libc/include/wctype.h: Ditto.
10905
10906 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
10907
10908         * libc/include/wchar.h: Add extern "C" specifier if C++.
10909         * libc/include/wctype.h: Ditto.
10910
10911 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10912
10913         * testsuite/newlib.wctype/tiswctype.c: New test case.
10914         * testsuite/newlib.wctype/twctrans.c: Ditto.
10915
10916 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10917
10918         * libc/sys/linux/machine/i386/include/endian.h: New file.
10919         * libc/sys/linux/machine/i386/include/param.h: Ditto.
10920
10921 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10922
10923         * libm/machine/i386/aclocal.m4: Regenerated.
10924         * libm/machine/i386/configure: Ditto.
10925
10926 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10927
10928         * testsuite/include/check.h: New header file to use with
10929         test cases.
10930         * testsuite/lib/newlib.exp: Add testsuite/include directory
10931         to list of header files to use.
10932         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
10933         * testsuite/newlib.wctype/wctype.exp: New file.
10934
10935 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
10936             Richard Sandiford  <rsandifo@redhat.com>
10937
10938         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
10939         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
10940         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
10941
10942 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10943
10944         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
10945         dummy programs.
10946
10947 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10948
10949         * libc/include/pthread.h: Define PTHREAD_CANCELED.
10950
10951 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10952
10953         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
10954         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
10955         compile with current GNU tools.
10956
10957 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
10958
10959         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
10960         the build library.
10961         * configure.in: Ditto.
10962         * Makefile.in: Regenerated.
10963         * configure: Ditto.
10964         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
10965         for specifying configured libraries/directories.
10966         * libc/sys/linux/configure.in: Ditto.
10967         * libc/sys/linux/Makefile.in: Regenerated.
10968         * libc/sys/linux/configure: Ditto.
10969
10970 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
10971
10972         * libc/include/reent.h: Update documentation at start of file.
10973
10974 2002-09-27  Jim Wilson  <wilson@redhat.com>
10975
10976         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
10977         the ctbp register.
10978
10979 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
10980
10981         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
10982         Also convert to EUCJP before using arrays.  For values not in
10983         the conversion arrays, return WEOF.
10984         * libc/ctype/jp2uc.h: Change from one array to a number of
10985         arrays to account for the fact that the originating table
10986         is not contiguous for the input values since some are invalid.
10987
10988 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
10989
10990         * libc/time/ctime.c: Fix prototype documentation.
10991
10992 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
10993
10994         * libc/include/sys/errno.h: Add EOVERFLOW.
10995
10996 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10997
10998         * libc/include/wctype.h: New file.
10999
11000 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
11001
11002         * libc/ctype/Makefile.am: Add new files.
11003         * libc/ctype/Makefile.in: Regenerated.
11004         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
11005         and wctrans functions to documentation index.
11006         * libc/ctype/iswalnum.c: New file.
11007         * libc/ctype/iswalpha.c: Ditto.
11008         * libc/ctype/iswblank.c: Ditto.
11009         * libc/ctype/iswcntrl.c: Ditto.
11010         * libc/ctype/iswctype.c: Ditto.
11011         * libc/ctype/iswdigit.c: Ditto.
11012         * libc/ctype/iswgraph.c: Ditto.
11013         * libc/ctype/iswlower.c: Ditto.
11014         * libc/ctype/iswprint.c: Ditto.
11015         * libc/ctype/iswpunct.c: Ditto.
11016         * libc/ctype/iswspace.c: Ditto.
11017         * libc/ctype/iswupper.c: Ditto.
11018         * libc/ctype/iswxdigit.c: Ditto.
11019         * libc/ctype/jp2uc.c: Ditto.
11020         * libc/ctype/jp2uc.h: Ditto.
11021         * libc/ctype/local.h: Ditto.
11022         * libc/ctype/towctrans.c: Ditto.
11023         * libc/ctype/towlower.c: Ditto.
11024         * libc/ctype/towupper.c: Ditto.
11025         * libc/ctype/utf8alpha.h: Ditto.
11026         * libc/ctype/utf8print.h: Ditto.
11027         * libc/ctype/utf8punct.h: Ditto.
11028         * libc/ctype/wctrans.c: Ditto.
11029         * libc/ctype/wctype.c: Ditto.
11030         * libc/locale/locale.c (__lc_ctype): New external array to
11031         replace static lc_ctype array.
11032         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
11033         rather than reentrancy structure's _current_locale field.
11034         * libc/stdlib/wctomb_r.c: Ditto.
11035
11036 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
11037
11038         * configure.host: Minor comment and formatting changes.
11039         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
11040         * libc/Makefile.in: Regenerated.
11041         * libc/include/sys/config.h: Minor format change.
11042
11043 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
11044
11045         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
11046         statement comment.
11047
11048 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
11049
11050         * libc/posix/opendir.c (opendir): Change code to check
11051         for HAVE_FCNTL before calling fcntl.
11052         * libc/search/hash.c (hash_open): Ditto.
11053         * libc/search/hash_page.c (open_tmp): Ditto.
11054         * libc/reent/Makefile.am: Add fcntlr.c.
11055         * libc/reent/Makefile.in: Regenerated.
11056         * libc/reent/fcntlr.c: New file.
11057         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
11058         instead of _fcntl when HAVE_FCNTL flag is set.
11059         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
11060         to see if _fcntl or _fcntl_r should be called.  If flag is not
11061         set, default to ENOSYS stub.
11062
11063 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
11064
11065         * libc/include/wchar.h (mbstate_t): Change protective flag to
11066         be _MBSTATE_T.
11067         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
11068         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
11069         for Cygwin.
11070         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
11071
11072 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
11073
11074         * acinclude.m4 (enable-newlib-mb): Change check to
11075         default newlib_mb variable to empty string rather than "no".
11076         * configure.host: Remove hard-coding of -DMB_CAPABLE for
11077         x86-linux and Cygwin.  Add code to check for newlib_mb
11078         being unset in which case set to "yes" for x86-linux and
11079         Cygwin.  Change check for newlib_mb being "yes" to allow
11080         for an empty string.
11081         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
11082         * newlib.hin (_MB_LEN_MAX): New define to configure.
11083         * aclocal.m4: Regenerated.
11084         * configure: Ditto.
11085         * libc/include/limits.h: New file.
11086         * libc/sys/linux/include/limits.h: Ditto.
11087         * doc/aclocal.m4 doc/configure libc/aclocal.m4
11088           libc/configure libc/machine/aclocal.m4
11089           libc/machine/configure libc/machine/a29k/aclocal.m4
11090           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11091           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11092           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11093           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11094           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
11095           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
11096           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11097           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11098           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11099           libc/machine/i386/configure libc/machine/i960/aclocal.m4
11100           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11101           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
11102           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
11103           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11104           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11105           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11106           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11107           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11108           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11109           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
11110           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11111           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
11112           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
11113           libc/machine/v850/configure libc/machine/w65/aclocal.m4
11114           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
11115           libc/machine/xscale/configure
11116           libc/machine/xstormy16/aclocal.m4
11117           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
11118           libc/machine/z8k/configure libc/sys/aclocal.m4
11119           libc/sys/configure libc/sys/a29khif/aclocal.m4
11120           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
11121           libc/sys/arc/configure libc/sys/arm/aclocal.m4
11122           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
11123           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
11124           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
11125           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
11126           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
11127           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
11128           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
11129           libc/sys/idt/configure libc/sys/linux/aclocal.m4
11130           libc/sys/linux/configure
11131           libc/sys/linux/machine/aclocal.m4
11132           libc/sys/linux/machine/configure
11133           libc/sys/linux/machine/i386/aclocal.m4
11134           libc/sys/linux/machine/i386/configure
11135           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
11136           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
11137           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
11138           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
11139           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
11140           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
11141           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
11142           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
11143           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
11144           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
11145           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
11146           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
11147           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
11148           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
11149           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
11150           libm/aclocal.m4 libm/configure: Regenerated.
11151
11152 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11153
11154         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
11155         code that clears the .bss section.
11156
11157 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11158
11159         * libc/include/sys/_types.h (_mbstate_t): Changed to use
11160         unsigned char internally.
11161         * libc/sys/linux/sys/_types.h: Ditto.
11162         * libc/include/sys/reent.h
11163         * libc/stdlib/mblen.c (mblen): Use function-specific state
11164         value from default reentrancy structure.
11165         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
11166         _mbtowc_r is less than 0, reset state __count value and
11167         return -1.
11168         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
11169         is NULL, use the function-specific pointer provided in the
11170         default reentrancy structure.
11171         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
11172         If input state pointer is NULL, use function-specific area
11173         provided in reentrancy structure.
11174         * libc/stdlib/mbsrtowcs.c: Ditto.
11175         * libc/stdlib/wcrtomb.c: Ditto.
11176         * libc/stdlib/wcsrtombs.c: Ditto.
11177         * libc/stdlib/mbstowcs.c: Reformat.
11178         * libc/stdlib/wcstombs.c: Ditto.
11179         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
11180         reset the state's __count value and return -1.
11181         * libc/stdlib/mbtowc.c: Ditto.
11182         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
11183         If number of bytes is used up before completing a valid multibyte
11184         character, return -2 and save the state.
11185         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
11186         and change some __count references to __state for clarity.
11187
11188 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
11189
11190         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
11191         is defined by <limits.h>.
11192
11193 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11194
11195         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
11196         defined.
11197
11198 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11199
11200         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
11201         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
11202         __WCHAR_MAX__ or 0x7fffffffu.
11203         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
11204         * libc/string/wcsncmp.c: Ditto.
11205
11206 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11207
11208         * libc/string/wcschr.c: Add include of <stddef.h>.
11209         * libc/string/wcspbrk.c: Ditto.
11210         * libc/string/wcsrchr.c: Ditto.
11211         * libc/string/wcsstr.c: Ditto.
11212
11213 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11214
11215         * libc/include/sys/_types.h (_flock_t): Added.
11216         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
11217         (__lock_try_acquire_recursive): Ditto.
11218         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
11219         _lock field.
11220         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
11221         field.
11222         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
11223         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
11224         * libc/sys/linux/include/time.h (struct timespec): Moved from
11225         <sys/types.h> and added check for __need_timespec flag so type
11226         can be defined by itself.
11227         * libc/sys/linux/sys/_types.h (_flock_t): New type.
11228         * libc/sys/linux/sys/types.h (struct timespec): Moved to
11229         <time.h>.
11230
11231 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
11232
11233         * libc/sys/linux/argp: New directory.
11234         * libc/sys/linux/getopt.c: New file.
11235         * libc/sys/linux/getopt1.c: New file.
11236         * libc/sys/linux/getoptlong.c: Remove file.
11237         * libc/sys/linux/include/argp.h: New file.
11238         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
11239         based on ELIX level.
11240         (SUBDIRS): Add argp_dir.
11241         (SUBLIBS): Add ARGP_LIB.
11242         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
11243         getopt_long.$(oext).
11244         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
11245
11246 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11247
11248         * libc/libc.texinfo: Add node reference to wide-character strings.
11249         * libc/string/wcstrings.tex: New file.
11250         * libc/string/strtok_r.c: Remove outdated advertising clause.
11251         * libc/string/Makefile.am (doc): Add wide-character string
11252         chapter to documentation.
11253         * libc/string/Makefile.in: Regenerated.
11254
11255 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11256
11257         * libc/include/wchar.h: Define NULL. Define WEOF more general
11258         way. Declare functions in newlib manner.
11259         * libc/stdlib/Makefile.am: Delete wmem*.c
11260         * libc/stdlib/Makefile.in: Regenerated.
11261         * libc/stdlib/wmemchr.c: Delete.
11262         * libc/stdlib/wmemcmp.c: Ditto.
11263         * libc/stdlib/wmemcpy.c: Ditto.
11264         * libc/stdlib/wmemmove.c: Ditto.
11265         * libc/stdlib/wmemset.c: Ditto.
11266         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
11267         * libc/string/Makefile.in: Regenerated.
11268         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
11269         * libc/string/wcschr.c: Ditto.
11270         * libc/string/wcscmp.c: Ditto.
11271         * libc/string/wcscpy.c: Ditto.
11272         * libc/string/wcscspn.c: Ditto.
11273         * libc/string/wcslcat.c: Ditto.
11274         * libc/string/wcslcpy.c: Ditto.
11275         * libc/string/wcslen.c: Ditto.
11276         * libc/string/wcsncat.c: Ditto.
11277         * libc/string/wcsncmp.c: Ditto.
11278         * libc/string/wcsncpy.c: Ditto.
11279         * libc/string/wcspbrk.c: Ditto.
11280         * libc/string/wcsrchr.c: Ditto.
11281         * libc/string/wcsspn.c: Ditto.
11282         * libc/string/wcsstr.c: Ditto.
11283         * libc/string/wmemchr.c: Ditto.
11284         * libc/string/wmemcmp.c: Ditto.
11285         * libc/string/wmemcpy.c: Ditto.
11286         * libc/string/wmemmove.c: Ditto.
11287         * libc/string/wmemset.c: Ditto.
11288
11289 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11290
11291         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
11292         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
11293         and is treated as if "C" was specified.
11294
11295 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11296
11297         * Makefile.am (install-data-local): Move install of build
11298         newlib.h after installing headers in libc/include so as to
11299         overwrite default newlib.h.
11300         * Makefile.in: Regenerated.
11301
11302 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11303
11304         * libc/include/newlib.h: New file for tools that use newlib
11305         headers but don't build newlib first (e.g. gcc).
11306
11307 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11308
11309         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
11310         * libc/stdlib/wmemcmp.c: Ditto.
11311         * libc/stdlib/wmemcpy.c: Ditto.
11312         * libc/stdlib/wmemmove.c: Ditto.
11313         * libc/stdlib/wmemset.c: Ditto.
11314
11315 2002-08-27  Egor Duda  <deo@logos-m.ru>
11316
11317         * libc/stdlib/wmemchr.c: New file.
11318         * libc/stdlib/wmemcmp.c: Ditto.
11319         * libc/stdlib/wmemcpy.c: Ditto.
11320         * libc/stdlib/wmemmove.c: Ditto.
11321         * libc/stdlib/wmemset.c: Ditto.
11322         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11323         * configure.host: Default -DMB_CAPABLE for cygwin.
11324         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11325         wmemmove() and wmemset().  Add include of <_ansi.h>.
11326         * libc/stdlib/Makefile.in: Regenerate.
11327
11328 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11329
11330         * configure.host: Remove _ELIX_LEVEL flag setting.
11331         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11332         (install-data-local): Install newlib.h.
11333         * Makefile.in: Regenerated.
11334         * aclocal.m4: Ditto.
11335         * configure: Ditto.
11336         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11337         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11338         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11339         In AC_OUTPUT statement, unset ac_file so multilib support does
11340         not use last ac_file temporary used in newlib.h configuration.
11341         * libc/include/_ansi.h: Include <newlib.h>.
11342         * newlib.hin: New template file for newlib.h.
11343         * stamp-h.in: New file.
11344
11345 2002-08-26  Wu Yongwei <adah@netstd.com>
11346
11347         * time.h (timezonevar): Change "#if" to "#ifdef".
11348
11349 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11350
11351         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11352         * Makefile.in: Regenerated.
11353         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11354         * aclocal.m4: Regenerated.
11355         * configure: Ditto.
11356         * configure.host: Add code to define _ELIX_LEVEL if
11357         --enable-newlib-elix-level option is used.
11358         * configure.in:
11359         * libc/aclocal.m4: Regenerated.
11360         * libc/configure: Ditto.
11361         * libc/argz/Makefile.am: Add EL/IX level checking.
11362         * libc/argz/Makefile.in: Regenerated.
11363         * libc/argz/dummy.c: New file.
11364         * libc/ctype/Makefile.am: Add EL/IX level checking.
11365         * libc/ctype/Makefile.in: Regenerated.
11366         * libc/locale/Makefile.am: Add EL/IX level checking.
11367         * libc/locale/Makefile.in: Regenerated.
11368         * libc/posix/Makefile.am: Add EL/IX level checking.
11369         * libc/posix/Makefile.in: Regenerated.
11370         * libc/posix/telldir.c: Add EL/IX level checking.
11371         * libc/reent/Makefile.am: Ditto.
11372         * libc/reent/fstat64r.c: Ditto.
11373         * libc/reent/lseek64r.c: Ditto.
11374         * libc/reent/open64r.c: Ditto.
11375         * libc/reent/Makefile.in: Regenerated.
11376         * libc/search/Makefile.am: Add EL/IX level checking.
11377         * libc/search/Makefile.in: Regenerated.
11378         * libc/stdio/Makefile.am: Add EL/IX level checking.
11379         * libc/stdio/Makefile.in: Regenerated.
11380         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11381         * libc/stdio64/Makefile.in: Regenerated.
11382         * libc/stdio64/dummy.c: New file.
11383         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11384         after first include.
11385         * libc/stdio64/fopen64.c: Ditto.
11386         * libc/stdio64/freopen64.c: Ditto.
11387         * libc/stdio64/fseeko64.c: Ditto.
11388         * libc/stdio64/fsetpos64.c: Ditto.
11389         * libc/stdio64/ftello64.c: Ditto.
11390         * libc/stdio64/tmpfile64.c: Ditto.
11391         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11392         * libc/stdlib/Makefile.in: Regenerated.
11393         * libc/stdlib/mstats.c: Add EL/IX level checking.
11394         * libc/string/Makefile.am: Ditto.
11395         * libc/string/Makefile.in: Regenerated.
11396         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11397         * libc/sys/linux/Makefile.in: Regenerated.
11398         * libc/sys/linux/aclocal.m4: Ditto.
11399         * libc/sys/linux/configure: Ditto.
11400         * libc/sys/linux/aio.c: Add EL/IX level checking.
11401         * libc/sys/linux/ftok.c: Ditto.
11402         * libc/sys/linux/getdate.c: Ditto.
11403         * libc/sys/linux/ids.c: Ditto.
11404         * libc/sys/linux/inode.c: Ditto.
11405         * libc/sys/linux/io.c: Ditto.
11406         * libc/sys/linux/process.c: Ditto.
11407         * libc/sys/linux/resource.c: Ditto.
11408         * libc/sys/linux/sched.c: Ditto.
11409         * libc/sys/linux/sig.c: Ditto.
11410         * libc/sys/linux/termios.c: Ditto.
11411         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11412         __libc___waitpid weak aliases.
11413         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11414         that generate the code for a syscall, but do not create a
11415         weak alias.
11416         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11417         * libc/syscalls/Makefile.in: Regenerated.
11418         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11419         functionality.
11420         * libc/unix/Makefile.am: Add EL/IX level checking.
11421         * libc/unix/Makefile.in: Regenerated.
11422
11423 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11424
11425         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11426         wrapper macros to standard malloc functions.
11427         * libc/include/stdlib.h: Ditto.
11428         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11429
11430 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11431
11432         * libc/include/langinfo.h: New file.
11433         * libc/include/wchar.h: Likewise.
11434         * libc/include/sys/syslimits.h: Likewise.
11435         * libc/locale/fix_grouping.c: Likewise.
11436         * libc/locale/ldpart.c: Likewise.
11437         * libc/locale/ldpart.h: Likewise.
11438         * libc/locale/lmessages.c: Likewise.
11439         * libc/locale/lmessages.h: Likewise.
11440         * libc/locale/lmonetary.c: Likewise.
11441         * libc/locale/lmonetary.h: Likewise.
11442         * libc/locale/lnumeric.c: Likewise.
11443         * libc/locale/lnumeric.h: Likewise.
11444         * libc/locale/nl_langinfo.3: Likewise.
11445         * libc/locale/nl_langinfo.c: Likewise.
11446         * libc/locale/timelocal.c: Likewise.
11447         * libc/locale/timelocal.h: Likewise.
11448         * libc/stdlib/btowc.c: Likewise.
11449         * libc/stdlib/mbrlen.c: Likewise.
11450         * libc/stdlib/mbrtowc.c: Likewise.
11451         * libc/stdlib/mbsinit.c: Likewise.
11452         * libc/stdlib/mbsrtowcs.c: Likewise.
11453         * libc/stdlib/wcrtomb.c: Likewise.
11454         * libc/stdlib/wcsrtombs.c: Likewise.
11455         * libc/stdlib/wctob.c: Likewise.
11456         * libc/sys/linux/prof-freq.c: Likewise.
11457         * libc/sys/linux/profile.c: Likewise.
11458         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11459         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11460         * libc/include/stdlib.h: Change re-entrant functions to take
11461         mbstate_t pointers.
11462         * libc/include/sys/_types.h: Define _mbstate_t.
11463         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11464         * libc/include/sys/errno.h (EILSEQ): New error code.
11465         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11466         structure to use mbstate_t.
11467         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11468         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11469         * libc/machine/powerpc/vfscanf.c: Likewise.
11470         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11471         * libc/stdio/vfprintf.c: Likewise.
11472         * libc/stdio/vfscanf.c: Likewise.
11473         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11474         * libc/stdlib/mblen.c: Use mbstate_t.
11475         * libc/stdlib/mblen_r.c: Likewise.
11476         * libc/stdlib/mbstowcs.c: Likewise.
11477         * libc/stdlib/mbstowcs_r.c: Likewise.
11478         * libc/stdlib/mbtowc.c: Likewise.
11479         * libc/stdlib/mbtowc_r.c: Likewise.
11480         * libc/stdlib/wcstombs.c: Likewise.
11481         * libc/stdlib/wcstombs_r.c: Likewise.
11482         * libc/stdlib/wctomb_r.c: Likewise.
11483         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11484         profile.c.
11485         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11486         dl-procinfo.c.
11487         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11488         * libc/sys/linux/sys/types.h (off_t): Define type.
11489         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11490         to C-UTF-8.
11491         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11492
11493 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11494
11495         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11496           (AlignPage): Continue macro on next line.
11497
11498 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11499
11500         * libc/sys/linux/include/pthread.h: New file.
11501
11502 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11503
11504         * libc/include/sys/types.h: Support __need_inttypes macro
11505         that only sets the __intxx and __uintxx types.
11506         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11507         to get mprec.h.
11508         * libc/machine/powerpc/Makefile.in: Regenerated.
11509         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11510         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11511         redundant fixed-point conversion prototypes.
11512         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11513         after setting __need_inttypes.
11514
11515 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11516
11517         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11518
11519 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11520
11521         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11522         _LONG_DOUBLE to double.
11523
11524 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11525
11526         * configure.host: Add powerpc*-*-eabispe* configuration.
11527         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11528         * libc/machine/powerpc/atosfix32.c: Ditto.
11529         * libc/machine/powerpc/atosfix64.c: Ditto.
11530         * libc/machine/powerpc/atoufix16.c: Ditto.
11531         * libc/machine/powerpc/atoufix32.c: Ditto.
11532         * libc/machine/powerpc/atoufix64.c: Ditto.
11533         * libc/machine/powerpc/fix64.h: Ditto.
11534         * libc/machine/powerpc/simdldtoa.c: Ditto.
11535         * libc/machine/powerpc/strtosfix16.c: Ditto.
11536         * libc/machine/powerpc/strtosfix32.c: Ditto.
11537         * libc/machine/powerpc/strtosfix64.c: Ditto.
11538         * libc/machine/powerpc/strtoufix16.c: Ditto.
11539         * libc/machine/powerpc/strtoufix32.c: Ditto.
11540         * libc/machine/powerpc/strtoufix64.c: Ditto.
11541         * libc/machine/powerpc/ufix64toa.c: Ditto.
11542         * libc/machine/powerpc/configure.in: Add check for
11543         powerpc*-eabispe and add fixed-point conversion functions.
11544         * libc/machine/powerpc/configure: Regenerated.
11545         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
11546         %r and %R format specifiers which handle fixed-point data.
11547         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
11548         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
11549         function prototypes.
11550
11551 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11552
11553         *  Makefile.am: Move cmath stuff into libc/sys/linux.
11554         *  Makefile.in: Regenerated.
11555         *  configure.host: Default -DMB_CAPABLE for x86-linux.
11556         *  libc/include/reent.h: Define _sbrk to take signed int argument.
11557         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
11558         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
11559         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
11560         locale for LC_CTYPE and LC_MESSAGES.
11561         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
11562         *  libc/sys/linux/brk.c: Change sbrk prototype.
11563         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
11564         include <sys/features.h>.
11565         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
11566         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
11567         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
11568         with a few local additions.
11569         *  libc/sys/linux/sys/features.h: New file.
11570         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
11571         to take signed argument.
11572         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
11573         prototypes to take signed size argument.
11574
11575 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
11576
11577         * libc/sys/linux/cmath: New directory.
11578         * libc/sys/linux/include/cmathcalls.h: New file.
11579         * libc/sys/linux/include/complex.h: New file.
11580         * libc/sys/linux/machine/i386/huge_val.h: New file
11581         * libm/math/w_sincos.c: New file
11582         * libm/math/wf_sincos.c: New file
11583         * libm/mathfp/s_sincos.c: New file
11584         * libm/mathfp/sf_sincos.c: New file
11585         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
11586         * libc/include/math.h: Add sincos and sincosf declarations.
11587         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
11588         (SUBLIBS): Likewise.
11589         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
11590         * libm/math/Makefile.am (src): Add w_sincos.c.
11591         (fsrc): Add wf_sincos.c.
11592         * libm/mathfp/Makefile.am (src): Add s_sincos.c
11593         (fsrc): Add sf_sincos.c.
11594
11595 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
11596
11597         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
11598         Declare as extern chars and use the address operator to
11599         properly use values set in linker script.
11600
11601 2002-08-09  Jason Tishler  <jason@tishler.net>
11602
11603         * libc/stdlib/mallocr.c: Include <limits.h>.
11604         (request2size): Change macro to do
11605         unsigned long comparisons and avoid signed overflow.
11606         (mALLOc): Add overflow check for the number of bytes to allocate.
11607         (rEALLOc): Ditto.
11608
11609 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
11610
11611         * configure.host: Add check for --enable-newlib-io-pos-args
11612         and define WANT_IO_POS_ARGS flag if enabled.  Define
11613         the flag by default for x86-linux configurations.
11614         * configure.in: Add support for --enable-newlib-io-pos-args.
11615         * libc/configure.in: Ditto.
11616         * configure: Regenerated.
11617         * libc/configure: Ditto.
11618         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
11619         vfprintf.c and vfiprintf.c.
11620         * libc/stdio/Makefile.in: Regenerated.
11621         * libc/stdio/vfprintf.c: Add positional argument support that
11622         is enabled by compiling with -DWANT_IO_POS_ARGS.
11623
11624 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
11625
11626         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
11627         based on __mips_soft_float rather than __mips64.
11628         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
11629         of both 32-bit and 64-bit code.
11630
11631 2002-08-04  Christopher Faylor  <cgf@redhat.com>
11632
11633         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
11634         arguments for popen to match similar functionality in fopen.
11635
11636 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
11637
11638         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
11639
11640 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
11641
11642         * libc/sys/linux/Makefile.am: Add aio64.c.
11643         * libc/sys/linux/Makefile.in: Regenerated.
11644         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
11645         * libc/sys/linux/aio64.c: New file.
11646
11647 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11648
11649         *  libc/include/sys/param.h (MAX, MIN): Added macros.
11650         *  libc/sys/linux/Makefile.am: Add new files.
11651         *  libc/sys/linux/Makefile.in: Regenerated.
11652         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11653         *  libc/sys/linux/inode.c (fchdir): Added syscall.
11654         *  libc/sys/linux/ftw.c: New file.
11655         *  libc/sys/linux/ftw64.c: Ditto.
11656         *  libc/sys/linux/getwd.c: Ditto.
11657         *  libc/sys/linux/scandir64.c: Ditto.
11658         *  libc/sys/linux/strverscmp.c: Ditto.
11659         *  libc/sys/linux/versionsort.c: Ditto.
11660         *  libc/sys/linux/versionsort64.c: Ditto.
11661
11662 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11663
11664         * libc/string/strings.tex: Fix typo for memccpy.
11665
11666 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11667
11668         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
11669         * libc/sys/linux/sys/types.h (off64_t): Definition added.
11670
11671 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11672
11673         * libc/sys/linux/Makefile.am: Add fclean.c.
11674         * libc/sys/linux/Makefile.in: Regenerated.
11675         * libc/sys/linux/fclean.c: New file.
11676
11677 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11678
11679         * libc/sys/linux/Makefile.am: Add confstr.c.
11680         * libc/sys/linux/Makefile.in: Regenerated.
11681         * libc/sys/linux/confstr.c: New file.
11682         * libc/sys/linux/confstr.h: Ditto.
11683         * libc/sys/linux/sys/unistd.h: Include <features.h> and
11684         <bits/environments.h>.
11685
11686 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11687
11688         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
11689         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
11690         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
11691         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
11692         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
11693         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
11694
11695 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11696
11697         * libc/sys/linux/Makefile.am: Add new files.
11698         * libc/sys/linux/Makefile.in: Regenerated.
11699         * libc/sys/linux/fstab.c: New file.
11700         * libc/sys/linux/fstatvfs.c: Ditto.
11701         * libc/sys/linux/fstatvfs64.c: Ditto.
11702         * libc/sys/linux/internal_statvfs.c: Ditto.
11703         * libc/sys/linux/mntent.c: Ditto.
11704         * libc/sys/linux/mntent_r.c: Ditto.
11705         * libc/sys/linux/statvfs.c: Ditto.
11706         * libc/sys/linux/statvfs64.c: Ditto.
11707         * libc/sys/linux/include/paths.h: Ditto.
11708         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
11709         with double-underscore weak-aliases.
11710         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11711
11712 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11713
11714         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
11715         to use _sig_func_ptr type casted constants.
11716         (_sig_func_ptr): Typedef moved to sys/signal.h.
11717         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
11718         For __rtems, use POSIX definition, otherwise default to ANSI.
11719         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
11720
11721 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
11722
11723         * configure.host: Recognize m6811-elf and m6812-elf targets.
11724         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
11725         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
11726         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
11727         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
11728         according to __INT_MAX__.
11729         (_POINTER_INT): Define to short.
11730         * libc/machine/m68hc11/Makefile.am: New file.
11731         * libc/machine/m68hc11/Makefile.in: New file.
11732         * libc/machine/m68hc11/configure.in: New file.
11733         * libc/machine/m68hc11/configure: New file.
11734         * libc/machine/m68hc11/aclocal.m4: New file.
11735         * libc/machine/m68hc11/setjmp.S: New file.
11736
11737 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11738
11739         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
11740         prototypes.
11741         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
11742         * libc/stdlib/Makefile.in: Regenerated.
11743         * libc/stdlib/strdup.c: Removed.
11744         * libc/stdlib/strdup_r.c: Removed.
11745         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
11746         mempcpy.c, strndup.c, and strndup_r.c.
11747         * libc/string/Makefile.in: Regenerated.
11748         * libc/string/memccpy.c: New file.
11749         * libc/string/mempcpy.c: Ditto.
11750         * libc/string/strndup.c: Ditto.
11751         * libc/string/strndup_r.c: Ditto.
11752         * libc/string/strdup.c: New file moved from stdlib.
11753         * libc/string/strdup_r.c: Ditto.
11754         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
11755
11756 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11757
11758         * libc/include/stdio.h: Move fcloseall prototype within
11759         #ifndef _REENT_ONLY section.
11760         * libc/sys/linux/Makefile.am: Add new files.
11761         * libc/sys/linux/Makefile.in: Regenerated.
11762         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
11763         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
11764         * libc/sys/linux/sys/types.h: Add ino64_t type.
11765         * libc/sys/linux/ctermid.c: New file.
11766         * libc/sys/linux/ttyname_r.c: Ditto.
11767         * libc/sys/linux/readdir64.c: Ditto.
11768
11769 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11770
11771         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
11772         * libc/stdio/Makefile.am: Added fcloseall.c support.
11773         * libc/stdio/Makefile.in: Regenerated.
11774         * libc/stdio/fcloseall.c: New file.
11775         * libc/stdio64/Makefile.am: Remove missing .def references.
11776         * libc/stdio64/Makefile.in: Regenerated.
11777
11778 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11779
11780         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
11781         * libc/machine/powerpc/times.c: New file.
11782         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
11783         * libc/machine/powerpc/Makefile.in: Regenerated.
11784
11785 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
11786
11787         * libc/machine/powerpc/time.c: New file.
11788         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
11789         time.c.
11790         * libc/machine/powerpc/Makefile.in: Regenerated.
11791
11792 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11793
11794         * libc/libc.texinfo: Change copyright notices to Red Hat from
11795         Cygnus.
11796         * libm/libm.texinfo: Likewise.
11797         * README: Change docs URL to
11798         http://sources.redhat.com/newlib/docs.html.
11799
11800 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11801
11802         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
11803         * libc/sys/linux/Makefile.in: Regenerated.
11804         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
11805         * libc/sys/linux/io.c: Add ftruncate syscall.
11806         * libc/sys/linux/fpathconf.c: New file.
11807         * libc/sys/linux/pathconf.c: Ditto.
11808         * libc/sys/linux/linux_fsinfo.h: Ditto.
11809         * libc/sys/linux/sys/unistd.h: Ditto.
11810
11811 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11812
11813         * libc/stdio64/Makefile.am: Remove missing files.
11814         * libc/stdio64/Makefile.in: Regenerated.
11815
11816 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11817
11818         * libc/include/sys/config.h[__i386__][__linux__]: Define
11819         _LARGE64FILE_SOURCE to 1.
11820         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
11821         * libc/sys/linux/Makefile.in: Regenerated.
11822         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
11823         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
11824         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
11825         of <linux/resource.h>.
11826         * libc/sys/linux/getrlimit64.c: New file.
11827         * libc/sys/linux/setrlimit64.c: Ditto.
11828
11829 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11830
11831         * libc/argz/argz_replace.c: Include buf_findstr.h.
11832         * libc/argz/buf_findstr.c: Likewise.
11833         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
11834         value to (char *).
11835         * libc/argz/envz_get.c: Likewise.
11836         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
11837         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
11838         * libc/stdlib/getsubopt.3: New file.
11839         * libc/stdlib/getsubopt.c: New file.
11840         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
11841         Change esp to ebp.
11842
11843 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
11844
11845         * configure.host(stdio64_dir): New setting that is used to
11846         enable building of new stdio64 directory.
11847         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
11848         large files.
11849         (stmp-stdio64,stdio64.texi): New targets to optionally add in
11850         stdio64 info to info files.
11851         * libc/Makefile.in: Regenerated.
11852         * libc/configure: Ditto.
11853         * libc/configure.in: Add configuration variables that are set
11854         when stdio64 is selected as subdir in configure.host.
11855         * libc/libc.texinfo: Add optional menu item for Stdio64, based
11856         on whether STDIO64 flag is set or not.
11857         * libc/sys.tex: Add optional stdio64 syscalls based on whether
11858         STDIO64 flag is set or not.
11859         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
11860         _r sycall routines.
11861         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
11862         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
11863         (__SL64): New file flag indicating file is opened via fopen64.
11864         * libc/include/sys/_types.h(_off64_t): Added.
11865         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
11866         * libc/include/sys/reent.h(struct __sFILE64): New file structure
11867         for 64-bit offset large file support.
11868         (__FILE): New intermediate type either set to struct __sFILE64 or
11869         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
11870         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
11871         * libc/reent/Makefile.in: Regenerated.
11872         * libc/reent/fstat64r.c: New file.
11873         * libc/reent/lseek64r.c: Ditto.
11874         * libc/reent/open64r.c: Ditto.
11875         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
11876         based on whether STDIO64 flag is set.
11877         * libc/stdio/stdio.tex: Add blank line.
11878         * libc/stdio64/Makefile.am: New file.
11879         * libc/stdio64/Makefile.in: Ditto.
11880         * libc/stdio64/fgetpos64.c: Ditto.
11881         * libc/stdio64/fopen64.: Ditto.
11882         * libc/stdio64/freopen64.c: Ditto.
11883         * libc/stdio64/fseeko64.c: Ditto.
11884         * libc/stdio64/fsetpos64.c: Ditto.
11885         * libc/stdio64/ftello64.c: Ditto.
11886         * libc/stdio64/local64.h: Ditto.
11887         * libc/stdio64/stdio64.c: Ditto.
11888         * libc/stdio64/stdio64.tex: Ditto.
11889         * libc/stdio64/tmpfile64.c: Ditto.
11890         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
11891         open64.
11892
11893 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
11894
11895         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
11896         if LIBC_EXTRA_LIB is present.
11897         * libc/Makefile.in: Regenerated.
11898         * libc/libc.texinfo: Add blank line.
11899         * libc/argz/Makefile.am: Add doc support.
11900         * libc/search/Makefile.am: Ditto.
11901         * libc/argz/Makefile.in: Regenerated.
11902         * libc/search/Makefile.in: Ditto.
11903         * libc/misc/misc.tex: Add ffs function.
11904         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
11905
11906 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11907
11908         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
11909         definition that was removed in error.
11910
11911 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11912
11913         * libc/include/machine/ieeefp.h: Change to only define
11914         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
11915         __IEEE_LITTLE_ENDIAN must be defined for each platform).
11916         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
11917         remove redundant floating point definitions.
11918
11919 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11920
11921         * libc/sys/linux/callocr.c: Fix so code references
11922         calloc.
11923
11924 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11925
11926         * libc/sys/linux/Makefile.am: Add new files.
11927         * libc/sys/linux/Makefile.in: Regenerated.
11928         * libc/sys/linux/bp-sym.h: Moved to include directory.
11929         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
11930         * libc/sys/linux/inode.c: Set _LIBC to 1.
11931         * libc/sys/linux/mq_close.c: Ditto.
11932         * libc/sys/linux/mq_getattr.c: Ditto.
11933         * libc/sys/linux/mq_open.c: Ditto.
11934         * libc/sys/linux/mq_receive.c: Ditto.
11935         * libc/sys/linux/mq_send.c: Ditto.
11936         * libc/sys/linux/mq_setattr.c: Ditto.
11937         * libc/sys/linux/mq_unlink.c: Ditto.
11938         * libc/sys/linux/calloc.c: New file.
11939         * libc/sys/linux/callocr.c: Ditto.
11940         * libc/sys/linux/cfreer.c: Ditto.
11941         * libc/sys/linux/config.h: Ditto.
11942         * libc/sys/linux/free.c: Ditto.
11943         * libc/sys/linux/freer.c: Ditto.
11944         * libc/sys/linux/msize.c: Ditto.
11945         * libc/sys/linux/msizer.c: Ditto.
11946         * libc/sys/linux/mstats.c: Ditto.
11947         * libc/sys/linux/mtrim.c: Ditto.
11948         * libc/sys/linux/mtrimr.c: Ditto.
11949         * libc/sys/linux/pvallocr.c: Ditto.
11950         * libc/sys/linux/realloc.c: Ditto.
11951         * libc/sys/linux/reallocr.c: Ditto.
11952         * libc/sys/linux/thread-m.h: Ditto.
11953         * libc/sys/linux/vallocr.c: Ditto.
11954         * libc/sys/linux/bp-checks.h: Ditto.
11955         * libc/sys/linux/libc-symbols.h: Ditto.
11956         * libc/sys/linux/libc-tsd.h: Ditto.
11957         * libc/sys/linux/libintl.h: Ditto.
11958         * libc/sys/linux/malign.c: Ditto.
11959         * libc/sys/linux/malignr.c: Ditto.
11960         * libc/sys/linux/mallinfor.c: Ditto.
11961         * libc/sys/linux/malloc.c: Ditto.
11962         * libc/sys/linux/mallocr.c: Ditto.
11963         * libc/sys/linux/malloptr.c: Ditto.
11964         * libc/sys/linux/mallstatsr.c: Ditto.
11965         * libc/sys/linux/mcheck.c: Ditto.
11966         * libc/sys/linux/mhooks.h: Ditto.
11967         * libc/sys/linux/include/bp-sym.h: Ditto.
11968         * libc/sys/linux/include/malloc.h: Ditto.
11969         * libc/sys/linux/include/mcheck.h: Ditto.
11970         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
11971         getpagesize.c.
11972         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
11973         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
11974         * libc/sys/linux/machine/i386/getpagesize.c: New file.
11975         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
11976         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11977         * libc/sys/linux/machine/i386/sysdep.h: New file.
11978         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
11979         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
11980         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
11981
11982 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
11983
11984         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
11985         instead of <asm/siginfo.h>.
11986         * libc/sys/linux/sys/signal.h: Change to include various linux
11987         <bits/xxx.h> header files, rather than <linux/signal.h> so as
11988         to work with multiple releases of glibc header files.
11989
11990 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
11991
11992         * testsuite/newlib.search/hsearchtest.c: New file to test
11993         newlib/libc/search.
11994         * testsuite/newlib.search/hsearchtest.exp: Likewise.
11995
11996 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
11997
11998         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
11999         a terminal.
12000         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
12001
12002 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
12003
12004         * libc/include/math.h (MAXFLOAT): Added.
12005
12006 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
12007
12008         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
12009         Make strcmp.S unconditional.
12010         * libc/machine/sh/Makefile.in: Regenerate.
12011         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
12012         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
12013         for SHcompact.
12014
12015 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12016
12017         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
12018         define before including <sys/lock.h>.
12019
12020 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12021
12022         * libc/include/utime.h: Add include of <_ansi.h>.
12023         * libc/sys/linux/Makefile.am: Add utimes.c.
12024         * libc/sys/linux/Makefile.in: Regenerated.
12025         * libc/sys/linux/inode.c(__umask): New static routine.
12026         (umask): Written to use __umask and attempt to thread lock.
12027         (getumask): New function written to use __umask and thread lock.
12028         * libc/sys/linux/utimes.c: New file.
12029         * libc/sys/linux/sys/time.h: Fix utimes prototype.
12030         * libc/sys/linux/sys/utime.h: New file.
12031
12032 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
12033
12034         * libtool.m4: New file.
12035         * libc/sys/linux/process.c: Implement vfork in terms of fork,
12036         rather than as a syscall.
12037
12038 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12039
12040         * libc/include/stdio.h: Add new prototypes.
12041         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
12042         * libc/stdio/Makefile.in: Regenerated.
12043         * libc/stdio/fseek.c: Add fseeko documentation.
12044         * libc/stdio/ftell.c: Add ftello documentation.
12045         * libc/stdio/fseeko.c: New file.
12046         * libc/stdio/ftello.c: New file.
12047
12048 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12049
12050         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
12051         * libc/stdio/Makefile.in: Regenerated.
12052         * libc/stdio/asprintf.c: New file.
12053         * libc/stdio/vasprintf.c: Ditto.
12054         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
12055         the buffer for asprintf support.
12056         * libc/stdio/sprintf.c: Add asprintf documentation.
12057         * libc/stdio/vfprintf.c: Add vasprintf documentation.
12058         * libc/include/stdio.h: Add new prototypes.
12059
12060 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
12061
12062         * libc/search/hcreate.c: Remove advertising clause from license.
12063         * libc/search/hcreate_r.c: Likewise.
12064
12065 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
12066
12067         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
12068         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
12069         Check that one of them is defined and error out if not.
12070         Add any platforms defined in <machine/ieeefp.h> that are missing.
12071         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
12072         (DB_LITTLE_ENDIAN): New defines.
12073         * libc/search/hash.c: Replace all incorrect checks for
12074         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
12075         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
12076         * libc/search/hash_page.c: Likewise.
12077
12078 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
12079
12080         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
12081
12082 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
12083
12084         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
12085         * libc/include/time.h: Same.
12086         * libc/include/string.h: Same.
12087         * libc/include/stdlib.h: Same.
12088         * libc/include/signal.h: Same.
12089         * libc/include/setjmp.h: Same.
12090         * libc/include/math.h: Same.
12091         * libc/include/locale.h: Same.
12092         * libc/include/ctype.h: Same.
12093         * libc/include/machine/setjmp.h: Same.
12094         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
12095         (_END_STD_C): Add.
12096
12097 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12098
12099         * libc/include/sys/_types.h: Define _ssize_t as int if int is
12100         32-bits, otherwise define it as long.
12101         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
12102         and define ssize_t as _ssize_t.
12103         * libc/reent/readr.c: Change return type to _ssize_t.
12104         * libc/reent/writer.c: Ditto.
12105         * libc/sys/linux/Makefile.am: Add aio.c.
12106         * libc/sys/linux/Makefile.in: Regenerated.
12107         * libc/sys/linux/aio.c: New file.
12108         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
12109         * libm/common/fdlibm.h: Undef __P before defining it.
12110
12111 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
12112
12113         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
12114         exponent_is_even_int variable.  Handle case where x is
12115         negative, and y is an odd integer.
12116         * libm/mathfp/sf_pow.c (powf): Likewise.
12117
12118         * libm/mathfp/er_lgamma.c: Remove __kernel references.
12119         * libm/mathfp/erf_lgamma.c: Likewise.
12120         * libm/mathfp/s_tgamma.c: Likewise.
12121         * libm/mathfp/sf_tgamma.c: Likewise.
12122
12123 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12124
12125         * libc/sys/linux/Makefile.am: Add new clock routines.
12126         * libc/sys/linux/Makefile.in: Regenerated.
12127         * libc/sys/linux/clock_getres.c: New file.
12128         * libc/sys/linux/clock_gettime.c: Ditto.
12129         * libc/sys/linux/clock_settime.c: Ditto.
12130         * libc/sys/linux/hp-timing.h: Ditto.
12131         * libc/sys/linux/libc-internal.h: Ditto.
12132         * libc/sys/linux/sysconf.c: Fix typo.
12133         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
12134         * libc/sys/linux/machine/hp-timing.h: New file.
12135         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
12136         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12137         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
12138         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
12139         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
12140         * libc/sys/linux/sys/linux_time.h: New file.
12141         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
12142         replace with <sys/linux_time.h>.
12143
12144 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
12145
12146         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
12147
12148 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12149
12150         * libc/sys/linux/Makefile.am: Consolidate additional items under
12151         ADD_OBJS.
12152         * libc/sys/linux/Makefile.in: Regenerated.
12153
12154 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12155
12156         * libc/sys/linux/sethostname.c: New file.
12157         * libc/sys/linux/Makefile.am: Add sethostname.c support.
12158         * libc/sys/linux/Makefile.in: Regenerated.
12159
12160 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12161
12162         * libc/search/db_local.h: New file.
12163         * libc/include/db.h: Remove.
12164         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
12165         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
12166         "db_local.h".
12167         * libc/search/hash_bigkey.c: Likewise.
12168         * libc/search/hash_buf.c: Likewise.
12169         * libc/search/hash_func.c: Likewise.
12170         * libc/search/hash_log2.c: Likewise.
12171         * libc/search/hash_page.c: Likewise.
12172
12173 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
12174
12175         * libc/machine/sh/strlen.S: New file.
12176         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
12177         * libc/machine/sh/Makefile.am: Regenerate.
12178
12179 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12180
12181         * libc/sys/linux/gethostname.c: Change name to __gethostname and
12182         add gethostname alias.
12183
12184 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12185
12186         * libc/include/math.h: Remove <sys/types.h>.
12187         (__dmath): Use __ULong instead of __uint32_t.
12188         * libc/include/sys/reent.h: If long or int is not 32-bits,
12189         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
12190         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
12191         * libm/common/fdlibm.h: Ditto.
12192
12193 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12194
12195         * libc/include/ndbm.h: Remove.
12196         * libc/search/ndbm.c: Remove.
12197
12198 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
12199
12200         * libc/stdio/fseek.c (fseek): Fix braces.
12201
12202 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
12203
12204         * libc/time/strftime.c (strftime): Add %e format specifier.
12205
12206 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
12207
12208         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
12209         previously defined.
12210
12211 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
12212
12213         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
12214         (BYTE_ORDER): Define as appropriate for the target.
12215
12216 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12217
12218         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
12219         to _ssize_t.
12220         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
12221
12222 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12223
12224         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
12225         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
12226         [HAVE_GETDATE](getdate_err): New error code.
12227         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
12228         * libc/stdio/Makefile.in: Regenerated.
12229         * libc/stdio/getdelim.c: New file.
12230         * libc/stdio/getline.c: Ditto.
12231         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
12232         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
12233         * libc/sys/linux/Makefile.in: Regenerated.
12234         * libc/sys/linux/getdate.c: New file.
12235         * libc/sys/linux/getdate_err.c: Ditto.
12236         * libc/sys/linux/ntp_gettime.c: Ditto.
12237         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
12238         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
12239
12240 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12241
12242         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
12243         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
12244         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
12245         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
12246         * libc/include/sys/param.h: Remove i386 case which is handled
12247         by default case.
12248         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
12249         definitions in case they are already defined.
12250         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
12251         _IEEE_LITTLE_ENDIAN flags.
12252         * libc/include/sys/reent.h: Change __uint32_t references to
12253         use _ULong instead.
12254         (_REENT_GETDATE_REENT_P): New macro.
12255         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
12256         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
12257         * libc/search/hash.h: Add default setting of BYTE_ORDER,
12258         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
12259         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
12260         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
12261         pid_t, off_t, loff_t, caddr_t, and daddr_t type
12262         definitions which are done by subsequent glibc headers.
12263         Add macro definitions to prevent subsequent header files from
12264         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
12265         intptr_t to after glibc definitions of types they are based on.
12266
12267 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12268
12269         * libc/include/errno.h: Protect from multiple inclusion.
12270
12271 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
12272
12273         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
12274
12275 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
12276
12277         * Makefile.am (LIB_OBJECTLISTS): Add
12278         libc/search/objectlist.awk.in.
12279         * libc/Makefile.am (SUBDIRS): Add search.
12280         (SUBLIBS): Add search/libsearch.la.
12281         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12282         * libc/search: New directory.
12283         * libc/search/Makefile.am: New file.
12284         * libc/search/extern.h: New file.
12285         * libc/search/hash.c: New file.
12286         * libc/search/hash.h: New file.
12287         * libc/search/hash_bigkey.c: New file.
12288         * libc/search/hash_buf.c: New file.
12289         * libc/search/hash_func.c: New file.
12290         * libc/search/hash_log2.c: New file.
12291         * libc/search/hash_page.c: New file.
12292         * libc/search/hcreate.3: New file.
12293         * libc/search/hcreate.c: New file.
12294         * libc/search/hcreate_r.c: New file.
12295         * libc/search/ndbm.c: New file.
12296         * libc/search/page.h: New file.
12297         * libc/search/tdelete.c: New file.
12298         * libc/search/tdestroy.c: New file.
12299         * libc/search/tfind.c: New file.
12300         * libc/search/tsearch.3: New file.
12301         * libc/search/tsearch.c: New file.
12302         * libc/search/twalk.c: New file.
12303         * libc/include/db.h: New file.
12304         * libc/include/ndbm.h: New file.
12305         * libc/include/search.h: New file.
12306         * libc/include/sys/queue.h: New file.
12307         * libc/include/sys/cdefs.h: New file.
12308         * libc/include/sys/param.h
12309         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
12310         LITTLE_ENDIAN or BIG_ENDIAN.
12311         * libc/include/sys/errno.h (EFTYPE): New macro.
12312         * libc/search/bsearch.c: Move from libc/stdlib.
12313         * libc/search/qsort.c: Likewise.
12314         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12315         qsort.c.
12316         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12317         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12318
12319 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12320
12321         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12322         ipc routines, and ftok.
12323         * libc/sys/linux/Makefile.in: Regenerated.
12324         * libc/sys/linux/ftok.c: New file.
12325         * libc/sys/linux/ipc.c: Ditto.
12326         * libc/sys/linux/mq_close.c: Ditto.
12327         * libc/sys/linux/mq_getattr.c: Ditto.
12328         * libc/sys/linux/mq_notify.c: Ditto.
12329         * libc/sys/linux/mq_open.c: Ditto.
12330         * libc/sys/linux/mq_receive.c: Ditto.
12331         * libc/sys/linux/mq_send.c: Ditto.
12332         * libc/sys/linux/mq_setattr.c: Ditto.
12333         * libc/sys/linux/mq_unlink.c: Ditto.
12334         * libc/sys/linux/mqlocal.h: Ditto.
12335         * libc/sys/linux/include/mqueue.h: Ditto.
12336         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12337         __uid_t_defined.
12338
12339 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12340
12341         * libm/common/sf_lround.c (round): Change name to: (lround).
12342         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12343         remquof.
12344
12345 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12346
12347         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12348         procedure.
12349         (newlib_pass_fail): Change to compile and run only one file.
12350         * testsuite/newlib.locale/locale.exp: Use new
12351         newlib_pass_fail_all procedure.
12352         * testsuite/newlib.string/string.exp: Likewise.
12353
12354 2002-06-18  Dave Brolley  <brolley@redhat.com>
12355
12356         From Catherine Moore, Michael Meissner, Richard Sandiford:
12357         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12358         (_JBTYPE): Ditto.
12359         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12360         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12361         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12362         * configure.host: Support frv-*-*.
12363         * libc/machine/frv/Makefile.am: New file.
12364         * libc/machine/frv/configure.in: New file.
12365         * libc/machine/frv/setjmp.S: New file.
12366
12367 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12368
12369         * libc/include/ctype.h: Remove isblank macro.
12370
12371         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12372         * libc/ctype/isblank.c: New file.
12373         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12374         declaration.  Add isblank macro.
12375
12376 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12377
12378         * testsuite/newlib.stdlib/atexit.c: New file.
12379         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12380         * testsuite/newlib.string/tstring.c: Change default start size
12381         to something more reasonable for embedded platforms.
12382
12383 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12384
12385         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12386
12387         * libc/argz: New directory.
12388         * libc/argz/*: New files.
12389         * libc/argz/argz_add.c: New file.
12390         * libc/argz/argz_add_sep.c: New file.
12391         * libc/argz/argz_append.c: New file.
12392         * libc/argz/argz_count.c: New file.
12393         * libc/argz/argz_create.c: New file.
12394         * libc/argz/argz_create_sep.c: New file.
12395         * libc/argz/argz_delete.c: New file.
12396         * libc/argz/argz_extract.c: New file.
12397         * libc/argz/argz_insert.c: New file.
12398         * libc/argz/argz_next.c: New file.
12399         * libc/argz/argz_replace.c: New file.
12400         * libc/argz/argz_stringify.c: New file.
12401         * libc/argz/buf_findstr.c: New file.
12402         * libc/argz/envz_add.c: New file.
12403         * libc/argz/envz_entry.c: New file.
12404         * libc/argz/envz_get.c: New file.
12405         * libc/argz/envz_merge.c: New file.
12406         * libc/argz/envz_remove.c: New file.
12407         * libc/argz/envz_strip.c: New file.
12408         * libc/include/argz.h: New file.
12409         * libc/include/envz.h: New file.
12410         * Makefile.am (LIBC_OBJECTLISTS): Add
12411         libc/argz/objectlist.awk.in.
12412         * libc/Makefile.am (SUBDIRS): Add argz.
12413         (SUBLIBS): Add argz/libargz.la.
12414         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12415         * libc/include/errno.h: Add error_t typedef.
12416
12417 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12418
12419         * libc/include/stdlib.h: Add _Exit prototype.
12420         * libc/stdlib/Makefile.am: Add _Exit.c support.
12421         * libc/stdlib/Makefile.in: Ditto.
12422         * libc/stdlib/_Exit.c: New file.
12423
12424 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12425
12426         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12427         x is close to -1.0 and y is very large to use ax (absolute value)
12428         instead of x.
12429         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12430
12431 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12432
12433         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12434         Fix clobbering bytes before destination if src and dst have same
12435         non-zero misalignment.
12436
12437         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12438         Fixed bug in writing end of set region.
12439
12440 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12441
12442         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12443         spawnve declaration.
12444
12445 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12446
12447         * libm/common/s_fdim.c: New file.
12448         * libm/common/s_fma.c: Likewise.
12449         * libm/common/s_fmax.c: Likewise.
12450         * libm/common/s_fmin.c: Likewise.
12451         * libm/common/s_fpclassify.c: Likewise.
12452         * libm/common/s_lrint.c: Likewise.
12453         * libm/common/s_lround.c: Likewise.
12454         * libm/common/s_nearbyint.c: Likewise.
12455         * libm/common/s_remquo.c: Likewise.
12456         * libm/common/s_round.c: Likewise.
12457         * libm/common/s_scalbln.c: Likewise.
12458         * libm/common/s_signbit.c: Likewise.
12459         * libm/common/s_trunc.c: Likewise.
12460         * libm/common/sf_fdim.c: Likewise.
12461         * libm/common/sf_fma.c: Likewise.
12462         * libm/common/sf_fmax.c: Likewise.
12463         * libm/common/sf_fmin.c: Likewise.
12464         * libm/common/sf_lrint.c: Likewise.
12465         * libm/common/sf_lround.c: Likewise.
12466         * libm/common/sf_nearbyint.c: Likewise.
12467         * libm/common/sf_remquo.c: Likewise.
12468         * libm/common/sf_round.c: Likewise.
12469         * libm/common/sf_scalbln.c: Likewise.
12470         * libm/common/sf_trunc.c: Likewise.
12471         * libm/math/w_exp2.c: Likewise.
12472         * libm/math/w_tgamma.c: Likewise.
12473         * libm/math/wf_exp2.c: Likewise.
12474         * libm/math/wf_tgamma.c: Likewise.
12475         * libm/mathfp/s_exp2.c: Likewise.
12476         * libm/mathfp/s_tgamma.c: Likewise.
12477         * libm/mathfp/sf_exp2.c: Likewise.
12478         * libm/mathfp/sf_tgamma.c: Likewise.
12479         * libm/math/er_gamma.c: Fix return value.
12480         * libm/math/erf_gamma.c: Likewise.
12481         * libm/mathfp/er_gamma.c: Likewise.
12482         * libm/mathfp/erf_gamma.c: Likewise.
12483         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12484         declarations and macros.
12485         Regenerated all Makefile.in, aclocal.m4 and configure files to
12486         use new libtool macros in top-level libtool.m4
12487
12488 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12489
12490         * libc/include/string.h[__linux__]: Add strsignal prototype.
12491         * libc/include/sys/lock.h: New file with default locking support.
12492         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12493         and psignal.
12494         * libc/posix/Makefile.am: Add support for readdir_r.c.
12495         * libc/posix/Makefile.in: Regenerated.
12496         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12497         * libc/posix/opendir.c: Add lock support.
12498         * libc/posix/readdir.c: Ditto.
12499         * libc/posix/rewinddir.c: Ditto.
12500         * libc/posix/scandir.c: Ditto.
12501         * libc/posix/seekdir.c: Ditto.
12502         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12503         clean up leftover hash table entries.
12504         * libc/posix/readdir_r.c: New file.
12505         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12506         * libc/sys/linux/Makefile.in: Regenerated.
12507         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12508         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12509         * libc/sys/linux/psignal.c: New file.
12510         * libc/sys/linux/strsignal.c: Ditto.
12511
12512 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12513
12514         * libc/include/sys/types.h: Don't define dev_t when compiling for
12515         Cygwin.
12516
12517 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12518
12519         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12520         make siglist.inc dependent on sig.c instead of signal.c.
12521         * libc/sys/linux/Makefile.in: Regenerated.
12522         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12523         use NSIG instead of _NSIG.
12524         * libc/sys/linux/sigaction.c: New file.
12525         * libc/sys/linux/signal.c: Changed to be linux signal() function
12526         so as to override regular newlib default signal.c.
12527         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12528         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12529         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12530         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12531         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12532         default linux sigset_t typedef by defining it equal to __sigset_t.
12533         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12534         with a sigset_t that isn't implemented with a single int.
12535
12536 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12537
12538         * libc/sys/linux/Makefile.am: Add support for new files.
12539         * libc/sys/linux/Makefile.in: Regenerated.
12540         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
12541         * libc/sys/linux/signal.c: Change to use real-time syscalls for
12542         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
12543         it is in a separate file now.
12544         * libc/sys/linux/machine/i386/Makefile.am
12545         * libc/sys/linux/machine/i386/Makefile.in
12546         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
12547         * libc/sys/linux/sigaction.c: New file.
12548         * libc/sys/linux/sigqueue.c: Ditto.
12549         * libc/sys/linux/sigwait.c: Ditto.
12550         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
12551         * libc/sys/linux/kernel_sigaction.h: Ditto.
12552
12553 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
12554
12555         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
12556         tcsendbrk.c.
12557         * libc/sys/linux/Makefile.in: Regenerated.
12558         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
12559         tcgetpgrp(), and tcsetpgrp() functions.
12560         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
12561         to get __MAX_BAUD rate.
12562         * libc/sys/linux/machine/i386/include/termios.h: New file.
12563         * libc/include/machine/termios.h: Ditto.
12564         * libc/sys/linux/cfspeed.c: Ditto.
12565         * libc/sys/linux/tcsendbrk.c: Ditto.
12566
12567 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
12568
12569         * libc/include/string.h: Add strnlen and strerror_r prototypes.
12570         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
12571         * libc/string/Makefile.in: Regenerated.
12572         * libc/string/strerror_r.c: New file.
12573         * libc/string/strnlen.c: New file.
12574         * libc/sys/linux/Makefile.am: Add rename.c.
12575         * libc/sys/linux/Makefile.in: Regenerated.
12576         * libc/sys/linux/rename.c: New file to override default rename.
12577
12578 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12579
12580         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
12581         * libc/sys/linux/sys/time.h: Add conversion macros.
12582         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
12583         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
12584         * libc/sys/linux/gethostname.c: New file.
12585         * libc/sys/linux/seteuid.c: New file.
12586         * libc/sys/linux/sysctl.c: New file.
12587
12588 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12589
12590         * libc/string/Makefile.am: Add support for strsep.c.
12591         * libc/string/Makefile.in: Regenerated.
12592         * libc/string/strsep.c: New file.
12593         * libc/string/strtok.c: Change to call __strtok_r service routine.
12594         * libc/string/strtok_r.c: Add __strtok_r routine which takes
12595         additional flag parameter regarding whether to skip leading delimeters.
12596         Change strtok_r to call __strtok_r.
12597
12598 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
12599
12600         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
12601         * libc/stdio/Makefile.in: Regenerated.
12602         * libc/stdio/setbuffer.c: New file.
12603         * libc/stdio/setlinebuf.c: New file.
12604
12605 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12606
12607         * libc/sys/linux/Makefile.am: Add resource.c.
12608         * libc/sys/linux/Makefile.in: Regenerated.
12609         * libc/sys/linux/resource.c: New file.
12610         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
12611         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
12612         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12613         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
12614         are now found in libc/sys/linux/resource.c.
12615
12616 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12617
12618         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
12619         to use void * pointers and comply with Single Unix spec.
12620         * libc/string/bcmp.c: Change to use void * instead of char *.
12621         * libc/string/bcopy.c: Ditto.
12622         * libc/string/bzero.c: Ditto.
12623
12624 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12625
12626         * libc/sys/linux/shm_open.c: New file.
12627         * libc/sys/linux/shm_unlink.c: Ditto.
12628         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
12629         shm_unlink.c.
12630         * libc/sys/linux/Makefile.in: Regenerated.
12631         * libc/sys/linux/sys/types.h: Add some additional checks to see
12632         if clock_t or time_t is already defined.
12633
12634 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12635
12636         * Makefile.am: Don't pass $toollibdir down directly in
12637         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
12638         Pass it under the name: top_toollibdir.
12639         * Makefile.in: Regenerated.
12640
12641 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12642
12643         * libc/include/sys/types.h: Revert previous patch.
12644
12645 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12646
12647         * libc/include/sys/types.h: Include cygwin/types.h always under
12648         Cygwin, not only if _POSIX_THREADS is defined.
12649
12650 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
12651
12652         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
12653
12654 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
12655
12656         * Makefile.am: Copy and install headers from sys/machine/include
12657         directory.  Also pass $toollibdir to lower-level directories.
12658         * Makefile.in: Regenerated.
12659         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
12660         stderr to use _REENT macro instead of _impure_ptr directly.
12661         * libc/include/sys/config.h[__i386__][__linux__]: Define
12662         __DYNAMIC_REENT__.
12663         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
12664         call to __getreent() function if !__SINGLE_THREAD__ and
12665         __DYNAMIC_REENT__ is set.
12666         * libc/reent/Makefile.am: Add support for getreent.c.
12667         * libc/reent/Makefile.in: Regenerated.
12668         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
12669         * libc/sys/linux/Makefile.am: Add support for new files.
12670         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
12671         * libc/sys/linux/Makefile.in: Regenerated.
12672         * libc/sys/linux/configure: Ditto.
12673         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
12674         __close, __read, __write, __poll, __open, __lseek, __fcntl from
12675         their __libc_ counterparts.
12676         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
12677         and weak-alias to regular names.
12678         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
12679         to pread64 and __pread64.
12680         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
12681         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
12682         weak-alias to pwrite64.
12683         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
12684         __libc_sched_getscheduler, __libc_sched_get_priority_max,
12685         __libc_sched_get_priority_min, and __libc_sched_setschedule to
12686         name with __ instead of __libc_.
12687         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
12688         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
12689         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
12690         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
12691         to raise.
12692         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
12693         __libc_send to __send.
12694         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
12695         __gettimeofday.
12696         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
12697         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
12698         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
12699         type and typedef __jmp_buf to jmp_buf.
12700         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
12701         setjmp.S.
12702         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12703         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
12704         section.
12705         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
12706         prefix for function macros and then use weak_alias() to regular names.
12707         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12708         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
12709         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
12710         to be flockfile() and funlockfile() respectively.
12711         * libc/sys/linux/sys/types.h
12712         * libc/reent/getreent.c: New file.
12713         * libc/sys/linux/flockfile.c: Ditto.
12714         * libc/sys/linux/funlockfile.c: Ditto.
12715         * libc/sys/linux/getreent.c: Ditto.
12716         * libc/sys/linux/pread.c: Ditto.
12717         * libc/sys/linux/pwrite.c: Ditto.
12718         * libc/sys/linux/raise.c: Ditto.
12719         * libc/sys/linux/system.c: Ditto.
12720         * libc/sys/linux/tcdrain.c: Ditto.
12721         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
12722         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
12723         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
12724         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
12725         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
12726
12727 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
12728
12729         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
12730         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
12731         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
12732         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
12733
12734 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12735
12736         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
12737         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
12738         exit point.
12739
12740 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
12741
12742         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
12743         options when testing natively on i[3456]86-*-linux.
12744
12745         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
12746         only one pass or fail per test file.  Trim \r's from output
12747         values received from test programs.  Remove support for named
12748         tests.
12749         * testsuite/newlib.locale/UTF-8.exp: Update to support new
12750         newlib_check_output behaviour.
12751         * testsuite/newlib.locale/UTF-8.c: Likewise.
12752
12753 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
12754
12755         * libc/include/stdlib.h: Add on_exit prototype.
12756         * libc/include/sys/reent.h (struct _atexit): Add argument array
12757         and bits to track type of exit routine to support both on_exit
12758         and atexit.
12759         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
12760         by default and change the setting of the atexit structure.
12761         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
12762         * libc/stdlib/on_exit.c: New file.
12763         * libc/stdlib/Makefile.am: Add support for on_exit.
12764         * libc/stdlib/Makefile.in: Regenerated.
12765         * libc/stdlib/atexit.c: Change to initialize types field.
12766         * libc/stdlib/exit.c: Change to look at types field for each
12767         exit routine and either call an atexit-style or an on_exit-style
12768         routine accordingly.
12769
12770 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12771
12772         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
12773         allow v specifier with n or L specifiers.  For vector c format,
12774         move tmp declaration to the top.
12775
12776 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12777
12778         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
12779         the original format specifier when looping for vectors to compensate
12780         for any changes made in vector %g format processing.
12781         Also add syntax checking for various invalid scenarios
12782         involving vector format extensions.
12783         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
12784         return code setting for vector formats.  Also treat vector
12785         separator mismatch as a match error instead of an input error.
12786         Perform some syntax checking for vector formats.
12787
12788 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12789
12790         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
12791         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
12792         * libc/string/strlcat.c: New file.
12793         * libc/string/strlcpy.c: New file.
12794
12795 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
12796
12797         * libc/string/strchr.c: Fix comment typo.
12798
12799 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
12800
12801         * acinclude.m4: Add support for --enable-newlib-multithread.
12802         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
12803         --enable-newlib-multithread=no.
12804
12805         * libc/stdio/getc_u.c: New file.
12806         * libc/stdio/getchar_u.c: New file.
12807         * libc/stdio/putc_u.c: New file.
12808         * libc/stdio/putchar_u.c: New file.
12809         * libc/include/stdio.h: Add declarations for getc_unlocked,
12810         getchar_unlocked, putc_unlocked and putchar_unlocked.
12811         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
12812         (CHEWOUT_FILES): Add new files' .def's.
12813         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
12814
12815 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
12816
12817         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12818         Also handle as single quad word when destination ends at last
12819         byte of first quad word.  Fix byte selection in single quad code.
12820
12821 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
12822
12823         * libc/include/sys/stdio.h: New file.
12824         * libc/sys/linux/sys/stdio.h: New file.
12825         * libc/include/stdio.h: Add declarations for flockfile,
12826         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
12827         * libc/stdio/clearerr.c: Add file locking.
12828         * libc/stdio/fclose.c: Likewise.
12829         * libc/stdio/feof.c: Likewise.
12830         * libc/stdio/ferror.c: Likewise.
12831         * libc/stdio/fflush.c: Likewise.
12832         * libc/stdio/fgetc.c: Likewise.
12833         * libc/stdio/fgetpos.c: Likewise.
12834         * libc/stdio/fgets.c: Likewise.
12835         * libc/stdio/fileno.c: Likewise.
12836         * libc/stdio/fputc.c: Likewise.
12837         * libc/stdio/fputs.c: Likewise.
12838         * libc/stdio/fread.c: Likewise.
12839         * libc/stdio/freopen.c: Likewise.
12840         * libc/stdio/fseek.c: Likewise.
12841         * libc/stdio/ftell.c: Likewise.
12842         * libc/stdio/fwrite.c: Likewise.
12843         * libc/stdio/getc.c: Likewise.
12844         * libc/stdio/putc.c: Likewise.
12845         * libc/stdio/setvbuf.c: Likewise.
12846         * libc/stdio/ungetc.c: Likewise.
12847         * libc/stdio/vfprintf.c: Likewise.
12848
12849 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12850
12851         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
12852         support for 'p' format.  Fix code to print bytes for vector
12853         integer formats that do not specify 'h' or 'l'.
12854         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
12855         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
12856         formats that do not specify 'h' or 'l'.
12857
12858         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
12859
12860 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
12861
12862         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
12863         (_sbrk): Add cast of return value.
12864
12865 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12866
12867         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
12868         (_REENT_L64A_BUF): New macro for accessing area.
12869         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
12870         *  libc/stdlib/Makefile.in: Regenerated.
12871         *  libc/stdlib/a64l.c: New file.
12872         *  libc/stdlib/l64a.c: New file.
12873
12874 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12875
12876         * libc/unix/pread.c: Fix typo for _pread_r.
12877         * libc/unix/pwrite.c: Fix type for _pwrite_r.
12878         * libc/sys/linux/pread64.c: Fix typo for read syscall.
12879         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
12880
12881 2002-05-03  Christopher Faylor  <cgf@redhat.com>
12882
12883         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
12884
12885 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
12886
12887         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
12888
12889 2002-05-01  Christopher Faylor  <cgf@redhat.com>
12890
12891         * utmp.h: Define more UNIX constants.
12892
12893 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
12894
12895         * Makefile.am: Add support for checking multilibs.
12896
12897         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
12898         (SUBDEFS): Add LIBC_EXTRA_DEF.
12899         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
12900         (LIBC_EXTRA_DEF): Likewise.
12901         (extra_dir): Likewise.
12902         * libc/machine/xscale/machine: New directory.
12903         * libc/machine/xscale/machine/profile.h: New file.
12904
12905         * Makefile.am (site.exp): Remove newlib_cflags.  Add
12906         multibuildtop.
12907         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
12908         * testsuite/lib/flags.exp: New file.
12909         * testsuite/lib/newlib.exp: Load flags.exp.
12910         (newlib_target_compile): Remove libgloss directory references.
12911         (newlib_init): Remove newlib_cflags references.
12912
12913 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
12914
12915         * testsuite/lib/newlib.exp (newlib_target_compile): Change
12916         method of finding libgloss_target_dir.
12917
12918         * Makefile.am (site.exp): Change host_alias, host_triplet,
12919         target_alias, target_triplet to refer to gcc's host and target
12920         variables (newlib's build and host variables).
12921         * testsuite/lib/newlib.exp (newlib_init): Change build
12922         references to host references, host references to target
12923         references to reflect Makefile.am changes.
12924         (newlib_target_compile): Likewise.
12925         (newlib_finish): Likewise.
12926
12927 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12928
12929         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
12930
12931 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
12932
12933         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
12934         (_system): New function. Ditto.
12935         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
12936         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
12937         targets.
12938
12939 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12940
12941         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
12942         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
12943         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
12944         *  libc/sys/linux/Makefile.in: Regenerated.
12945         *  libc/unix/Makefile.in: Ditto.
12946         *  libc/sys/linux/pread64.c: New file.
12947         *  libc/sys/linux/pwrite64.c: Ditto.
12948         *  libc/unix/pread.c: Ditto.
12949         *  libc/unix/pwrite.c: Ditto.
12950
12951 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12952
12953         *  libc/sys/linux/Makefile.am: Add io64.c.
12954         *  libc/sys/linux/Makefile.in: Regenerated.
12955         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
12956         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
12957         *  libc/sys/linux/io64.c: New file.
12958
12959 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12960
12961         * configure.in (CC_FOR_NEWLIB): New variable that
12962         bases on $(CC) and adds targ-include and libc/include as
12963         -isystem directives if they are not already part of $(CC).
12964         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
12965         $(CC_FOR_NEWLIB).
12966         * configure: Regenerated.
12967         * Makefile.in: Ditto.
12968
12969 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
12970
12971         *  libc/sys/linux/Makefile.am: Add support for sched.c.
12972         *  libc/sys/linux/Makefile.in: Regenerated.
12973         *  libc/sys/linux/sched.c: New file.
12974         *  libc/sys/linux/sys/types.h: Add struct timespec.
12975
12976 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
12977
12978         * configure.in (CC_FOR_BUILD): Set to gcc whether
12979         cross-compiling or not.
12980         (CC): Add -isystem's for targ-include and libc/include when they
12981         do not already appear in CC.
12982
12983 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12984
12985         * Makefile.am (check-DEJAGNU): New target.
12986         (site.exp): Likewise.
12987         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
12988         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
12989         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
12990         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
12991         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
12992         * testsuite: New directory.
12993         * testsuite/config: Likewise.
12994         * testsuite/lib: Likewise.
12995         * testsuite/newlib.locale: Likewise.
12996         * testsuite/newlib.string: Likewise.
12997         * testsuite/config/default.exp: New file.
12998         * testsuite/lib/checkoutput.exp: New file.
12999         * testsuite/lib/newlib.exp: New file.
13000         * testsuite/lib/passfail.exp: New file.
13001         * testsuite/newlib.locale/UTF-8.c: New file.
13002         * testsuite/newlib.locale/UTF-8.exp: New file.
13003         * testsuite/newlib.locale/locale.exp: New file.
13004         * testsuite/newlib.string/string.exp: New file.
13005         * testsuite/newlib.string/tstring.c: New file.
13006
13007 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
13008
13009         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
13010         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
13011         *  libc/sys/linux/Makefile.in: Regenerated.
13012         *  libc/sys/linux/mmap.c: New file.
13013         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
13014         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
13015
13016 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13017
13018         * acinclude.m4 (newlib_cflags): Remove include directories that
13019         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
13020
13021 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
13022
13023         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
13024         * libc/machine/xscale/memcmp.c: Ditto.
13025         * libc/machine/xscale/memcpy.c: Ditto.
13026         * libc/machine/xscale/memmove.c: Ditto.
13027         * libc/machine/xscale/memset.c: Ditto.
13028         * libc/machine/xscale/strchr.c: Ditto.
13029         * libc/machine/xscale/strcmp.c: Ditto.
13030         * libc/machine/xscale/strcpy.c: Ditto.
13031         * libc/machine/xscale/strlen.c: Ditto.
13032
13033 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
13034
13035         * libc/include/sys/config.h: Remove include of <limits.h>.
13036         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
13037         define INT_MAX and LONG_MAX.  Use them in tests.
13038
13039 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
13040
13041         *  configure.host: Add support for powerpc-eabialtivec*.
13042         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
13043         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
13044         *  libc/include/machine/malloc.h: New file.
13045         *  libc/include/machine/stdlib.h: Ditto.
13046         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
13047         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
13048         sources based on configuration.
13049         *  libc/machine/powerpc/Makefile.in: Regenerated.
13050         *  libc/machine/powerpc/configure: Ditto.
13051         *  libc/machine/powerpc/configure.in: Add check for
13052         powerpc-eabialtivec* in which case add in additional source files.
13053         *  libc/machine/powerpc/setjmp.S: Add altivec support.
13054         *  libc/machine/powerpc/vec_calloc.c: New file.
13055         *  libc/machine/powerpc/vec_free.c: Ditto.
13056         *  libc/machine/powerpc/vec_malloc.c: Ditto.
13057         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
13058         *  libc/machine/powerpc/vec_realloc.c: Ditto.
13059         *  libc/machine/powerpc/machine/malloc.h: Ditto.
13060         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
13061         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
13062         with added altivec format specifiers.
13063         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
13064         added altivec format specifiers.
13065
13066 2002-04-19      Joel Sherrill <joel@OARcorp.com>
13067
13068         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
13069         while autoconf is trying to link main(){}.
13070
13071 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13072
13073         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
13074         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
13075
13076 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13077
13078         * libc/time/time.tex: Add tzset info.
13079
13080 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13081
13082         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
13083         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13084         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13085         (tzname): Defined for all platforms.
13086         (daylight, timezone): Defined only for CYGWIN.
13087         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13088         environment set up.
13089         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13090         environment variable is set.
13091         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13092         tzset_r.c.
13093         * libc/time/Makefile.in: Regenerated.
13094         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13095         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13096         * libc/time/lcltime_r.c (lcltime_r): Ditto.
13097         * libc/time/local.h: New local header file.
13098         * libc/time/mktime.c (mktime): Add timezone support.
13099         * libc/time/mktm_r.c: New file which is the common engine
13100         for gmtime_r and lcltime_r.  This code has timezone support.
13101         * libc/time/strftime.c (strftime): Add %Z timezone support.
13102         * libc/time/tzlock.c: New file containing timezone lock stubs.
13103         * libc/time/tzset.c: New file containing tzset() routine.
13104         * libc/time/tzset_r.c: New file containing _tzset_r and
13105         internal routine for calculating timezone changes for specified year.
13106
13107 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13108
13109         * configure.in (CRT0_DIR): Set to libc/.
13110         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13111         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13112         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13113         $(CRT1_DIR)/$(CRT1).
13114         * libc/machine/xstormy16/Makefile.in: Regenerated.
13115         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13116         * libc/machine/xstormy16/configure: Regenerated.
13117
13118 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13119
13120         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13121         fails, don't bail out, and try to correct next time.
13122
13123         * libc/include/sys/config.h: Include limits.h.
13124
13125 2002-04-12  Eric Norum  <eric.norum@usask.com>
13126
13127         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13128         routine to allow autoconf to determine that building executables
13129         for rtems works.
13130         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13131         (rtems_gxx_mutex_once): Ditto.
13132
13133 2002-04-09  Tom Rix  <trix@redhat.com>
13134
13135         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13136
13137 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13138
13139         * libc/include/time.h: Fix strptime declaration.
13140         * libc/time/Makefile.am: Add strptime.c.
13141         * libc/time/Makefile.in: Regenerated.
13142         * libc/time/strptime.c: New file.
13143
13144 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13145
13146         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13147         siglongjmp prototype, and sigsetjmp macro definition.
13148         * libc/sys/linux/siglongjmp.c: New file.
13149         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13150         * libc/sys/linux/Makefile.in: Regenerated.
13151
13152 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13153
13154         * Makefile.am: Add support for installing crt1.o if one exists.
13155         * configure.host: Specify crt1.o for linux.
13156         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13157         * Makefile.in: Regenerated.
13158         * configure: Ditto.
13159         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13160         Added for non-Cygwin, non-RTEMS configurations.
13161         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13162         * libc/sys/linux/Makefile.in: Regenerated.
13163         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13164         by gcc.  This fixes problem with reconfiguring linux newlib build.
13165         * libc/sys/linux/sysconf.c: New file.
13166
13167 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13168
13169         * configure.host: Add support for machine subdirectory of
13170         sys subdirectory.
13171         * configure.in: Add check for sys machine subdirectory.
13172         * Makefile.am: Ditto.
13173         * configure: Regenerated.
13174         * Makefile.in: Ditto.
13175         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13176         * libc/sys/linux/sys/syscall.h: Ditto.
13177         * libc/sys/linux/sleep.c: New file.
13178         * libc/sys/linux/socket.c: Ditto.
13179         * libc/sys/linux/sockops.h: Ditto.
13180         * libc/sys/linux/stack.c: Ditto.
13181         * libc/sys/linux/usleep.c: Ditto.
13182         * libc/sys/linux/machine/Makefile.am: Ditto.
13183         * libc/sys/linux/machine/Makefile.in: Ditto.
13184         * libc/sys/linux/machine/aclocal.m4: Ditto.
13185         * libc/sys/linux/machine/configure: Ditto.
13186         * libc/sys/linux/machine/configure.in: Ditto.
13187         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13188         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13189         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13190         * libc/sys/linux/machine/i386/configure: Ditto.
13191         * libc/sys/linux/machine/i386/configure.in: Ditto.
13192         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13193         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13194         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13195         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13196         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13197         * libc/sys/linux/sys/select.h: Ditto.
13198         * libc/sys/linux/configure.in: Add support for machine directory.
13199         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13200         * libc/sys/linux/Makefile.in: Regenerated.
13201         * libc/sys/linux/configure: Ditto.
13202         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13203         * libc/sys/linux/inode.c: Ditto.
13204         * libc/sys/linux/linux.c: Ditto.
13205         * libc/sys/linux/process.c: Ditto.
13206         * libc/sys/linux/systat.c: Ditto.
13207         * libc/sys/linux/time.c: Ditto.
13208         * libc/sys/linux/wait.c: Ditto.
13209         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13210         * libc/sys/linux/io.c: Change header plus add readv/writev.
13211         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13212         use __sigsuspend syscall.
13213         * libc/sys/linux/select.c: Change header plus change select to
13214         use _newselect syscall.
13215         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13216         used by glibc header files.
13217         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13218         types.
13219
13220 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13221
13222         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13223         initializing a struct _reent that has been dynamically allocated.
13224         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13225         _REENT_SMALL and does nothing otherwise.
13226         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13227         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13228         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13229         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13230         [_REENT_SMALL](struct _misc_reent): New structure containing
13231         miscellaneous reentrant areas needed by newlib.
13232         [_REENT_SMALL](struct _reent): Add _misc pointer.
13233         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13234         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13235         and _REENT_STRTOK_LAST macros.
13236         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13237         and _REENT_MBLEN_STATE macros.
13238         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13239         and _REENT_MBTOWC_STATE macros.
13240         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13241         and _REENT_WCTOMB_STATE macros.
13242
13243 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13244
13245         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13246
13247 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13248
13249         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13250
13251 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13252
13253         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13254         Store high part of leading bytes too.
13255
13256 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13257
13258         * libm/math/ef_hypot.c: Increase scale factor to 68.
13259
13260 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13261
13262         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13263         error.
13264
13265 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13266
13267         * libc/sys/go32/access.c: Change license to relaxed license
13268         used in identical file throughout newlib/libgloss.
13269
13270 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13271
13272         * libc/sys/arm/access.c: New file.
13273         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13274         * libc/sys/arm/Makefile.in: Regenerate.
13275         * libc/sys/arm/syscalls.c (_stat): New function.
13276
13277 2002-03-11  Michael Meissner  <meissner@redhat.com>
13278
13279         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13280         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13281         * libc/machine/mips/Makefile.in: Regenerate.
13282         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13283         * libc/machine/mips/memset.c: Dito.
13284         * libc/machine/mips/strcmp.c: Dito.
13285         * libc/machine/mips/strlen.c: Dito.
13286         * libc/machine/mips/strncmp.c: Dito.
13287
13288 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13289
13290         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13291         object so it works for shared library or statici library.
13292 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13293
13294         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
13295         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13296         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13297         (tzname): Defined for all platforms.
13298         (daylight, timezone): Defined only for CYGWIN.
13299         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13300         environment set up.
13301         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13302         environment variable is set.
13303         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13304         tzset_r.c.
13305         *  libc/time/Makefile.in: Regenerated.
13306         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13307         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13308         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
13309         *  libc/time/local.h: New local header file.
13310         *  libc/time/mktime.c (mktime): Add timezone support.
13311         *  libc/time/mktm_r.c: New file which is the common engine
13312         for gmtime_r and lcltime_r.  This code has timezone support.
13313         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13314         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13315         *  libc/time/tzset.c: New file containing tzset() routine.
13316         *  libc/time/tzset_r.c: New file containing _tzset_r and
13317         internal routine for calculating timezone changes for specified year.
13318
13319 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13320
13321         * configure.in (CRT0_DIR): Set to libc/.
13322         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13323         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13324         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13325         $(CRT1_DIR)/$(CRT1).
13326         * libc/machine/xstormy16/Makefile.in: Regenerated.
13327         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13328         * libc/machine/xstormy16/configure: Regenerated.
13329
13330 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13331
13332         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13333         fails, don't bail out, and try to correct next time.
13334
13335         * libc/include/sys/config.h: Include limits.h.
13336
13337 2002-04-12  Eric Norum  <eric.norum@usask.com>
13338
13339         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13340         routine to allow autoconf to determine that building executables
13341         for rtems works.
13342         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13343         (rtems_gxx_mutex_once): Ditto.
13344
13345 2002-04-09  Tom Rix  <trix@redhat.com>
13346
13347         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13348
13349 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13350
13351         * libc/include/time.h: Fix strptime declaration.
13352         * libc/time/Makefile.am: Add strptime.c.
13353         * libc/time/Makefile.in: Regenerated.
13354         * libc/time/strptime.c: New file.
13355
13356 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13357
13358         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13359         siglongjmp prototype, and sigsetjmp macro definition.
13360         * libc/sys/linux/siglongjmp.c: New file.
13361         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13362         * libc/sys/linux/Makefile.in: Regenerated.
13363
13364 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13365
13366         * Makefile.am: Add support for installing crt1.o if one exists.
13367         * configure.host: Specify crt1.o for linux.
13368         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13369         * Makefile.in: Regenerated.
13370         * configure: Ditto.
13371         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13372         Added for non-Cygwin, non-RTEMS configurations.
13373         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13374         * libc/sys/linux/Makefile.in: Regenerated.
13375         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13376         by gcc.  This fixes problem with reconfiguring linux newlib build.
13377         * libc/sys/linux/sysconf.c: New file.
13378
13379 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13380
13381         * configure.host: Add support for machine subdirectory of
13382         sys subdirectory.
13383         * configure.in: Add check for sys machine subdirectory.
13384         * Makefile.am: Ditto.
13385         * configure: Regenerated.
13386         * Makefile.in: Ditto.
13387         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13388         * libc/sys/linux/sys/syscall.h: Ditto.
13389         * libc/sys/linux/sleep.c: New file.
13390         * libc/sys/linux/socket.c: Ditto.
13391         * libc/sys/linux/sockops.h: Ditto.
13392         * libc/sys/linux/stack.c: Ditto.
13393         * libc/sys/linux/usleep.c: Ditto.
13394         * libc/sys/linux/machine/Makefile.am: Ditto.
13395         * libc/sys/linux/machine/Makefile.in: Ditto.
13396         * libc/sys/linux/machine/aclocal.m4: Ditto.
13397         * libc/sys/linux/machine/configure: Ditto.
13398         * libc/sys/linux/machine/configure.in: Ditto.
13399         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13400         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13401         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13402         * libc/sys/linux/machine/i386/configure: Ditto.
13403         * libc/sys/linux/machine/i386/configure.in: Ditto.
13404         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13405         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13406         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13407         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13408         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13409         * libc/sys/linux/sys/select.h: Ditto.
13410         * libc/sys/linux/configure.in: Add support for machine directory.
13411         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13412         * libc/sys/linux/Makefile.in: Regenerated.
13413         * libc/sys/linux/configure: Ditto.
13414         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13415         * libc/sys/linux/inode.c: Ditto.
13416         * libc/sys/linux/linux.c: Ditto.
13417         * libc/sys/linux/process.c: Ditto.
13418         * libc/sys/linux/systat.c: Ditto.
13419         * libc/sys/linux/time.c: Ditto.
13420         * libc/sys/linux/wait.c: Ditto.
13421         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13422         * libc/sys/linux/io.c: Change header plus add readv/writev.
13423         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13424         use __sigsuspend syscall.
13425         * libc/sys/linux/select.c: Change header plus change select to
13426         use _newselect syscall.
13427         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13428         used by glibc header files.
13429         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13430         types.
13431
13432 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13433
13434         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13435         initializing a struct _reent that has been dynamically allocated.
13436         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13437         _REENT_SMALL and does nothing otherwise.
13438         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13439         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13440         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13441         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13442         [_REENT_SMALL](struct _misc_reent): New structure containing
13443         miscellaneous reentrant areas needed by newlib.
13444         [_REENT_SMALL](struct _reent): Add _misc pointer.
13445         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13446         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13447         and _REENT_STRTOK_LAST macros.
13448         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13449         and _REENT_MBLEN_STATE macros.
13450         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13451         and _REENT_MBTOWC_STATE macros.
13452         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13453         and _REENT_WCTOMB_STATE macros.
13454
13455 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13456
13457         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13458
13459 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13460
13461         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13462
13463 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13464
13465         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13466         Store high part of leading bytes too.
13467
13468 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13469
13470         * libm/math/ef_hypot.c: Increase scale factor to 68.
13471
13472 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13473
13474         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13475         error.
13476
13477 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13478
13479         * libc/sys/go32/access.c: Change license to relaxed license
13480         used in identical file throughout newlib/libgloss.
13481
13482 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13483
13484         * libc/sys/arm/access.c: New file.
13485         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13486         * libc/sys/arm/Makefile.in: Regenerate.
13487         * libc/sys/arm/syscalls.c (_stat): New function.
13488
13489 2002-03-11  Michael Meissner  <meissner@redhat.com>
13490
13491         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13492         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13493         * libc/machine/mips/Makefile.in: Regenerate.
13494         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13495         * libc/machine/mips/memset.c: Dito.
13496         * libc/machine/mips/strcmp.c: Dito.
13497         * libc/machine/mips/strlen.c: Dito.
13498         * libc/machine/mips/strncmp.c: Dito.
13499
13500 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13501
13502         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13503         object so it works for shared library or statici library.
13504         * libc/machine/i386/Makefile.in: Regenerated.
13505
13506 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13507
13508         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13509         Add memcpy.S, memset.S and strcpy.S.
13510         * libc/machine/sh/Makefile.in: Regenerate.
13511         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13512         (SHHI, SHLO): Define.
13513         * libc/machine/sh/memset.S: Add code for SH5.
13514         * libc/machine/sh/memset.S: Likewise.
13515         * libc/machine/sh/strcpy.S: Likewise.
13516
13517 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13518
13519         * configure.host: Add check for --disable-newlib-io-float
13520         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13521         if appropriate.
13522         * acinclude.m4: Added --disable-newlib-io-float option.
13523         * aclocal.m4: Regenerated.
13524         * configure: Ditto.
13525         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13526         * libc/*/aclocal.m4 libc/*/configure
13527         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13528         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13529         if NO_FLOATING_POINT flag is not defined.
13530
13531 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13532
13533         * libc/include/sys/config.h: Add __extension__ in front of
13534         long long references.
13535
13536 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13537
13538         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
13539         (_stat): Ditto.
13540
13541 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13542
13543         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
13544         of off_t.
13545
13546 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
13547
13548         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
13549         clobbered registers.
13550
13551 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13552
13553         * configure.host (newlib_cflags): When host is in m68* add
13554         -DCOMPACT_CTYPE.
13555
13556 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
13557
13558         * libc/include/sys/config.h: Add definitions for
13559         __int16_t, __uint16_t, __int64_t, and __uint64_t.
13560
13561 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
13562
13563         * libc/sys/mmixware/link.c: New.
13564         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
13565         volatile.
13566         * libc/sys/mmixware/times.c (_times): Renamed from times.
13567         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
13568         properly by reading previous contents, not through BinaryReadWrite.
13569         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
13570         * libc/sys/mmixware/Makefile.in: Regenerate.
13571
13572 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
13573
13574         * libc/include/grp.h: Don't declare group functions when compiling
13575         Cygwin.
13576
13577 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
13578
13579         * libc/include/grp.h: Include Cygwin specific header.
13580         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
13581         when compiling for Cygwin.
13582         * libc/include/sys/types.h: Don't define off_t, uid_t
13583         and gid_t when compiling for Cygwin.
13584
13585 2002-02-08  matthew green  <mrg@redhat.com>
13586
13587         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
13588         _REENT_EMERGENCY_SIZE, not sizeof(char *).
13589
13590 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
13591
13592         Contribute sh64-elf.
13593         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13594         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
13595         support in printf.
13596         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
13597         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
13598         any labels.
13599         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
13600         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
13601         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13602         * libc/machine/sh/configure.in: Rework conditionals.
13603         * libc/machine/sh/Makefile.am: Likewise.
13604         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
13605         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13606         * configure.host: Match `sh*'.
13607         * libc/include/machine/setjmp.h: Define for SH5.
13608         * libc/machine/sh/configure.in: Detect SH5.
13609         * libc/machine/sh/configure: Rebuilt.
13610         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
13611         * libc/machine/sh/Makefile.in: Rebuilt.
13612         * libc/machine/sh/asm.h: Adjust for SH5.
13613         * libc/machine/sh/setjmp.S: Implement in SHmedia.
13614         * libc/sys/sh/crt0.S: Likewise.
13615         * libc/sys/sh/trap.S: Likewise.
13616
13617 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
13618
13619         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
13620         (mach_add_obj): Conditionally set to setjmp.o or nothing.
13621         (LIB_SOURCES): Remove $(mach_add_src).
13622         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
13623         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
13624         * libc/machine/i386/Makefile.in: Regenerate.
13625
13626 2002-02-05  Manik Raina <manik@cisco.com>
13627
13628         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
13629         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
13630         s, p, k, and outstr.
13631         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
13632
13633 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
13634
13635         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
13636         _REENT_CHECK_EMERGENCY macro.
13637
13638 2002-02-03  matthew green  <mrg@redhat.com>
13639
13640         * libc/reent/signgam.c (__signgam): Fix error in previous.
13641
13642 2002-02-02  matthew green  <mrg@redhat.com>
13643
13644         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
13645
13646         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
13647         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
13648         * libc/include/sys/reent.h (struct _reent): Completely new version
13649         for _REENT_SMALL.
13650         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
13651         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
13652         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
13653         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
13654         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
13655         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
13656         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
13657         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
13658         (_REENT_EMERGENCY): Likewise.
13659
13660         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
13661         the start of the real __sFILE, used for stdin, stdout and stderr until
13662         they are setup properly.
13663         (struct __sFILE): Move location of _data in _REENT_SMALL case.
13664         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
13665         allocated stdin, stdout and stderr.
13666         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
13667         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
13668         * libc/stdio/perror.c (_perror_r): Likewise.
13669         * libc/stdio/printf.c (printf, _printf_r): Likewise.
13670         * libc/stdio/putchar.c (_putchar_r): Likewise.
13671         * libc/stdio/puts.c (_puts_r): Likewise.
13672         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
13673         * libc/stdio/vprintf.c (vprintf): Likewise.
13674         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
13675
13676         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
13677
13678         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
13679         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
13680         for _REENT_SMALL.
13681         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
13682         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
13683
13684         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
13685         _REENT_SMALL.
13686         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
13687         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
13688         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
13689         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
13690         * libc/stdlib/rand48.c (__dorand48): Likewise.
13691         * libc/stdlib/seed48.c (_seed48_r): Likewise.
13692         * libc/stdlib/srand48.c (_srand48_r): Likewise.
13693         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
13694         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
13695         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
13696         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
13697         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
13698         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
13699         * libc/stdlib/rand.c (rand): Likewise.
13700
13701         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
13702         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
13703
13704         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
13705         _REENT_MP_FREELIST() and _REENT_MP_P5S.
13706         * libc/include/sys/reent.h (struct _mprec): New structure.
13707
13708         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
13709         _unused_strtok_last.
13710         * libc/string/strtok.c (strtok): Use a local static variable.
13711
13712         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
13713         (_REENT_EMERGENCY_SIZE): Likewise.
13714         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
13715         _REENT_ASCTIME_BUF().
13716         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
13717         _REENT_TM().
13718
13719         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
13720         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
13721         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
13722         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
13723         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
13724         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
13725
13726 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
13727
13728         * configure.host (xstormy16): Don't use the generic malloc.
13729         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
13730         * libc/machine/xstormy16/Makefile.in: Regenerate.
13731         * libc/machine/xstormy16/mallocr.c: New file.
13732         * libc/machine/xstormy16/tiny-malloc.c: New file.
13733
13734 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13735
13736         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
13737         when _CYGWIN_TYPES_H is not defined.
13738
13739 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13740
13741         * libc/include/sys/signal.h: Revert 2002-01-23 change.
13742
13743 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
13744
13745         * libc/include/sys/signal.h: Remove pthread_kill declaration
13746         when __CYGWIN__ is defined.
13747
13748 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13749
13750         * libc/include/time.h: Add prototype for strptime for Cygwin.
13751
13752 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
13753
13754         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
13755         dst was not word aligned.
13756
13757         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
13758         if too much memory is requested.
13759
13760 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
13761
13762         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
13763         reads blanks from the input file to break if EOF reached
13764         rather than end processing.
13765
13766 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
13767
13768         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
13769
13770 2002-01-07 Alan Matsuoka <alanm@redhat.com>
13771
13772         * libc/include/machine/ieeefp.h: Configure d10v doubles to
13773         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
13774         libc/include/sys/config.h: Ditto.
13775
13776 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
13777
13778         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
13779
13780 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
13781             Catherine Moore  <clm@redhat.com>
13782             Richard Henderson  <rth@redhat.com>
13783             Corinna Vinschen  <vinschen@redhat.com>
13784
13785         * configure.host: Add support for xstormy16.
13786         * libc/include/machine/ieeefp.h: Add support for xstormy16.
13787         * libc/include/machine/setjmp.h: Add support for xstormy16.
13788         * libc/include/sys/config.h: Add support for xstormy16.
13789         * libc/machine/xstormy16/Makefile.am: New file.
13790         * libc/machine/xstormy16/Makefile.in: New file.
13791         * libc/machine/xstormy16/aclocal.m4: New file.
13792         * libc/machine/xstormy16/configure: New file.
13793         * libc/machine/xstormy16/configure.in: New file.
13794         * libc/machine/xstormy16/setjmp.S: New file.
13795
13796 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13797
13798         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
13799         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
13800
13801 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
13802
13803         * libm/machine/Makefile.am: Change rules to create correct lib.a.
13804         * libm/machine/Makefile.in: Regenerated through automake.
13805
13806 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13807
13808         * Makefile.am (DOCDIR): Force to empty string when doc
13809         directory is not present.
13810
13811 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13812
13813         * libc/machine/i386/f_*: Move to libm/machine/i386.
13814
13815 2001-12-18      Joel Sherrill <joel@OARcorp.com>
13816
13817         * libm/machine/Makefile.am: Add dummy doc stub so
13818         "make info" works.
13819
13820 2001-12-17      Joel Sherrill <joel@OARcorp.com>
13821
13822         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
13823
13824 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13825
13826         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
13827         $(COMPILE) rather than $(CC).
13828         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
13829         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
13830         $(LIB_COMPILE) change.
13831         (vfiprintf.$(oext)): Likewise.
13832
13833 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
13834
13835         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
13836         conditionalized including of getopt stuff.
13837
13838 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13839
13840         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
13841         compile line.
13842         (vfiprintf.$(oext)): Likewise.
13843
13844 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
13845
13846         * Makefile.shared: New file.
13847         * libc/sys/linux/shared.ld: New file.
13848         * libm/machine/*: New files.
13849         * libm/machine/i386/*: New files.
13850         * Makefile.am: Add libtool support.  Change math and mathfp
13851         references to variables.
13852         * configure.host: Add variables for libtool support.  Add
13853         libm_machine_dir variable.
13854         * configure.in: Add objectlist variables, for libtool
13855         support.  Add CC_FOR_BUILD tests.
13856         * libc/Makefile.am: Add libtool support.  Change crt0.o
13857         reference to be a variable reference.
13858         * libc/configure.in: Add libtool support.  Change sublib
13859         names to be lib${subdir}.la when using libtool.
13860         * libc/ctype/Makefile.am: Add libtool support.
13861         * libc/errno/Makefile.am: Likewise.
13862         * libc/locale/Makefile.am: Likewise.
13863         * libc/machine/Makefile.am: Likewise.
13864         * libc/machine/configure.in: Likewise.
13865         * libc/machine/i386/Makefile.am: Likewise.
13866         * libc/machine/i386/configure.in: Likewise.
13867         * libc/misc/Makefile.am: Likewise.
13868         * libc/posix/Makefile.am: Likewise.
13869         * libc/reent/Makefile.am: Likewise.
13870         * libc/signal/Makefile.am: Likewise.
13871         * libc/stdio/Makefile.am: Likewise.
13872         * libc/stdlib/Makefile.am: Likewise.
13873         * libc/string/Makefile.am: Likewise.
13874         * libc/sys/Makefile.am: Likewise.
13875         * libc/sys/configure.in: Likewise.
13876         * libc/sys/linux/Makefile.am: Add libtool support.  Change
13877         awk reference to a variable reference.  Change signal.h
13878         reference to a variable reference.
13879         * libc/sys/linux/configure.in: Add libtool support.
13880         * libc/syscalls/Makefile.am: Likewise.
13881         * libc/time/Makefile.am: Likewise.
13882         * libc/unix/Makefile.am: Likewise.
13883         * libm/Makefile.am: Add libtool support.  Change math and
13884         mathfp references to variables.
13885         * libm/configure.in: Add libtool support.  Add
13886         LIBM_MACHINE_LIB variable.
13887         * libm/common/Makefile.am: Add libtool support.
13888         * libm/math/Makefile.am: Likewise.
13889         * libm/mathfp/Makefile.am: Likewise.
13890         Regenerate all Makefile.in, aclocal.m4, and configure.
13891
13892 2001-12-13 Anita Kulkarni <anitak@kpit.com>
13893
13894         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
13895
13896 2001-12-06  John Peacock <jpeacock@rowman.com>
13897
13898         * libc/include/sys/unistd.h: Correct ualarm declaration.
13899
13900 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
13901
13902         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
13903         vector before calling the initialisation functions.
13904
13905 2001-11-29  Christopher Faylor  <cgf@redhat.com>
13906
13907         * libc/include/dirent.h: Protect against multiple inclusion.
13908
13909 2001-11-27  Christopher Faylor  <cgf@redhat.com>
13910
13911         * libc/include/sys/types.h: Define useconds_t.
13912         * libc/include/sys/ulimit.h: Declare ualarm.
13913
13914 2001-11-21  Christopher Faylor  <cgf@redhat.com>
13915
13916         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
13917
13918 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
13919
13920         * libc/sys/mmixware/*: Tweak license header in all source files.
13921
13922 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
13923
13924         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
13925         to here.  Rearrange for general inclusion by stdlib.h.
13926         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
13927         isn't defined.
13928         * libc/sys/linux/include/alloca.h: Move to libc/include.
13929
13930 2001-11-12  Anthony Green  <green@redhat.com>
13931
13932         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
13933
13934 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
13935
13936         * libc/sys/mmixware/*: Correct spacing in all source files.
13937         * libc/sys/mmixware/syscall.h: Move misplaced file...
13938         * libc/sys/mmixware/sys/syscall.h: ...here.
13939
13940 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
13941
13942         * libc/include/machine/ieeefp.h: Add support for mmix target.
13943         * libc/include/machine/setjmp.h: Ditto.
13944         * configure.host: Ditto.
13945         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
13946         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
13947         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
13948         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
13949         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
13950         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
13951         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
13952         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
13953         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
13954         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
13955         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
13956         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
13957         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
13958         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
13959         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
13960         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
13961         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
13962         libc/sys/mmixware/aclocal.m4: Generate.
13963
13964 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
13965
13966         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
13967         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
13968         when __CYGWIN__ is defined.
13969         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
13970         logwtmp().
13971
13972 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
13973
13974         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
13975         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
13976         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
13977         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
13978
13979 2001-10-24  Christopher Faylor  <cgf@redhat.com>
13980
13981         * libc/stdio/fseek.c: Reset pointer to buffer base
13982         when forced to seek outside of current buffer contents.
13983         This prevents the code from erroneously thinking there is
13984         anything in the current buffer.
13985
13986 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
13987
13988         * libc/include/math.h: The C++ standard adds the single-precision
13989         versions of the elementary functions.
13990
13991 2001-10-22  Christopher Faylor  <cgf@redhat.com>
13992
13993         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
13994         throughout.
13995         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
13996         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
13997         * system.c (_system_r): Ditto.
13998
13999 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
14000
14001         * libc/include/sys/unistd.h: Add prototype for fchdir() when
14002         __CYGWIN__ or __rtems__ is defined.
14003
14004 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
14005
14006         * libc/include/stdlib.h: add declarations for
14007         _strtoull_r, _strtoll_r, strtoull, and strtoll.
14008         * libc/stdio/local.h: remove declarations of
14009         __strtoull_r and __strtoll_r.
14010         * libc/stdio/vfscanf.c(__svfscanf_r): call
14011         _strtoull_r instead of __strtoull_r. Ditto
14012         _strtoll_r vs. __strtoll_r.
14013         * libc/stdlib/Makefile.am: add new files to
14014         .c list and .def list
14015         * libc/stdlib/Makefile.in: regenerate
14016         * libc/stdlib/strtoll_r.c: rename __strtoll_r
14017         as _strtoll_r
14018         * libc/stdlib/strtoull_r.c: rename __strtoull_r
14019         as _strtoull_r
14020         * libc/stdlib/strtoull.c: new file
14021         * libc/stdlib/strtoll.c: new file
14022
14023 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
14024
14025         * libc/include/process.h: Add getpid() declaration.
14026
14027 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
14028
14029         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
14030         for new style arm/elf ctor/dtor handling.
14031         Minor formatting tidy up.
14032
14033 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14034
14035         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
14036         and strtoull_r.c.
14037         * libc/stdlib/Makefile.in: Regenerated.
14038         * libc/stdlib/strtoll_r.c: New file.
14039         * libc/stdlib/strtoull_r.c: New file.
14040         * libc/stdio/local.h: Add prototypes for long long string
14041         conversion routines.
14042         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
14043         tied to %L integer conversion specifier.
14044
14045 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
14046
14047         * strftime.c (strftime): Fix "%W" implementation to properly handle
14048         Mondays too.
14049
14050 2001-09-07  Jeff Law  <law@redhat.com>
14051
14052         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
14053         __fini with "mov.l" instead of "mov.w".
14054
14055 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
14056
14057         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
14058         and getopt.h.
14059
14060 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
14061
14062         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
14063
14064 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
14065
14066         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
14067         field.
14068         (__DIRENT_VERSION): New define.
14069
14070 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
14071
14072         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
14073         Shrink __d_reserved accordingly to keep structure size.
14074         (dirfd): Declare external.
14075
14076 2001-08-29  Joel Sherrill <joel@OARcorp.com>
14077
14078         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
14079
14080 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14081
14082         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
14083           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
14084           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
14085           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
14086           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
14087           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
14088           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
14089           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
14090         Add conditional compilation to avoid HW FPU instructions
14091         when compiled for soft-float.
14092
14093 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14094
14095         * Makefile.am: Add check for ln failing when creating libg.a
14096         so that cp gets used as a backup.
14097         * Makefile.in: Regenerated.
14098
14099 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14100
14101         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
14102         No longer include time.h.  Add struct __tm to use for
14103         _localtime_buf in the reentrant structure.  Add a
14104         _NULL definition to use in initializing the reentrant struct.
14105         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
14106         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
14107         <sys/_types.h>.
14108         * libc/include/sys/unistd.h: Include <sys/_types.h>.
14109         * libc/time/lcltime.c (localtime): Cast the reentrant struct
14110         _localtime_buf to be struct tm *.
14111
14112 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
14113
14114         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
14115         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
14116         __ctors_end.
14117         * libc/sys/h8300hms/syscalls.c: Include errno.h.
14118         (_unlink): New stub function.
14119
14120 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
14121
14122         * libc/include/sys/errno.h: Add a cautionary comment.
14123
14124 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
14125
14126         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
14127         for SIZE_SZ so that alignment ends up a minimum of 8.
14128
14129 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
14130
14131         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
14132         arguments.
14133
14134         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
14135         Cygwin.
14136
14137 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
14138
14139         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
14140         macro constants for mallopt options.
14141         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
14142
14143 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
14144
14145         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
14146         otherwise default.
14147
14148 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
14149
14150         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
14151
14152 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
14153
14154         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
14155         Define for little endian ARMs.
14156
14157         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
14158         __IEEE_BYTES_LITTLE_ENDIAN is defined.
14159
14160 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
14161
14162         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
14163
14164 2001-06-11  Egor Duda  <deo@logos-m.ru>
14165
14166         * libc/ctype/ctype_.c: When compiled with gcc on platforms
14167         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
14168         initialized memory region. Platform can define COMPACT_CTYPE
14169         to avoid allocation of the additional 128 bytes of data.
14170         Add pointer to _ctype_ array. Always initialize all _ctype_
14171         array elements.
14172
14173 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
14174
14175         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
14176         NULL pointer.
14177
14178 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
14179
14180         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
14181
14182 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
14183
14184         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
14185         matching, non-word alignment, and the length is <= 4 but more than
14186         enough to move them over a word boundary.
14187         Add comments explaining what each instruction does.
14188
14189 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
14190
14191         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
14192         * libc/include/sys/unistd.h: Ditto.
14193
14194 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
14195
14196         * libc/string/strrchr.c: Use strchr for the speed improvements.
14197
14198 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
14199
14200         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
14201         real file systems, let __smakebuf() determine if line buffering
14202         should be used for stdout.
14203
14204 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14205
14206         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
14207
14208 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14209
14210         * libc/include/stdlib.h: Add prototype for _strtod_r.
14211
14212 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
14213
14214         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
14215         * libc/stdio/vprintf.c (_vprintf_r): new function
14216         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
14217         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
14218         _DEFUN, and call _vfprintf_r, not vfprintf.
14219         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
14220         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
14221         _DEFUN, and call _vfprintf_r, not vfprintf.
14222
14223 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
14224
14225         * libc/include/sys/unistd.h [X_OK]: Use better protection against
14226         Cygwin X_OK definitions in sys/file.h.
14227
14228 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
14229
14230         * libc/include/sys/time.h: Define timercmp and other macros for
14231         __CYGWIN__, too.
14232
14233 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14234
14235         * acinclude.m4: Added --enable-malloc-debugging configure flag.
14236         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
14237         --enable-malloc-debugging selected.
14238         * aclocal.m4 configure: Regenerated.
14239           libm/aclocal.m4 libm/configure: Ditto.
14240         * libc/aclocal.m4 libc/configure: Ditto.
14241         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
14242         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
14243         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
14244         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
14245         * doc/aclocal.m4 doc/configure: Ditto.
14246
14247 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14248
14249         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
14250         into one list.
14251         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
14252         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
14253         function prototypes.
14254         (_fscanf_r, _sscanf_r): Ditto.
14255         * libc/include/stdlib.h: Added _strtod_r prototype.
14256         * libc/stdio/Makefile.am: Add new v*scanf functions.
14257         * libc/stdio/Makefile.in: Regenerate.
14258         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
14259         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
14260         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
14261         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
14262         (sscanf): Changed to call __svfscanf_r with _REENT argument.
14263         (_sscanf_r): New routine.
14264         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
14265         with __svfscanf_r prototype.
14266         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
14267         routines.
14268         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
14269         structure as argument as calls reentrant versions of helper functions
14270         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
14271         to _strtol_r and _strtod_r respectively.
14272         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
14273         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
14274         _REENT argument.
14275         * libc/stdio/vscanf.c: New file.
14276         * libc/stdio/vsscanf.c: Ditto.
14277
14278 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
14279
14280         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
14281         Define daylight to _daylight if it is not defined
14282         Prepare a variable export of timezone based on timezonevariable.
14283         (Cannot be used with the timezone() function.)
14284
14285 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
14286
14287         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
14288          Correct the numerical values.
14289
14290 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
14291
14292         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
14293
14294 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
14295
14296         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
14297         on case insensitve file systems.
14298
14299 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
14300
14301         * libc/include/sys/features.h: Add appropriate defines for Cygwin
14302         pthread support.
14303         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
14304         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
14305         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
14306
14307 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
14308
14309         * libc/include/machine/ieeefp.h: Comment about new configuration
14310         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14311         * libm/common/fdlib.h: Define new macros for testing floats.
14312         * libm/common/sf_*: Use them.
14313         * libm/math/ef_*: Likewise.
14314         * libm/math/sf_*: Likewise.
14315
14316 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14317
14318         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14319         prolog to by-pass possible assembler error.
14320
14321 2001-03-21  Egor Duda  <deo@logos-m.ru>
14322
14323         Allow building internal stubs for non-reentrant syscalls
14324         if target provides its own malloc
14325         * libc/reent/reent.c (errno): Move definition here.
14326         * libc/reent/sbrkr.c: From here.
14327
14328 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14329
14330         * libc/include/sys/types.h (BSD int typedefs): Guard with
14331         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14332         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14333         _SYS_TYPES_FD_SET.
14334         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14335         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14336
14337 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14338
14339         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14340         _PC_POSIX_SECURITY constants for Cygwin.
14341
14342 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14343
14344         * libc/sys/cygwin/crt0.c: Add copyright hint.
14345         * libc/sys/cygwin/sys/dirent.h: Ditto.
14346         * libc/sys/cygwin/sys/param.h: Ditto.
14347         * libc/sys/cygwin/sys/utime.h: Ditto.
14348         * libc/sys/cygwin/sys/utmp.h: Ditto.
14349
14350 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14351
14352         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14353         equivalent to LONGINT.
14354
14355 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14356
14357         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14358         jmpbuf on MIPS64 targets.
14359         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14360
14361 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14362
14363         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14364           declarations.
14365
14366 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14367
14368         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14369         For RTEMS, define to be ssize_t.  Default to int if not defined.
14370         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14371         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14372         * libc/stdio/local.h (__sread, __swrite): Likewise.
14373         * libc/include/sys/reent.h (_read, _write): Likewise.
14374         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14375         * libc/syscalls/sysread.c (read): Likewise.
14376         * libc/syscalls/syswrite.c (write): Likewise.
14377
14378 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14379
14380         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14381
14382 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14383
14384         * libc/include/sys/stat.h: Use special defines for executable stat bits
14385         when compiling for Cygwin.
14386         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14387         for Cygwin.
14388
14389 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14390
14391         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14392         of strtok_r is always defined.
14393
14394 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14395
14396         * libc/include/machine/ansi.h: New dummy header file.
14397
14398 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14399
14400         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14401         changed the copyright information to allow free modification of the
14402         file with no reference to "copying.dj".
14403         * libc/include/sys/stat-dj.h: Ditto.
14404         * libc/machine/i386/setjmp.S: Ditto.
14405         * libc/sys/h8300hms/sys/file.h: Ditto.
14406         * libc/sys/sysmec/access.c: Ditto.
14407         * libc/sys/sysnecv850/access.c: Ditto.
14408         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14409         * libc/stdlib/getenv_r.c: Ditto.
14410         * libc/stdlib/putenv_r.c: Ditto.
14411         * libc/stdlib/setenv_r.c: Ditto.
14412         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14413         modifications will now be in the _r version of this file.
14414         * libc/stdlib/putenv.c: Ditto.
14415         * libc/stdlib/setenv.c: Ditto.
14416         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14417         valid.  Added a reference to DJ's web page that contains his address.
14418         * libc/sys/go32/*.s: Removed references to DJ's old address.
14419         * libc/sys/go32/*.c: Ditto.
14420         * libc/sys/go32/*.h: Ditto.
14421         * libc/sys/go32/*.S: Ditto.
14422         * libc/sys/go32/sys/*.h: Ditto.
14423
14424 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14425
14426         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14427         HAVE_FCNTL flag check.
14428         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14429         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14430
14431 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14432
14433         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14434
14435 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14436
14437         * libc/include/stdlib.h: Add declarations of rand48 functions and
14438         their reentrant versions.
14439         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14440         struct _rand48 for shared parameters of rand48 functions.
14441         (struct _reent): Add a variable _r48 of struct _rand48.
14442         (_REENT_INIT): Add _r48 initialization.
14443         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14444         (CHEWOUT_FILES): Add rand48.def.
14445         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14446         * libc/stdlib/Makefile.in: Regenerated.
14447         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14448         NetBSD C library.
14449         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14450         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14451         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14452         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14453         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14454         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14455         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14456         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14457         * libc/stdlib/rand48.c (__dorand48): Ditto.
14458         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14459         parameters into macros referring them in the reentrant structure.
14460
14461 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14462
14463         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14464         Cygwin definition has correct prototype.
14465
14466 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14467
14468         * libc/include/sys/stat.h: Must revert change for mknod
14469         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14470         prototype.
14471
14472 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14473
14474         * libc/include/stdio.h: Revert putw prototype.
14475
14476 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14477
14478         * libc/include/grp.h: add prototype for initgroups.
14479         * libc/include/stdio.h: fix prototype for putw.
14480         * libc/include/sys/signal.h: add prototype for killpg.
14481         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14482         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14483         vhangup and remove duplicate sysconf prototype.
14484
14485 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14486
14487         * libc/sys/rtems/sys/types.h: Removed.
14488
14489 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14490
14491         * libc/include/locale.h: add LC_MESSAGES definition
14492
14493 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14494
14495         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14496         SYS_get_argN):
14497         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14498         __setup_argv_and_call_main): New.
14499
14500 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14501
14502         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14503         if defined.
14504         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14505         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14506         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14507         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14508
14509 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14510
14511         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14512         compiling under Cygwin.
14513
14514 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14515
14516         * libc/include/math.h (signgam): Change to errno-like solution
14517         using a function to return the address of the real signgam.
14518         * libc/reent/signgam.c: New file containing __signgam().
14519         * libc/reent/Makefile.am: Added signgam.c to list of files.
14520         * libc/reent/Makefile.in: Regenerated.
14521
14522 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14523
14524         * libc/sys/sh/syscalls.c (_times): New.
14525
14526         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14527         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14528
14529 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14530
14531         * libc/include/math.h (signgam): Regress previous fix as
14532         it does not handle programs with extern int signgam in them.
14533
14534 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14535
14536         * libc/include/math.h (signgam): Changed to a macro refering to
14537         its location in the reentrant structure.
14538
14539 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14540
14541         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
14542         that suppressed . for %.0f, 0.1.  Check now looks if there
14543         are padding zeroes (expt) in addition to any digits (ndig) to
14544         print.
14545
14546 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
14547
14548         * libc/sys/arc/Makefile.am: New file.
14549         * libc/sys/arc/Makefile.in: Ditto.
14550         * libc/sys/arc/aclocal.m4: Ditto.
14551         * libc/sys/arc/configure: Ditto.
14552         * libc/sys/arc/configure.in: Ditto.
14553         * libc/sys/arc/crt0.S: Ditto.
14554         * libc/sys/arc/isatty.c: Ditto.
14555         * libc/sys/arc/mem-layout.c: Ditto.
14556         * libc/sys/arc/sbrk.c: Ditto.
14557         * libc/sys/arc/syscalls.c: Ditto.
14558         * libc/sys/arc/sys/syscall.h: Ditto.
14559
14560 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
14561
14562         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
14563
14564 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
14565
14566         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
14567
14568 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
14569
14570         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
14571
14572 2001-01-09  Nick Clifton  <nickc@redhat.com>
14573
14574         * configure.host (v859): Remove unsupported compiler options.
14575
14576 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
14577
14578         * src/newlib/configure.host (*-*-rtems*): add printf long long
14579         support for RTEMS.
14580
14581 2000-12-19  Graham Stott <grahams@redhat.com>
14582
14583         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
14584
14585 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14586
14587         * configure.host: Turn on long double I/O for Cygwin.
14588
14589 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14590
14591         * MAINTAINERS: Removed Ranjith.
14592         * NEWS: Updated for 1.9.0.
14593         * README: Updated.
14594         * acinclude.m4: Updated to release 1.9.0.
14595         * aclocal.m4 configure
14596           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14597           libc/machine/aclocal.m4 libc/machine/configure
14598           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
14599           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
14600           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
14601           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
14602           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
14603           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
14604           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
14605           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
14606           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
14607           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
14608           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
14609           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
14610           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
14611           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
14612           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
14613           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
14614           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
14615           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
14616           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
14617           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
14618           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
14619           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
14620           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
14621           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
14622           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
14623           libc/sys/aclocal.m4 libc/sys/configure
14624           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
14625           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
14626           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
14627           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
14628           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
14629           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
14630           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
14631           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
14632           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
14633           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
14634           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
14635           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
14636           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
14637           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
14638           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
14639           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
14640           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
14641           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
14642           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
14643           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
14644           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
14645           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
14646           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
14647           libm/aclocal.m4 libm/configure: Regenerated.
14648
14649 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14650
14651         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
14652         when __CYGWIN__ is defined.
14653
14654 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14655
14656         * libc/stdlib/ldtoa.c (_ldcheck): New routine
14657         that categorizes a long double as NaN, Infinity, or other.
14658         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
14659         isinfl and isnanl static routines which were i386-specific.  Changed
14660         calls to the two removed routines to a single _ldcheck call.
14661         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
14662
14663 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14664
14665         * Makefile.am: Fixed install-data-local target to use
14666         $(mkinstalldirs) for the installed header files to ensure
14667         the directories exist before copying.
14668         * Makefile.in: Regenerated.
14669
14670 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
14671
14672         * libc/include/sys/unistd.h: Restored Cygwin _SC
14673         constants and moved new constants appropriately
14674         so Cygwin will build.
14675
14676 2000-12-11  Joel Sherrill <joel@OARcorp.com>
14677
14678         * Merge RTEMS specific .h files into main libc/include.
14679         * libc/sys/rtems/include/signal.h: Removed.
14680         * libc/sys/rtems/include/time.h: Removed.
14681         * libc/sys/rtems/sys/features.h: Removed.
14682         * libc/sys/rtems/sys/sched.h: Removed.
14683         * libc/sys/rtems/sys/siginfo.h: Removed.
14684         * libc/sys/rtems/sys/signal.h: Removed.
14685         * libc/sys/rtems/sys/time.h: Removed.
14686         * libc/sys/rtems/sys/times.h: Removed.
14687         definitions for time_t and clock_t since these are
14688         no longer in time.h.
14689         * libc/include/pthread.h: New file.
14690         * libc/include/sys/sched.h: New file.
14691         * libc/include/sys/features.h: New file.
14692         * libc/include/time.h: Removed duplicate definition of clock_t
14693         and time_t, get them from <sys/types.h> instead.  Add prototypes
14694         for POSIX clock and timer functionality.
14695         * libc/sys/linux/sys/types.h: Changed to include
14696         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
14697         * libc/include/sys/signal.h: Add more complete set of POSIX
14698         signal functionality including real-time and threaded signals.
14699         * libc/include/sys/types.h: Add clock_t, time_t, struct
14700         timespec, and struct itimerspec.  Centralizing these makes
14701         things cleaner.  RTEMS uses 64-bit dev_t.
14702         Added numerous primitive definitions
14703         for pthreads including macros, pthread_attr_t,
14704         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
14705         pthread_once_t, and pthread_t.
14706         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
14707         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
14708         Feature flags removed and moved to new file <sys/features.h>.
14709         Full set of POSIX sysconf() constants
14710
14711 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14712
14713         * configure.host: Added x86 linux target.
14714         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
14715         definitions provided if not already defined.
14716         * libc/sys/linux/crt0.c: New file.
14717         * libc/sys/linux/Makefile.am: Ditto.
14718         * libc/sys/linux/Makefile.in: Ditto.
14719         * libc/sys/linux/aclocal.m4: Ditto.
14720         * libc/sys/linux/brk.c: Ditto.
14721         * libc/sys/linux/configure: Ditto.
14722         * libc/sys/linux/configure.in: Ditto.
14723         * libc/sys/linux/getoptlong.c: Ditto.
14724         * libc/sys/linux/ids.c: Ditto.
14725         * libc/sys/linux/inode.c: Ditto.
14726         * libc/sys/linux/io.c: Ditto.
14727         * libc/sys/linux/linux.c: Ditto.
14728         * libc/sys/linux/process.c: Ditto.
14729         * libc/sys/linux/realpath.c: Ditto.
14730         * libc/sys/linux/select.c: Ditto.
14731         * libc/sys/linux/signal.c: Ditto.
14732         * libc/sys/linux/systat.c: Ditto.
14733         * libc/sys/linux/termios.c: Ditto.
14734         * libc/sys/linux/time.c: Ditto.
14735         * libc/sys/linux/wait.c: Ditto.
14736         * libc/sys/linux/include/alloca.h: Ditto.
14737         * libc/sys/linux/include/getopt.h: Ditto.
14738         * libc/sys/linux/include/stdint.h: Ditto.
14739         * libc/sys/linux/include/unistd.h: Ditto.
14740         * libc/sys/linux/sys/cdefs.h: Ditto.
14741         * libc/sys/linux/sys/dirent.h: Ditto.
14742         * libc/sys/linux/sys/errno.h: Ditto.
14743         * libc/sys/linux/sys/fcntl.h: Ditto.
14744         * libc/sys/linux/sys/file.h: Ditto.
14745         * libc/sys/linux/sys/ioctl.h: Ditto.
14746         * libc/sys/linux/sys/resource.h: Ditto.
14747         * libc/sys/linux/sys/signal.h: Ditto.
14748         * libc/sys/linux/sys/stat.h: Ditto.
14749         * libc/sys/linux/sys/syscall.h: Ditto.
14750         * libc/sys/linux/sys/termios.h: Ditto.
14751         * libc/sys/linux/sys/time.h: Ditto.
14752         * libc/sys/linux/sys/types.h: Ditto.
14753         * libc/sys/linux/sys/utmp.h: Ditto.
14754         * libc/sys/linux/sys/utsname.h: Ditto.
14755         * libc/sys/linux/sys/wait.h: Ditto.
14756
14757 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14758
14759         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
14760         can be a relative path to $(top_srcdir)/install.sh so ensure the
14761         autoconf detected settings are properly passed recursively.
14762         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
14763         properly to subdirectories.
14764         * Makefile.in: Regenerated.
14765
14766 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
14767
14768         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
14769         a floating point register unless really printing a floating
14770         point number.
14771
14772 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
14773
14774         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
14775         Also removed \r's.
14776         (asctoeg): Replaced alloca call with stack array and malloc
14777         when storage exceeds reasonable limit.
14778         (e53toe): Fixed einfin calls missing ldp parameter.
14779         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
14780
14781 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14782
14783
14784         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
14785
14786 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14787
14788         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
14789         * libc/stdlib/Makefile.in: Regenerated.
14790         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
14791         * libc/stdio/vfieeefp.h: Added long double bit structures.
14792         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
14793         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
14794         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
14795         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
14796         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
14797         _strtold routines used for conversions between character
14798         and long double.
14799
14800 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14801
14802         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
14803
14804 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14805
14806         * libc/include/machine/time.h: RTEMS systems can configure clock
14807         tick rate so use sysconf() to ask.
14808
14809 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14810
14811         * libc/include/sys/times.h: Add reference to POSIX standard.
14812
14813 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14814
14815         * libc/include/sys/time.h: Added BSD timer manipulation macros
14816         used by RTEMS code.
14817
14818 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14819
14820         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
14821         referenced by code generated by gcc 2.8.1.
14822         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
14823         satisfy gcc.
14824
14825 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14826
14827         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
14828
14829 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14830
14831         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
14832
14833 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14834
14835         * configure.host (or16, or32): New entries for OpenCores
14836         OpenRisc CPUs.
14837         (*-*-rtems*): Add -DNO_EXEC.
14838
14839 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
14840
14841         * libc/include/sys/errno.h: Added comments on many error numbers.
14842         * libc/string/strerror.c: Added some more strings.
14843
14844 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
14845
14846         * libc/sys/sh/syscalls.c (_link): New stub.
14847
14848 2000-11-29  Nick Clifton  <nickc@redhat.com>
14849
14850         * configure.host: Add xscale target.
14851         * libc/machine/xscale: New directory.
14852         * libc/machine/xscale/Makefile.am: New file.
14853         * libc/machine/xscale/Makefile.in: New file.
14854         * libc/machine/xscale/aclocal.m4: New file.
14855         * libc/machine/xscale/configure: New file.
14856         * libc/machine/xscale/configure.in: New file.
14857         * libc/machine/xscale/memchr.S: New file.
14858         * libc/machine/xscale/memcmp.S: New file.
14859         * libc/machine/xscale/memcpy.S: New file.
14860         * libc/machine/xscale/memmove.S: New file.
14861         * libc/machine/xscale/memset.S: New file.
14862         * libc/machine/xscale/strchr.S: New file.
14863         * libc/machine/xscale/strcmp.S: New file.
14864         * libc/machine/xscale/strcpy.S: New file.
14865         * libc/machine/xscale/strlen.S: New file.
14866
14867 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14868
14869         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
14870         avoid compiler warnings.
14871
14872 2000-11-22  Michael Meissner  <meissner@redhat.com>
14873
14874         * libc/posix/execl.c (execl): Don't reference environ directly,
14875         reference it only via a static pointer to avoid problems with some
14876         shared library systems and with different uses of small data where
14877         the user specifies his own version of environ.
14878         * libc/posix/execv.c (execv): Ditto.
14879         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
14880         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
14881         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
14882
14883         * libc/stdlib/getenv.c (environ): Delete unused reference to
14884         environ.
14885
14886         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
14887         colorization.
14888         * libc/stdlib/system.c: Ditto.
14889
14890 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
14891
14892         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
14893         including windows headers.
14894
14895 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
14896
14897         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
14898         * libc/include/dirent.h: Added definition of MAXNAMLEN if
14899         not defined by sys/dirent.h.
14900         * libc/posix/execvp.c: Added include of dirent.h to get
14901         MAXNAMLEN value which used to be in unistd.h.
14902
14903 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14904
14905         * libc/include/sys/types.h: Change type of i to `size_t' in
14906         FD_ZERO macro to avoid compiler warnings.
14907
14908 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
14909
14910         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
14911         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
14912
14913 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14914
14915         * libc/include/sys/unistd.h: Add defines for sysconf values
14916         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
14917         _SC_AVPHYS_PAGES.
14918
14919 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
14920
14921         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
14922         declarations for __CYGWIN__.
14923
14924 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
14925
14926         * libc/signal/signal.c (__sigtramp_r): ISO C requires
14927         case labels to be integral constant expressions, so
14928         use an if/else tree instead.
14929         (_raise_r): Likewise.
14930
14931 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14932
14933         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
14934         clipping patch from e-mail reader.
14935
14936 2000-09-13  Will Cohen  <wcohen@redhat.com>
14937
14938         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
14939         Added return value 0.
14940         (_longjmp): Allow longjmp to return value of second argument
14941         passed to it.
14942
14943 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
14944
14945         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
14946         inline code to prevent having to include another header file.
14947
14948 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
14949
14950         * Makefile.am: Fix space vs. tab problem in install-data-local.
14951         * Makefile.in: Regenerate.
14952
14953 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
14954
14955         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
14956         (_EXPARM): New macro for defining a function parameter.
14957         * libc/include/stdlib.h: Use _EXPARM.
14958         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
14959
14960 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
14961
14962         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
14963         required, as documented in the gnu coding standards.
14964         * Makefile.in: Regenerate.
14965
14966 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
14967
14968         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
14969         make O_NDELAY and O_NONBLOCK have the same value.
14970
14971 2000-08-30  Kazu Hirata  <kazu@hxi.com>
14972
14973         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
14974
14975 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14976
14977         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
14978         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
14979         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
14980         everywhere else.
14981
14982 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
14983
14984         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
14985         * libc/include/string.h: Don't include <sys/types.h>,
14986         as it causes really bad namespace pollution.  Don't declare
14987         swab(), it is properly declared in unistd.h.
14988
14989 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14990
14991         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
14992         (broken) support for non-existent /etc/passwd field "comment".
14993
14994 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14995
14996         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
14997         only if _DIRENT_HAVE_D_NAMLEN is defined.
14998         (alphasort): aligned prototype with
14999         libc/sys/cygwin/sys/dirent.h and simplified function body.
15000         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
15001         long telldir (DIR *) as mentioned in annex B of POSIX.1
15002
15003 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15004
15005         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
15006         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
15007         Added __CLI and __STI macros (controlled via
15008         _I386MACH_ALLOW_HW_INTERRUPTS macro).
15009         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
15010         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
15011         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
15012         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
15013         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
15014         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
15015         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
15016         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
15017         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
15018         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
15019         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
15020         for all global entry points.
15021         * libc/machine/i386/setjmp.S: removed code replicated in
15022         libc/machine/i386/i386mach.h and included i386mach.h instead;
15023         Use __CLI and __STI instead of cli and sti.
15024
15025 2000-08-25  DJ Delorie  <dj@redhat.com>
15026
15027         * libc/include/sys/unistd.h (environ): this one isn't from the
15028         DLL, no __IMPORT
15029
15030 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
15031
15032         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
15033         environ when compiling under cygwin since it is already declared in
15034         unistd.h.
15035
15036 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15037
15038         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
15039         like  x << y-z  to the equivalent  x << (y-z).
15040         (d2b): changed if statements with assignment to perform the
15041         assignment prior to the if check.
15042         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
15043         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
15044         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
15045         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
15046         precedence.
15047         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
15048         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
15049         execve.c).
15050         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
15051         precedence.
15052         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
15053         clarify && and || precendence (and to remove pascalism).
15054         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
15055         * libm/math/s_infconst.c: added another pair of braces to all
15056         initializers for __infinity (need three: for __infinity[1] array,
15057         for union __dmath, and for i[2]).
15058
15059 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15060
15061         * libc/stdlib/abort.c: changed description: uses "raise" instead of
15062         "getpid" and "kill"; added: uses "write" and "_exit".
15063         Also included unistd.h for "_exit" prototype.
15064         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
15065         reent.h for "_fork_r" and "_wait_r" prototypes.
15066         (do_system): changed  extern char *environ[] to POSIX-friendly
15067         extern char **environ.
15068         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
15069         prototypes.
15070         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
15071         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
15072         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
15073         * libc/reent/openr.c: included fcntl.h for "open" prototype.
15074         * libc/reent/signalr.c: included signal.h for "kill" prototype,
15075         unistd.h for "getpid" prototype.
15076         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
15077         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
15078         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
15079         prototype.  Also included stdlib.h for "abort", string.h for
15080         "strdup" and "strncmp" prototypes.
15081         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
15082         "strncpy", unistd.h for "read" and "close" prototypes.
15083         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
15084         "strcat" prototypes.
15085
15086 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
15087
15088         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
15089         used later (ifdef __SCLE)
15090         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
15091         used later (ifdef MB_CAPABLE)
15092         * libc/string/memset.c (memset): removed unused variables "count"
15093         and "unaligned_addr"
15094         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
15095         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
15096         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
15097         and "gid"
15098
15099 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15100
15101         * libc/stdlib/envlock.c: changed documented "__env_lock" and
15102         "__env_unlock" prototype from "void *" or "char *" to
15103         "struct _reent *" to match real function.  Also added include
15104         of envlock.h.
15105         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
15106         "__malloc_unlock" prototype from "void *" or "char *" to
15107         "struct _reent *" to match real function.
15108         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
15109         prototypes (for getenv_r.c and setenv_r.c).
15110
15111 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15112
15113         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
15114         and prototype in cygwin's utmp.h
15115
15116 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
15117
15118         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
15119
15120 2000-08-09  Nick Clifton  <nickc@cygnus.com>
15121
15122         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
15123         epilogue and to allow the functions to be used in a Thumb based
15124         toolchain.
15125
15126 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
15127
15128         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
15129         so size of 0 results in nothing being written to string.
15130         Also fixed code so that when size is non-zero, there is only
15131         a maximum of size - 1 characters written to the array and
15132         a nul terminator is appended at the end.
15133         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
15134
15135 2000-08-01  DJ Delorie  <dj@redhat.com>
15136
15137         * libc/include/sys/config.h: define __IMPORT appropriately
15138         * libc/include/ctype.h (_ctype_): use __IMPORT
15139         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
15140         * libc/include/math.h (__mb_cur_max): ditto
15141         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
15142         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
15143         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
15144         * libc/include/unistd.h (environ): ditto
15145
15146 2000-07-28  Michael Meissner  <meissner@redhat.com>
15147
15148         * libc/include/math.h (__infinity): Declare as an array without
15149         bounds to get around small data support.  Rewrite Cygwin support
15150         to be more general.
15151         * libm/math/s_infconst.c (__infinity): Ditto.
15152         * libm/mathfp/s_infconst.c (__infinity): Ditto.
15153
15154 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
15155
15156         * libc/include/math.h: Use appropriate dll import linkage for
15157         __infinity under Cygwin.
15158
15159 2000-07-13  DJ Delorie  <dj@cygnus.com>
15160
15161         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
15162
15163 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
15164
15165         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
15166         to argument list for AngelSWI_Reason_GetCmdLine.
15167
15168 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
15169
15170         * configure.host: Add support for AVR target.
15171         * libc/include/machine/ieeefp.h: Likewise.
15172         * libc/include/sys/config.h: Likewise.
15173
15174 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15175
15176         * README: Newlib 1.8.2 must be built in a separate directory
15177         than the sources.
15178
15179 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15180
15181         * libc/include/sys/reent.h (_rand_next): Added __extension__
15182         qualifier as long long type is not strict ANSI.
15183         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
15184         to long long constant.
15185
15186 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
15187
15188         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
15189         `setegid' provided by Cygwin.
15190
15191 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
15192
15193         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
15194         account for Cygwin.
15195
15196 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15197
15198         * libc/include/sys/reent.h (_rand_next): Changed to
15199         unsigned long long and moved to end of _reent struct in _new union.
15200         (_REENT_INIT): Changed to move _rand_next initialization.
15201         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
15202         linear congruential algorithm that is used by DJGPP.
15203
15204 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15205
15206         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
15207         * libc/include/sys/config.h: Define __RAND_MAX.
15208
15209 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15210
15211         * libc/stdlib/rand_r.c: New algorithm that meets minimal
15212         standard.
15213
15214 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
15215
15216         * libc/include/string.h: Work around problem with strsignal and gdb.
15217
15218 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
15219
15220         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
15221         * libc/include/malloc.h: Ditto.
15222         * libc/include/process.h: Ditto.
15223         * libc/include/stdio.h: Ditto.
15224         * libc/include/stdlib.h: Ditto.
15225         * libc/include/time.h: Ditto.
15226         * libc/include/machine/setjmp.h: Ditto.
15227         * libc/include/sys/errno.h: Ditto.
15228         * libc/include/sys/signal.h: Ditto.
15229         * libc/include/sys/stat.h: Ditto.
15230         * libc/include/sys/time.h: Ditto.
15231         * libc/include/sys/unistd.h: Ditto.
15232         * libc/include/string.h: Ditto.  strsignal should return a const char *.
15233
15234 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
15235
15236         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
15237         * libm/common/s_log1p.c (log1p): Likewise.
15238         * libm/common/s_scalbn.c (scalbn): Likewise.
15239         * libm/math/e_log.c: Likewise.
15240         * libm/math/e_asin.c: Likewise.
15241         * libm/math/ef_asin.c: Likewise.
15242         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
15243         * libm/math/e_j1.c (pone, qone): Likewise.
15244         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
15245         * libm/math/ef_j1.c (ponef, qonef): Likewise.
15246         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
15247         * libm/mathfp/e_j1.c (pone, qone): Likewise.
15248         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
15249         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
15250
15251 2000-05-19  DJ Delorie  <dj@cygnus.com>
15252
15253         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
15254         (__sread): always read in binary mode
15255         (__swrite): always write in binary mode
15256         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
15257         compatibility issues with different dll versions
15258         * libc/stdio/fopen.c: use __stextmode
15259         * libc/stdio/fdopen.c: ditto
15260         * libc/stdio/freopen.c: ditto
15261         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
15262         * libc/stdio/local.h: declare __stextmode
15263
15264 2000-05-18  DJ Delorie  <dj@cygnus.com>
15265
15266         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
15267
15268 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15269
15270         * libc/include/ctype.h: Changed tolower and toupper macros
15271         to use __extension__ to prevent pedantic warnings.
15272
15273 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
15274
15275         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
15276         structures.
15277
15278 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
15279
15280         * libc/include/machine/ieeefp.h: Add ia64 support.
15281         * configure.host: Likewise.
15282
15283 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
15284
15285         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
15286         month is now padded with space, not zero.  This now conforms to
15287         ANSI standard.
15288
15289 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
15290
15291         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
15292         host or network path") used by cygwin. Add some comments.
15293
15294 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
15295
15296         * libc/include/stdio.h (FILE): define __SCLE for "convert line
15297         endings" for Cygwin.
15298         (__sgetc): convert line endings if needed
15299         (__sputc): ditto
15300         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
15301         * libc/stdio/fopen.c (_fopen_r): ditto
15302         * libc/stdio/freopen.c (freopen): ditto
15303         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
15304         * libc/stdio/fvwrite.c (__sfvwrite): ditto
15305
15306 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
15307
15308         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
15309         post-increment when it is worth it, spacewise.
15310
15311 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15312
15313         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15314         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15315         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15316         return type.
15317         * libc/stdio/putchar.c (putchar): Added return statement.
15318         * libc/stdio/refill.c (lflush): Added correct parentheses.
15319         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15320         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15321         prints long value to use l qualifier.
15322         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15323         messages and initialized local values: ilim, ilim1, and spec_case.
15324         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15325         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15326         * libc/stdlib/mprec.c: Ditto.
15327         * libc/stdlib/setenv_r.c: Ditto.
15328         * libc/stdlib/strtod.c: Ditto.
15329         * libc/stdlib/strtol.c: Ditto.
15330         * libc/stdlib/strtoul.c: Ditto.
15331         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15332         * libm/common/sf_log1p.c: Ditto.
15333         * libm/common/sf_scalbn.c: Ditto.
15334         * libm/math/ef_log.c: Ditto.
15335
15336 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15337
15338         * libc/posix/execvp.c (execvp): Check path for
15339         trailing slash.
15340
15341 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15342
15343         * libc/include/sys/unistd.h: Add prototypes for
15344         fchmod, fchown, lchown.
15345
15346 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15347
15348         * acinclude.m4: Changed release to 1.8.2.
15349         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15350           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15351           libc/machine/configure libc/machine/a29k/aclocal.m4
15352           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15353           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15354           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15355           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15356           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15357           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15358           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15359           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15360           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15361           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15362           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15363           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15364           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15365           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15366           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15367           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15368           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15369           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15370           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15371           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15372           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15373           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15374           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15375           libc/machine/z8k/configure libc/sys/aclocal.m4
15376           libc/sys/aclocal.m4 libc/sys/configure
15377           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15378           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15379           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15380           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15381           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15382           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15383           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15384           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15385           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15386           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15387           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15388           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15389           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15390           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15391           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15392           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15393           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15394           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15395           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15396           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15397           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15398           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15399           libm/aclocal.m4 libm/configure: Regenerated.
15400
15401 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15402
15403         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15404         (do_AngelSWI): Add "cc" to list o registers clobbered.
15405
15406 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15407
15408         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15409         information to be clobbered by an Angel C library support syscall.
15410
15411 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15412
15413         * libc/stdlib/envlock.c: Fixed comment typo.
15414
15415 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15416
15417         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15418         code to update nread as each character is processed instead
15419         of using buffer contents which throw away leading zeroes.
15420
15421 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15422
15423         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15424
15425 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15426
15427         * libc/include/string.h: Include <sys/types.h>.
15428
15429 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15430
15431         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15432         with XSH5, not SVID.
15433
15434 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15435
15436         * libc/include/string.h: Changed last argument back to ssize_t
15437         to make it compatible with XPG4 definition which is
15438         defined in <unistd.h>.  There is a conflict in the SVID 3
15439         and XPG4 definitions and newlib will settle with XPG4.
15440         * libc/string/swab.c: Ditto.
15441
15442 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15443
15444         * libc/include/string.h: Changed last argument to size_t.
15445         * libc/string/swab.c: Changed last argument to size_t.
15446
15447 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15448
15449         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15450         (CHEWOUT_FILES): Added unlinkr.def.
15451         * libc/reent/Makefile.in: Rebuilt.
15452         * libc/sys.tex: Include unlinkr.def.
15453         * libc/reent/linkr.c (_unlink_r): Moved to...
15454         * libc/reent/unlinkr.c: ... new file.
15455
15456 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15457
15458         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15459         (CHEWOUT_FILES): Added swab.def.
15460         * libc/string/Makefile.in: Rebuilt.
15461         * libc/string/string.tex: Include swab.def.
15462         * libc/include/string.h (swab): Declare.
15463         * libc/string/swab.c: New file.
15464
15465 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15466
15467         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15468         (CHEWOUT_FILES): Added getw.def and putw.def.
15469         * libc/stdio/Makefile.in: Rebuilt.
15470         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15471         * libc/stdio/getw.c: New file.
15472         * libc/stdio/putw.c: New file.
15473
15474 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15475
15476         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15477         is non-null before looking at mode[2].
15478
15479 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15480
15481         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15482         * libm/mathfp/sf_atan.c: Ditto.
15483
15484 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15485
15486         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15487
15488 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15489
15490         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15491         _DOUBLE_IS_32BITS.
15492
15493 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15494
15495         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15496         call prior to calling _VFPRINTF_R so reentrant data area is set.
15497         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15498
15499 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15500
15501         * libc/stdio/vfscanf.c (limits.h): #include.
15502         (MAX_LONG_LEN): #define.
15503         (__svfscanf): Handle floating point numbers with arbitrary amounts
15504         of leading zeroes.
15505
15506 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15507
15508         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15509         zero.  Set the blocksize to 1024/
15510
15511 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15512
15513         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15514         with line buffering.
15515
15516 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15517
15518         * acinclude.m4: Changed include directory for winsup headers.
15519         * aclocal.m4 configure libc/aclocal.m4
15520           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15521           libc/locale/Makefile.in libc/machine/aclocal.m4
15522           libc/machine/configure libc/machine/a29k/aclocal.m4
15523           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15524           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15525           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15526           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15527           libc/machine/fr30/configure
15528           libc/machine/h8300/aclocal.m4
15529           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15530           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15531           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15532           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15533           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15534           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15535           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15536           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15537           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15538           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15539           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15540           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15541           libc/machine/powerpc/configure
15542           libc/machine/sh/aclocal.m4
15543           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15544           libc/machine/sparc/configure
15545           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15546           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15547           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15548           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15549           libc/misc/Makefile.in libc/posix/Makefile.in
15550           libc/reent/Makefile.in
15551           libc/signal/Makefile.in
15552           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
15553           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15554           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
15555           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
15556           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
15557           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15558           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15559           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15560           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15561           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15562           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15563           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15564           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15565           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
15566           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
15567           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
15568           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
15569           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
15570           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
15571           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
15572           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
15573           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
15574           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
15575           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
15576           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
15577           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
15578           libm/configure: Regenerated.
15579
15580 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
15581
15582         * libc/stdlib/putenv_r.c (_putenv_r): New file.
15583         * libc/stdlib/strdup_r.c (_strdup_r): New file.
15584         * libc/include/string.h: Added _strdup_r.
15585         * libc/stdlib/putenv.c: Added call to reentrant version.
15586         * libc/stdlib/strdup.c: Ditto.
15587         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
15588         * libc/include/stdlib.h: Ditto.
15589         * libc/stdlib/Makefile.in: Regenerated.
15590         * libc/string/Makefile.in: Regenerated.
15591         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
15592         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
15593         management calls to reentrant versions.
15594         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
15595         * libc/stdlib/wctomb.c: Ditto.
15596         * libc/stdlib/mblen.c: Ditto.
15597         * libc/stdlib/mbstowcs.c: Ditto.
15598         * libc/stdlib/mbtowc.c: Ditto.
15599         * libc/stdlib/getenv.c: Ditto.
15600         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
15601         and _strdup_r.
15602
15603 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
15604
15605         patch from Corinna Vinschen <corinna@vinschen.de>
15606         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
15607
15608 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
15609
15610         * libm/mathfp/s_atangent.c: Fix exponent calculation.
15611         * libm/mathfp/s_ldexp.c: Ditto.
15612         * libm/mathfp/sf_atangent.c: Ditto.
15613         * libm/mathfp/sf_ldexp.c: Ditto.
15614
15615 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15616
15617         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
15618         * libc/include/locale.h: define NULL to be 0.
15619
15620 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
15621
15622         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
15623         function.
15624
15625 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
15626
15627         * libc/machine/mn10300/setjmp.S: Handle am33.
15628
15629 1999-11-26  Nick Clifton  <nickc@cygnus.com>
15630
15631         * libc/sys/arm/syscalls.c: Add function prototypes.
15632         (stack_ptr): Move declaration before function definitions.
15633
15634 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15635
15636         * NEWS: Updated version information.
15637         * README: Ditto.
15638
15639 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
15640
15641         * libc/machine/i386/strchr.S: Fixed alignment test.
15642
15643 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
15644
15645         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
15646
15647 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
15648
15649         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
15650         ensuring that there is space between the two.
15651
15652 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
15653
15654         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
15655         only.
15656
15657 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
15658
15659         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
15660         section
15661
15662 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15663
15664         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
15665         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
15666
15667 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
15668         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
15669           per POSIX 1003.1b.
15670         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
15671           per POSIX 1003.1b.
15672
15673 1999-09-13  DJ Delorie  <dj@cygnus.com>
15674
15675         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
15676         also.
15677
15678 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15679
15680         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
15681         also note BUFSIZ as its size.
15682
15683 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
15684
15685         * configure.host: Corrected feature defines for RTEMS.
15686         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
15687         * libc/include/sys/stat.h: mkfifo() should take const path arg.
15688         * libc/include/sys/unistd.h: pathconf() should take const path arg.
15689           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
15690           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
15691           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
15692           _PC_PRIO_IO, and _PC_SYNC_IO.
15693         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
15694         * libc/machine/m68k/Makefile.in: Regenerated.
15695         * libc/machine/m68k/strcpy.c: New file.
15696         * libc/machine/m68k/strlen.c: New file.
15697         * libc/stdio/tmpnam.c: Always make the returned name usable.
15698         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
15699         * libc/sys/rtems/sys/dirent.h: New file.
15700         * libc/sys/rtems/sys/types.h: Added dev_t.
15701
15702 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
15703
15704         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
15705
15706 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
15707
15708         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
15709         my patch.
15710
15711 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
15712
15713         patch from Jeff Johnston <jjohnstn@cygnus.com>
15714         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
15715         buffer is not in a useful state.
15716
15717 1999-09-01  Nick Clifton  <nickc@cygnus.com>
15718
15719         * libc/sys/arm/syscalls.c (_link): Add stub.
15720
15721 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
15722
15723         * ftell.c (ftell): Use actual position within buffer for text mode.
15724         * findfp.c (std): Initialize ptr->_bf._size.
15725
15726 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
15727
15728         * libc/include/sys/unistd.h: Add nice() declaration.
15729
15730 1999-08-09  Nick Clifton  <nickc@cygnus.com>
15731
15732         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
15733         declare as a thumb function so that the disassembler will see the
15734         mode change.
15735
15736 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15737
15738         * libc/reent/reent.tex: Updated list of reentrant functions.
15739
15740 1999-07-09  Michael Meissner  <meissner@cygnus.com>
15741
15742         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
15743
15744 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
15745
15746         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
15747         separate file.
15748         * libc/stdio/snprintf.c: New file.
15749         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
15750         separate file.
15751         * libc/stdio/vsnprintf.c: New file.
15752         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
15753         * libc/stdio/Makefile.in: Regenerated.
15754
15755 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
15756
15757         Patch submitted by Egor Duda <deo@logos-m.ru>:
15758         * libc/include/stdio.h: Add declarations for *nprintf.
15759         * libc/stdio/sprintf.c (snprintf): New function.
15760         (_snprintf_r): New function.
15761         * libc/stdio/vsprintf.c (vsnprintf): New function.
15762         (_vnsprintf_r): New function.
15763
15764 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15765
15766         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
15767         * libm/Makefile.am (stmp-targetdep): Ditto.
15768         * libc/Makefile.in: Regenerated.
15769         * libm/Makefile.in: Ditto.
15770
15771 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15772
15773         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
15774         * libm/Makefile.am (stmp-targetdep): Ditto.
15775         * libc/Makefile.in: Regenerated.
15776         * libm/Makefile.in: Ditto.
15777
15778 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15779
15780         * Makefile.am: Removed dependencies on all-recursive and added "."
15781         to the SUBDIRS list to prevent infinite recursion from occurring.
15782         Also removed any references to EXTRA_DATA.
15783         * libc/Makefile.am: Ditto.
15784         * libc/machine/Makefile.am: Ditto.
15785         * libc/machine/i386/Makefile.am: Ditto.
15786         * libm/Makefile.am: Ditto.
15787         * libc/sys/Makefile.am: Ditto.
15788         * Makefile.in: Regenerated.
15789         * aclocal.m4: Ditto.
15790         * configure: Ditto.
15791         * doc/Makefile.in: Ditto.
15792         * doc/aclocal.m4: Ditto.
15793         * doc/configure: Ditto.
15794         * libc/Makefile.in: Ditto.
15795         * libc/aclocal.m4: Ditto.
15796         * libc/configure: Ditto.
15797         * libc/machine/Makefile.in: Ditto.
15798         * libc/machine/aclocal.m4: Ditto.
15799         * libc/machine/configure: Ditto.
15800         * libc/machine/mn10300/Makefile.in: Ditto.
15801         * libc/machine/mn10300/aclocal.m4: Ditto.
15802         * libc/machine/mn10300/configure: Ditto.
15803         * libc/sys/Makefile.in: Ditto.
15804         * libc/sys/aclocal.m4: Ditto.
15805         * libc/sys/configure: Ditto.
15806         * libm/Makefile.in: Ditto.
15807         * libm/aclocal.m4: Ditto.
15808         * libm/configure: Ditto.
15809
15810 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15811
15812         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
15813
15814 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15815
15816         * libc/include/stdlib.h: Add reentrant routines.
15817         * libc/stdlib/Makefile.am: Add reentrant routines.
15818         * libc/stdlib/Makefile.in: Ditto.
15819         * libc/stdlib/envlock.c: New file.
15820         * libc/stdlib/envlock.h: New file.
15821         * libc/stdlib/getenv.c: Modify to call reentrant routine.
15822         * libc/stdlib/getenv_r.c: New file.
15823         * libc/stdlib/mblen.c: Modify to call reentrant routine.
15824         * libc/stdlib/mblen_r.c: New file.
15825         * libc/stdlib/setenv.c: Modify to call reentrant routine.
15826         * libc/stdlib/setenv_r.c: New file.
15827         * libc/stdlib/stdlib.tex: Add reentrant routines.
15828
15829 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
15830
15831         * libc/include/sys/types.h: Define __MS_types__ whenever
15832         cygwin or win32.
15833
15834 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
15835
15836         * libc/include/machine/ieeefp.h: Always default to little
15837         endian if Windows, regardless of architecture.
15838         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
15839         regardless of architecture.
15840
15841 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
15842
15843         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
15844         _WIN32 isn't defined.
15845
15846 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15847
15848         * libm/common/s_rint.c (rint): Add volatile qualifier for
15849         intermediate value w.
15850         * libm/common/sf_rint.c (rintf): Ditto.
15851
15852 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15853
15854         * libc/sys/arm/syscalls.c (remap_handle): Added check to
15855         ensure that std streams are initialized before being referenced.
15856
15857 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
15858
15859         * README: Update reference to newlib@cygnus.com new
15860         newlib@sourceware.cygnus.com address.
15861
15862 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
15863
15864         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
15865         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
15866         defined, even if _WIN32 isn't defined.
15867
15868 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
15869
15870         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
15871
15872 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
15873
15874         * libc/include/sys/reent.h: Change Long and ULong to __Long and
15875         __ULong.
15876         * libc/stdlib/dtoa.c: Ditto.
15877         * libc/stdlib/mprec.c: Ditto.
15878         * libc/stdlib/mprec.h: Ditto.
15879         * libc/stdlib/strtod.c: Ditto.
15880
15881 1999-04-21  Nick Clifton  <nickc@cygnus.com>
15882
15883         * configure.host (mcore): Remove mcore machine directory.
15884
15885 1999-04-18  Nick Clifton  <nickc@cygnus.com>
15886
15887         * libc/include/machine/ieeefp.h: Add support for mcore target.
15888         * libc/include/machine/setjmp.h: Add support for mcore target.
15889         * configure.host: Add support for mcore target.
15890
15891 1999-04-13  Mark Salter  <msalter@cygnus.com>
15892
15893         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
15894         * libc/sys/arm/syscalls.c: Added isatty.
15895
15896 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15897
15898         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
15899         insert zeroes after significant digits.
15900
15901 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15902
15903         * libc/stdio/vfprintf.c (cvt): Changed floating point
15904         cvt routine to use union used by dtoa to properly determine
15905         if the sign bit is on or not.
15906         * libc/stdio/vfieeefp.h: New file
15907
15908 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15909
15910         * aclocal.m4: Regenerated.
15911         * configure: Regenerated.
15912
15913 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15914
15915         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
15916         f_tanf reference.
15917         * libc/machine/i386/Makefile.in: Regenerated.
15918
15919 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15920
15921         * acinclude.m4: Changed to work with new automake.
15922         * configure: Regenerated.
15923         * libc/machine/i386/aclocal.m4: Regenerated.
15924         * libc/machine/i386/configure: Regenerated.
15925
15926 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
15927
15928         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
15929         for telldir() and seekdir().  Rename unused structure element
15930         for use with these two routines.
15931
15932 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15933
15934         * libc/time/mktime.c (validate_structure): Multiple fixes to
15935         code to handle cases where input fields are outside valid ranges.
15936         * libc/stdlib/div.c (div): Modified invalid rounding check.
15937         * libc/stdlib/ldiv.c (ldiv): Ditto.
15938
15939 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15940
15941         * libc/machine/i386/memcpy.S: Performance rewrite.
15942         * libc/machine/i386/memmove.S: Ditto.
15943         * libc/machine/i386/i386mach.h: Added more register definitions.
15944         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
15945         option used.
15946         * libc/include/machine/fastmath.h: Add definitions for x86
15947         fast-math routines.
15948
15949 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15950
15951         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
15952
15953 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
15954
15955         Adjust newlib headers for new Cygwin Win32 API header files:
15956         * libc/include/sys/time.h: Check _WINSOCK_H rather than
15957         _GNU_H_WINDOWS32_SOCKETS.
15958         * libc/include/sys/types.h: Ditto.
15959
15960 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15961
15962         *include/sys/reent.h: Add checks for size of Bigint element Long.
15963         *libc/dtoa.c: Change routines to use generic Long type.
15964         *libc/mprec.c: Change routines to use generic Long type.
15965         *libc/mprec.h: Change routines to use generic Long type.
15966
15967 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15968
15969         * libc/Makefile.am: Add .def files.
15970         * libc/Makefile.in: Regenerate.
15971         * libc/e_acosh.c: Documentation update.
15972         * libc/e_atanh.c: Documentation update.
15973         * libc/e_hypot.c: Documentation update.
15974         * libc/e_remainder.c: Documentation update.
15975         * libc/er_lgamma.c: Documentation update.
15976         * libc/mathfp.tex: Documentation update.
15977         * libc/s_acos.c: Documentation update.
15978         * libc/s_atan.c: Documentation update.
15979         * libc/s_atan2.c: Documentation update.
15980         * libc/s_cosh.c: Documentation update.
15981         * libc/s_fmod.c: Documentation update.
15982         * libc/s_isnan.c: Documentation update.
15983         * libc/s_log10.c: Documentation update.
15984         * libc/s_pow.c: Documentation update.
15985         * libc/w_jn.c: Documentation update.
15986
15987 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
15988
15989         * aclocal.m4: Regenerate.
15990         * configure: Regenerate.
15991
15992 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15993
15994         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
15995         to return 1 if user specified return code is 0.
15996         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
15997
15998 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15999
16000         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
16001         to save the return address.  Fixed longjmp to return to the original
16002         calling address of setjmp and to return the user specified return code
16003         rather than default to 1.
16004         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
16005
16006 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16007
16008         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
16009
16010 1999-02-10  Nick Clifton  <nickc@cygnus.com>
16011
16012         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
16013         volatile so that its assignments will not be discarded.
16014
16015 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16016
16017         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
16018         be __STRICT_ANSI__ which is generated by compiler.
16019         * libc/include/ctype.h: Ditto.
16020         * libc/include/math.h: Ditto.
16021         * libc/include/stdio.h: Ditto.
16022         * libc/include/stdlib.h: Ditto.
16023         * libc/include/string.h: Ditto.
16024         * libc/include/sys/signal.h: Ditto.
16025
16026 1999-02-08  Nick Clifton  <nickc@cygnus.com>
16027
16028         * configure.host: Add support for StrongARM target.
16029
16030 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16031
16032         * libc/string/strncpy.c (strncpy): Removed redundant code
16033         that was copying bytes if data unaligned.
16034
16035 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
16036
16037         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
16038         mbstowcs.def, and wcstombs.def.
16039
16040 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
16041
16042         * libc/include/sys/errno.h: Add Cygwin errno.
16043         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
16044         is specified.
16045
16046 1999-01-29  Nick Clifton  <nickc@cygnus.com>
16047
16048         * libc/sys/arm/syscalls.c: Move C library functions into seperate
16049         file.
16050
16051         * libc/sys/arm/libcfunc.c: New file containing C library functions
16052         from syscalls.c
16053
16054         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
16055         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
16056
16057
16058 1999-01-27  Michael Meissner  <meissner@cygnus.com>
16059
16060         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
16061         type, and cut size in half so that the jmp_buf array is guaranteed
16062         to be aligned on a 64-bit boundary.
16063
16064 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16065
16066         * libc/string/strings.tex: Added information about
16067         strcasecmp and strncasecmp.
16068         * libc/stdlib/stdlib.tex: Added missing information
16069         about mblen, mbstowcs, and wcstombs.
16070         * libc/string/strchr.c: Changed how mask is built to use
16071         shift operators so register will be used instead of storage.
16072
16073 1999-01-22  DJ Delorie  <dj@cygnus.com>
16074
16075         * libc/include/stdlib.h: don't use dllimport if we're building
16076         newlib, since it's inside cygwin.dll
16077
16078 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
16079
16080         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
16081         _ctype_ under cygwin.
16082
16083 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
16084
16085         * include/stdlib.h: Fix typo from previous checkin.
16086
16087 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
16088
16089         * include/ctype.h: Use __declspec(dllimport) method for exporting
16090         variable from cygwin DLL.
16091         * include/time.h: Ditto.
16092         * sys/errno.h: Ditto.
16093         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
16094         * libc/locale/locale.c: Use __declspec(dllexport) method for
16095         exporting variable from cygwin DLL.
16096
16097 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
16098
16099         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
16100         access of bogus pointer will result in SIGSEGV.
16101
16102 1999-01-07  Nick Clifton  <nickc@cygnus.com>
16103
16104         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
16105         of an underscore prefix to function names.
16106
16107 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16108
16109         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
16110         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
16111
16112 1998-12-31  Michael Meissner  <meissner@cygnus.com>
16113
16114         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
16115         to `%' if not already defined.
16116
16117 1998-12-30  Michael Meissner  <meissner@cygnus.com>
16118
16119         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
16120         arguments const char *, not char *.
16121         * libc/include/stdio.h (_tempnam_r): Ditto.
16122
16123         * libc/include/sys/reent.h (struct _reent): The _sig_func type
16124         points to a function taking an integer, not void.
16125
16126 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
16127
16128         * configure.host: Add a define for Cygwin builds.
16129         * libc/include/ctype.h: Don't use dll imported variables in newlib.
16130
16131 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
16132
16133         * libc/include/ctype.h: Define _ctype_ as dll imported variable
16134         for use with Cygwin.
16135         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
16136         dll imported variables for use with Cygwin.
16137         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
16138         as a dll imported variable for Cygwin.
16139
16140 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
16141
16142         * libc/include/sys/unistd.h: Add proto for getpass.
16143
16144 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
16145
16146         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
16147         alphasort.
16148
16149 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
16150
16151         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
16152         not posix_path_list_p.
16153
16154 1998-12-15  Nick Clifton  <nickc@cygnus.com>
16155
16156         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
16157         a signed int.
16158
16159 1998-12-13  Nick Clifton  <nickc@cygnus.com>
16160
16161         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
16162
16163 1998-12-12  Nick Clifton  <nickc@cygnus.com>
16164
16165         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
16166         <msalter@cygnus.com>
16167         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
16168         * libc/machine/fr30/Makefile.in: Regenerated.
16169
16170 1998-12-11  Nick Clifton  <nickc@cygnus.com>
16171
16172         * configure.host: Remove use of libc/sys for FR30 port.
16173         * libc/sys/fr30: Remove directory (replaced by libgloss).
16174
16175 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
16176
16177         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
16178         * libc/string/strncat.c (ALIGNED): Ditto.
16179
16180 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
16181
16182         * libc/include/sys/time.h: include sys/types.h
16183
16184 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16185
16186         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
16187         comparison found when checking word at a time.
16188
16189 1998-12-04  Nick Clifton  <nickc@cygnus.com>
16190
16191         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
16192
16193 1998-12-03  Nick Clifton  <nickc@cygnus.com>
16194
16195         * libc/sys/fr30/syscalls.c (_times): New function stub.
16196
16197 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16198
16199         * configure.host (mach_add_setjmp): Replaced mach_add_objs
16200         with mach_add_setjmp flag which indicates if setjmp should
16201         be added to the machine directory objects.
16202         * acinclude.m4: Removed reference to mach_add_objs.
16203         * aclocal.m4: Regenerated.
16204         * Makefile.in: Regenerated.
16205         * configure: Regenerated.
16206         * libc/aclocal.m4: Regenerated.
16207         * libc/Makefile.in: Regenerated.
16208         * libc/configure: Regenerated.
16209         * libc/machine/aclocal.m4: Regenerated.
16210         * libc/machine/Makefile.in: Regenerated.
16211         * libc/machine/configure: Regenerated.
16212         * libc/machine/i386/aclocal.m4: Regenerated.
16213         * libc/machine/i386/Makefile.am: Altered to selectively add
16214         setjmp.S to the src files list.
16215         * libc/machine/i386/Makefile.in: Regenerated.
16216         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
16217         * libc/machine/i386/configure: Regenerated.
16218
16219 1998-12-02  Nick Clifton  <nickc@cygnus.com>
16220
16221         * libc/sys/fr30/crt0.s (_start): Fix function names.
16222
16223         * libc/machine/fr30: New directory
16224         * libc/machine/fr30/Makefile.am: New file.
16225         * libc/machine/fr30/Makefile.in: New generated file.
16226         * libc/machine/fr30/configure.in: New file.
16227         * libc/machine/fr30/configure: New generated file.
16228         * libc/machine/fr30/aclocal.m4: New generated file.
16229         * libc/sys/fr30/Makefile.am: New file.
16230         * libc/sys/fr30/Makefile.in: New generated file.
16231         * libc/sys/fr30/configure.in: New file.
16232         * libc/sys/fr30/configure: New generated file.
16233         * libc/sys/fr30/syscalls.c: New file.
16234
16235 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
16236
16237         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
16238
16239 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
16240
16241         * libc/time/strftime.c (strftime): Also handle %y for years before
16242         1900.
16243
16244 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
16245
16246         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
16247         UNIX convention.  Perform tolower on characters before comparing
16248         them rather than use toupper.
16249         * libc/string/strncasecmp.c (strncasecmp): Ditto.
16250
16251 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16252
16253         * configure.host: Added using i386 machine directory
16254         for all x86 cross-compiler and configuring
16255         which added object files to use via new "mach_add_objs" variable.
16256         * configure: Regenerated.
16257         * libc/configure: Regenerated.
16258         * libc/Makefile.in: Regenerated.
16259         * libc/aclocal.m4: Regenerated.
16260         * libc/ctype/Makefile.in: Regenerated.
16261         * libc/errno/Makefile.in: Regenerated.
16262         * libc/locale/Makefile.in: Regenerated.
16263         * libc/machine/Makefile.in: Regenerated.
16264         * libc/machine/aclocal.m4: Regenerated.
16265         * libc/machine/configure: Regenerated.
16266         * libc/posix/Makefile.in: Regenerated.
16267         * libc/reent/Makefile.in: Regenerated.
16268         * libc/signal/Makefile.in: Regenerated.
16269         * libc/stdio/Makefile.in: Regenerated.
16270         * libc/stdlib/Makefile.in: Regenerated.
16271         * libc/string/Makefile.in: Regenerated.
16272         * libc/string/memmove.c: Optimized code to use memcpy
16273         logic when performing a non-destructive copy.
16274         * libc/string/strncmp.c: Altered code to allow building
16275         optimized for size or speed.
16276         * libc/syscalls/Makefile.in: Regenerated.
16277         * libc/time/Makefile.in: Regenerated.
16278         * libc/unix/Makefile.in: Regenerated.
16279         * libc/machine/i386/Makefile.am: Added new files and reference
16280         to "mach_add_objs" to indicate optional object files.
16281         * libc/machine/i386/Makefile.in: Regenerated.
16282         * libc/machine/i386/aclocal.m4: Regenerated.
16283         * libc/machine/i386/configure: Regenerated.
16284         * libc/machine/i386/memchr.S: New file that implements
16285         function in Intel assembler.
16286         * libc/machine/i386/memcmp.S: ditto.
16287         * libc/machine/i386/memcpy.S: ditto.
16288         * libc/machine/i386/memmove.S: ditto.
16289         * libc/machine/i386/memset.S: ditto.
16290         * libc/machine/i386/strchr.S: ditto.
16291         * libc/machine/i386/strlen.S: ditto.
16292         * libc/machine/i386/f_atan2.S: New file that implements
16293         fast version of math function to be used by compiler when
16294         --ffast_math compile option is used.
16295         * libc/machine/i386/f_atan2f.S: ditto.
16296         * libc/machine/i386/f_exp.c: ditto.
16297         * libc/machine/i386/f_expf.c: ditto.
16298         * libc/machine/i386/f_frexp.S: ditto.
16299         * libc/machine/i386/f_frexpf.S: ditto.
16300         * libc/machine/i386/f_ldexp.S: ditto.
16301         * libc/machine/i386/f_ldexpf.S: ditto.
16302         * libc/machine/i386/f_log.S: ditto.
16303         * libc/machine/i386/f_logf.S: ditto.
16304         * libc/machine/i386/f_log10.S: ditto.
16305         * libc/machine/i386/f_log10f.S: ditto.
16306         * libc/machine/i386/f_math.h: New file.
16307         * libc/machine/i386/f_pow.c: ditto.
16308         * libc/machine/i386/f_powf.S: ditto.
16309         * libc/machine/i386/f_tan.S: ditto.
16310         * libc/machine/i386/f_tan.S: ditto.
16311         * libc/machine/i386/i386mach.h: New file.
16312
16313 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16314
16315         patch from Mumit Khan <khan@xraylith.wisc.edu>
16316         * libc/include/stdio.h (tempnam): Add prototype.
16317         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16318         (tempnam): Adhere to prototype.
16319
16320 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16321
16322         * Makefile.am: Add default for AR_FLAGS.
16323         * Makefile.in: Regenerate.
16324
16325 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16326
16327         * libc/include/time.h: move __cplusplus wrapper after includes
16328         * libc/include/sys/time.h: ditto.  If Cygwin, include
16329         sys/select.h.
16330         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16331
16332 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16333
16334         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16335
16336 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16337
16338         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16339         abnormnal end-of-crt0 marker.
16340
16341 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16342
16343         * libc/sys/fr30/crt0.s: New file/directory.
16344         * libc/include/machine/setjmp.h: Add FR30 target.
16345         * libc/include/machine/ieeefp.h: Add FR30 target.
16346         * configure.host: Add FR30 target.
16347
16348 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16349
16350         * libm/math: Files that are duplicated in common directory removed.
16351         * libm/math/fdlibm.h: Removed.
16352         * libm/math/s_cbrt.c: Removed.
16353         * libm/math/s_copysign.c: Removed.
16354         * libm/math/s_expm1.c: Removed.
16355         * libm/math/s_finite.c: Removed.
16356         * libm/math/s_ilogb.c: Removed.
16357         * libm/math/s_infinity.c: Removed.
16358         * libm/math/s_lib_ver.c: Removed.
16359         * libm/math/s_log1p.c: Removed.
16360         * libm/math/s_logb.c: Removed.
16361         * libm/math/s_matherr.c: Removed.
16362         * libm/math/s_modf.c: Removed.
16363         * libm/math/s_nan.c: Removed.
16364         * libm/math/s_nextafter.c: Removed.
16365         * libm/math/s_rint.c: Removed.
16366         * libm/math/s_scalbn.c: Removed.
16367         * libm/math/sf_cbrt.c: Removed.
16368         * libm/math/sf_copysign.c: Removed.
16369         * libm/math/sf_expm1.c: Removed.
16370         * libm/math/sf_finite.c: Removed.
16371         * libm/math/sf_ilogb.c: Removed.
16372         * libm/math/sf_infinity.c: Removed.
16373         * libm/math/sf_log1p.c: Removed.
16374         * libm/math/sf_logb.c: Removed.
16375         * libm/math/sf_modf.c: Removed.
16376         * libm/math/sf_nan.c: Removed.
16377         * libm/math/sf_nextafter.c: Removed.
16378         * libm/math/sf_rint.c: Removed.
16379         * libm/math/sf_scalbn.c: Removed.
16380         * libm/math/Makefile.am: Removed references to deleted files (above).
16381         * libm/math/Makefile.in: Regenerated.
16382         * libm/Makefile.am: Added common directory to math.
16383         * libm/Makefile.in: Regenerated.
16384
16385 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16386
16387         * libm/mathfp: Add non-ANSI functions.
16388         * libm/mathfp/e_acosh.c acosh(): New file.
16389         * libm/mathfp/e_atanh.c atanh(): New file.
16390         * libm/mathfp/e_hypot.c hypot(): New file.
16391         * libm/mathfp/e_j0.c j0(): New file.
16392         * libm/mathfp/e_j1.c j1(): New file.
16393         * libm/mathfp/e_remainder.c remainder(): New file.
16394         * libm/mathfp/e_scalb.c scalb(): New file.
16395         * libm/mathfp/ef_acosh.c acoshf(): New file.
16396         * libm/mathfp/ef_atanh.c atanhf(): New file.
16397         * libm/mathfp/ef_hypot.c hypotf(): New file.
16398         * libm/mathfp/ef_j0.c j0f(): New file.
16399         * libm/mathfp/ef_j1.c j1f(): New file.
16400         * libm/mathfp/ef_remainder.c remainderf(): New file.
16401         * libm/mathfp/ef_scalb.c scalbf(): New file.
16402         * libm/mathfp/er_gamma.c gamma_r: New file.
16403         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16404         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16405         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16406         * libm/mathfp/w_cabs.c cabs(): New file.
16407         * libm/mathfp/w_drem.c drem(): New file.
16408         * libm/mathfp/w_jn.c jn(): New file.
16409         * libm/mathfp/wf_cabs.c cabsf(): New file.
16410         * libm/mathfp/wf_drem.c dremf(): New file.
16411         * libm/mathfp/wf_jn.c jnf(): New file.
16412
16413 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16414
16415         * libc/sys/cygwin32: remove directory and contents
16416         * libc/sys/cygwin: and add back, losing the "32".
16417         * configure.host: check for cygwin* instead of cygwin32.
16418         * acinclude.m4: ditto.
16419         * aclocal.m4: regenerate with aclocal
16420         * configure: regenerate with autoconf
16421
16422 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16423
16424         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16425         for length
16426
16427 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16428
16429         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16430         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16431         to make rand/srand, strtok, asctime, localtime, w_gamma,
16432         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16433         time.h to bring in struct tm definition.
16434         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16435         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16436         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16437         instead of static variable.
16438         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16439         struct reent instead of static variable.
16440         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16441         struct reent instead of static variable.
16442         * libm/math/Makefile.am: Removed s_signgam.o.
16443         * libm/math/Makefile.in: Regenerated.
16444         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16445         struct reent instead of global variable 'signgam'.
16446         * libm/math/w_lgamma.c (lgamma): Likewise.
16447         * libm/math/wf_gamma.c (gammaf): Likewise.
16448         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16449         * libm/math/s_signgam.c: Removed.
16450         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16451         to be const.
16452         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16453         to be const.
16454         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16455         libc/include/reent.h.
16456         * libc/reent/Makefile.in: Regenerated.
16457         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16458         to be const.
16459         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16460         'JIS_action_table' to be const.
16461         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16462
16463 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16464
16465         * acinclude.m4:  $with_target_subdir should default to '.'
16466         or confusion results when configuring in same directory as sources.
16467         * Regenerate all aclocal.m4 and configure files.
16468
16469 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16470
16471         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16472         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16473         for platforms where sizeof(size_t) < sizeof(long) via
16474         SIZE_T_SMALLER_THAN_LONG macro.
16475
16476 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16477
16478         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16479         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16480         which sets _CLOCKS_PER_SEC_ for selected machines.
16481         * libc/include/machine/time.h: New file.
16482
16483 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16484
16485         * libc/syscalls/sysexecve.c: New file.
16486         * libc/syscalls/sysgettod.c: New file.
16487         * libc/syscalls/systimes.c: New file.
16488         * libc/syscalls/Makefile.am: Added new objects.
16489         * libc/syscalls/Makefile.in: Regenerated.
16490         * libc/include/_syslist.h (_execve): Moved define in file.
16491         * libc/include/reent.h:  Added _execve_r declaration.
16492         * libc/Makefile.in: Regenerated.
16493         * libc/ctype/Makefile.in: Regenerated.
16494         * libc/errno/Makefile.in: Regenerated.
16495         * libc/locale/Makefile.in: Regenerated.
16496         * libc/machine/Makefile.in: Regenerated.
16497         * libc/misc/Makefile.in: Regenerated.
16498         * libc/posix/Makefile.in: Regenerated.
16499         * libc/reent/Makefile.in: Regenerated.
16500         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16501         * libc/signal/Makefile.in: Regenerated.
16502         * libc/stdio/Makefile.in: Regenerated.
16503         * libc/time/Makefile.in: Regenerated.
16504         * libc/unix/Makefile.in: Regenerated.
16505         * libm/mathfp/Makefile.in: Regenerated.
16506
16507 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16508
16509         * libc/string/Makefile.in: Regenerated.
16510         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16511         * libc/string/memcpy.c (memcpy): Ditto.
16512         * libc/string/memcmp.c (memcmp): Ditto.
16513         * libc/string/memset.c (memset): Ditto.
16514         * libc/string/strchr.c (strchr): Ditto.
16515         * libc/string/strcmp.c (strcmp): Ditto.
16516         * libc/string/strcpy.c (strcpy): Ditto.
16517         * libc/string/strlen.c (strlen): Ditto.
16518
16519 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16520
16521         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16522         to generate aclocal.m4.
16523         * libm/Makefile.in: Regenerated.
16524         * libm/aclocal.m4: Regenerated.
16525         * libm/configure: Regenerated.
16526         * libm/math/Makefile.in: Regenerated.
16527         * libm/mathfp/Makefile.in: Regenerated.
16528
16529 1998-09-25  Mark Salter  <msalter@cygnus.com>
16530
16531         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16532         by adding leading and trailing underscores to symbol names.
16533
16534 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16535
16536         * Makefile.in: Add default for AR_FLAGS.
16537
16538 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
16539
16540         patch from ian@airs.com (Ian Taylor):
16541         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
16542         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
16543         is needed for detecting the build machine.  Required for
16544         cygwin native builds.
16545
16546         * Regenerate all aclocal.m4 and configure files.
16547
16548 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
16549
16550         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
16551         used to start with LC.
16552
16553 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16554
16555         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
16556         (longjmp): Likewise.
16557
16558 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16559
16560         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
16561         the test for small number of bytes.
16562
16563 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16564
16565         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
16566         math library that uses floating point algorithms instead of the old
16567         libm.
16568         * Makefile.in: Regenerate with automake version 1.3b.
16569         * configure: Rebuild.
16570         * libm/Makefile.in: Regenerate with automake version 1.3b.
16571         * libm/aclocal.m4: Regenerate.
16572         * libm/configure: Rebuild.
16573         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
16574         * libm/acinclude.m4: Define macros for configure.in.
16575         * libm/config.h.in: Generate.
16576         * libm/mathfp/Makefile.am: New file.
16577         * libm/mathfp/Makefile.in: Generate.
16578         * libm/mathfp/s_acos.c (acos): New file.
16579         * libm/mathfp/s_asin.c (asin): New file.
16580         * libm/mathfp/s_asine.c (asine): New file.
16581         * libm/mathfp/s_atan.c (atan): New file.
16582         * libm/mathfp/s_atan2.c (atan2): New file.
16583         * libm/mathfp/s_atangent.c (atangent): New file.
16584         * libm/mathfp/s_ceil.c (ceil): New file.
16585         * libm/mathfp/s_copysign.c (copysign): New file.
16586         * libm/mathfp/s_cos.c (cos): New file.
16587         * libm/mathfp/s_cosh.c (cosh): New file.
16588         * libm/mathfp/s_exp.c (exp): New file.
16589         * libm/mathfp/s_fabs.c (fabs): New file.
16590         * libm/mathfp/s_finite.c (finite): New file.
16591         * libm/mathfp/s_floor.c (floor): New file.
16592         * libm/mathfp/s_fmod.c (fmod): New file.
16593         * libm/mathfp/s_frexp.c (frexp): New file.
16594         * libm/mathfp/s_infconst.c: New file.
16595         * libm/mathfp/s_isinf (isinf).c: New file.
16596         * libm/mathfp/s_isnan.c (isnan): New file.
16597         * libm/mathfp/s_ispos.c (ispos): New file.
16598         * libm/mathfp/s_ldexp.c (ldexp): New file.
16599         * libm/mathfp/s_log.c (log): New file.
16600         * libm/mathfp/s_log10.c (log10): New file.
16601         * libm/mathfp/s_logarithm.c (logarithm): New file.
16602         * libm/mathfp/s_mathcnst.c: New file.
16603         * libm/mathfp/s_modf (modf).c: New file.
16604         * libm/mathfp/s_numtest.c (numtest): New file.
16605         * libm/mathfp/s_pow.c (pow): New file.
16606         * libm/mathfp/s_scalbn.c (scalbn): New file.
16607         * libm/mathfp/s_sin (sin).c: New file.
16608         * libm/mathfp/s_sine.c (sine): New file.
16609         * libm/mathfp/s_sineh.c (sineh): New file.
16610         * libm/mathfp/s_sinf.c (sinf): New file.
16611         * libm/mathfp/s_sinh.c (sinh): New file.
16612         * libm/mathfp/s_sqrt.c (sqrt): New file.
16613         * libm/mathfp/s_tan.c (tan): New file.
16614         * libm/mathfp/s_tanh.c (tanh): New file.
16615         * libm/mathfp/sf_acos.c (acosf): New file.
16616         * libm/mathfp/sf_asin.c (asinf): New file.
16617         * libm/mathfp/sf_asine.c (asinef): New file.
16618         * libm/mathfp/sf_atan.c (atanf): New file.
16619         * libm/mathfp/sf_atan2.c (atan2f): New file.
16620         * libm/mathfp/sf_atangent.c (atangent): New file.
16621         * libm/mathfp/sf_ceil.c (ceilf): New file.
16622         * libm/mathfp/sf_copysign.c (copysignf): New file.
16623         * libm/mathfp/sf_cos.c (cosf): New file.
16624         * libm/mathfp/sf_cosh.c (coshf): New file.
16625         * libm/mathfp/sf_exp.c (expf): New file.
16626         * libm/mathfp/sf_fabs.c (fabsf): New file.
16627         * libm/mathfp/sf_finite.c (finitef): New file.
16628         * libm/mathfp/sf_floor.c (floorf): New file.
16629         * libm/mathfp/sf_fmod.c (fmodf): New file.
16630         * libm/mathfp/sf_frexp.c (frexpf): New file.
16631         * libm/mathfp/sf_isinf.c (isinff): New file.
16632         * libm/mathfp/sf_isnan.c (isnanf): New file.
16633         * libm/mathfp/sf_ispos.c (isposf): New file.
16634         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
16635         * libm/mathfp/sf_log.c (logf): New file.
16636         * libm/mathfp/sf_log10.c (log10f): New file.
16637         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
16638         * libm/mathfp/sf_modf.c (modff): New file.
16639         * libm/mathfp/sf_numtest.c (numtestf): New file.
16640         * libm/mathfp/sf_pow.c (powf): New file.
16641         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
16642         * libm/mathfp/sf_sin.c (sinf): New file.
16643         * libm/mathfp/sf_sine.c (sinef): New file.
16644         * libm/mathfp/sf_sineh.c (sinehf): New file.
16645         * libm/mathfp/sf_sinh.c (sinhf): New file.
16646         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
16647         * libm/mathfp/sf_tan.c (tanf): New file.
16648         * libm/mathfp/sf_tanh.c (tanhf): New file.
16649         * libm/mathfp/zmath.h: New file.
16650
16651 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16652
16653         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
16654         exit if it has been overwritten by pre-fetching in delay slot.
16655
16656 1998-09-01  Michael Meissner  <meissner@cygnus.com>
16657
16658         * Makefile.am (tooldir): Add in host_alias, so that multilib
16659         libraries are installed in the directory the compiler looks in.
16660         * Makefile.in: Regenerate.
16661
16662         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
16663
16664 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16665
16666         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
16667         ahead of test for number of bytes being moved.
16668
16669 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
16670
16671         * libc/include/sys/unistd.h: Nothing special needed for
16672         _exit under cygwin.
16673
16674 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
16675
16676         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
16677         conform to user label naming conventions.
16678
16679 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
16680
16681         * libc/sys/cygwin32/sys/utime.h: variable names in
16682         protos should start with two leading underscores
16683         * libc/include/string.h: ditto
16684         * libc/include/sys/signal.h: ditto
16685         * libc/include/sys/stat.h: ditto
16686         * libc/include/sys/time.h: ditto
16687         * libc/include/sys/unistd.h: ditto
16688         * libc/include/ctype.h: ditto
16689         * libc/include/stdlib.h: ditto
16690         * libc/include/sys/reent.h: struct _atexit function ptr takes a
16691         void, same with _sig_func.
16692
16693 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16694
16695         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
16696         for MB_CAPABLE to reduce code size when newlib is not configured
16697         with --enable-newlib-mb.
16698         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
16699         mbtowc_r.o to minimize size.
16700         * libc/stdlib/Makefile.in: Rebuild.
16701
16702 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
16703
16704         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
16705         to -DREENT.
16706         * libc/sys/sparc64/Makefile.in: Rebuild.
16707
16708 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
16709
16710         * Makefile.am (MAKEOVERRIDES): Define.
16711         * Makefile.in: Rebuild.
16712
16713 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
16714
16715         * libc/sys/sparc64/sys/stat.h (stat): Add const.
16716
16717 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
16718
16719         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
16720         newlib_cflags when looking for targ-include.
16721         * */aclocal.m4, */configure: Rebuild.
16722
16723 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
16724
16725         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
16726         to "_end".
16727
16728 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
16729
16730         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
16731         on SPARCs with little-endian data.
16732         * libc/include/machine/ieeefp.h: Ditto.
16733
16734 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
16735
16736         * acinclude.m4: Handle a relative srcdir correctly when setting
16737         newlib_cflags.
16738         * */aclocal.m4, */configure: Rebuild.
16739
16740 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16741
16742         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
16743         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
16744         * libm/math/wrf_gamma.c (gammaf_r): ditto
16745         * libm/math/wr_lgamma.c (lgamma_r): ditto
16746         * libm/math/wr_gamma.c (gamma_r): ditto
16747         * libm/math/wf_sqrt.c (sqrtf): ditto
16748         * libm/math/wf_sinh.c (sinhf): ditto
16749         * libm/math/wf_scalb.c (scalbf): ditto
16750         * libm/math/wf_remainder.c (remainderf): ditto
16751         * libm/math/wf_pow.c (powf): ditto
16752         * libm/math/wf_log10.c (log10f): ditto
16753         * libm/math/wf_log.c (logf): ditto
16754         * libm/math/wf_lgamma.c (lgammaf): ditto
16755         * libm/math/wf_jn.c (jnf, ynf): ditto
16756         * libm/math/wf_j1.c (j1f, y1f): ditto
16757         * libm/math/wf_j0.c (j0f, y0f): ditto
16758         * libm/math/wf_hypot.c (hypotf): ditto
16759         * libm/math/wf_gamma.c (gammaf): ditto
16760         * libm/math/wf_fmod.c (fmodf): ditto
16761         * libm/math/wf_exp.c (expf): ditto
16762         * libm/math/wf_cosh.c (coshf): ditto
16763         * libm/math/wf_atanh.c (atanhf): ditto
16764         * libm/math/wf_atan2f.c (atan2f): ditto
16765         * libm/math/wf_asin.c (asinf): ditto
16766         * libm/math/wf_acosh.c (acoshf): ditto
16767         * libm/math/wf_acos.c (acosf): ditto
16768         * libm/math/w_sqrt.c (sqrt): ditto
16769         * libm/math/w_sinh.c (sinh): ditto
16770         * libm/math/w_scalb.c (scalb): ditto
16771         * libm/math/w_remainder.c (remainder): ditto
16772         * libm/math/w_pow.c (pow): ditto
16773         * libm/math/w_log10.c (log10): ditto
16774         * libm/math/w_log.c (log): ditto
16775         * libm/math/w_lgamma.c (lgamma): ditto
16776         * libm/math/w_jn.c (jn, yn): ditto
16777         * libm/math/w_j1.c (j1, y1): ditto
16778         * libm/math/w_j0.c (j0, y0): ditto
16779         * libm/math/w_hypot.c (hypot): ditto
16780         * libm/math/w_gamma.c (gamma): ditto
16781         * libm/math/w_fmod.c (fmod): ditto
16782         * libm/math/w_exp.c (exp): ditto
16783         * libm/math/w_cosh.c (cosh): ditto
16784         * libm/math/w_atanh.c (atanh): ditto
16785         * libm/math/w_atan2f.c (atan2): ditto
16786         * libm/math/w_asin.c (asin): ditto
16787         * libm/math/w_acosh.c (acosh): ditto
16788         * libm/math/w_acos.c (acos): ditto
16789
16790 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
16791
16792         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
16793         (fsrc): Add wf_cabs.c and wf_drem.c.
16794         * libm/math/Makefile.in: Rebuild.
16795
16796         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
16797         unused directory variables.  Remove duplicate CFLAGS.
16798         * Makefile.in: Rebuild.
16799
16800         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
16801         with $(CC_FOR_BUILD).
16802         (makedoc.o): Likewise.
16803         * doc/Makefile.in: Rebuild.
16804
16805         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
16806         force a definition of COMPILE.
16807         (libfoo_a_SOURCES): Define.
16808         * libc/sys/cygwin32/Makefile.in: Rebuild.
16809         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
16810         force a definition of COMPILE.
16811         (libfoo_a_SOURCES): Define.
16812         * libc/sys/tic80/Makefile.in: Rebuild.
16813
16814 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
16815
16816         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
16817         flag.
16818
16819 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
16820
16821         * Build using autoconf and automake.  Added many Makefile.am and
16822         configure.in files, plus generated files.  Old configure.in files
16823         and all old Makefile.in files completely replaced.  Removed
16824         host/any.  Added acinclude.m4 and configure.host.
16825
16826 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
16827
16828         * libc/stdio/vfprintf.c: enable long long support, sometimes.
16829         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
16830
16831 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16832
16833         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
16834         * libc/machine/sh/Makefile.in: Add rules for new files.
16835
16836 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16837
16838         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
16839         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
16840         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
16841
16842 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
16843
16844         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
16845         code is ignored.
16846
16847 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16848
16849         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
16850         internal static buffer when s is NULL, as prescribed by ANSI.
16851
16852 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
16853
16854         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
16855         removed.
16856         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
16857         libc/stdlib will be used for h8300hms.
16858
16859 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16860
16861         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
16862         version that can be built either for speed or size.
16863         * libc/machine/mn10300/memset.S (_memset): ditto
16864         * libc/machine/mn10300/memchr.S (_memchr): ditto
16865         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
16866         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
16867         * libc/machine/mn10300/strchr.S (_strchr): ditto
16868         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
16869         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
16870         * libc/machine/mn10300/Makefile.in: Added entries for
16871         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
16872         strcmp.o, strcpy.o, and strlen.o.
16873
16874 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
16875
16876         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
16877         been replaced with libgloss/mn10200.
16878
16879 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
16880
16881         * libc/string/strchr.c (strchr): Make s a constant pointer to
16882         avoid warning.
16883
16884 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
16885
16886         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
16887         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
16888         board SWIs instead of Demon board SWIs).
16889
16890 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
16891
16892         * libc/string/strncat.c (strncat):  Make -Os act the same as
16893         PREFER_SIZE_OVER_SPEED being defined.
16894
16895 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
16896
16897         * libc/string/memchr.c (memchr): Make -Os act the same as
16898         PREFER_SIZE_OVER_SPEED being defined.
16899         * libc/string/memcmp.c (memcmp): Ditto.
16900         * libc/string/memcpy.c (memcpy): Ditto.
16901         * libc/string/memset.c (memset): Ditto.
16902         * libc/string/strcat.c (strcat): Ditto.
16903         * libc/string/strchr.c (strchr): Ditto.
16904         * libc/string/strcmp.c (strcmp): Ditto.
16905         * libc/string/strcpy.c (strcpy): Ditto.
16906         * libc/string/strlen.c (strlen): Ditto.
16907         * libc/string/strncat.c (strncat): Ditto.
16908         * libc/string/strncmp.c (strncmp): Ditto.
16909         * libc/string/strncpy.c (strncpy): Ditto.
16910
16911 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
16912
16913         * libc/include/sys/itimer.h: remove
16914         * libc/include/sys/time.h: itimer stuff should be here
16915
16916 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16917
16918         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
16919         bit instead of comparing to 0 so -0.0 can be printed correctly.
16920
16921 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16922
16923         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
16924
16925 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
16926
16927         * libc/include/sys/unistd.h: fix sync() proto
16928         * libc/include/sys/fcntl.h: remove _close which is already
16929         defined in unistd.h.
16930         * libc/include/sys/time.h: add getitimer proto
16931
16932 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
16933
16934         * libc/string/strchr.c: convert arg to unsigned char
16935         * libc/include/stdlib.h: add protos for random, srandom
16936         * libc/include/sys/stat.h: add lstat proto
16937         * libc/include/sys/time.h: add setitimer proto
16938         * libc/include/sys/unistd.h: add readlink, symlink protos
16939         * libc/include/process.h: instead of including windows.h and using
16940         HANDLEs in sexec protos, just use void *s.  Need to include
16941         sys/types.h.
16942
16943 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
16944
16945         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
16946
16947 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
16948
16949         * libc/include/process.h: add secure exec protos
16950
16951 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
16952
16953         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
16954         which are accessed as both doubles and integers.
16955         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
16956         * libc/stdlib/strtod.c (_strtod_r): Likewise.
16957         * libc/stdlib/mprec.h: Add "union double_union" and change
16958         word0/word1 macros to use it.
16959
16960 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
16961
16962         * libc/include/sys/signal.h: add __cplusplus wrapper
16963
16964 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
16965
16966         * libc/include/sys/utime.h: new generic file that gets replaced by
16967         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
16968         function.
16969         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
16970         * libc/include/time.h: remove duplicate utime proto
16971         * libc/include/utime.h: add comment
16972
16973 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
16974
16975         * libc/include/sys/time.h: Add missing include to
16976         allow use of _EXFUN.  Remove times function that is
16977         already defined in times.h.
16978
16979 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
16980
16981         * libc/include/time.h: Fix typo in tzset.
16982
16983 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
16984
16985         * libc/include/sys/time.h: add missing Cygwin32 function protos
16986         * libc/include/sys/unistd.h: ditto
16987         * libc/include/time.h: ditto
16988
16989 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
16990
16991         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
16992         FIXME.
16993         * libc/include/sys/types.h: add a new __MS_types__ section
16994         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
16995         __BIT_TYPES_DEFINED__.
16996
16997 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
16998
16999         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
17000         since it overrides the one in libc/include/sys.  Also, start
17001         including types.h.
17002
17003 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
17004
17005         * libm/math/Makefile.in: add s_signgam.o to obj list
17006
17007 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17008
17009         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
17010
17011 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
17012
17013         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
17014         so don't use defines.
17015
17016 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
17017
17018         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
17019
17020 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
17021
17022         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
17023         _current_locale as default locale.
17024
17025 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
17026
17027         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
17028         insufficient space in a chunk.
17029
17030 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17031
17032         * configure.in (links): Added check for --enable-newlib-mb configure
17033         option which defines the MB_CAPABLE macro.
17034         * libc/locale/locale.c (_setlocale_r): Added support for setting
17035         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
17036         defined.
17037         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
17038         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
17039         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
17040         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
17041         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
17042         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
17043         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
17044         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
17045         * libc/stdlib/Makefile.in: Added new multibyte
17046         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
17047         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
17048         _mbstowcs_r(), and _wcstombs_r().
17049         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
17050         for JIS, SJIS, and EUC-JP characters.
17051         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
17052         MB_CAPABLE defined.
17053         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
17054         MB_CAPABLE defined.
17055         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
17056         MB_CAPABLE defined.
17057         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
17058         if MB_CAPABLE defined.
17059         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
17060         if MB_CAPABLE defined.
17061         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
17062         to the format string processing when MB_CAPABLE.
17063         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
17064         call _mbtowc_r().
17065
17066 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
17067
17068         The following modifications are courtesy of Anthony Thompson,
17069         athompson@cambridge.arm.com:
17070         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
17071         boith RDI and RDP monitors.
17072         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
17073         RDI and RDP monitors.
17074
17075 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17076
17077         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
17078         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
17079         (_swiopen): Fixed open flags to treat write with append as just append.
17080         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
17081         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
17082
17083 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17084
17085         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
17086         When needing to transfer an initial 2-byte-word, store as
17087         two single bytes.
17088
17089 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17090
17091         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
17092         __SH3E__ .
17093         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
17094         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
17095
17096 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
17097
17098         * configure.in (target_cflags): If --enable-target-optspace, use
17099         -Os to compile newlib rather than -O2.  Default to using -Os for
17100         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
17101         used.
17102
17103 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
17104
17105         * libc/include/machine/setjmp.h: change sigsetjmp and
17106         siglongjmp definitions to use an array instead of a struct
17107         for __CYGWIN32__
17108
17109 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
17110
17111         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
17112
17113 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
17114
17115         * libc/string/strxfrm.c: fix to get correct return value
17116
17117 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
17118
17119         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
17120         builds.  Make mode change labels global so that they will be seen
17121         by the debugger.
17122
17123 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
17124
17125         * configure.in (links): Do not use ARM debiugging protocols for PE
17126         builds.
17127
17128         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
17129         message.
17130
17131 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17132
17133         * libc/stdio/findfp.c (__sinit): Made stdout default to
17134         line buffered mode as defined by ANSI.
17135
17136 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
17137
17138         * libc/include/sys/itimer.h: New file.
17139
17140         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
17141
17142 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17143
17144         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
17145         failure.
17146
17147 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
17148
17149         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
17150         insns.
17151
17152 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
17153
17154         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
17155
17156 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
17157
17158         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
17159         support.
17160
17161         * libc/include/machine/setjmp.h: Add D30V support.
17162
17163         * configure.in (d30v-*): Add d30v machine directory.
17164
17165 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
17166
17167         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
17168         been replaced with libgloss/mn10300.
17169
17170 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
17171
17172         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
17173         it is no longer needed.
17174
17175 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17176
17177         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
17178
17179 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
17180
17181         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
17182         the file when O_APPEND is set, wherever the EOF happens to be at
17183         that time.
17184
17185 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
17186
17187         patch from cgf@bbc.com (Christopher Faylor):
17188         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
17189         convention of closing fp prior to attempting to open the file
17190         argument.  This allows correct operation when reopening
17191         stdin/stdout/stderr.  Replaces last freopen.c patch.
17192
17193 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
17194
17195         patch from cgf@bbc.com (Christopher Faylor):
17196         * libc/stdio/freopen.c: freopen was not preserving the fd
17197         of the stream being operated on.  This confuses programs that
17198         expect that the handles for stdout and stderr will be 1 and 2.
17199
17200 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
17201
17202         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
17203
17204 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
17205
17206         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
17207
17208 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17209
17210         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
17211         altered to not use a branch.  Also added hint that last
17212         bclr in longjmp will likely result in branch.
17213
17214
17215 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
17216
17217         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
17218
17219 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
17220
17221         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
17222         v850 builds.
17223
17224         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
17225
17226 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17227
17228         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
17229         that loads FR14 to specify offset of 8 rather than 4
17230         so it loads from offset 96 (where setjmp stored it).
17231
17232 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17233
17234         * libc/machine/sh/memcpy.S: (_memcpy): Update to
17235         latest version supplied by customer.
17236         * libc/machine/sh/memset.S (_memset): Ditto.
17237
17238 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
17239
17240         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17241         PR14730).
17242
17243 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
17244
17245         * libc/include/string.h: remove redefinition of ffs
17246
17247 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
17248
17249         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
17250         defined
17251
17252 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17253
17254         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17255         TI Libraries to link to libc.a
17256
17257 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
17258
17259         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
17260         * libc/include/sys/stat.h (_{,f}stat): Ditto.
17261         * libc/include/sys/wait.h (_wait): Ditto.
17262         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
17263         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
17264
17265 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
17266
17267         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
17268         minded stabs so function name shows up when running the simulator
17269         with -t.
17270         * libc/sys/d10v/{crt0,trap}.S: Ditto.
17271
17272 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
17273
17274         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
17275         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
17276         Use R5 where we used to use R3.
17277
17278 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
17279
17280         * libc/stdlib/getopt.c (getopt): replaced __progname
17281         with nargv[0] to improve portability to imbedded systems.
17282
17283 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
17284
17285         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
17286         patch supplied by Tont.Thompson@arm.com to fix the creation of the
17287         stdout file.
17288
17289 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
17290
17291         * libc/stdio/tmpnam.c (worker): Generate a different file name
17292         each time.
17293
17294         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
17295         fails, try an execlp for sh.
17296
17297         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
17298         option for the winsup include directory.
17299
17300 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
17301
17302         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
17303         debugging interface from Tony.Thompson@arm.com.
17304
17305         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
17306         * libc/sys/arm/swi.h: ditto.
17307
17308 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17309
17310         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17311         DIR struct used for readdir hashes.
17312
17313 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17314
17315         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17316
17317 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17318
17319         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17320         integer targets.
17321
17322 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17323
17324         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17325         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17326         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17327         (__malloc_copy): Declare.
17328
17329 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17330
17331         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17332         <sys/config.h>.
17333         (POINTER_UINT): Define.
17334         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17335         (MALLOC_ALIGNMENT): Don't define if already defined.
17336         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17337         long.
17338
17339 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17340
17341         * libc/string/memset.c (memset): Fiddle with code so that the long
17342         value being stored is not a stack value.  Unroll storing longs 4
17343         times.
17344
17345 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17346
17347         * Reduce code size for libm modules.
17348         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17349         and simply move code into sqrt.
17350         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17351         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17352         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17353         * libm/math/wr_gamma.c (gamma_r): Likewise.
17354         * libm/math/wf_sinh.c (sinfh): Likewise.
17355         * libm/math/w_sinh.c (sinh): Likewise.
17356         * libm/math/wf_scalb.c (scalbf): Likewise.
17357         * libm/math/w_scalb.c (scalb): Likewise.
17358         * libm/math/wf_remainder.c (remainderf): Likewise.
17359         * libm/math/w_remainder.c (remainder): Likewise.
17360         * libm/math/wf_pow.c (powf): Likewise.
17361         * libm/math/w_pow.c (pow): Likewise.
17362         * libm/math/wf_log10.c (log10f): Likewise.
17363         * libm/math/w_log10.c (log10): Likewise.
17364         * libm/math/wf_log.c (logf): Likewise.
17365         * libm/math/w_log.c (log): Likewise.
17366         * libm/math/w_lgamma.c (lgamma): Likewise.
17367         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17368         * libm/math/wf_jn.c (jnf): Likewise.
17369         * libm/math/w_jn.c (jn): Likewise.
17370         * libm/math/wf_j1.c (j1f): Likewise.
17371         * libm/math/w_j1.c (j1): Likewise.
17372         * libm/math/wf_j0.c (j0f): Likewise.
17373         * libm/math/w_j0.c (j0): Likewise.
17374         * libm/math/wf_hypot.c (hypotf): Likewise.
17375         * libm/math/w_hypot.c (hypot): Likewise.
17376         * libm/math/wf_gamma.c (gammaf): Likewise.
17377         * libm/math/w_gamma.c (gamma): Likewise.
17378         * libm/math/wf_fmod.c (fmodf): Likewise.
17379         * libm/math/w_fmod.c (fmod): Likewise.
17380         * libm/math/wf_exp.c (expf): Likewise.
17381         * libm/math/w_exp.c (exp): Likewise.
17382         * libm/math/wf_cosh.c (coshf): Likewise.
17383         * libm/math/w_cosh.c (cosh): Likewise.
17384         * libm/math/wf_atanh.c (atanhf): Likewise.
17385         * libm/math/w_atanh.c (atanh): Likewise.
17386         * libm/math/wf_atan2.c (atan2f): Likewise.
17387         * libm/math/w_atan2.c (atan2): Likewise.
17388         * libm/math/wf_asin.c (asinf): Likewise.
17389         * libm/math/w_asin.c (asin): Likewise.
17390         * libm/math/wf_acosh.c (acoshf): Likewise.
17391         * libm/math/w_acosh.c (acosh): Likewise.
17392         * libm/math/wf_acos.c (asocf): Likewise.
17393         * libm/math/w_acos.c (acos): Likewise.
17394         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17395         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17396         for embedded systems.
17397
17398 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17399
17400         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17401         Lea in case of a foreign sbrk.
17402
17403 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17404
17405         Incorporate Doug Lea's malloc:
17406         * libc/stdlib/mallocr.c: Completely replaced.
17407         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17408         (realloc): Remove.
17409         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17410         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17411         mallopt.
17412         (mallinfo, malloc_stats, mallopt): New functions.
17413         (_mstats_r): Just call _malloc_stats_r.
17414         * libc/stdlib/malign.c: New file.
17415         * libc/stdlib/mlock.c: New file.
17416         * libc/stdlib/msize.c: New file.
17417         * libc/stdlib/mtrim.c: New file.
17418         * libc/stdlib/realloc.c: New file.
17419         * libc/stdlib/valloc.c: New file.
17420         * libc/stdlib/malloc.h: Remove.
17421         * libc/stdlib/callocr.c: Remove.
17422         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17423         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17424         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17425         reallocr.o, valloc.o, vallocr.o.
17426         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17427         (MALLOC_CFLAGS): New variable.
17428         (mallocr.o): New target, build from mallocr.c.
17429         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17430         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17431         (msizer.o, malloptr.o): Likewise.
17432         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17433         (valloc.o): New target.
17434         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17435         * libc/include/malloc.h: Declare struct mallinfo, and new
17436         routines.
17437         * libc/include/stdlib.h (cfree): Correct declaration.
17438
17439 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17440
17441         * libc/include/machine/setjmp.h: Add support for Thumb target.
17442
17443         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17444
17445         * configure.in (links): Add support for Thumb target.
17446
17447 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17448
17449         * libc/sys/arm/setjmp.S: Updated with version from branch.
17450
17451 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17452
17453         * libc/include/stdio.h: add POSIX-required define L_ctermid
17454         for ctermid
17455
17456 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17457
17458         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17459         addition to MISSING_SYSCALL_NAMES.
17460
17461 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17462
17463         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17464
17465 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17466
17467         * libc/include/string.h: change strsignal proto to return
17468         a char *.  This eliminates compile problems in gdb resulting
17469         from gdb's definition of strsignal in defs.h.
17470
17471 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17472
17473         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17474         winsup/include) so as not to conflict with the one in
17475         libc/include.
17476         * libc/include/string.h: add protos for strsignal, strtosigno
17477
17478 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17479
17480         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17481
17482         * configure.in (d30v-*-*): Add configuration.
17483
17484 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17485
17486         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17487         to select which kind of debug monitor is in use for an ARM target.
17488
17489         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17490         Angel and Demon debug monitors.  Part of this code was supplied by
17491         Tony Thompson at ARM: athompso@arm.com.
17492
17493 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17494
17495         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17496         semantics when the count is greater than the length of the second
17497         source string.
17498
17499 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17500
17501         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17502         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17503         truncate and ftruncate take off_t, not size_t
17504
17505 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17506
17507         * libc/string/strcat.c (strcat): Add missing comment end.
17508         * libc/string/strncat.c (strncat): Likewise.
17509
17510 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17511
17512         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17513         targets.
17514         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17515         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17516         defined.
17517         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17518         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17519         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17520
17521 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17522
17523         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17524         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17525
17526 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17527
17528         * libc/machine/i386/setjmp.S: New file.
17529         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17530         (OFILES): Add setjmp.o.
17531         (setjmp.o): Add rule for.
17532         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17533
17534 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17535                          Jeffrey A Law  (law@cygnus.com)
17536
17537         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17538         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17539         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17540         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17541
17542 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
17543
17544         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17545         rules.
17546
17547         * libc/include/sys/config.h: Use __v850 to select v850
17548         endianness.
17549
17550         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
17551         buffer size.
17552
17553         * libc/include/machine/ieeefp.h: Use __v850 to select v850
17554         endianness.
17555
17556 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
17557
17558         * libc/stdlib/setenv.c: change unsetenv definition to match
17559         style of setenv (with _DEFUN).  The string should be a const.
17560         * libc/include/stdlib.h: unsetenv proto should return void.
17561
17562 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
17563
17564         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
17565
17566 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
17567
17568         * libc/stdio/glue.h: remove.
17569         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
17570         * libc/stdio/Makefile.in: remove glue.h dependencies
17571
17572 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
17573
17574         * libc/sys/sysnecv850/crt0.S: Created V850e version.
17575
17576 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
17577
17578         * configure.in (target_cpu): Add `arc'.
17579
17580 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
17581
17582         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
17583           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
17584         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
17585         * newlib/libc/reent/reent.c: Add _wrapup_reent.
17586         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
17587
17588 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
17589
17590         * libc/machine/mips/setjmp.S: Handle mips16 builds.
17591
17592 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
17593
17594         * libc/include/stdio.h (siprintf): Declare.
17595
17596 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
17597
17598         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
17599         TARGET_CFLAGS and NEWLIB_FLAGS.
17600
17601 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17602
17603         * configure.in (links): Add support for v850ea target.
17604
17605 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17606
17607         * configure.in (links): Add support for v850e target.
17608
17609 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
17610
17611         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
17612
17613 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
17614
17615         * configure.in (arc-*-*): Add support for.
17616         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
17617
17618 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17619
17620         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
17621
17622 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
17623
17624         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
17625         comparison which accesses invalid memory when the key is
17626         larger than the last member of the array.
17627         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
17628         for CYGWIN32
17629         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
17630
17631 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17632
17633         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
17634         not _STRICT_ANSI.
17635
17636 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
17637
17638         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
17639         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
17640
17641 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
17642
17643         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
17644         to load/store memory.
17645
17646 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
17647
17648         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
17649         underscores if _WIN32.
17650
17651 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
17652
17653         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
17654         support ifdef _USE_WRITE missed in last change.
17655         From Anders Blomdell <anders.blomdell@control.lth.se>.
17656
17657 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
17658
17659         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
17660         (_tmpnam_r, _tempnam_r): Update.
17661
17662 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
17663
17664         * libc/machine/sparc/setjmp.S: New file.
17665         * libc/machine/sparc/Makefile.in: Add setjmp.
17666         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
17667
17668 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
17669
17670         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
17671
17672 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
17673
17674         From Joel Sherrill <joel@oarcorp.com>.
17675         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
17676
17677         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
17678         * configure.in: Recognize *-*-rtems*.
17679         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
17680         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
17681         time.h,times.h,types.h}: New files.
17682         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
17683
17684 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
17685
17686         patch from sos@prospect.com.ru (Sergey Okhapkin):
17687         * include/sys/wait.h: correct operator precidence bug
17688         in WIFSIGNALED
17689
17690 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
17691
17692         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
17693         with newlib's unsetenv function
17694         * libc/sys/cygwin32/sys: new directory for includes
17695         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
17696         here from winsup/include/sys
17697
17698 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
17699
17700         * libc/include/sys/unistd.h: _exit should only be
17701         labelled noreturn when not __CYGWIN32__
17702         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
17703         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
17704         increment NSIG
17705
17706 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
17707
17708         * libc/include/sys/time.h: Only define timeval and timezone if
17709         _GNU_H_WINDOWS32_SOCKETS is not defined.
17710         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
17711
17712 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
17713
17714         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
17715         * libc/machine/mn10300/setjmp.S: Likewise.
17716
17717         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
17718         the mn10300 (more relaxing opportunities).
17719
17720 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
17721
17722         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
17723         Build libraries with -mstrict-align.
17724
17725 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
17726
17727         * libc/string/strlwr.c: New file.
17728         * libc/string/strupr.c: New file.
17729         * libc/include/string.h: Declare strlwr and strupr.
17730         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
17731         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
17732         (strlwr.o, strupr.o): New targets.
17733         * libc/string/strings.tex: Include strlwr and strupr docs.
17734
17735         * libc/include/sys/types.h: Don't define u_char, et. al., if
17736         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
17737         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
17738         _types_fd_set rather than fd_set, and define fd_set as a macro.
17739
17740         * libc/include/malloc.h: New file.
17741
17742         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
17743         strnicmp if they are not already defined.
17744
17745         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
17746         _timezone, _daylight, and _tzname.
17747
17748 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17749
17750         * configure.in: Sort all configuration tables.
17751
17752         From Joel Sherrill <joel@oarcorp.com>
17753         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
17754
17755 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
17756
17757         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
17758         use int when declaring kill.
17759
17760         * libc/include/sys/timeb.h: New file.
17761
17762 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
17763
17764         * libc/include/sys/time.h: add itimer support for Cygwin32
17765
17766 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
17767
17768         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
17769         out a message that abort was called to stderr.
17770
17771 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
17772
17773         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
17774         so that libio doesn't freak.
17775
17776         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
17777         int.
17778
17779         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
17780         memory sizes, not int.
17781
17782 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
17783
17784         * libm/math/ef_hypot.c: Use long constants where
17785         appropriate.
17786         * libm/math/ef_sqrt.c: Ditto.
17787
17788         * libc/sys/sysmec/times.c(_times): Change to times.
17789
17790         * libc/sys/sysmec/read.c(_read): The third argument is
17791         size_t.
17792         * libc/sys/sysmec/write.c (_write): Ditto.
17793
17794         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
17795         (_lseek): It's off_t for the second argument.
17796
17797 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
17798
17799         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
17800         as well as machine/ieeefp.h.
17801
17802 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
17803
17804         * libc/include/sys/signal.h: add signal protos for winsup
17805         functions (when __CYGWIN32__), include types.h
17806         * libc/include/sys/types.h: Change __go32_types__ internal
17807         define to __MS_types__ since it's used for more than just
17808         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
17809         defined.
17810         * libc/include/sys/unistd.h: add ftruncate proto for
17811         winsup functions (when __CYGWIN32__)
17812
17813 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17814
17815         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
17816
17817 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
17818
17819         * libc/include/machine/setjmp.h: Add tic80 support.
17820         * libc/machine/tic80/setjmp.S: Likewise.
17821
17822 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
17823
17824         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
17825         link programs from libraries only (such as in the X11
17826         distribution)
17827
17828 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
17829
17830         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
17831         supplied elsewhere in newlib.
17832
17833 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
17834
17835         * Makefile.in (INSTALL): Change install.sh to install-sh.
17836
17837 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
17838
17839         * README: update WWW address for on-line documentation.
17840
17841 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
17842
17843         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
17844         increment NSIG
17845
17846 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
17847
17848         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
17849         mn10300.
17850         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
17851
17852 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
17853
17854         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
17855         * libc/sys/d10v/syscalls.c: Likewise.
17856         * libc/sys/h8300hms/sbrk.c: Likewise.
17857         * libc/sys/h8500hms/syscalls.c: Likewise.
17858         * libc/sys/m88kbug/syscalls.c: Likewise.
17859         * libc/sys/sh/syscalls.c: Likewise.
17860         * libc/sys/sysmec/sbrk.c: Likewise.
17861         * libc/sys/sysnecv850/sbrk.c: Likewise.
17862         * libc/sys/w65/syscalls.c: Likewise.
17863         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
17864
17865 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
17866
17867         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
17868         emulated syscall instead of "trap".
17869
17870 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
17871
17872         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
17873         not trap 0.
17874
17875 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
17876
17877         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
17878
17879 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
17880
17881         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
17882         not "sh".
17883         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
17884         not "d10v".
17885         * libc/sys/tic80/crt0.c: New file for TIc80.
17886         * libc/sys/tic80/Makefile.in: New file for TIc80.
17887         * libc/machine/tic80/Makefile.in: New file for TIc80.
17888
17889 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
17890
17891         * libc/machine/sh/memcpy.S: New file.
17892         * libc/machine/sh/memset.S: New file.
17893         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
17894
17895 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
17896
17897         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
17898         for TIc80.
17899
17900 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
17901
17902         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
17903         the mn10200.
17904
17905 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
17906
17907         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
17908         (patch from andrew@pogo.WV.TEK.COM).
17909
17910 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
17911
17912         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
17913         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
17914
17915 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
17916
17917         * configure.in:  Add cases for "tic80" to set machine_dir,
17918         sys_dir, and syscall_dir.
17919
17920 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
17921
17922         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
17923
17924 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
17925
17926         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
17927
17928 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
17929
17930         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
17931         Use proper constant prefix.
17932
17933 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
17934
17935         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
17936         that loses on the mn10200 where ints and pointers are different
17937         sizes.
17938
17939 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
17940
17941         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
17942         target as signal is provided in winsup.
17943
17944 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
17945
17946         * libc/include/sys/process.h: Corrected const definitions
17947         in spawn functions. Added cwait.
17948
17949 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
17950
17951         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
17952         doubles.
17953         * libc/include/sys/config.h: Similarly.
17954
17955 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17956
17957         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
17958         target_cflags.
17959         (i[3456]86-*-sco*): Ditto.
17960
17961         * libc/signal/Makefile.in (OFILES): Add signal.o.
17962         (CFILES): Add signal.c.
17963
17964         * libc/signal/raise.c (_raise_r): Only compile code if
17965         SIGNAL_PROVIDED is defined.
17966
17967         * libc/signal/signal.c: Redo whole file so that it works with
17968         current newlib.  Use _kill_r if no signal handler provided.
17969
17970         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
17971         signal stubs.
17972         * libc/sys/sysvnecv70/Makefile.in: Ditto.
17973         * libc/sys/sysnecv850/Makefile.in: Ditto.
17974
17975         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
17976         * libc/sys/sysmec/{raise,signal}.c: Ditto.
17977         * libc/sys/sysvnecv70/signal.s: Ditto.
17978         * libc/sys/sysnecv850/raise.c: Ditto.
17979
17980         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
17981         simulator and debugger can tell the difference between a signal
17982         being raised and an exit system call.
17983
17984         * NEWS: Document software signals being provided.
17985
17986 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17987
17988         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
17989         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
17990         include/sys/config.h.
17991         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
17992         Change from 'inpure_data'.
17993         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
17994         &impure_data, not &inpure_data.
17995
17996         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
17997         and and System V ABI, define so that _impure_ptr lives in the
17998         .sdata section.
17999
18000 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18001
18002         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
18003         nothing if not defined.
18004         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
18005         its attributes.
18006
18007         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
18008
18009 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
18010
18011         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
18012         * libc/sys/sysmec/trap.s: Handle mn10200 too.
18013         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
18014
18015 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
18016
18017         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
18018
18019 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
18020
18021         * libc/include/sys/errno.h: Added net errno's.
18022
18023 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18024
18025         * libc/misc/ffs.c: New file to support ffs function for GCC test
18026         gcc.c-torture/execute/960909-1.c.
18027
18028         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
18029
18030 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
18031
18032         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
18033         * libc/sys/sysmec/trap.S: Likewise.
18034
18035 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
18036
18037         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
18038         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
18039
18040 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
18041
18042         * libc/sys/sysmec/signal.c: Dummy file.
18043         * libc/sys/sysmec/Makefile.in: Build it.
18044
18045 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
18046
18047         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
18048         mips16.
18049
18050 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
18051
18052         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
18053         c-startup and simulator traps.
18054
18055
18056         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
18057         * libc/sys/sysmec/trap0.S: Likewise.
18058
18059 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18060
18061         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
18062         round to double word alignment.
18063         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
18064         byte alignment.
18065
18066         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
18067
18068         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
18069         out of memory.
18070
18071 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
18072
18073         * configure.in: Handle mn10200 and mn10300.
18074         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
18075         * libc/include/sys/config.h: Likewise.
18076         * libc/sys/sysmec: New directory for mec stuff.
18077         * libc/machine/mn10300: New directory for mn10300 stuff.
18078         * libc/machine/mn10200: Similarly for mn10200 stuff.
18079
18080 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
18081
18082         * libc/sys/arm/crt0.S: Use .text, not .section .text.
18083         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
18084
18085         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
18086         (nlink_t): Change type from unsigned int to unsigned short.
18087         (mode_t): Ensure size is 32 bits even if int is 16.
18088         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
18089         (st_spare[123]): Change type from int to long.
18090
18091 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18092
18093         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
18094         byte boundary.
18095
18096         * configure.in (d10v*): Define SMALL_MEMORY.
18097
18098 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18099
18100         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
18101         -mrelocatable-lib and -mno-eabi flags.
18102
18103 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
18104
18105         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
18106         Fix handling of mis-aligned source operand when both the
18107         destination & length are properly aligned.
18108
18109 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
18110
18111         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
18112         times.o, time.o and gettime.o
18113         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
18114         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
18115         SYS_gettimeofday.
18116
18117 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
18118
18119         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
18120         * libc/sys/sysnecv850/access.c: New file.
18121
18122 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
18123
18124         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
18125
18126         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
18127         long.
18128
18129 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
18130
18131         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
18132
18133 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
18134
18135         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
18136         * libc/include/sys/config.h: Add m32r support.
18137
18138 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
18139
18140         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
18141         here.
18142
18143 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
18144
18145         * libc/include/machine/setjmp.h: Add D10v support.
18146
18147 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
18148
18149         * configure.in: Configure the "libc/syscalls" directory for
18150         the v850.
18151
18152         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
18153         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
18154         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
18155         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
18156         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
18157
18158 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
18159
18160         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
18161         stack for args for main and other routines.  Zero out args for
18162         main.
18163
18164         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
18165         correctly.
18166
18167 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18168
18169         * libc/stdio/findfp.c (std): Remove extraneous ';' after
18170         function.
18171
18172         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
18173
18174         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
18175         real system calls now.
18176
18177         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
18178         before casting them to int.
18179         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
18180
18181         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
18182         aligning pointer.
18183         * libc/string/memset.c (memset): Ditto.
18184
18185         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
18186         first convert ints to _POINTER_INT to eliminate GCC warning.
18187
18188         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
18189         processing %p.
18190
18191         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
18192         from 65000 if ints are only 16 bits.
18193
18194         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
18195         from 50000 if ints are only 16 bits.
18196
18197         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
18198         int type that is the same size as a pointer.
18199
18200         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
18201         processing %p.
18202         (get_number): Explicitly cast number to long before shifting by 16
18203         or 24, in case ints are short.
18204
18205         * libc/include/sys/config.h (_POINTER_INT): Define as short.
18206
18207 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
18208
18209         * libc/string.h: Added ffs, removed swab.
18210         * libc/sys/errno.h: Added EOPNOTSUPP.
18211         * libc/sys/unistd.h: Added swab.
18212
18213 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
18214
18215         * libc/include/sys/stat.h: Added fchmod.
18216         * libc/include/sys/unistd.h: Added fsync.
18217
18218 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
18219
18220         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
18221         and ECONNRESET (104) for cygwin32.
18222
18223 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
18224
18225         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
18226         do the static destructors.
18227
18228 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
18229
18230         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
18231
18232 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
18233
18234         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
18235         * configure.in: Recognize m32r-*-*.
18236
18237 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
18238
18239         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
18240         __rt_stkovf_split_small): Added default software stack overflow
18241         handlers, which just call SWI_Exit.
18242         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
18243         limit initialisation.
18244
18245 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
18246
18247         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
18248
18249 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
18250
18251         * libc/include/sys/types.h: Added ssize_t definition.
18252
18253 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18254
18255         * libc/machine/d10v/setjmp.S: Use ';' for comments.
18256         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
18257
18258         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
18259         branch around a single ldi instruction.
18260
18261         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
18262         Call exit, instead of just issuing a stop instruction.
18263
18264 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18265
18266         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
18267
18268 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18269
18270         * libc/stdlib/mprec.h: Explicitly declare all large constants as
18271         longs, and then cast them to __uint32_t.
18272
18273         * libc/include/sys/config.h: Protect against multiple inclusions.
18274
18275 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
18276
18277         * configure.in (d10v*): Set syscall_dir.
18278
18279 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
18280
18281         * libc/sys/d10v/crt0.S: Set stack pointer.
18282
18283 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
18284
18285         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
18286         in assembly for efficiency.  Change calling convention to allow
18287         long ints to be returned.
18288
18289 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18290
18291         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
18292
18293 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
18294
18295         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
18296         Handle empty entries in $PATH.
18297
18298 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
18299
18300         * libc/machine/d10v/setjmp.S: Make it really work.
18301
18302 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
18303
18304         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
18305         the .stack section.
18306
18307 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
18308
18309         * sys/sysnecv850/sys/file.h: Remove.
18310         * sys/sysnecv850/sys/syscall.h: New file.
18311         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18312         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18313         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18314         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18315         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18316         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18317         * sys/sysnec850/trap.S: New file.
18318         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18319         syscalls.
18320         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18321         * sys/sysnec850/sbrk.c: New version.
18322
18323 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18324
18325         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18326         as long as r6 is less than r7.
18327
18328 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18329
18330         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18331         remove *.a or targ-include.
18332         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18333
18334 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18335
18336         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18337         d10v.
18338         (__SMALL_BITFIELDS): Ditto.
18339
18340         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18341
18342 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18343
18344         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18345         prefix.
18346
18347         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18348         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18349         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18350         * libc/sys/sysnecv850/write.c (write): Likewise.
18351
18352         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18353         .bss.
18354
18355 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18356
18357         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18358         appropriately for D10V, depending on -mint16/-mint32.
18359
18360 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18361
18362         * configure.in: Add cases for D10V.
18363
18364 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18365
18366         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18367
18368 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18369
18370         * libc/include/machine/ieeefp.h: Fix typo.
18371
18372 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18373
18374         * libc/sys/d10v: New directory for D10V stuff.
18375         * libc/include/machine/ieeefp.h: Add D10V defines.
18376
18377 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18378
18379         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18380         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18381         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18382         * libc/string/strerror.c (strerror): Add them.
18383
18384 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18385
18386         * libc/sys/sysnecv850: New directory for v850 stuff.
18387
18388         * libc/machine/v850: New directory for v850 stuff.
18389         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18390
18391         * configure.in: Add support for the v850.
18392
18393         * libc/include/machine/ieeefp.h: Add v850 defines.
18394         * libc/include/machine/setjmp.h: Likewise.
18395         * libc/include/sys/config.h: Add v850 defines.
18396
18397 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18398
18399         * libc/include/machine/ieeefp.h
18400         * libc/include/machine/setjmp.h
18401         * libc/include/sys/fcntl.h
18402         * libc/include/sys/signal.h
18403         * libc/include/sys/types.h
18404         * libc/stdlib/system.c:
18405         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18406         API availability, __CYGWIN32__ for cygwin32 environment specific).
18407
18408 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18409
18410         * libc/include/stdlib.h: add multibyte character functions.  Add
18411         __eprintf for assert.
18412
18413 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18414
18415         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18416         arithmetic or __alignof__ to properly get the alignment, instead
18417         of hardwiring it to 4.
18418
18419 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18420
18421         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18422         on append stream (fix from NetBSD sources), adjust curoff offset
18423         for ungetc's benefit.
18424         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18425         * libc/stdio/rewind.c: replace code with up to date NetBSD
18426         code to undo hacks made to work around above problem of not
18427         having fflush call mentioned above
18428
18429 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18430
18431         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18432         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18433         Partially revert last changes.  The thread specific errno is set
18434         iff if the underlying syscall fails and the global errno is not
18435         zero.
18436
18437 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18438
18439         * libc/reent/filer.c: Removed files, all functions have split out
18440         into their own files.
18441         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18442         New files containing functions formally in filer.c
18443         * libc/reent/Makefile.in: Updated for above change.
18444
18445         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18446         syscall fails, not if errno is changed.
18447         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18448         _write_r): Likewise.
18449         * libc/reent/fstatr.c (_fstat_r): Likewise.
18450         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18451         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18452         * libc/reent/signalr.c (_kill_r): Likewise.
18453         * libc/reent/statr.c (_stat_r): Likewise.
18454         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18455
18456         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18457         signalr.c, statr.c, timer.c} (errno): declare extern rather
18458         than as a common.
18459
18460         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18461         instead of calling vfprintf so that i*printf will not require
18462         floating point support code.
18463
18464 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18465
18466         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18467         path delimiter.
18468         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18469         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18470
18471 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18472
18473         * libc/include/signal.h: _sig_func_ptr function takes an int
18474         * libc/include/sys/signal.h: sa_handler function takes an int
18475
18476 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18477
18478         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18479         * libc/include/sys/config.h: Add missing H8/S conditional.
18480
18481 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18482
18483         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18484
18485 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18486
18487         * libc/include/machine/setjmp.h: Handle H8/S.
18488         * libc/include/machine/ieeefp.h: Likewise.
18489         * libc/include/sys/config.h: Likewise.
18490         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18491         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18492         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18493         * libc/sys/h8300hms/crt0.S: Likewise.
18494
18495 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18496
18497         * Makefile.in (datadir): Set to $(prefix)/share.
18498         (oldincludedir, docdir): Removed.
18499         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18500         (oldincludedir, docdir): Removed.
18501         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18502         (oldincludedir, docdir): Removed.
18503         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18504         (oldincludedir, docdir): Removed.
18505
18506 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18507
18508         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18509         _reent struct.
18510
18511 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18512
18513         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18514         fetch current path rules with sysconf and handler posix/win32
18515         appropriately.
18516
18517         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18518
18519         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18520         (WAIT_CHILD): Always define.
18521
18522 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18523
18524         * libc/stdlib/eprintf.c: New file.
18525         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18526         (eprintf.o): New target.
18527
18528 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18529
18530         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18531         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18532
18533 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18534
18535         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18536         NT in PowerPC endianess cases.
18537
18538 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18539
18540         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
18541
18542 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18543
18544         * libc/string/strtok.c: Fix doc typo.
18545
18546 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18547
18548         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
18549         _next, _scanpoint, _signgam fields.
18550
18551         * libc/include/stdlib.h (rand_r): Added new declaration.
18552         (_rand_r, _srand_r): Removed declarations.
18553         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
18554         have been made obsolete by rand_r.
18555         * libc/stdlib/rand_r.c: New file, rand_r function as specified
18556         by POSIX.1c.
18557
18558         * libc/string/strtok.c: Update documentation to describe
18559         strtok_r().
18560
18561 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
18562
18563         * libc/include/sys/stat.h (stat structure): Use the expanded stat
18564         structure on Solaris, and PowerPC systems even though __svr4__ is
18565         defined.
18566
18567 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18568
18569         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
18570
18571 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
18572
18573         * host/any: Use ../.. rather than .. to get to the main build
18574         directory.  This matches the current layout of the build
18575         directory.
18576
18577 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
18578
18579         * libc/machine/h8300/__main.S: Delete.  No longer needed.
18580         * libc/machine/h8300/Makefile.in: Corresponding changes.
18581         * libc/sys/h8300hms/crt1.c: New file.
18582         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
18583         * libc/sys/h8300hms/crt0.s: Call __main.
18584
18585         * libc/sys/h8300hms/crt0.S: Use temporary label names
18586         for branch targets.
18587
18588 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
18589
18590         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
18591
18592 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18593
18594         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
18595         .sdata on the PowerPC so that we can link newlib with code
18596         compiled with -msdata.
18597
18598 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
18599
18600         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
18601
18602 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
18603
18604         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
18605         exception handler to __cygwin_exception_handler.
18606
18607 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
18608
18609         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
18610
18611 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
18612
18613         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
18614         SunOS VPATH.
18615         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
18616         wcstombs.o): Likewise.
18617
18618 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
18619
18620         * libc/stdlib/environ.c (initial_env): New static local.
18621         (environ): Point to `initial_env'.
18622
18623         * libc/include/machine/setjmp.h: Clean up.
18624         (__H8300H__,__PPC__): Define _JBTYPE.
18625         (__arm__): Provide entry for.
18626         (sigjmp_buf): Delete.
18627         (jmp_buf): Use _JBTYPE if defined, otherwise int.
18628
18629 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
18630
18631         * libc/machine/h8300/strcmp.S: Sign extend the result to
18632         32bits so we don't lose with -mint32.
18633
18634 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
18635
18636         * libc/sys/go32/sys/errno.h: New file.
18637         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
18638         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
18639         errno's address (make compatible with rest of newlib).
18640         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
18641         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
18642
18643 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18644
18645         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
18646         * libc/machine/sparc/Makefile.in: Build them.
18647         * libc/machine/sparc/machine/sparclet.h: New file.
18648
18649 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18650
18651         * libc/machine/sh/asm.h: New file.
18652         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
18653         support for SH3e's FP registers.  Use asm.h.
18654
18655 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
18656
18657         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
18658         as first argument.  Call _dtoa_r and pass the reent structure
18659         instead of calling __dtoa.
18660
18661 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
18662
18663         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
18664         the h8300, h8500, and others.  Add comments for some rather
18665         dubious code.
18666
18667 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
18668
18669         * Makefile.in (check): Check that testsuite exists before cd.
18670
18671 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18672
18673         * libc/include/string.h (strsep): Correct prototype.
18674
18675 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
18676
18677         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
18678         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
18679         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
18680
18681 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
18682
18683         * libc/posix/{creat.c,isatty.c}: New files.
18684         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
18685
18686         * libc/sys/sparc64/crt0.S (environ): Delete.
18687         (.LHaveBias): Renamed from HaveBias.
18688
18689 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
18690
18691         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
18692         (_morecore_r): Delete SBRK_IS_ALLOC support.
18693
18694 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18695
18696         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
18697         module rather than touch, so we don't get warning messages when
18698         all of the libraries are combined into libc.a.
18699
18700 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
18701
18702         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
18703         crt0.s replaced by version in libgloss.
18704
18705 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18706
18707         * libc/reent/Makefile.in (OFILES): Add impure.o.
18708         * libc/reent/impure.o: New file, define initial reentrancy struct.
18709         * libc/reent/reent.c: Remove above definition.
18710
18711         * libm/math/sf_asinh.c: Fix typo.
18712
18713         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
18714         srf_ldexp.o.
18715
18716         * libm/libm.texinfo: Change documentation to reflect changes
18717         in reentrancy model.
18718         * libm/math/w_gamma.c: Likewise.
18719
18720 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18721
18722         * configure.in (*-*-cygwin32): New.
18723         (*-*-win32): Deleted.
18724         * libc/sys/win32 renamed libc/sys/cygwin32.
18725
18726 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18727
18728         * libc/include/sys/file.h: New include file.
18729
18730 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18731
18732         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
18733
18734 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18735
18736         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
18737
18738 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18739
18740         * doc/makedoc.c (realloc): Declare at file scope.
18741         (catchar): Not here.
18742
18743 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
18744
18745         * Makefile.in (VERSION): Update to 1.7.0.
18746         * {libc,libm}/Makefile.in (VERSION): Likewise.
18747         * configure.in: Minor clean up of multilib stuff.
18748
18749         From David Johnson <davidj@ICSI.Berkeley.EDU>
18750         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
18751
18752         * libc/stdlib/environ.c: New file.
18753         * libc/stdlib/Makefile.in (OFILES): Build it.
18754         * libc/sys/h8500hms/crt0.c (environ): Deleted.
18755         * libc/sys/m88kbug/crt0.c (environ): Deleted.
18756         * libc/sys/z8ksim/crt0.c (environ): Deleted.
18757         * libc/sys/netware/environ.c: Deleted.
18758
18759 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
18760
18761         * configure.in (links): set sys_dir, posix_dir, syscall_dir
18762
18763 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18764
18765         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
18766         declaration out to external scope and declare it PTR, not char *.
18767
18768 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
18769
18770         * libc/include/sys/unistd.h (getpagesize): New declaration.
18771         (_SC_PAGESIZE): New definition.
18772         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
18773         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
18774
18775 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
18776
18777         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
18778         addressing. System call returns size, not (last address + 1).
18779
18780 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18781
18782         * libm/math/*.c: Removed _foo_r() reentrancy API.
18783         * libc/include/math.h: Removed _foo_r prototypes and macros.
18784
18785         * libm/math/*.c: On systems with IEEE single precision "doubles"
18786         move foo() -> foof() wrapper code from the files that implement
18787         the standard IEEE double precision functions to the files that
18788         implement IEEE single precision functions. (ie. On those systems
18789         sin is moved from s_sin.c to sf_sin.c).  There should eventually
18790         be use of a C extension (like gcc's alias attribute) so that the
18791         wrappers are not needed at all.
18792
18793         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
18794         strict NEC V810 compiler.
18795         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
18796         for same reason.
18797
18798 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18799
18800         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
18801         from NetBSD C library.
18802         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
18803
18804         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
18805         and adapted from implementation I wrote for NetBSD C library.
18806         The difference is __assert doesn't take a format argument,
18807         so that there won't be multiple copies of the same string
18808         constant in the executable if assertions are enabled in
18809         more than one source module.
18810         * libc/include/assert.h (assert): Changed to call __assert.
18811
18812 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18813
18814         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
18815         word1 on systems with 32 bit doubles.
18816         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
18817         so that we can do arithmetic on them.
18818         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
18819         compilers.
18820
18821 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
18822
18823         * libc/sys/arm/crt0.S: Zero bss.
18824
18825 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
18826
18827         * libc/include/unctrl.h: New file.
18828         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
18829         * configure.in (subdirs): Add libc/misc.
18830         * libc/Makefile.in (SUBDIRS): Add misc.
18831         (SUBLIBS): Add misc/lib.a.
18832
18833         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
18834
18835 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
18836
18837         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
18838         (_vfprintf_r): Call CHECK_INIT.
18839
18840 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
18841
18842         * Makefile.in (MULTITOP): Delete.
18843         (MULTISRCTOP, MULTIBUILDTOP): Add.
18844         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
18845         instead of cfg-ml-pos.in.
18846
18847 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18848
18849         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
18850         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
18851         presence.
18852
18853 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
18854
18855         * libc/string/strtok.c: Include string.h to pick up strtok_r
18856         prototype.
18857
18858 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18859
18860         * libc/string/strtok.c: include <_ansi.h>.
18861         * libc/time/asctime_r.c: `reresult' -> `result'.
18862
18863 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18864
18865         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
18866         in #ifndef _REENT_ONLY ... #endif conditional.
18867
18868         * libc/include/string.h (_strtok_r): Remove declaration.
18869         * libc/include/time.h (_asctime_r): Remove declaration.
18870         * libc/string/strtok.c (_strtok_r): Removed.
18871         * libc/time/asctime.c (_asctime_r): Removed.
18872
18873         * libc/string/Makefile.in (OFILES): Add new object.
18874         * libc/string/strtok_r.c: New file.  strtok_r function as
18875         specified by POSIX.1c, adapted from strtok implementation
18876         from NetBSD C library.
18877         * libc/string/strtok.c (strtok): Reimplemented in terms of
18878         strtok_r.
18879
18880         * libc/time/Makefile.in (OFILES): Add new objects.
18881         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
18882         New files, reentrant time functions specified by POSIX.1c.
18883         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
18884         reentrant time functions re-written in terms of reentrant
18885         functions.
18886         * libc/time/lcltime.c: Renamed from localtime.c
18887
18888         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
18889         gmtime_r, and localtime_r.
18890
18891 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
18892
18893         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
18894         * libc/include/sys/unistd.h (getlogin): Revert change of
18895         Oct 19.
18896         * libc/include/sys/signal.h (sigprocmask): Change prototype
18897         so it compiles with c++.
18898
18899 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
18900
18901         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
18902         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
18903         to give some room in case we need to align the jmp_buf.
18904
18905         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
18906         the new ppc-asm.h include file the compiler provides to specify
18907         function prologue/epilogue.  Eliminate saves of the xer and ctr
18908         registers, which are volatile.  Before starting to save registers,
18909         align to 8 byte boundary.
18910
18911 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18912
18913         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
18914         referenced by standard libraries.
18915
18916 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
18917
18918         * libc/unix/Makefile.in, libc/string/Makefile.in,
18919         libc/stdio/Makefile.in, libc/reent/Makefile.in,
18920         libc/posix/Makefile.in:
18921         Remove tabs from otherwise empty line.  Confuses some
18922         older non-GNU versions of "make".
18923
18924 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18925
18926         * libc/sys/unistd.h (getlogin): Returns const char *.
18927
18928 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
18929
18930         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
18931         * libc/include/errno.h: Moved into and include...
18932         * libc/include/sys/errno.h: New file.
18933         * libc/include/sys/wait.h: New file.
18934         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
18935         * libc/sys/win32/*: Moved out.
18936         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
18937         * configure.in (i[345]86-*-win32): HAVE_RENAME
18938
18939 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
18940
18941         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
18942         avoid macro expansion for these two names.
18943
18944 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
18945
18946         * libc/machine/h8500/psi.S: r6 renamed to fp.
18947
18948 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18949
18950         * configure.in (powerpc*): No longer need to define
18951         NO_LONGLONG_POINTERS to supress warnings.
18952
18953 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18954
18955         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
18956         through PTR instead of directly.
18957
18958         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
18959         non-standard constructor support.
18960
18961 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18962
18963         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
18964         address of the Bigint instead of the address of its _x field,
18965         as the size the result buffer was calculated accordingly.
18966         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
18967
18968         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
18969         from NetBSD C library.  No longer special cases division by
18970         zero (which needs to be done by the application anyway), but
18971         it doesn't need to call abs() (or labs()) four times either.
18972
18973         * libc/stdlib/qsort.c: Replaced with implementation from
18974         NetBSD C library.
18975
18976 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18977
18978         * libc/stdio/vfprintf.c: Replaced with implementation from
18979         NetBSD C library (which is derived from the 4.4BSD C library).
18980         * libc/stdio/cvt.c: Removed.
18981         * libc/stdio/Makefile: Updated.
18982
18983 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
18984
18985         * libc/sys/win32/syscalls.c (rename): New.
18986         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
18987
18988 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18989
18990         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
18991         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
18992
18993         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
18994         (setjmp.o): Delete rule to build setjmp.o.
18995         * libc/sys/sh/setjmp.S: Delete file.
18996
18997 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18998
18999         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
19000         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
19001         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
19002         pow5mult and s2b to identifiers with leading underscores.
19003         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
19004         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
19005
19006 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
19007
19008         * libc/sys/posix/popen.c (sys/types.h): Include.
19009
19010 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
19011
19012         * libc/sys/win32/syscalls.h (fhandler): New struct.
19013         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
19014         (__fhandler_normal): Declare.
19015         (hinfo): New member op_handlers.
19016         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
19017         (__write): Likewise.
19018         (_read, _write, _open, _close, _lseek): Validate fd here.
19019         Move file type specific stuff to foo_normal.
19020         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
19021         New functions.
19022         (__lookup_fhandler): New function.
19023         (__lookup_fhandler_hook, __fhandler_normal): New variables.
19024
19025         From anders.blomdell@control.lth.se (Anders Blomdell)
19026         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
19027         Don't touch standard handles.
19028         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
19029         (_execve): Only create __FD_TABLE__ if necessary.
19030         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
19031
19032 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
19033
19034         * libc/sys/win32/sys/termios.h (FLUSHO): New.
19035         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
19036         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
19037         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
19038         without a handler is received.
19039         * libc/sys/win32/Makefile.in: Remove --nodelete.
19040         * libc/sys/win32/resouce.c (gettimeofday): New.
19041         * libc/sys/win32/syscalls.c (path_to_real_path): New.
19042         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
19043
19044 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
19045
19046         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
19047         Don't append "/*" to search pattern if trailing '/' already there,
19048         append "*".
19049         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
19050         like /'s, convert them to \'s.  Handle //<drive>/ path names.
19051         Add space for quoted \'s in arg string.  Print translated prog name
19052         and original prog name.
19053         (_execve): Handle parent doing exec a teensy bit better.
19054         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
19055         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
19056         path needs conversion, handle both cases.  Delete `const' from result.
19057         (hash_path_name): New function.
19058         (_open): Call it.
19059         (_stat): Likewise.  Fill in more fields for directories.
19060         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
19061         (wait_for_any): Fix trace message.
19062         (waitpid): Explicitly test for intpid == 0.
19063
19064         From anders.blomdell@control.lth.se (Anders Blomdell)
19065         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
19066         so `next' is valid.
19067
19068 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
19069
19070         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
19071         complicated.
19072
19073 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
19074
19075         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
19076         at all, not just == 1.
19077         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
19078
19079 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19080
19081         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
19082         * libc/sys/win32/include/wintypes.h: include <winnt.h>
19083         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
19084         file.
19085
19086 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19087
19088         * libc/sys/syscalls.c (getcwd): Fix off by one error.
19089
19090         * libc/sys/signal.c (sleep): Fill it in.
19091         * libc/sys/termios.c (tcflush): Use PurgeComm
19092         (tcsetattr): Set some more of the bits.
19093         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
19094
19095 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
19096
19097         * libc/sys/arm/crt0.S (fp): Initialize to 0.
19098         Conditionally include .idata$3 stuff ifdef __pe__.
19099
19100 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19101
19102         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
19103         * libc/sys/win32/pipe.c (pipe): Ditto.
19104         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
19105         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
19106         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
19107         (tcgetattr): Contents are new.
19108         * libc/sys/win32/include/winkernel.h (DCB): New.
19109         (GetCommState, SetCommState): New.
19110
19111 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
19112
19113         * libc/sys/arm/crt0.S (_start): Define.
19114
19115 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19116
19117         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
19118         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
19119
19120         * libc/sys/win32/sysconf.c: New
19121         * libc/sys/win32/sys/winadvapi.h: New
19122         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
19123         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
19124         * libc/sys/win32/pipe.c (pipe): Ditto.
19125         * libc/sys/win32/signal.c (_raise): New.
19126         (_kill): Moved from spawn.c
19127         * libc/sys/win32/spawn.c (kill): Moved to signal.c
19128         * libc/sys/win32/syscalls.c (__read): Use new fields.
19129         (_open): Ditto.
19130         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
19131         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
19132         * libc/include/sys/unistd.h (rmdir): Takes const path.
19133         * libc/include/sys/stat.h (mkdir): Takes const path.
19134         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
19135
19136 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19137
19138         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
19139
19140         Add support for specifying paths as //<drive>/foo/bar.
19141         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
19142         (__path_to_real_path): Declare.
19143         (PATH_TO_REAL_PATH): New macro.
19144         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
19145         (__path_needs_conversion_p, __path_to_real_path): New functions.
19146         (_open): Fix test for error return from CreateFileA.
19147         Handle new path syntax.
19148         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
19149         * libc/sys/win32/dirsearch.c (opendir): Likewise.
19150
19151 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
19152
19153         * libc/sys/win32/include/*.h: Reorganized
19154         * libc/sys/win32/include/WINREADME: New.
19155         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
19156         * libc/sys/win32/*.c: Fix for new include scheme.
19157         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
19158         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
19159         * libc/sys/win32/passwd.c (*): Fix.
19160         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
19161         (_stat): Get directory owner and permissions right.
19162         * libc/sys/win32/syscalls.h (uinfo): New.
19163         * libc/sys/win32/version.def: Remove leading underscores.
19164
19165 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19166
19167         * libc/sys/win32/key.c: include "include/wincon.h".
19168
19169 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19170
19171         * libc/sys/win32/{key, stubs}.c: New.
19172         * libc/sys/win32/Makefile: Adjust to cope.
19173         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
19174         (environ_init): Change env names to upper case.
19175         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
19176         * libc/sys/win32/passwd.c (*): Fill in the functions.
19177         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
19178         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
19179         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
19180         (_open): Initialze hmap->execable_p too.
19181         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
19182         (_fstat): Fill in permissions.
19183         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
19184
19185 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19186
19187         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
19188         if defined.
19189         (cfg-ml-pos.in invocation): Likewise.
19190
19191 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19192
19193         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
19194         s_isnan.o and sf_isnan.o.
19195
19196 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
19197
19198         * All Makefile.in files: added maintainer-clean target as a
19199         synonym for realclean.
19200
19201 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
19202
19203         * libc/include/machine/setjmp.h: Add hppa support.
19204         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
19205         support.
19206         * libc/machine/hppa/Makefile.in: Related changes.
19207
19208 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19209
19210         * configure.in (machine_dir): Don't set for v810-*-*.
19211
19212 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19213
19214         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
19215         conventions correctly.
19216
19217 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19218
19219         * libc/stdio/puts.c: Update documentation of return value to match
19220         ANSI standard.
19221
19222 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
19223
19224         Fix file descriptor inheritance.
19225         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
19226         (NOT_OPEN_FD): Fix.
19227         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
19228         close-on-exec flag not set.  Initialize child's entire fd table.
19229         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
19230         CHILD_P.
19231         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
19232         if CHILD_P.  Initialize entire hmap entry.
19233         (dup): Only create new handle as inheritable if CHILD_P.
19234         (dup2): Likewise.  Properly initialize hmap entry.
19235
19236         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
19237         _spawn.
19238         (_exit): Use CHILD_P.
19239         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
19240         (_stat): Likewise.
19241
19242 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19243
19244         * libc/sys/win32/crt0.c (passover): fix up the state table.
19245         * libc/posix/popen.c: Added.
19246         * libc/posix/Makefile.in: compile popen.c.
19247
19248 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
19249
19250         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
19251         h8/500 define _DOUBLE_IS_32BITS.
19252
19253 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
19254
19255         Get vfork/exec/spawn/cwait/wait working again.
19256         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
19257         (procinfo): New member vfork_level.
19258         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
19259         (vfork_init_first): Use GetCurrentProcessId to get pid.
19260         Initialize vfork_level.
19261         (vfork_init): Delete __PID__.
19262         (environ_init): New function.  Undo patch of Aug 19, Posix says
19263         environment variables are case sensitive.
19264         (mainCRTStartup): Call it.
19265         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
19266         (my_longjump: Make static.
19267         (_spawn): New argument `h'.  Delete setting of __PID__.
19268         Delete local `idx'.  Look for chars that need quotes, rather than
19269         ones that don't.  Set handle of created process in `h'.
19270         Result is process id if created task.
19271         (allocate_spawn_entry): New function.
19272         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
19273         (_execve): Set __FD_TABLE__ before spawning child.
19274         Scan our fd table when passing fds, not our parent's.
19275         Store handle and pid in procinfo entry.
19276         (vfork0): Ensure strace message always printed.
19277         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
19278         (vfork): Don't clobber result of vfork0.
19279         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
19280         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
19281
19282         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
19283         and `exit_code'.
19284         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
19285         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
19286         adding vfork level to pseudo-pid.
19287         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
19288         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
19289         (_exit): If child, set exit code.
19290         (__vfork_record_death): Only close process handle if valid.
19291         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
19292         didn't exec.
19293         (wait_for_any): Likewise.  Start scan after root entry.
19294
19295 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19296
19297         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
19298         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
19299         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
19300         of actual file length.
19301
19302         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
19303         * libc/include/paths.h: _PATH_BSHELL added.
19304         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
19305         and STDERR_FILENO.
19306
19307 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19308
19309         * libc/include/ar.h: Added.
19310         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19311         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19312         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19313         on filename.
19314         (_fstat): use .namehash for inode number of the fd.
19315
19316 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19317
19318         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19319          Change hinfo to __this_procinfo.
19320         * libc/sys/win32/crt0.c: Remove procinfo_list.
19321
19322 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19323
19324         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19325         win32 environment.
19326
19327 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19328
19329         * libc/sys/win32/include/grp.h: Removed.
19330         * libc/sys/include/grp.h: Added.
19331         * libc/sys/win32/grp.c: Include <grp.h>.
19332
19333 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19334
19335         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19336         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19337         Defined for all but strict ANSI.
19338         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19339         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19340         * libc/signal/signal.c (_signal_r): Changed from using
19341         _MAX_SIGNALS to NSIG.
19342         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19343          __hmap): Deleted.
19344         (__strace, __vfork_next_pid): New.
19345         (__exe_suffix): Default to 1.
19346         (passover, table): Understand quoted arguments.
19347         (vfork_init_first): New.
19348         (vfork_init): Initialize new process structure.
19349         (mainCRTStartup): Pass environ to main.
19350         * exceptions.c (__sig_mask): New
19351         (ehandler3): Ignore signals in mask.
19352         (really_exit): Remove CHILD_P test.
19353         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19354         * resource.c (getrusage): Ditto.
19355         * signal.c (sigprocmask): New.
19356         * spawn.c (*): Rewritten.
19357         * syscalls.c (*): Use new process and file structure.
19358         (find_unused_handle): New.
19359         * syscalls.h (MAX_HANDLES): Deleted.
19360         (hinfo): Removed child_created_p.
19361         (MAX_CHILDREN): Deleted.
19362         (vfork_jmp_info, procinfo): New.
19363         * wait.c (*): Mostly new.
19364         * sys/strace.h (_STRACE_PARANOID): New.
19365         * sys/param.h: New file.
19366
19367 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19368
19369         * libc/include/sys/stat.h: add S_BLKSIZE.
19370         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19371         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19372         types under win32.
19373         (mode_t): add a #else to avoid multiple definitons.
19374
19375         * libc/sys/win32/Makefile.in: add grp.c.
19376         * libc/sys/win32/grp.c: include grp.h correctly.
19377         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19378         of the st structure with real information.
19379         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19380
19381 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19382
19383         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19384         and (maybe) sparc64.
19385         (nlink_t): Provide typedef.
19386
19387 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19388
19389         * libc/sys/win32/grp.c: New file.
19390         * libc/sys/win32/include/grp.h: New file.
19391
19392 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19393
19394         * libc/include/machine/ieeefp.h: Added whitespace to make this
19395         file easier to maintain.
19396         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19397         depending on the value of __LITTLE_ENDIAN__.
19398         On the sh3e, define _DOUBLE_IS_32BITS.
19399
19400 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19401
19402         * libc/sys/vr4300/syscalls.c: Added missing support
19403         routines. _raise() and getpid().
19404
19405 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19406
19407         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19408
19409 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19410
19411         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19412         and VR4300 processor.
19413         * libc/sys/vr4300: Add directory.
19414         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19415         monitor run-time support.
19416
19417 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19418
19419         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19420         * libc/stdlib/stdlib.tex: Don't include atol.def.
19421
19422 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19423
19424         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19425
19426 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19427
19428         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19429
19430 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19431
19432         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19433         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19434         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19435         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19436         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19437
19438 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19439
19440         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19441
19442 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19443
19444         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19445         * libc/stdlib/atoff.c: New file.
19446         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19447         * libc/stdlib/atoi.c (atol): Removed.
19448         * libc/stdlib/atol.c: Removed duplicate documentation.
19449
19450         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19451         #ifndef _STRICT_ANSI conditional.
19452         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19453         * libc/ctype/_tolower.c: New file.
19454         * libc/ctype/_toupper.c: New file.
19455         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19456         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19457         * libc/ctype/toascii.c (_toascii): Removed.
19458
19459 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19460
19461         * libc/sys/sparc64/sys/types.h: Deleted.
19462
19463 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19464
19465         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19466         and recognize Windows_95 systems.
19467
19468 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19469
19470         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19471         and passed fds should be opened in text mode.
19472
19473 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19474
19475         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19476         in __hmap, set to binary mode by default.
19477
19478 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19479
19480         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19481         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19482         vector 34.
19483
19484 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19485
19486         * Makefile.in (install): Install all libraries found in the
19487         top level.  If there's a sys/<type>/include directory,
19488         install those headers into include.
19489
19490         * libc/sys/win32/kernel.def351: Delete
19491         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19492         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19493         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19494         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19495         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19496         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19497         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19498         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19499
19500         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19501         * libc/sys/win32/crt0.c: Force all env names to upper case.
19502         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19503         * libc/sys/win32/*.c: Headers have moved.
19504         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19505         __vfork_child_idx is now __vfork_child_ptr.
19506
19507         * posix/execvp (execvp): Don't crash if no PATH envname.
19508
19509 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19510
19511         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19512         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19513         through the _freelist instead of through the _reclaim list.
19514         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19515         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19516         sources.
19517
19518 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19519
19520         * libc/machine/h8500/setjmp.S: New file.
19521         * libc/include/machine/setjmp.h: Updated for H8/500.
19522
19523 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19524
19525         * libc/sys/win32/syscalls.c (_open): More stracing.
19526         (_stat): Open the file in O_BINARY.
19527
19528 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19529
19530         * libc/machine/h8300/setjmp.S: New file.
19531         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19532
19533 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19534
19535         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19536         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19537         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19538         __exe_suffix.  Free fd_tab after setting env variable.
19539         (spawnv,_execve): Update.
19540         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
19541         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
19542         (__small_vfprintf): New function.
19543         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
19544         * libc/sys/win32/wait.c (cwait): Validate argument.
19545
19546         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
19547         (process_deletion_queue): Likewise.
19548
19549         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
19550
19551 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
19552
19553         * libc/sys/win32: Copyrights and gratuitous indenting.
19554
19555 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
19556
19557         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
19558         (process_deletion_queue): Likewise.
19559         (__close_all_files): New function.
19560         (_close): Only queue file deletion if really a file.
19561         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
19562         _P_APPEND_EXE.
19563         (_exit): Call __close_all_files.
19564
19565         * libc/stdlib/system.c: #include <errno.h>.
19566         (_system_r): Fix results in -DNO_EXEC case.
19567
19568         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
19569         Reorganize structure.
19570         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
19571         if argument is valid.  Save directory name in DIR.  malloc space
19572         for dirent struct separately.
19573         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
19574
19575         * libc/include/errno.h (ENAMETOOLONG): Define.
19576         * libc/string/strerror.c (strerror): Reword ENFILE.
19577         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
19578
19579 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
19580
19581         * libc/sys/win32/crt0.c (__progname): New global.
19582         (mainCRTStartup): Support strace=bitmask,filename.
19583         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
19584         * libc/sys/win32/syscalls.c (_write): Print parent trace message
19585         if error.
19586         (getcwd): Handle len too small.  Convert '\\' to '/'.
19587         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
19588         Add prototypes for open, creat, fcntl.
19589         (O_APPEND): Change value to conform to Microsoft's value.
19590         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
19591
19592         * libc/stdlib/getopt.c: New file.
19593         * libc/stdlib/Makefile.in: Build it.
19594
19595 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
19596
19597         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
19598         Fix scanning of $PATH.
19599         * libc/posix/exec*.c: Call _execve, not execve.
19600         * libc/posix/execve.c: New file.
19601         * libc/posix/Makefile.in (OFILES): Add execve.o.
19602
19603         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
19604         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
19605         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
19606         * libc/sys/win32/crt0.c: Update _STRACE calls.
19607         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
19608
19609         * libc/sys/win32/smallprint.c (rn): Fix digit list.
19610
19611         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
19612         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
19613         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
19614         Print __seterrno trace message first.
19615         (_execve): Renamed from execve.
19616         (vfork): Update __strace usage.
19617         (__vfork_child_pid): Deleted.
19618         (__vfork_children, __vfork_child_idx): New globals.
19619         (_spawnvp): New function.
19620         (spawnvp, spawnv, _execve): Call _spawnvp.
19621         (init_child): Record child in __vfork_children.
19622         (__vfork_get_entry, __vfork_record_death): New functions.
19623         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
19624         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
19625         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
19626         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
19627         (children): New typedef.
19628         (__vfork_children,__vfork_child_idx): Declare.
19629         (__vfork_get_entry,__vfork_record_death): Declare.
19630         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
19631         (waitpid): Handle pid == -1.
19632         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
19633         * configure.in (i386-win32): Add -DNO_FORK.
19634         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
19635         * libc/reent/execr.c (_fork_r): Likewise.
19636         * libc/stdlib/system.c (do_system): New function.
19637         If WIN32, try to get shell path from $SH_PATH, use vfork.
19638         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
19639         otherwise return 0.
19640
19641 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
19642
19643         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
19644         * libc/sys/win32/fcntl.h: Don't include self.
19645         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
19646         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
19647         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
19648         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
19649         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
19650         Correct prototypes.
19651         * libc/sys/win32/strace.c: New file.
19652         * libc/sys/win32/smallprint.c: New file.
19653         * libc/sys/win32/crt0.c (func): Delete.
19654         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
19655         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
19656         * libc/sys/win32/exceptions.c: Lint.
19657         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
19658         Clean up handle usage.
19659         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
19660         (open.c): Default file type is text.
19661         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
19662         * libc/sys/win32/advapi32.def: New
19663
19664 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19665
19666         * configure.in (posix_dir, libc_posix_lib): New variables.
19667         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
19668         (i[345]86-*-win32): Define posix_dir.
19669         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
19670         (if unix_dir): Fix typo.
19671         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
19672         scandir,seekdir,telldir}: New files.
19673         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
19674         from libc/unix.
19675         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
19676         (SUBDIRS): Add posix.
19677         (SUBLIBS): Add $(LIBC_POSIX_LIB).
19678
19679         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
19680         (NSIG): Increase to 21.
19681         * libc/include/sys/unistd.h (pid_t): Move from here,
19682         * libc/include/sys/types.h (pid_t): to here.
19683
19684         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
19685         (__ptrace): Delete.
19686         (hinfo): New members close_exec_p, child_created_p.
19687         (struct exception_list): Define.
19688         (__hmap): Redefine as pointer to table.
19689         (__parent_hmap, __child_hmap): New globals.
19690         (__set_errno, __really_exit): Declare.
19691         (__vfork_child_pid): Declare.
19692         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
19693         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
19694         (__parent_hmap, __child_hmap): New globals.
19695         (__hmap): Redefine as pointer to active map.
19696         (__get_console): New function.
19697         (mainCRTStartup): Change leading '=' in environ vars to '!'.
19698         (env __FD_TABLE__): Watch for this and initialize our fd/handle
19699         mapping table from it if defined.
19700         (argv, envp): Dump if __strace >= 4.
19701         (main): Call here.
19702         * libc/sys/win32/exceptions.c (myp): Redefine.
19703         (__syscalls_b): Delete.
19704         (__stack_trace): New function.
19705         (ehandler3): Update to use _STRACE.  Print stack trace.
19706         Call __really_exit instead of exit.
19707         (init_exceptions): Delete args argc,argv.  New arg mine.
19708         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
19709         FindFirstFileA, FindNextFileA, GetComputerNameA,
19710         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
19711         * libc/sys/win32/signal.c (signal): Validate arg.
19712         (alarm, sleep): Define as stubs for now.
19713         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
19714         (__syscalls_b, errno): Delete.
19715         (__vfork_child_pid, __vfork_jmp_buf): New globals.
19716         (__seterrno): Handle more errors.
19717         (__sys_printf): Renamed from _ptrace.
19718         (__really_exit): New function.
19719         (queue_file_deletion, process_deletion_queue): New functions.
19720         (__resume_parent): New function.
19721         (_unlink): Handle trying to delete open file.
19722         (__totime_t): Renamed from totime_t.
19723         (setsid, __read, __write): New functions.
19724         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
19725         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
19726         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
19727         * libc/sys/win32/console.c: Update to new definition of __hmap.
19728         * libc/sys/win32/Makefile.in: Build new files.
19729         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
19730         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
19731         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
19732         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
19733
19734 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19735
19736         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
19737
19738 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19739
19740         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
19741         have been made to the master dtoa.c sources (from netlib.att.com)
19742         since they were integrated into newlib in early 1992.  Fixes
19743         problems with storage leaks and handling of numbers with very
19744         negative exponents.
19745
19746 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19747
19748         * Makefile.in (all): set rootpre and srcrootpre before calling
19749         sub-makes.
19750
19751 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19752
19753         * libc/sys/win32/crt0.c: Change __hmap usage.
19754         * libc/sys/win32/exceptions.c: Use _ptrace call.
19755         * libc/sys/win32/syscalls.c: Use _ptrace call.
19756         (read, write): Cope with DOS style CRLF when in TEXT mode.
19757         * libc/sys/win32/syscalls.h: Declare hinfo struct.
19758         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
19759         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
19760         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
19761         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
19762
19763 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19764
19765         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
19766
19767         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
19768         wrappers for hypot() and remainder() for BSD libm compatibility.
19769         These are public domain implementations written by me for the
19770         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
19771         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
19772         (fobj): Added wf_cabs.o and wf_drem.o.
19773
19774 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19775
19776         * libc/sys/h8500hms/misc.c: New file.
19777         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
19778
19779 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19780
19781         * libc/time/localtime.c (localtime): Fix problem with leap year
19782         handling.  Stole algorithm from Arthur David Olson's tz code.
19783
19784 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
19785
19786         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
19787
19788         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
19789         (_exit): Use argument.
19790
19791 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
19792
19793         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
19794
19795 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19796
19797         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
19798
19799 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19800
19801         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
19802         target_cflags.
19803
19804 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
19805
19806         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
19807         ptrace with case insensitivity
19808         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
19809         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
19810         New files.
19811
19812 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
19813
19814         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19815         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
19816         (all, install, *clean): Use new multilib support.
19817         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19818
19819 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
19820
19821         * libc/include/sys/signal.h (__WIN32__): New.
19822
19823         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
19824
19825         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
19826         (ulp, b2d): Handle 32 bit doubles.
19827         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
19828         * libc/stdlib/strtod.c (_strtod_r): Ditto.
19829
19830 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
19831
19832         from medp@primag.co.uk:
19833         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
19834         dynamically allocated buffers.
19835
19836 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
19837
19838         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
19839         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
19840
19841 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19842
19843         * configure.in (powerpc): Fix previous fix.
19844
19845 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19846
19847         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
19848         directories for this target.
19849
19850 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
19851
19852         * configure.in (hppa): Add machine_dir definition.
19853         * libc/machine/hppa: New directory with PA specific implementations
19854         of the basic memory/string functions.
19855
19856 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19857
19858         * configure.in: Update current PowerPC multilib directories.
19859         Split big and little endian configurations.
19860
19861 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
19862
19863         * configure.in: Add --enable-single-float option to configure to
19864         control use of MIPS single-float directories.  Default to yes.
19865
19866         * Makefile.in (all): Don't recurse into multilib directory if it
19867         does not exist.
19868
19869 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19870
19871         * libc/sys/sh/syscalls.c: Fix typo.
19872
19873 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19874
19875         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
19876         Pass down DLLTOOL.
19877         * libc/include/process.h: Define WAIT_CHILD.
19878         * libc/include/types.h: Get sizes right for win32.
19879         * configure.in (i386-*-pe): Becomes i386-win32.
19880         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19881         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
19882         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
19883         is defined.
19884
19885 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19886
19887         * configure.in (i[345]86-*-pe):  New target (NT).
19888         * host/any: DLLTOOL new.
19889         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19890         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
19891         WIN32 (just enough to cross host the comp-tools).
19892
19893 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
19894
19895         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
19896         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
19897
19898 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
19899
19900         * libc/include/machine/ieeefp.h (arm): Change to always be
19901         __IEEE_BIG_ENDIAN (even on little endian ARM's).
19902
19903 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19904
19905         * libc/sys/crt0.S: Initialze sp, and call exit after main.
19906         * libc/sys/syscalls.c (abort): New.
19907         * configure.in (arm): Define ABORT_PROVIDED.
19908
19909 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19910
19911         * configure.in (powerpc): Define multidirs.
19912
19913 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
19914
19915         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
19916
19917 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
19918
19919         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
19920
19921 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19922
19923         * configure.in, libc/include/machine/ieeefp.h: Modified
19924         for arm:
19925         libc/machine/arm/*, libc/sys/arm/*: New
19926
19927 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19928
19929         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
19930           __powerpc__ when determining endianness.
19931
19932 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19933
19934         * configure.in (m68*): Add multidir for the m68332.
19935
19936         * host/any (CC): Fix typo in last change.
19937
19938 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
19939
19940         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
19941         when determining endianness.
19942         * libc/include/machine/ieeefp.h: Ditto.
19943         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
19944         operands.
19945
19946 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
19947
19948         * libc/include/errno.h (ENOTEMPTY): Define.
19949
19950 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19951
19952         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
19953           target_cflags.
19954
19955         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
19956           and umultiply.o.
19957
19958         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
19959           instead of only when open succeeds.  ANSI requires that multiple
19960           calls to tmpnam() result in different files.
19961
19962         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
19963           objects pulled in from /lib/libc.a that must be renamed before
19964           being pulled into newlib.  /lib/libc.a's div.o conflicted with
19965           newlib's file with the same name.
19966
19967         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
19968
19969         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
19970           the build tree will only be used if the executables are present
19971           (instead of just the Makefiles).
19972
19973         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
19974           wcstombs): Define.
19975         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
19976           versions of these functions that I orignally wrote for the
19977           NetBSD C library.
19978         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
19979           versions I wrote for NetBSD.
19980
19981 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
19982
19983         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
19984         * libc/sys/sparclite/crt0.s: ditto.
19985
19986 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
19987
19988         * configure.in: Add soft-float for proelf.
19989
19990 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
19991
19992         * libc/stdlib/mprec.h (Bcopy): Copy the right number
19993         of bytes.
19994
19995 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
19996
19997         * Makefile.in (all): Depend on `force'.
19998         * configure.in (syscall_dir): Renamed from fake_sys_dir.
19999         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
20000         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
20001         * libc/Makefile.in: Likewise.
20002         * libc/include/reent.h: Update syscall references.
20003         (_fcntl_r): Add prototype.
20004         * libc/syscalls/*.c #include <reent.h>.
20005         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
20006
20007 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
20008
20009         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
20010         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
20011         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
20012         (time.h, sys/types.h): Always include (even if MSDOS).
20013         (stat): Fix prototype.
20014
20015 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
20016
20017         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
20018
20019 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20020
20021         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
20022
20023 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
20024
20025         * libc/include/regdef.h: New file.
20026         * libc/machine/mips/machine/regdef.h: New file.
20027
20028 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
20029
20030         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
20031
20032 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
20033
20034         * libc/sys/sh/crt0.S: Pass main's return to exit.
20035         * libc/sys/sh/trap.S: Put errno in the right place.
20036
20037 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20038
20039         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
20040         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
20041         * libm/math/ef_rem_pio2.c: Likewise.
20042         * libm/math/e_log10.c: Remove unused static one.
20043         * libm/math/ef_log10.c: Likewise.
20044         * libm/math/s_frexp.c: Likewise.
20045         * libm/math/sf_frexp.c: Likewise.
20046
20047 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
20048
20049         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
20050         longjmp.S: Upgraded.
20051         * libc/sys/go32/sys/setjmp.h: Upgraded.
20052         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
20053
20054 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20055
20056         * configure.in: Add many entries to multidirs for mips targets.
20057
20058 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20059
20060         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
20061           5.2 which fixes bug where jn(-1,x) is three times larger than
20062           the actual answer.
20063         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
20064
20065 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
20066
20067         * libc/sys/w65/sys/syscalls.h: New file
20068         * libc/include/machine/ieeefp.h: W65 support.
20069         * libc/include/sys/config.h: Ditto.
20070         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
20071         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
20072         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
20073
20074 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20075
20076         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
20077
20078 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
20079
20080         * Makefile.in, configure.in: Remove any references to the old
20081         "stub" dir.
20082
20083 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20084
20085         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
20086         uses ... in prototype.
20087
20088
20089 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
20090
20091         * libc/sys/a29khif/sys/libconfig.h: Remove.
20092         * libc/sys/go32/sys/libconfig.h: Remove.
20093         * libc/sys/sun4/sys/libconfig.h: Remove.
20094         * libc/sys/sysvi386/sys/libconfig.h: Remove.
20095         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
20096         * libc/sys/sparc64/sys/libconfig.h: Remove.
20097
20098         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
20099         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
20100         * libc/include/math.h: Change all uses of _FLOAT_RET and
20101         _FLOAT_ARG to float.
20102         * libm/test/math.c: Likewise.
20103         * testsuite/libm.sac/math.c: Likewise.
20104         * testsuite/libm.sac/working/math.c: Likewise.
20105
20106 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20107
20108         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
20109         gcc calls gas with endian option.
20110         * configure.in (sh): Build little endian version too.
20111
20112 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20113
20114         * configure.in: Configure big and little endian versions for MIPS
20115         targets.
20116
20117 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
20118
20119         * libc/include/limits.h: Deleted.
20120         * libc/include/machine/limits.h: Deleted.
20121
20122 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
20123
20124         * ChangeLog: Remove stub directory. This has all been rewritten
20125         and moved to devo/libgloss.
20126
20127 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20128
20129         * Makefile.in (dvi): Add to info target, use $@ in sub make.
20130         (docs): Merge into info target.
20131         * libm/Makefile.in (dvi): Add $(srcdir).
20132         * libm/math/Makefile.in (chobjs): Remove underscores from file
20133         names.  Texinfo doesn't like them.
20134         (wacos.def, ...): Add explicit targets for all .def files.
20135         * libm/math/math.tex: Remove underscores from @include file names.
20136         * doc/Makefile.in (dvi): Add dummy target.
20137         * testsuite/Makefile.in (dvi): Add dummy target.
20138
20139 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
20140
20141         * Makefile.in (VERSION): Define.  For net newlib releases.
20142
20143 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
20144
20145         * README: New file.
20146
20147 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20148
20149         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
20150
20151 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20152
20153         * libc/stdlib/setenv.c (_findenv): Declare.
20154
20155         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
20156         fcntl to not use _EXFUN, and change string parameters to open and
20157         creat to be ``const char *''.
20158         * libc/sys/sparc64/sys/fcntl.h: Likewise.
20159         * libc/sys/sparc64/creat.c (creat): Make PATH const.
20160         * libc/syscalls/sysopen.c: Include <fcntl.h>.
20161         (open) Make _FILE const.
20162         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
20163         (_creat): Make PATH const.
20164         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
20165         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
20166         * libc/sys/m88kbug/syscalls.c (open): Likewise.
20167         * libc/sys/sh/syscalls.c (_open): Likewise.
20168         * stub/shared/glue.c (open): Make BUF const.
20169         * stub/ex93x/syscalls.c (open): Make FILENAME const.
20170
20171 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20172
20173         * libc/include/errno.h: Add ENMFILE
20174         * libc/include/sys/config.h: Support Z8000.
20175         * libc/include/sys/signal.h: New signals for go32.
20176         * libc/machine/h8500/psi.S (__addpsir0r0): New function
20177         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
20178         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
20179         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
20180         size is variable, depending upon CHUNK_POWER.
20181         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
20182
20183 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20184
20185         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
20186
20187 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20188
20189         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
20190
20191 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20192
20193         * configure.in: Change i[34]86 to i[345]86.
20194
20195         * libc/include/math.h: Don't define HUGE_VAL if it is already
20196         defined.
20197
20198 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20199
20200         * testsuite/libm.sac/test_erfc.c: Correct some result values.
20201         * testsuite/libm.sac/test_gammaf.c: Likewise.
20202         * testsuite/libm.sac/test_sin.c: Likewise.
20203         * testsuite/libm.sac/test_tanh.c: Likewise.
20204
20205 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20206
20207         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
20208         already set.  Define typedefs __int32_t and __uint32_t.
20209         * libc/include/math.h: Include <machine/ieeefp.h>.
20210         (union __dmath): Use __uint32_t.
20211         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
20212         instead of int and unsigned int.
20213
20214 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20215
20216         Replace the math library with the SunPRO fdlibm package.
20217         * libm/math: Completely changed all files.
20218         * libm/ieeefp: Remove contents and directory.
20219         * libm/Makefile.in (LIBM_FP_LIB): Remove.
20220         (SUBDIRS): Just set to math/lib.a.
20221         * libm/libm.texinfo: Updated for new library.
20222         * libc/include/math.h: Extensive changes for new math library.
20223         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
20224         from _FLOAT_ARG to float.
20225         (maxpowtwo, maxpowtwof): Don't declare.
20226         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
20227         (libm_fp_lib): Removed.
20228         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
20229         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
20230         argument to ${RUNTEST}.
20231         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
20232         (.c.o): New rule.
20233         (RUNTESTFLAGS): Set CC and CFLAGS.
20234         (TESTS): Remove test_log2 and test_log2f.
20235         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
20236         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
20237         _FLOAT_ARG, for single precision argument type.
20238         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
20239         expected failure.  Close the input pipe.
20240         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
20241         Correct misspelling of inaccurate.
20242         (test_mok): Use ``inaccurate'', not ``wrong''.
20243         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
20244         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
20245         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
20246         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
20247         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
20248         test_yn.c): Correct many result values.  Many are still wrong.
20249
20250         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
20251         just copy the string.
20252         (_gcvt): Always return the buffer.
20253
20254 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20255
20256         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
20257
20258 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
20259
20260         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
20261         structure.
20262         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
20263         (_reclaim_reent): declare new entry point.
20264         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
20265         functions.
20266
20267         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
20268         ever allocated, so that we can later reclaim them all.
20269         (pow5mult): make reentrant.
20270
20271         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
20272         so that when given NULL as a buffer, return a pointer to static
20273         space in the rent structure.  This is not documented behaviour;
20274         it's only to support ecvt and fcvt, which aren't ANSI anyway.
20275         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
20276         therefore become reentrant).
20277
20278         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
20279
20280 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20281
20282         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
20283
20284 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20285
20286         * Makefile.in: Make link to libg.a after libc.a; this is needed
20287           for the testsuites to build executables when everything comes
20288           from the tree.
20289
20290 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
20291
20292         * libc/Makefile.in: Add a VERSION variable so we can keep track.
20293         * libm/Makefile.in: Add a VERSION variable so we can keep track.
20294
20295 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20296
20297         * libc/include/stdio.h: Use __VALIST, not va_list.
20298
20299 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
20300
20301         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
20302         testsuite/libm.sac/execute.exp:
20303           Replace error proc calls with perror calls.
20304
20305 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
20306
20307         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
20308         * libc/include/time.h: #define NULL as 0L.
20309
20310 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20311
20312         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20313         care of it.
20314
20315 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20316
20317         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20318         not __unix__.
20319
20320 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20321
20322         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20323         (z8k-*-*): Use syscalls fake sys dir.
20324         * libc/sys/z8k/glue.c: Rename syscalls.
20325         * libc/sys/go32/Makefile.in: Use new routines.
20326         * libc/machine/Makefile.in: Fix typo in ln stuff.
20327
20328 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20329
20330         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20331         * libc/Makefile.in (crt0.o): Likewise.
20332         * libc/machine/Makefile.in (lib.a): Likewise.
20333         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20334
20335         All Makefile.in files: Added mostlyclean, realclean and distclean
20336         targets.
20337
20338         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20339         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20340         the top level Makefile.
20341
20342 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20343
20344         * libc/sys/sparc64/sys/stat.h: New file.
20345         * libc/sys/sparc64/sys/time.h: New file.
20346         * libc/sys/sparc64/sys/types.h: New file.
20347
20348 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20349
20350         * stub/ex93x/crt0.s (start): Add code to clear bss.
20351
20352 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20353
20354         * libc/include/sys/types.h (time_t): Properly protect inside
20355         #ifndef __time_t_defined.
20356
20357         * libc/stdio/fileno.c: New file.
20358         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20359         (fileno.o): Add dependency.
20360         * libc/include/stdio.h (__sgetc): Rename never to _never.
20361         (fileno macro): Disable, needs to do CHECK_INIT first.
20362
20363 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20364
20365         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20366         goal.
20367
20368         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20369         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20370         runtest.
20371         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20372         runtest.
20373
20374 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20375
20376         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20377         of the various constants.
20378
20379 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20380
20381         * libc/include/math.h: #ifndef __math_68881 around things which
20382         conflict with the (gcc-provided) inline functions in
20383         gcc/ginclude/math-68881.h.
20384
20385 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20386
20387         * libc/include/_syslist.h (_gettimeofday): Define.
20388         (_times): Ditto.
20389         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20390         (struct tms, timeval, timezone): Declare.
20391         (_gettimeofday_r, _times_r): Declare.
20392         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20393         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20394         (time_t): Add multiple definition protection, __time_t_defined.
20395         * libc/include/sys/time.h: Don't #include <time.h>.
20396         Always define struct timezone (remove #ifndef _TIME_H_).
20397         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20398         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20399         * libc/reent/Makefile.in (OFILES): Add timer.o.
20400         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20401         * libc/reent/timer.c: New file.
20402         * libc/time/clock.c: #include <reent.h>.
20403         (clock): Call _times_r instead of times.
20404         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20405         HAVE_GET_TIME_OF_DAY.
20406         Add comment regarding supporting OS routine(s) required (for docs).
20407         #include <reent.h>.
20408         (time): Call _gettimeofday_r instead of gettimeofday.
20409         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20410         * libc/time/ctime.c: Ditto.
20411         * libc/time/strftime.c: Ditto.
20412         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20413         (TEMPLATE_SFILES_R): Define here.  Also define times.
20414         Add times_r.o/times.S dependence.
20415         (time2.c, junk.c): Deleted.
20416         * libc/sys/sparc64/time2.c: Deleted.
20417         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20418
20419         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20420         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20421         * libc/sys/sparc64/junk.c: Deleted.
20422
20423 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20424
20425         * libc/sys/sparc64/Makefile.in: Add times syscall.
20426         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20427         be used with and without it.  Add comment clarifying Medium/Anywhere
20428         model requirements.
20429         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20430         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20431         even if obsolete.
20432
20433 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20434
20435         * configure.in (target_cflags): Move init.
20436         (sparc64-*-*): Define HAVE_BLKSIZE.
20437
20438 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20439
20440         * libc/include/sys/_types.h: New file.
20441         * libc/include/reent.h: #include it.
20442         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20443         MISSING_SYSCALL_NAMES.
20444         Sort syscalls.
20445         * libc/include/_syslist.h: Remove _raise.
20446         * libc/reent/signalr.c: New file.
20447         * libc/reent/Makefile.in: Compile it.
20448         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20449         Add doc for raise and _raise_r.
20450         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20451         (raise): Call _raise_r.
20452         (_raise_r): Call _getpid_r and _kill_r.
20453         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20454         (abort): Loop forever calling raise and _exit.
20455
20456 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20457
20458         * configure.in: Remove extraneous echo.
20459
20460 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20461
20462         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20463         collision with unistd.h, and fix for svr4.
20464
20465 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20466
20467         * libc/stdio/local.h (_llicvt): Declare.
20468         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20469         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20470         (_llicvt): Define.
20471         (_sicvt): Fix function header (`value' is short).
20472         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20473         Add printing of long long's support.
20474         Add printing of 8 byte pointer support.
20475
20476 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20477
20478         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20479         stat, chmod): New hooks.
20480         (sbrk): Abort if stack and heap collide.
20481         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20482         shortcut when given small args.
20483         * libc/machine/sh/setjmp.s: Rewritten.
20484         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20485         of cmp/str instruction.
20486
20487 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20488
20489         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20490         and machine_dir powerpc.
20491         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20492         Add cases for __powerpc__.
20493         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20494         New files.
20495
20496         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20497
20498 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20499
20500         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20501         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20502
20503 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20504
20505         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20506         (print_e): More comments to describe args, etc.
20507         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20508         trailing blanks.
20509         (_gcvt): Remove locals decpt, sign, end, p, done.
20510         More comments for print_e invocation.
20511         Pass "type" to print_e as is (g/G).
20512
20513 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20514
20515         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20516         stock m68000.
20517
20518 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20519
20520         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20521         works with any sized pointer, including ones bigger than ints and
20522         longs.
20523
20524 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20525
20526         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20527
20528 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20529
20530         * libc/include/stdlib.h (_calloc_r): Add prototype.
20531         * libc/machine/h8500/negsi2.c: New file.
20532         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20533         large unsigned numbers.
20534         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20535         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20536         works when sizeof(size_t) != sizeof(char *).
20537         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20538         get play area
20539         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
20540
20541 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
20542
20543         * libc/include/assert.h (assert): Handle -traditional.
20544
20545 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
20546
20547         * Makefile.in: added ; after every "fi" and "done" that wasn't at
20548         the end of a line (ie. anything before a backslash continuation)
20549         so that bash handles them.
20550
20551 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20552
20553         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
20554         stat to lstat
20555
20556 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
20557
20558         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
20559         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
20560         libc/machine/sh/udivsi3.s: Use new calling convention.
20561
20562 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
20563
20564         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
20565         chmod, access, chdir, chown by making _path const. Also fix _amode
20566         param of access.
20567
20568 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
20569
20570         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
20571         _khif_tmpnam, because it doesn't comply with ANSI but may be
20572         useful anyway. Real tmpnam was already in libc/stdio, and was
20573         colliding with this one (pr 2176.)
20574         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
20575         the wrong idea anyhow.
20576
20577 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20578
20579         * configure.in: Remove h8300h, we have multilib now.
20580
20581 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
20582
20583         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
20584         functions, to get preference over the ones in libiberty (since we
20585         provide correct declarations in <string.h>.
20586         * libc/string/Makefile.in: add support for strncasecmp,
20587         strcasecmp.
20588
20589 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
20590
20591         * Change netware config not to look for cpu explicitly.
20592
20593 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20594
20595         * libc/sys/sparc64/{creat.c,junk.c}: New files.
20596         * libc/sys/sparc64/Makefile.in: Add dependencies.
20597
20598 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
20599
20600         * configure.in: Clean up v9 a bit, new "os" aoutv8.
20601
20602 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
20603
20604         * libc/include/sys/reent.h: make structure smaller by allocating
20605         some stuff when needed.
20606         * libc/signal/signal.c: allocate as needed
20607         * libc/stdio/findfp.c,stdio/local.h: ditto
20608         * libc/stdlib/mprec.c: ditto
20609
20610         * libc/time/localtime.c: don't return a dangling stack ptr.
20611
20612 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20613
20614         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
20615
20616 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20617
20618         * libc/include/stdio.h (__sputc): comment out static inline which
20619           confuses coff toolchains.
20620
20621 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
20622
20623         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
20624         _write.s, getpid.c, kill.c, read.s}:
20625         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
20626         through the syscalls directory.
20627
20628 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20629
20630         * configure.in: fixed double quote gotcha.
20631
20632 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20633
20634         * stub/ex931: stub library for sparclite board.
20635         * stub/idp: Renamed from mc68ec. Added contructor table
20636         stuff to linker script.
20637         * stub/mvme135: Renamed from m68kmvme. Added contructor table
20638         stuff to linker script.
20639
20640 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20641
20642         * configure.in: Configure testsuites only if they exist.
20643
20644 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20645
20646         * configure.in: Don't set machine_dir for i386 until there is
20647         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
20648         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
20649         CLOCK_PROVIDED and MALLOC_PROVIDED.
20650
20651         * libc/sys/netware: New directory.  Contains simplistic and
20652         probably incorrect stubs for NetWare.  Should be enough to load
20653         the library.
20654         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
20655         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
20656         stub files.
20657
20658         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
20659         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
20660         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
20661         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
20662
20663 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
20664
20665         * testsuite/Makefile.in: add "docs" dummy target for consistency
20666         with rest of newlib; turn "info" and "install-info" into dummy
20667         targets, since they wouldn't have worked.  (Depended on
20668         nonexistent "doc" subdir.)
20669
20670 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20671
20672         * configure.in: handle mips* instead of mips
20673
20674 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20675
20676         * libc/include/sys/dirent.h: New file.  If it is not overridden by
20677         a version of libc/sys/*/sys/dirent.h, it includes the next
20678         <dirent.h> file in case there is one lurking somewhere.
20679
20680 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20681
20682         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
20683         compliance, namely: Accept a minus sign.  Consider a single 0 with
20684         a radix of 0 as being a conversion.  Determine overflow correctly.
20685         If an overflow occurs, set *ptr to the end of the number, not the
20686         middle.
20687         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
20688
20689 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
20690
20691         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
20692
20693 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
20694
20695         * Makefile.in (INSTALL): Use $srcrootpre.
20696         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
20697         can't handle it.
20698         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
20699         it.
20700         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
20701         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
20702         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
20703         * libm/math/Makefile.in (matherr.o): Ditto.
20704
20705 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20706
20707         * configure.in: Build multidirs for z8k.
20708         * libc/include/stdlib.h (_strtoul_r): add prototype.
20709         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
20710         * libc/include/machine/setjmp.h: Add for z8k.
20711         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
20712         * libc/sys/z8ksim/glue.c: tidy up.
20713
20714 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
20715
20716         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
20717         New files.  Requires execve system call.
20718         * libc/unix/Makefile.in: Use them.
20719         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
20720         Deleted, moved to libc/unix.
20721         * libc/sys/sparc64/Makefile.in: Remove them.
20722
20723 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20724
20725         * libc/sys/sparc64/{template.S template_r.S}: New files.
20726         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
20727         from templates.
20728         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
20729         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
20730         umask.S unlink.S wait4.S write.S}: Removed, now built from
20731         templates.
20732
20733 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
20734
20735         * libc/time/time.c: #include <_ansi.h>.
20736
20737 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20738
20739         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
20740
20741 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20742
20743         * configure.in: match m8* rather than m88k so that m88110 is
20744           recognized as well.
20745
20746 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20747
20748         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
20749         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
20750         misc.c: New file.
20751
20752         * configure.in: Add multilib support to h8300.
20753
20754 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20755
20756         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
20757         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
20758         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
20759
20760 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20761
20762         * configure.in: Corrected multidirs for sparc target.
20763
20764 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20765
20766         Support for building newlib multiple times with different
20767         compilation flags.
20768         * configure.in: Only configure doc at top level.  Set multidirs
20769         when appropriate for target, unless not at top level.  If
20770         multidirs is set, independently configure each subdirectory.
20771         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
20772         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
20773         automagically set by configure.in.
20774         (all): If MULTIDIRS is set, build multiple copies of libraries.
20775         (install): If MULTIDIRS is set, install multiple copies of
20776         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
20777         MULTISUBDIR is set, don't bother to install header files.
20778         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
20779         ${srcrootpre}.
20780         * stub/configure.in: Set MULTISUBDIR appropriately.
20781         * stub/Makefile.in (install): Install in
20782         $(tooldir)/lib/$(MULTISUBDIR).
20783         * All Makefile.in files: Define SRCTOP as well as TOP.
20784
20785 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
20786
20787         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
20788         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
20789
20790 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
20791
20792         * libc/sys/h8300hms/exit.c (_exit): New function.
20793
20794 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20795
20796         * configure.in: recognize m88110.
20797
20798 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20799
20800         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
20801           prototype main and call with args.
20802
20803 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
20804
20805         First real try at system traps for m88k-bug.
20806         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
20807           to real trap calls.
20808         * libc/sys/m88kbug/sys/systraps.h: new file.
20809
20810 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20811
20812         Patches to fix info building when target does not use sys
20813         directory.
20814         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
20815         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
20816           libc/sys.tex.
20817         * libc/sys/Makefile.in (doc): do nothing.
20818
20819 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20820
20821         * libc/Makefile.in (CRT0): new macro.
20822           (all): depend on $(CRT0) rather than crt0.o.
20823
20824         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
20825           do not default crt0, instead, set crt0 and crt0_dir based on
20826           sys_dir and stub_dir.
20827
20828         * Makefile.in (CRT0_DIR): new macro.
20829           (all): depend on $(CRT0) rather than crt0.o which may not exist.
20830           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
20831           $(CRT0).
20832           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
20833
20834 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20835
20836         * testsuite/lib/libm.exp:
20837                 added code to support compiling and linking of tests for
20838                 libm.sac (paranoia to be added next) and processing the
20839                 pass or failure of the tests.
20840
20841         * testsuite/config/unix-libm.exp:
20842                 platform specific proc's for dealing with compiler, linker
20843                 and the way we execute and process the test results.
20844
20845         * testsuite/libm.sac/execute.exp:
20846                 generic framework for the sac tests. the config and lib
20847                 expect code for specific platforms tie it all together.
20848
20849         * testsuite/libm.sac/test_is.c:
20850                 changed the output of the test to be consistant with the
20851                 other tests. parsing of pass nad fail messages is now fixed.
20852
20853 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
20854
20855         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
20856         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
20857         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
20858         #ifdef __cplusplus, surround by extern ""C { ... }.
20859         * libc/include/assert.h:  Do *not* protect assert.h against
20860         multiple inclusion!  Also, #undef it before #define, to allow
20861         redefinition.
20862         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
20863         should be only in unistd.h.
20864
20865         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
20866         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
20867         ... }.
20868
20869 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
20870
20871         * libc/machine/sparc/Makefile.in: Must create a library, even
20872         if empty.
20873
20874 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20875
20876         * configure.in: set machine_dir for m88k.  edit crt0 definition
20877           into makefiles.
20878
20879         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
20880
20881         * libc/Makefile.in (all): also build crt0.o.
20882
20883         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
20884           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
20885           to remove CRT0.
20886
20887         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
20888           (all): reworked to build in place.
20889           (clean): remove lib.a
20890           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
20891
20892         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
20893           (_start): key off edata rather than _start_bss.
20894
20895 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
20896
20897         * libc/include/sys/unistd.h, libc/include/reent.h,
20898         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
20899
20900 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20901
20902         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
20903
20904         * Makefile.in (libc.a): break into two rules, one for libc.a and
20905           one for libc/libc.a.  Force subdirs current before rebuilding
20906           library.
20907           (libm.a): break into two rules, one for libm.a and one for
20908           libm/libm.a.  Force subdirs current before rebuilding library.
20909
20910         * libc/Makefile.in (SUBLIBS): fix typo.
20911
20912         * libc/sys/Makefile.in (all): force descent into subdirs, then
20913           rebuild library iff out of of date.
20914
20915 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20916
20917         Rework so that library is built and then finished rather than
20918         being built on each invocation of make.
20919
20920         * host/any (machine_dir, sys_dir, signal_dir): these are not
20921           shared and have been moved to their associated Makefile.in's.
20922           (AR_FLAGS): switch to qc which is faster.
20923         * configure.in: no longer assign machine_dir for m88k.  set
20924           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
20925           stub_dir set, then add to configdirs.  add comment about silly
20926           configuration.
20927           (configdirs): drop stub.  It will be added only
20928           when needed.
20929           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
20930           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
20931           stub_lib, crt0): new variables for tailoring lower level
20932           makefiles.  Assign accordingly and edit into makefiles.
20933         * libm/Makefile.in: updated copyright.
20934           (TARGETLIB): removed.
20935           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
20936           (SUBDIRS): removed TARGETDEP_DIRS.
20937           (LIBM_FP_LIB, SUBLIBS): new macros.
20938           (all): reworked.
20939           (force): new target to force rebuilds.
20940           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20941         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
20942           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
20943           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
20944           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
20945           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
20946           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
20947           stub/m68kmvme/Makefile.in: updated copyright.
20948           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
20949           (all): reworked.  made this the default rule.
20950           (clean): also remove lib.a.
20951           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20952         * stub/Makefile.in: updated copyright.
20953           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
20954           (stub_lib): new macro.
20955           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
20956           RANLIB.
20957           (all): reworked.
20958           (clean, install): assume stub_dir exists.
20959           (Makefile): depend on configure.in.  call $(SHELL) rather than
20960           sh.  drop redundant ./
20961         * stub/configure.in (stublib): new macro, assign it, edit it into
20962           makefiles.
20963         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
20964           updated copyright.
20965           (all): reworked.
20966           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20967         * libc/Makefile.in (TARGETCRT0): removed.
20968           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
20969           TARGETCRT0.
20970           (SUBDIRS): drop TARGETDEP_DIRS.
20971           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
20972           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
20973           (force): new target to force rebuilds.
20974         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
20975           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
20976           removed.
20977           (clean): assume sys_dir always exists.
20978         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
20979           drop redundant ./
20980         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
20981           libc/locale/Makefile.in, libc/machine/Makefile.in,
20982           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
20983           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
20984           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
20985           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
20986           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
20987           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
20988           libc/signal/Makefile.in, libc/stdio/Makefile.in,
20989           libc/stdlib/Makefile.in, libc/string/Makefile.in,
20990           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
20991           libc/time/Makefile.in, libc/unix/Makefile.in,
20992           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
20993           (TARGETLIB): removed.
20994           (all): reworked.
20995           (clean): also remove lib.a.
20996           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20997         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
20998           new macros.
20999           (SUBDIRS): moved to follow frag inclusion, change stub to
21000           stub_dir.
21001           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
21002           are now set in the libc Makefile.
21003         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
21004           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
21005           TARGETCRT0.
21006           (force): new target to force rebuilds.
21007         * stub/configure.in: determine and set stub_lib for for Makefile.
21008
21009 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
21010
21011         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
21012         crt0.s renamed to crt0.S.
21013         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
21014
21015         * libc/machine/h8300/Makefile.in: Make `all' the default target.
21016         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
21017         h8300h.
21018         * libc/machine/h8300/defines.h: Add macros to handle pointers for
21019         h8300 (16 bits) and h8300h (32 bits).
21020         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
21021         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
21022
21023 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
21024
21025         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
21026         implementation of setjmp and longjmp for the m88k.
21027         * libc/include/machine/setjmp.h: Added __m88000__ case.
21028
21029 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
21030
21031         * configure.in: Recognize h8300h as variant of h8300.
21032
21033 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21034
21035         * libc/include/sys/unistd.h (read, write): get prototypes right.
21036         (sbrk): New prototype.
21037         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
21038         * libc/stdio/local.h: Include unistd.h.
21039         * libc/machine/h8300/syscalls.c: Names have changed.
21040
21041 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
21042
21043         * configure.in: add sys_dir assignment for m88k-bug.
21044
21045 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21046
21047         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
21048         a.out or elf.
21049         * libc/sys/sparc64: all *.S files: Use new macros.
21050         * libc/sys/sparc64/isatty.c: New file.
21051         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
21052         functions beyond what newlib provides.
21053
21054 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
21055
21056         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
21057         svr4.
21058
21059 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
21060
21061         * libc/include/machine/ieeefp.h: Add support for h8/300h.
21062
21063 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
21064
21065         * configure.in: add m88k.
21066         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
21067         sanity check so no one else need ever chase what I did to find
21068         this.
21069
21070         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
21071
21072 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
21073
21074         * doc/makedoc.c: Include <ctype.h>.
21075
21076 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
21077
21078         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21079         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21080         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21081
21082         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
21083
21084 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
21085
21086         * libc/include/errno.h (ENOSYS): Added.
21087
21088         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
21089
21090 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21091
21092         * libc/stdio/fflush.c (fflush): Check for reent struct
21093         initialization.
21094         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
21095
21096 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
21097
21098         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
21099         out of dtoa.c so it doesn't pollute the namespace.
21100         * libc/include/_syslist.h: new file -- mappings from _function to
21101         function, for systems where we can't win (by default, all of them,
21102         until we start updating system calls.)
21103         * libc/syscalls: new directory -- stubs for exporting _function
21104         names as unmodified function names.
21105         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
21106         _syslist.h on all platforms by default, but put hooks in for
21107         fake_sys_dir so we can include it when we've renamed the system
21108         calls.
21109         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
21110         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
21111         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
21112         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
21113         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
21114         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
21115         non ANSI functions to call _function.
21116
21117 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21118
21119         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
21120         when base 16 is specified.  Don't accept non-digits if radix > 10.
21121
21122 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
21123
21124         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
21125
21126 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21127
21128         * libc/include/sys/stat.h: Surround text after #endif with
21129         comments.
21130
21131 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21132
21133         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
21134         _malloc_r, _realloc_r, and free_r call the corresponding
21135         non-reentrant functions.
21136
21137         * libm/math/modf.c (modf): We now take the address of ipart, so
21138         don't make it a register variable.
21139
21140 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
21141
21142         * libm/math/*: Rename all xxx_r fns to _xxx_r.
21143
21144 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
21145
21146         * libc/libc.texinfo and embedded docn throughout: formatting
21147         improvements, minor rephrasing for clarity, and improved
21148         reentrancy docn.
21149
21150 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21151
21152         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
21153
21154         * libc/stdio/cvt.c (_licvt): Print the right value on machines
21155         where sizeof(int) != sizeof(long).
21156
21157 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21158
21159         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
21160         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
21161         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
21162         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
21163         libm/math/matherr.c: changes for better docn formatting (info).
21164
21165         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
21166         libc/reent/reent.tex, libc/signal/signal.tex,
21167         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
21168         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
21169         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
21170         makeinfo node defaulting to get better Info file node structure.
21171         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
21172         Also include a few formerly missing sections (subroutines).
21173
21174         * doc/doc.str: delete fossil expansion for "func"
21175
21176         * default.menu, no-signal.menu: delete.
21177
21178         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
21179         method used to adjust doc for missing "signals" chapter when
21180         signal_dir is empty.
21181
21182 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21183
21184         * configure.in: added testsuite/libm.sac
21185
21186 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
21187
21188         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
21189         code model).
21190
21191 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
21192
21193         * libm/Makefile.in: Use $(MAKE) rather than make, and define
21194         MAKEOVERRIDES to be empty.
21195
21196 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
21197
21198         * configure.in: Don't build mips-*-* with -msoft-float, since that
21199         makes it incompatible with hard floating point.
21200
21201 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21202
21203         * Makefile.in: added recursive 'make check'
21204
21205 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21206
21207         * configure.in: added ./testsuite ./testsuite/libm.paranoia
21208         * ./testsuite/Makefile.in: created
21209         * ./testsuite/libm.paranoia: paranoia tests added
21210
21211 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21212
21213         * configure.in: For mips-*-* set machine_dir to mips.
21214
21215         * libc/machine/mips: New directory.
21216         * libc/machine/mips/Makefile.in: New file.
21217         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
21218         setjmp and longjmp.
21219         * libc/include/machine/setjmp.h: Added __mips__ case.
21220
21221         * libc/machine/lmips: Removed unused and useless directory.
21222
21223 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
21224
21225         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
21226
21227 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
21228
21229         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
21230         start up).
21231
21232 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21233
21234         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
21235         SETJMP_H.
21236
21237 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
21238
21239         * libm/test/convert.c: structure member errno -> errno_val.
21240         Must include <errno.h> to use errno, it's a macro now.
21241         * libm/test/math.c: Ditto.
21242         * libm/test/math2.c: Include errno.h.
21243         * libm/test/string.c: Ditto.
21244         * libm/test/test.h: structure member errno -> errno_val.
21245         Remove extern int errno decl.
21246
21247 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
21248
21249         * libc/stdio/Makefile.in: Added dependencies on local header
21250         files.
21251         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
21252         files.
21253
21254 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21255
21256         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
21257
21258 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21259
21260         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
21261         Initialize _data.
21262
21263         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
21264         * libc/stdio/local.h: Add prototype for _licvt.
21265
21266         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
21267         instead of malloc,reealloc.
21268
21269         * libc/stdlib/local.h: New file.
21270         * libc/stdlib/efgcvt.c: #include local.h.
21271         (gcvt): Fix call to _gcvt.
21272         * libc/stdlib/ecvtbuf.c: #include local.h.
21273
21274         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
21275         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
21276         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
21277
21278         * libc/stdlib/atexit.c: moved global data to struct _reent.
21279         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
21280
21281         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
21282
21283 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
21284
21285         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
21286         here from ../reent.h.
21287
21288 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
21289
21290         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
21291         should be provided in both libc.a and libm.a.
21292         (libc.a): Depend on targ-include and libm.a.  Copy
21293         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
21294         (libm.a): Depend on targ-include.
21295         * configure.in (subdirs): Removed libc/math.
21296
21297 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21298
21299         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
21300
21301 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
21302
21303         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
21304         sys/reent.h instead of reent.h.
21305         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
21306         headers moved to sys/reent.h.
21307         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
21308         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
21309         __need__MAX_SIGNALS defined.
21310         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21311         std{in,out,err} refer to new _std{in,out,err} members.
21312
21313 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21314
21315         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21316         case.
21317
21318 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21319
21320         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21321         rather than whatever macro seterrno() has.
21322
21323 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21324
21325         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21326         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21327
21328         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21329         __STDC__.
21330
21331         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21332         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21333         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21334
21335         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21336         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21337
21338         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21339         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21340         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21341         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21342         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21343         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21344         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21345         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21346         for ANSI.  structure members given leading "_" for ANSI.  Use
21347         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21348
21349         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21350         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21351         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21352         reent_struct renamed to struct _reent for ANSI.
21353         Structure members given leading "_" for ANSI.
21354         _CONST --> const in prototypes.
21355         Use _HAVE_STDC instead of __STDC__.
21356
21357         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21358         _xxx_r.
21359         struct reent_struct renamed to struct _reent for ANSI.
21360         Structure members given leading "_" for ANSI.
21361
21362         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21363         _xxx_r.
21364         struct reent_struct renamed to struct _reent for ANSI.
21365
21366         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21367         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21368         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21369         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21370         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21371
21372         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21373         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21374         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21375         #ifndef _STRICT_ANSI non-ANSI routines.
21376         Reentrant routines renamed from _r_xxx to _xxx_r.
21377         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21378         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21379         Clean up namespace (structure members have leading "_").
21380         struct reent_struct renamed to struct _reent for ANSI compliance.
21381         _CONST --> const in function prototypes.
21382
21383         * libc/include/string.h: Add NULL and size_t.
21384
21385         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21386         unlink, wait, wait4. Reentrant syscall routines close, fork,
21387         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21388         write.
21389         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21390         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21391         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21392         write.S}: Define reentrant versions.
21393         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21394         reentrant syscalls.
21395
21396         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21397
21398         * libc/include/stdlib.h (RAND_MAX): Fix value.
21399
21400 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21401
21402         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21403         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21404         VPATH support targets after all: target.
21405
21406         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21407         exceptionHandler, which is what mvme135-stub.c expects.
21408
21409 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21410
21411         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21412
21413         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21414         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21415         compliant).
21416
21417 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21418
21419         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21420         first.
21421         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21422         _r_write): Ditto.
21423         libc/reent/fstatr.c (_r_fstat): Ditto.
21424         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21425         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21426         libc/reent/statr.c (_r_stat): Ditto.
21427
21428         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21429         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21430         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21431         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21432         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21433         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21434         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21435         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21436         (__swrite): Ditto for _r_lseek, _r_write.
21437         (__sseek): Ditto for _r_lseek.
21438         (__close): Ditto for _r_close.
21439         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21440
21441         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21442         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21443
21444         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21445         to make reent_struct the first argument (and thus consistent with
21446         the rest of newlib).
21447
21448         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21449         reference to __STDC__.
21450
21451 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21452
21453         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21454         global __cleanup.
21455
21456 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21457
21458         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21459         first.
21460         libc/stdio/fclose.c (fclose): Ditto.
21461
21462 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21463
21464         * Run through indent and rename reentrant routines for ANSI.
21465         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21466         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21467         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21468         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21469         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21470         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21471         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21472         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21473         vsprintf.c wbuf.c wsetup.c local.h}
21474
21475         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21476
21477         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21478         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21479         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21480         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21481         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21482         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21483
21484         * Run through indent.
21485         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21486         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21487         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21488         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21489         strxfrm.c}
21490
21491         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21492         localtime.c mktime.c strftime.c time.c}:
21493         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21494
21495         * Reformatting + renaming (for ANSI, GNU style, consistency).
21496         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21497         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21498         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21499
21500 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21501
21502         * libc/include/stdio.h (stdin_r): Fix.
21503
21504 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21505
21506         * Makefile.in: Unexport some variables to keep GNU make from
21507         putting them in the environment and using up needed ARG_MAX space
21508         (a hack is used to let this work with older makes as well).
21509
21510 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21511
21512         * Makefile.in: Use $(MAKE) rather than make.
21513         (MAKEOVERRIDES): Define to be empty.
21514         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21515         (libc.a, libm.a): Depend on targ-include.
21516         * host/any (LD): Don't define.
21517         (INCLUDES): Use targ-include.
21518         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21519         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21520         * libc/Makefile.in: Use $(MAKE) rather than make.
21521         (MAKEOVERRIDES): Define to be empty.
21522         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21523         (all): Rewrote to be slightly smaller.
21524         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21525         Define to be empty.
21526         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21527         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21528
21529 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21530
21531         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21532         with errno/errno.c.
21533
21534 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21535
21536         * Changes for reentrancy.
21537         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21538         Use ptr->_errno, not errno.
21539         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
21540         libc/stdio/remove.c (remove_r): New function.
21541         libc/stdio/rename.c (rename_r): New function.
21542         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21543         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
21544         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
21545         reentrant versions of system calls.
21546         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
21547         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
21548         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
21549         libc/stdio/findfp.c: Include <string.h>.
21550         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
21551         "local.h".
21552         libc/stdio/wbuf.c: Include "fvwrite.h"
21553
21554         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
21555         <string.h>.
21556         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
21557         (NULL): Don't define if already defined.
21558         libc/stdlib/system.c: Call reentrant versions of system calls.
21559         (system_r): New function.
21560
21561         * Changes for reentrancy.
21562         libc/include/_ansi.h (_PARAMS): New macro.
21563         libc/include/errno.h: Define errno as a macro that calls __errno.
21564         (__errno_r): New macro for reentrant code.
21565         libc/include/math.h: Include reent.h.  Declare many reentrant
21566         functions.
21567         (signgam): Now a macro, not a variable.
21568         (struct exception): Added err field.
21569         libc/include/reent.h: Don't declare __sglue.  Added function
21570         declarations.
21571         (struct reent_struct): Moved errno to beginning.  Added _signgam.
21572         libc/include/stdio.h, libc/include/stdlib.h: Added function
21573         declarations.
21574
21575         * More reentrancy hacking.
21576         libc/errno/errno.c (__errno): New function.
21577         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
21578         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
21579         files.
21580
21581         * Added many new reentrant functions to libm/math/*.
21582         libm/math/error.c (__matherror): Added reent_struct pointer
21583         argument. Changed all callers.
21584         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
21585         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
21586         libm/math/tan.h: Removed obsolete unused header files.
21587
21588         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
21589
21590         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
21591
21592 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21593
21594         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
21595         delay slots.
21596
21597 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21598
21599         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
21600
21601 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21602
21603         * libc/reent/reent.tex:  New file.  (text from
21604         newlib/libc/libc.texinfo)
21605         * libc/stdio/tmpnam.c:  fixed doc typo
21606         * libc/stdlib/rand.c:   fixed doc typo
21607
21608 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21609
21610         * libc/reent/reent.tex:  New file.  (text from
21611         newlib/libc/libc.texinfo)
21612
21613 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21614
21615         support for reentrancy
21616         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
21617         new files
21618         * libc/errno/errno.c, libc/include/ieeefp.h,
21619         libc/include/locale.h, libc/include/reent.h,
21620         libc/include/signal.h, libc/include/stdio.h,
21621         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
21622         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
21623         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
21624         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
21625         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21626         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
21627         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
21628         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
21629         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
21630         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
21631         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
21632         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
21633         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
21634         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
21635         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
21636         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
21637         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
21638         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
21639         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
21640         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
21641         libc/time/strftime.c: modify to provide reentracy.
21642
21643         new routines:
21644         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
21645         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
21646         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
21647         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
21648         mstats_r, realloc_r, localeconv_r, setlocale_r
21649
21650 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
21651
21652         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
21653         libc/include/sys/config.h, libc/include/sys/signal.h,
21654         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
21655         provided macros (such as m68000), use the ansi version
21656         (__m68000__) so that the library can be used with code compiled
21657         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
21658         and sparc.
21659
21660 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21661
21662         * configure.in (sparc*): Don't set -fsoft-float for sparc
21663         configurations.  Do set -fsoft-float for sparclite configurations.
21664
21665 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21666
21667         * default.menu, no-signal.menu: alternate forms of libc main menu
21668           (in newlib rather than newlib/libc due to configuration restrictions)
21669
21670         * configure.in: select one of the two menus above, link to
21671         libc.menu
21672
21673         * libc/libc.texinfo: include menu from separate file
21674
21675 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
21676
21677         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
21678         (info): Split long shell command in half.
21679         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
21680         sub-makes, just CHEW and TARGETDOC.
21681         (targetdep.tex): Removed now special handling of sys and machine
21682         subdirectories, made obsolete some time ago.
21683         * libc/machine/Makefile.in (doc): Don't pass everything to
21684         sub-make, just CHEW and TARGETDOC.
21685         (Makefile): New target.
21686         * libc/sys/Makefile.in (Makefile): New target.
21687
21688 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
21689
21690         * Makefile.in (here and most subdirectories): Only pass down CHEW
21691         and TARGETDOC when making info, not for other targets.
21692
21693         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
21694         $(AR_FLAGS) rather than $(ARUPDATE).
21695
21696 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
21697
21698         * Try to reduce command line length:
21699         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
21700         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
21701         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
21702         (info): Pass CHEW to other subdirs.
21703
21704 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
21705
21706         * configure.in: add signal_dir, like unix_dir, but by default it
21707         is set to "signal" so that a29khif can turn it off (since a29khif
21708         has raise() as part of machine-specific signal.s.)
21709
21710 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21711
21712         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
21713         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
21714         correctly.
21715         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
21716         libc/stdio/vfprintf: type lint.
21717         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
21718         initialzation code.
21719         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
21720
21721 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
21722
21723         * stub/mvme135/mvme135-asm.S: new file.
21724         stub/mvme135mvme135-stub.c: moved all assembler routines into
21725         mvme135-asm.S.
21726         stub/mvme135/Makefile.in: build mvme135-stub.o.
21727
21728 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21729
21730         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
21731         sub-Makefiles instead, to try to avoid line length limitations.
21732
21733 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
21734
21735         * libc/include/unistd.h (read, write):  Use void* instead of
21736         char*.
21737
21738 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
21739
21740         * stub/go32/resetpc: sample script to send a reset packet to the
21741         stub
21742
21743         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
21744         DOS environment, which compiles with Turbo C.
21745
21746         * stub/go32/DSER32.LNK: new file, linker commands for serial
21747         remote stub.
21748
21749         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
21750         start up message to identify version; call set_debug_traps.
21751
21752         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
21753         keyboard interaction); call handle_exception() in go_til_stop,
21754         rather than return, so that the remote stub gets control.
21755
21756         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
21757         rename, rather than mv), set flags that work with current Turbo C,
21758         including using the /3 flag; also, add commands to build dser32.
21759
21760         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
21761         default Turbo C installation (\tc rather than \usr)
21762
21763         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
21764         "&..."
21765
21766 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21767
21768         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
21769
21770 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21771
21772         * libc/stdio/cvt.c (licvt): new function to convert ints when
21773         sizeof(int) != sizeof(long).
21774
21775         * libc/include/stdio.h: added prototype for iprintf.
21776         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
21777
21778 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21779
21780         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
21781         __REGISTER_PREFIX__.
21782
21783 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21784
21785         * libc/sys/m68kbare: moved into stub directory.
21786
21787 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
21788
21789         * configure.in, Makefile.in: created new directory stub, to hold
21790         sample code for specific targets.
21791
21792 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
21793
21794         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
21795         in the unified libc/include/sys/fcntl.h.
21796
21797 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
21798
21799         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
21800         printed .01, not 0.01.
21801
21802 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
21803
21804         * configure.in: compile with -m68000 for m68* targets.
21805
21806 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
21807
21808         * libm/math/remainder.c (remainder): document the svr4 and sunos
21809         references used to construct the function.
21810
21811 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
21812
21813         * libm/math/remainder.c (rint, remainder): fix old typos.
21814         * libm/math/Makefile.in: actually build remainder.c (functions
21815         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
21816         page.)
21817
21818 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
21819
21820         * libc/string/bcopy.c: BSD version works on overlapping strings,
21821         so ours should too.
21822
21823         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
21824         ("SHELL").
21825
21826 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
21827
21828         * Makefile.in (docs): new target.
21829
21830 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
21831
21832         * libc/include/sys/times.h: define clock_t as required by POSIX.
21833         libc/include/time.h: protect clock_t from multiple definitions.
21834
21835 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21836
21837         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
21838         does not need more than the original three iterations to get
21839         within 1 ulp. (Paranoia tests for rounding to better than that,
21840         but further iterations *don't* help, only more subtle changes
21841         can.)
21842
21843 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21844
21845         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
21846         were doing nothing useful.
21847
21848 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21849
21850         * configure.in: define MALLOC_PROVIDED for vxworks targets;
21851         removed sys_dir settings of vxworks68 and vxworks960.
21852         host/any: don't pass -nostdinc to gcc, since newlib no longer
21853         provides all required header files.
21854
21855         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
21856         is not defined; this provides a hook for VxWorks.
21857
21858 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21859
21860         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
21861         buffer if buf is NULL, don't do it here -- it is already being
21862         done by makebuf elsewhere in stdio.
21863
21864 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21865
21866         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
21867         that C programs can call functions without using initial
21868         underscores.
21869
21870 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
21871
21872         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
21873
21874 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
21875
21876         * configure.in: set TARGET_CFLAGS for certain CPU types to
21877         -msoft-float.
21878
21879 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21880
21881         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
21882
21883 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21884
21885         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
21886         m68k*-unknown-coff.
21887
21888 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
21889
21890         * libc/include/stdio.h: define __need___va_list before including
21891         <stdarg.h>, to avoid defining va_arg, et. al.
21892
21893 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
21894
21895         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
21896         (don't cd to the user's home directory).
21897
21898         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
21899         In general this is the wrong thing to do, but I can't get around
21900         GNU make's insistence on passing command line arguments any other
21901         way.
21902
21903 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21904
21905         * configure.in: always configure the libc/sys directory, since it
21906         now provides a required documentation file.
21907
21908         * Makefile.in: replaced all instances of $(MAKE) with make.  In
21909         general this is the wrong thing to do, but I can't get around GNU
21910         make's insistence on passing command line arguments any other way.
21911
21912 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
21913
21914         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
21915         terminated.
21916
21917         * libc/stdio/local.h: include <stdarg.h> to define va_list.
21918         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
21919
21920         * libc/include/float.h, libc/include/stdarg.h,
21921         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
21922         versions instead.
21923         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
21924         <stdarg.h>, not from <machine/types.h>.  Protect definition of
21925         NULL.
21926         libc/include/time.h: get size_t from stddef.h.  Protect definition
21927         of NULL.
21928         libc/include/machine/limits.h: override gcc <limits.h> by defining
21929         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
21930         get correct INT_MIN and LONG_LONG values.
21931         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
21932         size_t or va_list at all; they're now gotten from stddef.h
21933         instead.
21934         libc/include/machine/varargs.h: removed; use gcc version instead.
21935         libc/include/sys/types.h: explicitly include <machine/types.h>.
21936
21937         * libm/math/sqrt.h: using the fp-bit routines appears to require
21938         more iterations.
21939
21940         * Makefile.in, host/any: let system include files override machine
21941         include files.
21942
21943 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21944
21945         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
21946         override _*_T_ definitions defaulted here.
21947
21948 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
21949
21950         * Makefile.in (install): install the include files in
21951         $(tooldir)/include, not $(exec_prefix)/include.
21952
21953 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21954
21955         * Makefile.in (install): fixed typo, and changed install to not
21956         force rebuild of libc.a and libm.a.
21957
21958 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
21959
21960         * libc/sys/a29khif/*: Changed all .include's to include
21961         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
21962         that they will be installed for the user.
21963
21964         * Makefile.in (all): create targ-include, a directory holding the
21965         machine and system specific header files during the build.
21966         (install): fixed installation of machine and system specific
21967         header files.
21968
21969         * Makefile.in: fixed comment.
21970         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
21971         we can pass $(INCLUDES) to it.
21972
21973 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21974
21975         * libc/include/sys/param.h: new generic file, which may be
21976         overridden for specific systems.
21977
21978         * libc/include/sys/signal.h: define all ANSI signal names, and
21979         NSIG (which is not ANSI) for a29k.
21980
21981 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
21982
21983         * Makefile.in: don't pass down arguments the lower level makes
21984         will not need.
21985         * libc/Makefile.in: recurse directly, rather than using subdir_do,
21986         in hopes of avoiding argument length limits.
21987         * libm/Makefile.in: recurse directly, rather using subdir_do, in
21988         hopes of avoiding argument length limits.
21989
21990 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
21991
21992         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
21993         mode_t is defined.
21994
21995 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21996
21997         * Fixed make info and make install-info for newlib, changing most
21998         Makefile.in and several *.tex files.  Moved doc directory from
21999         libc to top level.
22000
22001         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
22002         Should be rewritten.
22003
22004         * libc/string/strings.tex: renamed node index to node index
22005         function, so that it does not conflict with the top level index
22006         node.
22007
22008         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
22009
22010 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
22011
22012         * Overhauled general configuration for newlib.  Eliminated all
22013         target dependent Makefile fragments.  Create libraries in newlib
22014         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
22015         than CROSS_CC, et. al.  Broke make docs; will fix later.
22016
22017         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
22018         Should be rewritten.
22019
22020 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
22021
22022         * libc/configure.in: cleaned up somewhat; switch on ${target}
22023         rather than ${target_alias}.
22024         * libm/configure.in: cleaned up somewhat; switch on ${target}
22025         rather than ${target_alias}.
22026
22027         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
22028         * libc/include/ctype.h: marked _ctype_ as _CONST.
22029
22030         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
22031         _CONST.
22032
22033         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
22034         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
22035         libc/stdio/gets.c (gets): removed non-ANSI warning message.
22036         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
22037
22038         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
22039         bigtens, tinytens): marked arrays _CONST.
22040         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
22041         rather than a static variable.
22042
22043         * libc/time/asctime.c (asctime), libc/time/localtime.c
22044         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
22045         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
22046         mname_len, mname): Marked static arrays _CONST.
22047
22048         * libm/math/gamma.h: made local variables non-static.
22049
22050         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
22051         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
22052         _CONST.
22053
22054         * libm/math/constants.c: removed file, because the constants it
22055         defined were never referenced.
22056         libm/math/Makefile.in: removed references to constants.c.
22057         libm/math/mathimpl.h: removed declarations of constants.
22058
22059 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
22060
22061         * libc/include/machine/varargs.h: only call __builtin_saveregs if
22062         it is sensibly defined in libgcc2.  Checks preprocessor defines,
22063         which is not a good solution.
22064
22065         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
22066
22067         * libm/frexp.c: handle denormalized numbers as arguments.
22068
22069         * libm/math/Makefile.in: added some dependencies for .c files
22070         which include local .h files.
22071
22072 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
22073
22074         * libc/configure.in: set target_alias for OSE*.  Replace
22075         target_makefile_frag if it is blank.
22076
22077         * libc/Makefile.in: make sure everything is passed to subsidiary
22078         makes; create all directories when installing.
22079
22080         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
22081         CROSS_ARUPDATE instead of AR.
22082
22083         * libm/configure.in: set target_alias for OSE*.  Replace
22084         target_makefile_frag if it is blank.
22085
22086         * libm/Makefile.in: make sure everything is passed to subsidiary
22087         makes; create all directories when installing.
22088
22089 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
22090
22091         * add following change from libc copy.
22092
22093 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22094
22095         * libc/libc.texinfo: make copyright disclaimers appear on back of
22096         title page; make format of same slightly less ugly; avoid using
22097         underbars in section headings (avoids nasty texinfo bug in table
22098         of contents).
22099
22100         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
22101           comments only) avoid using underbars in section headings
22102
22103         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22104           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
22105           changes in comments only): shorten headings ieeefp/infinity.c,
22106           ieeefp/isnan.c: (doc, comments only) more informative headings
22107
22108         * libc/math/bessel.c: (doc, comments only) shorten heading
22109
22110         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
22111         (doc, comments only) shorten headings
22112
22113         * libc/time/localtime.c (doc, comments only): shorten headings
22114
22115         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22116           isnan
22117           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
22118           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
22119           headings
22120           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
22121           only) more informative headings
22122         * libm/math/bessel.c: (doc, comments only) shorten heading
22123
22124 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22125
22126         * .../Makefile.in: use CROSS_ARUPDATE consistently.
22127         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
22128         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
22129         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
22130         defined, the one from the .mt file will be correct.
22131         * libc/include/machine, libc/include/sys: created, and populated
22132         with common files from machine/*/machine. ifdefs were used for
22133         most, typically by handling exceptions first and then filling in
22134         defaults. Files with D.J. Delorie copyright #included rather than
22135         copied. Most files in include/sys really were the same in the
22136         original.
22137         * libc/include/...: cleaned up use of _EXFUN.
22138         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
22139         it with double quotes, not angles.
22140
22141 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
22142
22143         * libc/Makefile.in: always create installation directories.
22144
22145 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
22146
22147         * libc/configure.in: handle host properly (using canonical
22148         triples), better error message for the case of target not found
22149
22150 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
22151
22152         * libc/Makefile.in (insincdir): Ensure this directory exists
22153         before attempting installation.
22154
22155 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22156
22157         * libc/stdlib/assert.c: now calls abort like it should
22158         * libc/sys/a29khif: many many patches for 29khif work
22159         * libc/machine/i386: gnulib2 expanded there.
22160
22161 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22162
22163         Added accurate fp conversion routines to stdlib, moved dcvt from
22164         stdio to stdlib and called it ecvtbuf:
22165         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
22166         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
22167         routines
22168         * libc/libc.texinfo: Modifed to include the copyright info from
22169         the mprec files
22170         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
22171         * libc/test/ : many vector which tested for the implementation
22172         defined returns of strange conversion requests have been updated
22173         to relflect the new implementation
22174
22175 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22176
22177         * libc/libc.texinfo: new chapter on variable arg lists
22178         (stdarg.h/varargs.h)
22179         * libc/libc.texinfo: new title
22180         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
22181         (doc only) shorter headings for better formatting.
22182
22183 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22184
22185         * libc/libc.texinfo: three more info menu entries
22186         * libc/locale/locale.tex: new chapter
22187         * libc/locale/locale.c: new doc for setlocale, localeconv
22188         * libc/locale/Makefile.in: use new locale doc
22189         * libc/signal/signal.tex: new chapter
22190         * libc/signal/raise.c, libc/signal/signal.c: new doc
22191         * libc/signal/Makefile.in: use new doc
22192         * libc/time/time.tex: new chapter
22193         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
22194         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
22195         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
22196         * libc/time/Makefile.in: use new doc
22197
22198 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22199
22200         * libm/math/log1p.c: split to use the new function way of float
22201         function definition. math/log1p.h deleted
22202         * libm/math/scalb.c: obsolete and deleted
22203         * libm/math/scalbn.c: created from part log1p.c
22204         * libm/math/Makefile.in: know about log1p and scalbn
22205
22206 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22207
22208         * libc/ctype/isupper.c: revise doc;
22209           libc/ctype/ctype.tex: use doc from isupper.c
22210
22211         * libc/string/bzero.c: new doc
22212
22213 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22214
22215         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
22216         new doc
22217         * libc/stdlib/Makefile.in: extract new doc
22218         * libc/stdlib/stdlib.tex: use new doc
22219
22220         * libc/string/strerror.c: expanded doc.
22221
22222         * libc/stdio/Makefile.in: extract doc from more files
22223         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
22224         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
22225         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
22226         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
22227         libc/stdio/vsprintf.c: new doc
22228         * libc/stdio/stdio.tex: use new doc
22229
22230 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22231
22232         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
22233         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
22234         finitef functions.
22235         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
22236         time ago.
22237
22238         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
22239         * libc/stdio/setbuf.c: added ansi style definition.
22240         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
22241         buffer if none provided.
22242         * libc/stdio/tmpfile.c: lint
22243         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
22244         rather than using static, also make sure file isn't already
22245         present.  Uses P_tmpdir. (tempnam): rewritten to use new
22246         subroutine, and uses P_tmpdir.
22247         * libc/stdio/siprintf.c: created
22248
22249 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22250
22251         Release 1.03 for NEC, major mods. Main differences from release
22252         1.02::
22253
22254         More tests in test/:
22255         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
22256         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
22257         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
22258         get/set mask, get/set sticky and get/set roundtoi.  Tests
22259         that setting the bits changes the way arithmetic is done.
22260         * string.c: added test to make sure memcmp does it with unsigned
22261         chars.
22262         * test.c: cleaned up and removed lint.
22263         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
22264         dvec.c: tests for string to value conversions,  sprintf, scanf,
22265         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
22266         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
22267         rounding in sprintf too.
22268         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
22269         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
22270         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
22271         and function form.
22272         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
22273         powf
22274
22275         In the library:
22276         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
22277         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
22278         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
22279         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
22280         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
22281         than sprintf.
22282         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
22283         * Method of producting float versions of double functions has
22284         changed, functions will be modified gradually. So far:
22285         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
22286         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
22287         altered
22288         * libc/string/memcmp.c: now uses unsigned chars
22289         * libc/string/bcmp.c, libc/string/strcpy.c,
22290         libc/stsring/strxfrm.c: fixed doc
22291         * libc/sys/sysvnecv70.tex: fix example of sbrk code
22292 \f
22293 Local Variables:
22294 version-control: never
22295 End: