OSDN Git Service

2009-10-20 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / ChangeLog
1 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
4         that to CFLAGS.
5         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
6         as it sets the same flags as we are using.
7         * aclocal.m4: Regenerated.
8         * configure: Ditto.
9         * Makefile.in: Ditto.
10         * iconvdata/aclocal.m4: Ditto.
11         * iconvdata/configure: Ditto.
12         * iconvdata/Makefile.in: Ditto.
13         * doc/aclocal.m4: Ditto.
14         * doc/configure: Ditto.
15         * doc/Makefile.in: Ditto.
16         * libc/aclocal.m4: Ditto.
17         * libc/configure: Ditto.
18         * libc/Makefile.in: Ditto.
19         * libc/*Makefile.in: Ditto.
20         * libc/*aclocal.m4: Ditto.
21         * libc/*configure: Ditto.
22         * libm/*Makefile.in: Ditto.
23         * libm/*aclocal.m4: Ditto.
24         * libm/*configure: Ditto.
25
26 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
27
28         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
29         if not __STRICT_ANSI__ or stdc version C99 or greater.
30         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check 
31         for fseeko and ftello prototypes.
32
33 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
34
35         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
36
37 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
38
39         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
40         exception for KOI8 charsets.
41
42 2009-10-13  Eric Blake  <ebb9@byu.net>
43
44         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
45         new to POSIX 2008.
46
47 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
48
49         * libc/include/sys/signal.h: Include <sys/types.h> always.
50         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
51         standards.
52
53 2009-10-09  Dave Korn  <dave.korn@artimi.com>
54
55         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
56         defining struct timeval.
57
58 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
59
60         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
61         (__default_locale): New global variable set to the default locale.
62         (__get_locale_env): Return __default_locale rather than fixed "C".
63
64 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
65
66         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
67         * libc/stdlib/assert.c (_assert_func): Do not specify
68         __assert_func if HAVE_ASSERT_FUNC flag is set.
69
70 2009-10-08  Eric Blake  <ebb9@byu.net>
71
72         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
73         (__getopt_long_only_r): Protect declarations, to avoid compiler
74         warning.
75
76 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
77
78         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
79         charset on Cygwin.
80
81 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
82
83         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
84         value encoding.
85         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
86         value decoding.
87
88 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
89
90         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
91         prefix.  Add some words to documentation.
92
93 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
94
95         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
96         characters to their corresponding Windows Unicode value.
97
98 2009-09-28  Michael Eager <eager@eagercon.com>
99
100         * configure.host: Add microblaze.
101         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
102         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
103         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
104         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
105         * libc/include/sys/types.h: Treat XMK like rtems, define
106         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
107         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
108         * libc/machine/configure.in: Add microblaze.
109         * libc/machine/configure: Add microblaze (not regenerated).
110         * libc/machine/microblaze/configure.in: NEW.
111         * libc/machine/microblaze/configure: Generate.
112         * libc/machine/microblaze/Makefile.am: NEW.
113         * libc/machine/microblaze/Makefile.in: Generate.
114         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
115         mallocr.c, longjmp.S, setjmp.S}: NEW.
116         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
117         mALLOc(): return malloc value.
118
119 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
120
121         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
122         (lc_message_charset): Ditto.
123         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
124         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
125         Cygwin.
126         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
127         Cygwin.
128
129 2009-09-26  Eric Blake  <ebb9@byu.net>
130
131         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
132         Add declarations.
133
134 2009-09-24  Eric Blake  <ebb9@byu.net>
135
136         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
137         Add declarations.
138
139 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
140
141         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
142         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
143
144 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
145
146         * libc/include/stdlib.h: Add posix_memalign.
147
148 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
149
150         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
151         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
152
153 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
154
155         * configure.host (m32c): Move setting -DABORT_PROVIDED to second 
156         "case $host".
157
158 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
159
160         * libc/include/sys/unistd.h: Declare getpagesize as returning
161         POSIX-mandated int.
162         * libc/sys/linux/sys/unistd.h: Ditto.
163
164 2009-08-31  Takaki Makino  <t@snowelm.com>
165
166         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
167         newer gcc versions.
168         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
169
170 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
171
172         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
173         numbers.
174         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
175         charsets.
176         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
177
178 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
179
180         * libc/locale/locale.c: Update documentation.
181         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
182
183 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
184
185         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
186         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
187         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
188
189 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
190
191         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
192         space" (U+00A0).
193         * libc/ctype/iswblank.c (iswblank): Likewise.
194
195 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
196
197         * libc/locale/locale.c (loadlocale): Throughout check charset string
198         case insensitive and store internal charset string uppercased.  Allow
199         "UTF8" additionally to "UTF-8".  Add this change to documentation.
200
201 2009-08-21  Eric Blake  <ebb9@byu.net>
202
203         * libc/include/iconv.h (iconv): Match POSIX prototype.
204         * libc/iconv/lib/iconv.c (iconv): Likewise.
205
206 2009-08-21  Craig Howland <howland@LGSInnovations.com>
207
208         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
209         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
210
211 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
212
213         * iconvdata/Makefile.am (all): Remove.
214         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
215         (all): ... this.
216         * libc/sys/arc/Makefile.am: Likewise.
217         * libc/sys/arm/Makefile.am: Likewise.
218         * libc/sys/d10v/Makefile.am: Likewise.
219         * libc/sys/decstation/Makefile.am: Likewise.
220         * libc/sys/h8300hms/Makefile.am: Likewise.
221         * libc/sys/h8500hms/Makefile.am: Likewise.
222         * libc/sys/linux/Makefile.am: Likewise.
223         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
224         * libc/sys/m88kbug/Makefile.am: Likewise.
225         * libc/sys/mmixware/Makefile.am: Likewise.
226         * libc/sys/netware/Makefile.am: Likewise.
227         * libc/sys/rdos/Makefile.am: Likewise.
228         * libc/sys/rtems/Makefile.am: Likewise.
229         * libc/sys/sh/Makefile.am: Likewise.
230         * libc/sys/sparc64/Makefile.am: Likewise.
231         * libc/sys/sun4/Makefile.am: Likewise.
232         * libc/sys/sysmec/Makefile.am: Likewise.
233         * libc/sys/sysnec810/Makefile.am: Likewise.
234         * libc/sys/sysnecv850/Makefile.am: Likewise.
235         * libc/sys/sysvi386/Makefile.am: Likewise.
236         * libc/sys/sysvnecv70/Makefile.am: Likewise.
237         * libc/sys/tic80/Makefile.am: Likewise.
238         * libc/sys/w65/Makefile.am: Likewise.
239         * libc/sys/z8ksim/Makefile.am: Likewise.
240         * iconvdata/Makefile.in: Regenerate.
241         * libc/sys/a29khif/Makefile.in: Likewise.
242         * libc/sys/arc/Makefile.in: Likewise.
243         * libc/sys/arm/Makefile.in: Likewise.
244         * libc/sys/d10v/Makefile.in: Likewise.
245         * libc/sys/decstation/Makefile.in: Likewise.
246         * libc/sys/h8300hms/Makefile.in: Likewise.
247         * libc/sys/h8500hms/Makefile.in: Likewise.
248         * libc/sys/linux/Makefile.in: Likewise.
249         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
250         * libc/sys/m88kbug/Makefile.in: Likewise.
251         * libc/sys/mmixware/Makefile.in: Likewise.
252         * libc/sys/netware/Makefile.in: Likewise.
253         * libc/sys/rdos/Makefile.in: Likewise.
254         * libc/sys/rtems/Makefile.in: Likewise.
255         * libc/sys/sh/Makefile.in: Likewise.
256         * libc/sys/sparc64/Makefile.in: Likewise.
257         * libc/sys/sun4/Makefile.in: Likewise.
258         * libc/sys/sysmec/Makefile.in: Likewise.
259         * libc/sys/sysnec810/Makefile.in: Likewise.
260         * libc/sys/sysnecv850/Makefile.in: Likewise.
261         * libc/sys/sysvi386/Makefile.in: Likewise.
262         * libc/sys/sysvnecv70/Makefile.in: Likewise.
263         * libc/sys/tic80/Makefile.in: Likewise.
264         * libc/sys/w65/Makefile.in: Likewise.
265         * libc/sys/z8ksim/Makefile.in: Likewise.
266
267         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
268         from newlib_ldbl_eq_dbl.
269         * configure: Regenerate.
270
271 2009-08-19  Eric Blake  <ebb9@byu.net>
272
273         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
274         * libc/libc.texinfo (Top): Add posix node to menu.
275
276 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
277
278         * newlib.hin: Add comment regarding file being manually edited.
279         * Makefile.am: Add no-op rule for newlib.hin.
280         * Makefile.in: Regenerated.
281
282 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
283
284         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
285
286 2009-08-18  Eric Blake  <ebb9@byu.net>
287
288         * libc/posix/popen.c (popen): Fix documented prototype.
289
290         Improve popen compatibility with glibc.
291         * libc/posix/popen.c (popen): The 2006-08-22 change to use
292         FD_CLOEXEC disagrees with other implementations; instead, use
293         pidlist to work even when fcntl is not available.  Meanwhile,
294         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
295         cygwin-specific code, now that cygwin has its own version.
296         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
297         * libc/posix/posix.tex: New file.
298
299 2009-08-17  Craig Howland <howland@LGSInnovations.com>
300
301         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
302         version of strncpy() (fixing two bugs).
303
304 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
305
306         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
307
308 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
309
310         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
311         HAVE_MKDIR is defined.
312
313 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
314
315         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
316         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
317         (CHEWOUT_FILES): Add mkdirr.def.
318         * libc/reent/Makefile.in: Regenerate.
319         * libc/reent/mkdirr.c: New file.
320
321 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
322
323         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
324         return type instead of int.
325
326 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
327
328         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
329         when a lower-case character is detected.
330
331 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
332
333         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
334         pair handling to be more bullet-proof even with incomplete UTF-8
335         sequences.  Add check for 4 byte sequences resulting in values
336         outside the valid Unicode range.  Add a comment to clarify checking
337         for invalid CESU-8 sequences.
338
339 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
340
341         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
342         of handling incomplete sequences.
343
344 2009-07-22  Eric Blake  <ebb9@byu.net>
345
346         Avoid a fault from locking a closed standard file.
347         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
348         been previously closed.
349
350 2009-07-09  Craig Howland <howland@LGSInnovations.com>
351
352         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
353         isnan() (C99 macro).
354         * libm/math/wf_log.c:  Ditto.
355         * libm/math/wf_j0.c:  Ditto.
356         * libm/math/wf_sqrt.c:  Ditto.
357         * libm/math/wf_pow.c:  Ditto.
358         * libm/math/wf_fmod.c:  Ditto.
359         * libm/math/wf_remainder.c:  Ditto.
360         * libm/math/wf_scalb.c:  Ditto.
361         * libm/math/wf_atanh.c:  Ditto.
362         * libm/math/wf_cosh.c:  Ditto.
363         * libm/math/wf_acos.c:  Ditto.
364         * libm/math/wf_acosh.c:  Ditto.
365         * libm/math/wf_jn.c:  Ditto.
366         * libm/math/wf_log10.c:  Ditto.
367         * libm/math/wf_asin.c:  Ditto.
368         * libm/math/wf_j1.c:  Ditto.
369         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
370         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
371         match that from s_isinf.c.
372         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
373         remove un-necessary extension use (in a similar manner to as was
374         recently done in math.h).
375         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
376         ieeefp.h).
377         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
378
379 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
380
381         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
382         for RTEMS.
383
384 2009-07-03  Eric Blake  <ebb9@byu.net>
385
386         Add mkdtemp, mkstemps.
387         * libc/stdio/mktemp.c: Fix documentation.
388         (_gettemp): Add domkdir and length parameters.  Check for
389         insufficient 'X' suffix.  Drop cygwin-specific code.
390         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
391         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
392         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
393         (mkstemps): Declare them.
394
395         Add fpurge.
396         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
397         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
398         Build it.
399         * libc/stdio/Makefile.in: Regenerated.
400         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
401         * libc/stdio/stdio.tex: Build documentation.
402
403 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
404
405         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
406         sf_fpclassify as these are now used for infinity testing.
407         * Makefile.in: Regenerated.
408
409 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
410
411         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
412         so it can point to an aligned structure or double.
413
414 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
415
416         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
417         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
418         documentation.
419
420 2009-06-17  Michael Eager <eager@eagercon.com>
421
422         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
423         PTHREAD_MUTEX_NORMAL.
424         * libc/include/sys/features.h: Same.
425         * libc/include/sys/types.h: Same.
426
427 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
428
429         * libc/include/locale.h (struct lconv): Add missing members required
430         by POSIX.1-2008.
431         * libc/locale/locale.c (lconv): Initialize new members to default
432         values in "C" locale.
433
434 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
435
436         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
437         radix char instead of assuming length 1.
438         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
439         (gethex): Allow multibyte decimal point.
440         Fix compiler warnings due to different signedness of pointer types.
441         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
442         (_strtod_r): Allow multibyte decimal point.
443         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
444         endptr position if the decimal point is a multibyte char.
445
446 2009-06-16  Craig Howland <howland@LGSInnovations.com>
447
448         * libc/ctype/local.h (__locale_charset): Add arguments to
449         prototype
450         * libc/stdlib/local.h (__locale_charset): Ditto.
451
452 2009-06-16  Craig Howland <howland@LGSInnovations.com>
453
454         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
455         macros to remove un-necessary extension use.  isinf and isnan also
456         changed to use fpclassify.  isfinite macro modified to run faster by
457         only calling fpclassify once instead of possibly twice.
458
459 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
460
461         * libc/ctype/tolower.c (tolower): Cast conversion result from
462         mbtowc/wctomb to unsigned char to avoid negative return values.
463         * libc/ctype/toupper.c (toupper): Ditto.
464
465 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
466
467         * libc/string/wcwidth.c: Optimize for speed.
468
469 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
470
471         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
472         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
473         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
474         (__locale_cjk_lang): New function.
475         * libc/string/local.h (__locale_cjk_lang): Declare.
476         * libc/string/wcwidth.c: Fix comments.
477         (__wcwidth): Handle CJK Ambiguous Width characters according
478         to setting returned by __locale_cjk_lang.
479
480 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
481
482         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
483         thumb2.
484
485 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
486
487         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
488         (__jp2uc): Change the scope to static function.
489         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
490         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
491
492 2009-05-27  Neal H. Walfield  <neal@gnu.org>
493
494         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
495         _JBTYPE and the size of sigset_t.
496
497 2009-05-15  Craig Howland <howland@LGSInnovations.com>
498
499         * configure.in:  Add configuration test for long double type existing
500         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
501         and _LDBL_EQ_DBL tests to not link so that will work with
502         cross-compilers.
503         * configure: Regenerated.
504         * Makefile.in: Ditto.
505         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
506         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
507         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
508         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
509         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
510         *libm/common/s_infconst.c:  Change definitions to use values from
511         float.h instead of non-so-portable integer forms.  Mark as being
512         deprecated (because now removed from math.h, are not used anywhere
513         in Newlib, itself).
514
515 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
516
517         * libc/string/local.h: New file.
518         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
519         characters to Unicode here.  Handle surrogate pairs for UTF-16
520         systems.  Call __wcwidth rather than wcwidth.
521         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
522         wcwidth implementation for Unicode.
523         (bisearch): New static function.
524         (__wcwidth): New function.  Take wint_t rather than wchar_t as
525         parameter to allow full Unicode handling on UTF-16 systems.
526         Move old wcwidth implementation here for non-multibyte aware
527         systems.
528         (wcwidth): Convert japanese wide characters to Unicode here.
529         Call __wcwidth rather than using iswprint/iswcntrl.
530
531 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
532
533         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
534         to jp2uc.c.
535         (__jp2uc): Remove declaration.
536         (_jp2uc): Declare.
537         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
538         (__jp2uc): Remove Cygwin special case.
539         (_jp2uc): New function.  On Cygwin, just return c.
540         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
541         * libc/ctype/iswblank.c (iswblank): Ditto.
542         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
543         * libc/ctype/iswprint.c (iswprint): Ditto.
544         * libc/ctype/iswpunct.c (iswpunt): Ditto.
545         * libc/ctype/iswspace.c (iswspace): Ditto.
546         * libc/ctype/towlower.c (towlower): Ditto.
547         * libc/ctype/towupper.c (towupper): Ditto.
548
549 2009-05-13  Paul Brook  <paul@codesourcery.com>
550
551         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
552         IP before saving.  Likewise when restoring.
553
554 2009-05-13  Paul Brook  <paul@codesourcery.com>
555
556         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
557
558 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
559
560         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
561
562 2009-05-11  Craig Howland <howland@LGSInnovations.com>
563
564         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
565         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
566
567 2009-05-08  Nick Clifton  <nickc@redhat.com>
568
569         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
570         the write-after-approval list.
571
572 2009-04-30  Anthony Green  <green@moxielogic.com>
573
574         * MAINTAINERS: Add myself as moxie maintainer and to the
575         write-after-approval list.
576
577 2009-04-30  Eric Blake  <ebb9@byu.net>
578
579         Allow gcc warning for toupper even with extended charsets.
580         * libc/include/ctype.h (toupper, tolower)
581         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
582         'char' even when we must call the function for correct behavior.
583         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
584
585 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
586
587         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
588         file lock and released before the file lock to avoid a deadlock
589         scenario.
590         * libc/stdio/fgets.c: Ditto.
591         * libc/stdio/fgetwc.c: Ditto.
592         * libc/stdio/fgetws.c: Ditto.
593         * libc/stdio/fread.c: Ditto.
594         * libc/stdio/fseek.c: Ditto.
595         * libc/stdio/getc.c: Ditto.
596         * libc/stdio/getdelim.c: Ditto.
597         * libc/stdio/gets.c: Ditto.
598
599 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
600
601         * configure.in: Add configuration test for long double equals dbl
602         and set flag _LDBL_EQ_DBL if true.
603         * configure: Regenerated.
604         * newlib.hin: Add _LDBL_EQ_DBL flag.
605         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
606         _HAVE_LDBL_MATH.
607         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
608         _HAVE_LDBL_STDLIB.
609         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
610         * libc/stdlib/local.h: Ditto.
611
612 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
613
614         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
615         if __UINTPTR_MAX__ defined.
616
617 2009-04-24  Eric Blake  <ebb9@byu.net>
618
619         Be namespace clean in ctype.h.
620         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
621         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
622         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
623         (isascii, toascii): Don't use 'c' as macro parameter name.
624
625         Trigger gcc warning if isFoo macros are called with plain char.
626         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
627         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
628         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
629         warn when user calls macro with a char argument.
630
631 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
632
633         * libc/string/strcasecmp.c: Optimized rewrite.
634         * libc/string/strncasecmp.c: Fix description.
635         * libc/string/strlwr.c: Avoid passing signed char to tolower.
636         * libc/string/strupr.c: Avoid passing signed char to tolower.
637
638 2009-04-23  Paul Brook  <paul@codesourcery.com>
639             Kazu Hirata  <kazu@codesourcery.com>
640
641         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
642         to malloc.  Allocate dynamically only if it is present.
643         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
644         reference to free.  Call free only if it is present.
645
646 2009-04-22 Anthony Green <green@moxielogic.com>
647
648         * configure.host: Add moxie support.
649         * libc/machine/configure.in: Add moxie support.
650         * libc/machine/configure: Rebuilt.
651         * libc/machine/moxie/aclocal.m4: New file.
652         * libc/machine/moxie/configure: New file.
653         * libc/machine/moxie/configure.in: New file.
654         * libc/machine/moxie/Makefile.am: New file.
655         * libc/machine/moxie/Makefile.in: New file.
656         * libc/machine/moxie/setjmp.S: New file.
657         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
658         * libc/include/machine/ieeefp.h: Add moxie support.
659
660 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
661
662         * libc/stdio/local.h (__chclass, __state_table, __action_table):
663         Add extern to the declarations.
664         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
665
666 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
667
668         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
669         _CTYPE_DATA_128_256.
670         * libc/ctype/ctype_cp.h: Split off all character class values for
671         character 255 from the rest of the definitions.
672         (__ctype_cp): Use the new definitions.  Make sure that the table
673         always contains 0 for EOF (-1).
674         * libc/ctype/ctype_iso.h: Ditto.
675
676 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
677
678         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
679         (__sf_fake_stderr): Declare locally with weak attribute.
680
681 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
682
683         * libc/include/_ansi.h: Move C++ defines to top of file.
684         (_NOTHROW): New macro.
685         (_EXFUN_NOTHROW): Likewise.
686         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
687         (free): Likewise.
688         (malloc): Likewise.
689         (realloc): Likewise.
690         (_malloc_r): Likewise.
691         (_callor_r): Likewise.
692         (_free_r): Likewise.
693         (_realloc_r): Likewise.
694
695 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
696
697         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
698         be _HAVE_LDBL_MATH.
699         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
700         be _HAVE_LDBL_STDLIB.
701
702 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
703
704         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
705         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
706         * libc/stdlib/strtold.c: Include local.h.
707         * libc/stdlib/wcstold.c: Likewise.
708         * libm/common/atanl.c: Likewise.
709         * libm/common/cosl.c: Likewise.
710         * libm/common/sinl.c: Likewise.
711         * libm/common/modfl.c: Likewise.
712         * libm/common/frexpl.c: Likewise.
713         * libm/common/tanhl.c: Likewise.
714         * libm/common/tanl.c: Likewise.
715         * libm/common/expm1l.c: Likewise.
716         * libm/common/log1pl.c: Likewise.
717         * libm/common/ceill.c: Likewise.
718         * libm/common/fabsl.c: Likewise.
719         * libm/common/floorl.c: Likewise.
720         * libm/common/acosl.c: Likewise.
721         * libm/common/asinl.c: Likewise.
722         * libm/common/atan2l.c: Likewise.
723         * libm/common/coshl.c: Likewise.
724         * libm/common/expl.c: Likewise.
725         * libm/common/fmodl.c: Likewise.
726         * libm/common/hypotl.c: Likewise.
727         * libm/common/ldexpl.c: Likewise.
728         * libm/common/log10l.c: Likewise.
729         * libm/common/logl.c: Likewise.
730         * libm/common/powl.c: Likewise.
731         * libm/common/sqrtl.c: Likewise.
732         * libm/common/copysignl.c: Likewise.
733         * libm/common/ilogbl.c: Likewise.
734         * libm/common/nanl.c: Likewise.
735         * libm/common/cbrtl.c: Likewise.
736         * libm/common/asinhl.c: Likewise.
737         * libm/common/nextafterl.c: Likewise.
738         * libm/common/rintl.c: Likewise.
739         * libm/common/scalbnl.c: Likewise.
740         * libm/common/exp2l.c: Likewise.
741         * libm/common/fdiml.c: Likewise.
742         * libm/common/fmal.c: Likewise.
743         * libm/common/fmaxl.c: Likewise.
744         * libm/common/fminl.c: Likewise.
745         * libm/common/lrintl.c: Likewise.
746         * libm/common/lroundl.c: Likewise.
747         * libm/common/nearbyintl.c: Likewise.
748         * libm/common/remquol.c: Likewise.
749         * libm/common/roundl.c: Likewise.
750         * libm/common/scalblnl.c: Likewise.
751         * libm/common/truncl.c: Likewise.
752         * libm/common/acoshl.c: Likewise.
753         * libm/common/atanhl.c: Likewise.
754         * libm/common/erfcl.c: Likewise.
755         * libm/common/erfl.c: Likewise.
756         * libm/common/lgammal.c: Likewise.
757         * libm/common/remainderl.c: Likewise.
758         * libm/common/tgammal.c: Likewise.
759         * libm/common/sinhl.c: Likewise.
760         * libm/common/llroundl.c: Likewise.
761         * libm/common/llrintl.c: Likewise.
762         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
763
764 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
765
766         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
767         * libc/include/math.h (llrintl): Declare.
768         * libm/common/llrintl.c: New File.
769         * libm/common/Makefile.am: New File added.
770         * libm/common/Makefile.in: Regenerate.
771
772 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
773
774         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
775         avoid executable test.
776         * libc/configure: Regenerate.
777
778 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
779
780         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
781         * configure: Regenerated.
782         * Makefile.in: Regenerated.
783         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
784         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
785         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
786         avoid executable test.
787         * libm/configure: Regenerated.
788
789 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
790
791         * libc/misc/init.c (__libc_fini_array): Process fini_array in
792         reverse order as compliant with the ELF specification.
793
794 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
795
796         * libc/machine/spu/Makefile.am: Add new File.
797         * libc/machine/spu/Makefile.in: Regenerate.
798         * libc/machine/spu/fdopen.c: New file.
799
800 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
801
802         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
803
804 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
805
806         * libm/libm.texinfo: Add long double function support chapter.
807         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
808         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
809         (strtold, wcstold): Declare.
810         * libc/stdlib/strtold.c: New File.
811         * libc/stdlib/wcstold.c: Likewise.
812         * libc/configure.in: Add long double check.
813         * libc/configure: Regenerate.
814         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
815         * libc/stdlib/Makefile.in: Regenerate.
816         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
817         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
818         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
819         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
820         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
821         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
822         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
823         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
824         * libm/common/atanl.c: New File.
825         * libm/common/cosl.c: Likewise.
826         * libm/common/sinl.c: Likewise.
827         * libm/common/modfl.c: Likewise.
828         * libm/common/frexpl.c: Likewise.
829         * libm/common/tanhl.c: Likewise.
830         * libm/common/tanl.c: Likewise.
831         * libm/common/expm1l.c: Likewise.
832         * libm/common/log1pl.c: Likewise.
833         * libm/common/ceill.c: Likewise.
834         * libm/common/fabsl.c: Likewise.
835         * libm/common/floorl.c: Likewise.
836         * libm/common/acosl.c: Likewise.
837         * libm/common/asinl.c: Likewise.
838         * libm/common/atan2l.c: Likewise.
839         * libm/common/coshl.c: Likewise.
840         * libm/common/expl.c: Likewise.
841         * libm/common/fmodl.c: Likewise.
842         * libm/common/hypotl.c: Likewise.
843         * libm/common/ldexpl.c: Likewise.
844         * libm/common/log10l.c: Likewise.
845         * libm/common/logl.c: Likewise.
846         * libm/common/powl.c: Likewise.
847         * libm/common/sqrtl.c: Likewise.
848         * libm/common/copysignl.c: Likewise.
849         * libm/common/ilogbl.c: Likewise.
850         * libm/common/nanl.c: Likewise.
851         * libm/common/cbrtl.c: Likewise.
852         * libm/common/asinhl.c: Likewise.
853         * libm/common/nextafterl.c: Likewise.
854         * libm/common/rintl.c: Likewise.
855         * libm/common/scalbnl.c: Likewise.
856         * libm/common/exp2l.c: Likewise.
857         * libm/common/fdiml.c: Likewise.
858         * libm/common/fmal.c: Likewise.
859         * libm/common/fmaxl.c: Likewise.
860         * libm/common/fminl.c: Likewise.
861         * libm/common/lrintl.c: Likewise.
862         * libm/common/lroundl.c: Likewise.
863         * libm/common/nearbyintl.c: Likewise.
864         * libm/common/remquol.c: Likewise.
865         * libm/common/roundl.c: Likewise.
866         * libm/common/scalblnl.c: Likewise.
867         * libm/common/truncl.c: Likewise.
868         * libm/common/acoshl.c: Likewise.
869         * libm/common/atanhl.c: Likewise.
870         * libm/common/erfcl.c: Likewise.
871         * libm/common/erfl.c: Likewise.
872         * libm/common/lgammal.c: Likewise.
873         * libm/common/remainderl.c: Likewise.
874         * libm/common/tgammal.c: Likewise.
875         * libm/common/sinhl.c: Likewise.
876         * libm/common/llroundl.c: Likewise.
877         * libm/configure.in: Add long double check.
878         * libm/configure: Regenerate.
879         * libm/common/Makefile.am: Add new files.
880         * libm/common/Makefile.in: Regenerate.
881
882 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
883
884         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
885         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
886         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
887         class mappings.
888         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
889         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
890         * libc/ctype/isblank.c (isblank): Special case TAB.
891         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
892         in (_U|_L).
893         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
894         * libc/include/ctype.h (islower): Same in macro.
895         (isupper): Ditto.
896         (isblank): Special case TAB.  Redefine macro for GCC only.
897
898 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
899
900         * libc/stdlib/local.h (__mbtowc): Declare extern.
901         (__wctomb): Ditto.
902
903 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
904
905         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
906         recognizes 0x8e and 0x8f lead bytes.
907         (_iseucjp2): Rename from _iseucjp.
908         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
909         triplebyte sequences as well.
910         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
911         triplebyte sequences as well.
912
913 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
914
915         * configure.in: Add square brackets for the array aliasing conftest.
916         * configure: Regenerate.
917
918 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
919
920         * libc/string/strncasecmp.c: Optimized rewrite.
921
922 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
923
924         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
925         * libc/include/machine/time.h (nanosleep): Declare.
926
927 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
928
929         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
930
931 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
932
933         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
934
935 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
936
937         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
938         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
939
940 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
941
942         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
943         to avoid a warning with -Wmissing-prototypes.
944
945 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
946
947         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
948
949 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
950
951         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
952         (linux_getpid, linux_gettid): Declare.
953
954 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
955
956         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
957         profiling.
958
959 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
960
961         * libc/include/math.h: Remove duplicate copysign prototype.
962         Fix __math_68881 define typo.  Guard functions of the rint family.
963
964 2009-04-03  Craig Howland <howland@LGSInnovations.com>
965
966         * libm/common/s_llrint.c: New file, implementing llrint().
967         * libm/common/sf_llrint.c: New file, implementing llrintf().
968         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
969         * libm/common/Makefile.in:  Regenerate.
970
971 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
972
973         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
974         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
975         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
976         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
977         (__set_ctype): Set __ctype_ptr__ pointer according to definition
978         of ALLOW_NEGATIVE_CTYPE_INDEX.
979         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
980
981 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
982
983         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
984         source files.  Add a dependency rule for ctype_o to note
985         changes in ctype_iso.h and ctype_cp.h.
986         * libc/ctype/Makefile.in: Regenerate.
987         * libc/ctype/_tolower.c: Remove file.
988         * libc/ctype/_toupper.c: Remove file.
989         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
990         is always defined on Cygwin.
991         (_ctype_b): Don't make `static const' on Cygwin.
992         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
993         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
994         (__ctype_ptr): Drop definition.
995         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
996         (_ctype_): Add Cygwin-specifc asm define.
997         (__set_ctype): New function to set __ctype_ptr__ according to
998         current charset.
999         * libc/ctype/ctype_cp.h: New file containing Windows codepage
1000         specific character class tables.
1001         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
1002         specific character class tables.
1003         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
1004         charset if one of the extended charsets is enabled.
1005         * libc/ctype/toupper.c (toupper): Ditto.
1006         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
1007         (_toupper): Ditto.
1008         (__ctype_ptr__): De-constify.
1009         (toupper): Disable macro on systems supporting extended charsets.
1010         (tolower): Ditto.
1011         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
1012         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
1013         (__set_ctype): Declare unconditionally.
1014         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
1015
1016 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1017
1018         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
1019         of "GB2312".  Fix documentation accordingly.
1020
1021 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1022
1023         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
1024         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
1025         marker in ctype array.
1026         * libc/include/ctype.h (isblank): Add macro.
1027
1028 2009-03-25  Craig Howland <howland@LGSInnovations.com>
1029
1030         * libc/include/math.h:  (llround, llroundf): Declare.
1031         * libm/common/s_llround.c: New file, implementing llround().
1032         * libm/common/sf_llround.c: New file, implementing llroundf().
1033         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
1034         version of function.
1035         * libm/common/sf_lrint.c: Ditto.
1036         * libm/common/sf_logb.c:  Corrected return for subnormal argument
1037         by replacing existing function with a version created from sf_ilogb.c.
1038         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
1039         added documentation for logb() and logbf().
1040         * libm/common/s_signbit.c:  Add signbit() documentation.
1041         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
1042         since log2 uses log(); add note about being derived instead of direct.
1043         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
1044         as well as comments pointing out problems with the implementation.
1045         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
1046         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
1047         corrected by discarding existing function and replacing with Sun
1048         verion, with some enhancements.
1049         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
1050         documentation.
1051         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
1052         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
1053         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
1054         documentation.
1055         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
1056         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
1057         * libm/common/s_rint.c: Add rint() and rintf() documentation.
1058         * libm/common/s_round.c: Add round() and roundf() documentation.
1059         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
1060         * libm/common/s_infinity.c: Add infinity() and infinityf()
1061         documentation.
1062         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
1063         llroundf() documentation.
1064         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
1065         documentation.
1066         * libm/common/isgreater.c: New file for documenting math.h function-like
1067         macros isgreater(), isgreaterequal(), isless(), islessequal(),
1068         islessgreater(), and isunordered().
1069         * libm/common/s_isnan.c: Add documentation for function-like macros
1070         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
1071         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
1072         documentation.
1073         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
1074         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1075         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1076         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1077         isgreater.def (chobj);
1078         re-name all existing chew files (chobj) to match source file base
1079         names (put in underscores), delete all special targets for chew files
1080         (leaving all to be generated by rule).
1081         * libm/common/Makefile.in: regenerate.
1082         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1083         delete TRAD_SYNOPSIS).
1084         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1085         with some history behind the function names.
1086         * libm/math/math.tex: Add includes for newly-added documentation (see
1087         .def additions to common/Makefile.am and math/Makefile.am in this
1088         ChangeLog list), adjusted existing .def file names to match source file
1089         base names (added underscores); add mention of HUGE_VALF; rename
1090         "Version of library" section to "Error Handling" and add some text
1091         about floating-point exception; added section "Standards Compliance And
1092         Portability".
1093         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1094         re-name all existing chew files (chobj) to match source file base
1095         names, delete all special targets for chew files (leaving all to be
1096         generated by rule).
1097         * libm/math/Makefile.in: regenerated
1098         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1099         to a failure when reading macro file for commands < 4 characters;
1100         add -v (verbose) option for printing some debugging information;
1101         get rid of spurious translation of "@*" to "*" (no source files used @*,
1102         so no existing doc pages were affected); clean up some compiler
1103         warnings.
1104         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1105         which has them); Remove ITEM command (redundant with makedoc built-in
1106         "o", not used in any present source file so nothing is lost, anyway).
1107         * HOWTO: New file to hold information for maintainers regarding how
1108         to do things.  Initial sections on documentation and ELIX levels.
1109
1110 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1111
1112         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1113         detect the nul-byte in a big-endian string.
1114
1115 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1116
1117         * libc/string/wcsdup.c: Fix documentation error.
1118         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1119         wcsdup.def rather than wcsdup.
1120         * libc/string/Makefile.in: Regenerated.
1121
1122 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1123
1124         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1125         pointers if category is LC_CTYPE.
1126
1127 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1128
1129         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1130         "GB2312".  Fix documentation accordingly.
1131
1132 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1133
1134         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1135         "eucKR".  Fix documentation accordingly.
1136
1137 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1138
1139         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1140         for "eucJP" charset support.
1141
1142 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1143
1144         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1145         it is used in libc/search.
1146
1147 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1148
1149         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1150         _MB_CAPABLE systems.
1151         * libc/ctype/iswblank.c: Ditto.
1152         * libc/ctype/iswcntrl.c: Ditto.
1153         * libc/ctype/iswprint.c: Ditto.
1154         * libc/ctype/iswpunct.c: Ditto.
1155         * libc/ctype/iswspace.c: Ditto.
1156         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1157         Explain why.
1158         * libc/ctype/towlower.c: Ditto.
1159         * libc/ctype/towupper.c: Ditto.
1160         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1161         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1162         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1163         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1164         and _current_locale as unused.
1165         * libc/locale/locale.c: Add new charset support to documentation.
1166         Include ../stdio/local.h from here.
1167         (lc_ctype_charset): Set to "ASCII" by default.
1168         (lc_message_charset): Ditto.
1169         (_setlocale_r): Don't set _current_category and _current_locale.
1170         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1171         systems, set __mbtowc and __wctomb function pointers to function
1172         corresponding with current charset.  Don't allow non-existant
1173         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1174         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1175         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1176         _current_category and _current_locale.
1177         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1178         * libc/stdlib/Makefile.in: Regenerate.
1179         * libc/stdlib/local.h: Add prototype for __locale_charset.
1180         Add prototypes for __mbtowc and __wctomb pointers.
1181         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1182         functions.
1183         Declare tables and functions from sb_charsets.c.
1184         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1185         by default.
1186         (_mbtowc_r): Just call __mbtowc from here.
1187         (__ascii_mbtowc): New function.
1188         (__iso_mbtowc): New function.
1189         (__cp_mbtowc): New function.
1190         (__utf8_mbtowc): New function.
1191         (__sjis_mbtowc): New function.  Disable on Cygwin.
1192         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1193         (__jis_mbtowc): New function.  Disable on Cygwin.
1194         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1195         conversion tables for all ISO and CP charsets.
1196         (__iso_8859_index): New function.
1197         (__cp_index): New function.
1198         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1199         by default.
1200         (_wctomb_r): Just call __wctomb from here.
1201         (__ascii_wctomb): New function.
1202         (__utf8_wctomb): New function.
1203         (__sjis_wctomb): New function.  Disable on Cygwin.
1204         (__eucjp_wctomb): New function.  Disable on Cygwin.
1205         (__jis_wctomb): New function.  Disable on Cygwin.
1206         (__iso_wctomb): New function.
1207         (__cp_wctomb): New function.
1208
1209 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1210
1211         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1212
1213 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1214
1215         * libc/locale/locale.c (loadlocale): Fix typo in language and
1216         territory evaluation.
1217
1218 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1219
1220         * libc/include/sys/errno.h: Protect various non-standard errnos
1221         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1222         * libc/include/sys/config.h[__CYGWIN__]: Define
1223         __LINUX_ERRNO_EXTENSIONS__.
1224
1225 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1226
1227         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1228         invalid character sequence.
1229
1230         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1231         missing declaration of __locale_charset.
1232         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1233
1234 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1235
1236         * libm/common/s_log2.c: New file.
1237         * libm/common/sf_log2.c: Ditto.
1238         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1239         * libm/common/Makefile.in: Regenerated.
1240         * libc/include/math.h: Add log2 and log2f function prototypes.
1241
1242 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1243
1244         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1245         string correctly.
1246
1247 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1248
1249         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1250
1251 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1252
1253         * libc/machine/arm/strlen.c (strlen): Correctly detect
1254         end-of-string.
1255         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1256         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1257
1258 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1259
1260         * libc/include/sys/errno.h (ESTRPIPE): Define.
1261         * libc/string/strerror.c (strerror): Decode it.
1262
1263 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1264
1265         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1266         * libc/string/Makefile.am: Add wcsdup.c.
1267         * libc/string/Makefile.in: Regenerate.
1268         * libc/string/strings.tex: Add wcsdup documentation reference.
1269         * libc/string/wcsdup.c: New file.
1270
1271 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1272
1273         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1274         !_REENT_ONLY section.
1275
1276 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1277
1278         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1279         to stdlib.h.
1280         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1281         * libc/stdio/mktemp.c: Explain the security risk when using
1282         mktemp.
1283
1284 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1285
1286         * libc/time/time.tex (wcsftime.def):  Include.
1287         * libc/time/wcsftime.c:  Clean up documentation a little.
1288
1289 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1290
1291         * libc/stdio/swscanf.c:  Some documentation corrections.
1292
1293 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1294
1295         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1296         correct how terminating L'\0' is added;
1297         change return to match standard for when output does not fit;
1298         some corrections and enhancements to the docs.
1299         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1300         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1301         enhancements to comments.  (No code changes.)
1302         * libc/time/strftime.c:  Correct some problems that made wcsftime()
1303         not work correctly:  work properly with swprintf returns that are
1304         different from snprintf returns, correct test vector lengths for
1305         when sizeof(wchar_t) > 1.
1306         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
1307         enhancements to match those done to swprintf.c.
1308
1309 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1310
1311         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
1312         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
1313         * libc/stdio/Makefile.in: Regenerate.
1314         * libc/string/strings.tex: Add new documentation references.
1315         * libc/string/wcscasecmp.c: New file.
1316         * libc/string/wcsncasecmp.c: New file.
1317
1318 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1319
1320         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
1321         wscanf): Declare.
1322         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
1323         _wscanf_r): Declare.
1324         * libc/stdio/Makefile.am: Add new wscanf files.
1325         * libc/stdio/Makefile.in: Regenerate.
1326         * libc/stdio/fwscanf.c: New file.
1327         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
1328         __ssvfiwscanf_r): Declare.
1329         * libc/stdio/stdio.tex: Add new documentation references.
1330         * libc/stdio/swscanf.c: New file.
1331         * libc/stdio/vfwscanf.c: New file.
1332         * libc/stdio/vswscanf.c: New file.
1333         * libc/stdio/vwscanf.c: New file.
1334         * libc/stdio/wscanf.c: New file.
1335
1336         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
1337         define if INTEGER_ONLY is defined.  Declare otherwise.
1338         (__ssrefill_r): Ditto.
1339         (_sfread_r): Ditto.
1340
1341         Remove static eofread/eofread1 functions and use __seofread
1342         function instead, throughout.
1343         * libc/stdio/local.h (__seofread): Declare.
1344         * libc/stdio/stdio.c (__seofread): Define.
1345
1346         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
1347         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
1348         * libc/stdio/fread.c (_fread_r): Ditto.
1349         * libc/stdio/vfprintf.c: Ditto.
1350         * libc/stdio/vswprintf.c: Ditto.
1351
1352 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
1353
1354         * libc/machine/arm/arm_asm.h: Fix typo.
1355
1356 2009-03-09  Craig Howland <howland@LGSInnovations.com>
1357
1358         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
1359         defines strftime(), but can also define wcsftime(); add optional
1360         test package; speed up %Y handling.
1361         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
1362         indirectly by including strftime.c) and its documentation.
1363         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
1364         description to match modified description in strftime.c
1365         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
1366         so that wcsftime.o gets rebuilt when strftime changes.
1367         * libc/time/Makefile.in:  Regenerate.
1368         * libc/include/wchar.h (wcsftime): Declare.
1369
1370 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
1371             Corinna Vinschen  <corinna@vinschen.de>
1372
1373         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
1374         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
1375         dereferencing it.
1376         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
1377
1378 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
1379
1380         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
1381         * libc/include/wchar.h: Include stdarg.h.
1382         (__VALIST): Define conditionally.
1383         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
1384         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
1385          _wprintf_r): Declare.
1386         * libc/stdio/Makefile.am: Add new files.
1387         * libc/stdio/Makefile.in: Regenerate.
1388         * libc/stdio/fwprintf.c: New file.
1389         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
1390         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
1391         and move to the __ namespace.
1392         (__chclass, __state_table, __action_table): Declare.
1393         * libc/stdio/stdio.tex: Add new documentation references.
1394         * libc/stdio/swprintf.c: New file.
1395         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
1396         __sprint_r function according to compilation unit.  Use throughout.
1397         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
1398         Make externaly available.  Only define if INTEGER_ONLY is defined.
1399         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
1400         is defined.  Handle stream orientation.
1401         (__sbprintf): Copy FILE's _flags2 member as well.
1402         (__chclass, __state_table, __action_table): Prepend __ to name and
1403         make externally available.
1404         * libc/stdio/vfwprintf.c: New file.
1405         * libc/stdio/vswprintf.c: New file.
1406         * libc/stdio/vwprintf.c: New file.
1407         * libc/stdio/wprintf.c: New file.
1408
1409 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
1410
1411         * libc/locale/locale.c (_setlocale_r): New implementation based on
1412         FreeBSD's setlocale.
1413         (currentlocale): New helper function.
1414         (loadlocale): Ditto.
1415         (__locale_charset): New function.
1416         (__locale_msgcharset): Rename from __locale_charset.
1417         * libc/ctype/local.h (__lc_ctype): Remove declaration.
1418         (__locale_charset): Declare.
1419         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
1420         using __lc_ctype directly.  Only compare against the charset alone.
1421         * libc/ctype/iswblank.c (iswblank): Ditto.
1422         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1423         * libc/ctype/iswprint.c (iswprint): Ditto.
1424         * libc/ctype/iswpunct.c (iswpunct): Ditto.
1425         * libc/ctype/iswspace.c (iswspace): Ditto.
1426         * libc/ctype/towlower.c (towlower): Ditto.
1427         * libc/ctype/towupper.c (towupper): Ditto.
1428         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
1429         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1430         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
1431         __locale_msgcharset instead of __locale_charset.
1432
1433 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1434
1435         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
1436         charset, cast wchar to size_t in case wchar_t is signed.
1437         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
1438
1439 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
1440
1441         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
1442         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
1443         value in case of using a singlebyte charset.
1444
1445 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
1446
1447         * libc/machine/arm/strcpy.c: Add missing comma.
1448
1449 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
1450
1451         * libc/machine/lm32/configure.in: Let
1452         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
1453         * libs/machine/lm32/configure: Regenerate.
1454
1455 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
1456
1457         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
1458           mbsnrtowcs.def, wcsnrtombs.def.
1459         * libc/stdlib/Makefile.in: Regenerate.
1460         * libc/stdlib/stdlib.tex (@menu): Use correct section
1461           names for mbsrtowcs, wcsrtombs.
1462         * libc/stdlib/wcstod.c: Remove stray character in
1463           documentation.
1464
1465 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
1466
1467         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
1468         byte UTF-8 sequences since they are invalid in the Unicode standard.
1469         Handle surrogate pairs in case of wchar_t == UTF-16.
1470         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
1471         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
1472         pairs in case of wchar_t == UTF-16.
1473
1474 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
1475
1476         * libc/stdio/open_memstream.c (stdint.h): Include.
1477
1478 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
1479
1480         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
1481         coupling ttyname_r() and ttyname() due to the latter's large buffer).
1482         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
1483         ttyname.c.
1484         * libc/unix/ttyname.h:  New file (common size definition for the 2
1485         ttyname*c files that are now split).
1486         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
1487         * libc/unix/Makefile.in:  Regenerate.
1488
1489 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
1490
1491         * libc/include/wchar.h (mbsnrtowcs): Declare.
1492         (_mbsnrtowcs_r): Declare.
1493         (wcsnrtombs): Declare.
1494         (_wcsnrtombs_r): Declare.
1495         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
1496         and wcsnrtombs.c.
1497         * libc/stdlib/Makefile.in: Regenerate.
1498         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
1499         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
1500         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
1501         (mbsrtowcs): Ditto.
1502         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
1503         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
1504         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
1505         (wcsrtombs): Ditto.
1506         * libc/stdlib/stdlib.tex: Accommodate new documentation.
1507
1508 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
1509
1510         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
1511         buffer size to be in wchar_t units if wide == 1 is passed in.  In
1512         this case, also initialize the first character of the buffer to be
1513         wide char null.
1514         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
1515         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
1516         incrementing the size_t value n to first check that n is not already
1517         size_t -1.  Fix some compiler warnings.
1518         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
1519
1520 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
1521
1522         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
1523         (struct memstream): Add wide element.
1524         Change saved to a union to take char and wchar_t values.
1525         (memwriter): Accommodate wide-oriented oeprations.
1526         (memseeker): Ditto.
1527         (memseeker64): Ditto.
1528         (memcloser): Ditto.
1529         (internal_open_memstream_r): New static function.  Take functionality
1530         from former _open_memstream_r and handle additional "wide" parameter.
1531         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
1532         from here.
1533         (_open_wmemstream_r): New function.
1534         (open_wmemstream): Ditto.
1535         * libc/include/wchar.h (open_wmemstream): Declare.
1536         (_open_wmemstream_r): Declare.
1537
1538 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
1539
1540         * libc/stdio/fputwc.c: Fix typo in man page info.
1541
1542 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
1543
1544         * libc/include/wchar.h (_wcstod_r): Declare.
1545         (_wcstof_r): Declare.
1546         (wcstod): Declare.
1547         (wcstof): Declare.
1548         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
1549         (CHEWOUT_FILES): Add wcstod.def.
1550         * libc/stdlib/Makefile.in: Regenerate.
1551         * libc/stdlib/stdlib.tex: Add wcstod.
1552         * libc/stdlib/wcstod.c: New file.
1553
1554 2009-02-05  Neal H. Walfield  <neal@gnu.org>
1555
1556         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
1557
1558 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
1559
1560         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
1561         inf and nan processing to not proceed if we have already collected
1562         zeroes.
1563
1564 2009-01-26  DJ Delorie  <dj@redhat.com>
1565
1566         * configure.host (m32c-*-*): Add long long I/O support by default.
1567
1568 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
1569
1570         * libc/machine/arm/arm_asm.h: New file.
1571         * libc/machine/arm/strlen.c: New file.
1572         * libc/machine/arm/strcpy.c: New file.
1573         * libc/machine/arm/strcmp.c: New file.
1574         * libc/machine/arm/Makefile.am: Add new string routines.
1575
1576 2009-01-19  Neal H. Walfield  <neal@gnu.org>
1577
1578         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
1579         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
1580         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
1581         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
1582         not ll.
1583
1584 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
1585
1586         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
1587
1588 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1589
1590         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
1591         each fp.  Let the function being called lock the fp, if necessary.
1592
1593 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
1594
1595         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
1596
1597 2009-01-05  Craig Howland <howland@LGSInnovations.com>
1598
1599         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
1600
1601 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1602
1603         * NEWS: Update with 1.17.0 info.
1604         * README: Ditto.
1605         * acinclude.m4: Change version number to 1.17.0.
1606         * aclocal.m4: Regenerated.
1607         * configure: Ditto.
1608         * doc/aclocal.m4: Ditto.
1609         * doc/configure: Ditto.
1610         * libc/*/aclocal.m4: Ditto.
1611         * libc/*/configure: Ditto.
1612         * libc/libc.texinfo: Ditto.
1613         * libm/*/aclocal.m4: Ditto.
1614         * libm/*/configure: Ditto.
1615         * libm/libm.texinfo: Ditto.
1616         * libc/sys/linux/shared.ld: Add VERS_1.17
1617
1618 2008-12-17  Jon Beniston <jon@beniston.com>
1619
1620         * configure.host: Set syscall_dir for lm32 target.
1621
1622 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
1623
1624         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
1625         are included as part of fputwc and fgetwc, respectively.
1626
1627 2008-12-12  Craig Howland <howland@LGSInnovations.com>
1628
1629         * libc/include/wchar.h:  Added wcstok() declaration.
1630         * libc/string/wcstok.c: New file, implementing wcstok.
1631         * libc/string/Makefile.am: Add wcstok support.
1632         * libc/string/wcstrings.tex: Ditto.
1633         * libc/string/Makefile.in: Regenerated.
1634
1635 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1636
1637         * libc/stdio/fputws.c: Fix documentation.
1638         * libc/stdio/getwchar.c: Ditto.
1639         * libc/stdio/putwchar.c: Ditto.
1640
1641 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1642
1643         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
1644         200112L (SUSv3 compliance).
1645         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
1646
1647 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1648
1649         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
1650         _execve(), _exit().
1651
1652 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1653
1654         * configure.host: Let *rtems* default to c99-formats.
1655
1656 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
1657
1658         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
1659         * libc/stdio/fseek.c:  Ditto.
1660         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
1661
1662 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
1663
1664         * libc/include/sys/time.h (gettimeofday): Change prototype so
1665         2nd parameter is void *, matching SUSV2.
1666         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
1667
1668 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
1669
1670         * configure.host: Add lm32
1671         * libc/include/machine/ieeefp.h: Add __lm32__
1672         * libc/include/machine/setjmp.h: Add __lm32__
1673         * libc/machine/configure.in: Add lm32
1674         * libc/machine/configure: Regenerated.
1675         * libc/machine/lm32/aclocal.m4: New file.
1676         * libc/machine/lm32/configure.in: Ditto.
1677         * libc/machine/lm32/configure: Ditto.
1678         * libc/machine/lm32/Makefile.am: Ditto.
1679         * libc/machine/lm32/Makefile.in: Ditto.
1680         * libc/machine/lm32/setjmp.s: Ditto.
1681
1682 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
1683
1684         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
1685         effect" warnings from gcc.
1686         * libc/include/sys/stdio.h:  Ditto.
1687         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
1688         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
1689         * libc/stdlib/__ten_mu.c:  Ditto.
1690         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
1691         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
1692         already others in file without _ansi method, so did not bother.)
1693         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
1694         definitions.
1695         * libc/time/mktime.c:  Ditto.
1696         * libc/misc/__dprintf.c:  Ditto.
1697         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
1698         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
1699         _funopen_r, and _fopencookie_r.
1700         * libc/include/reent.h:  Add function prototype for _stat64_r, align
1701         _execve_r prototype with POSIX definition for execve.
1702         * libc/reent/execr.c:  Align function prototype with POSIX definition.
1703         * libc/stdio/asniprintf.c:  Add #include "local.h".
1704         * libc/stdio/vasniprintf.c:  Ditto.
1705         * libc/stdio/fread.c:  Remove unused variable newcount.
1706         * libc/stdio/local.h:  Add function prototype for __sccl.
1707         * libc/stdio/open_memstream.c:  Remove unused variable flags.
1708         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
1709         for __sccl since now in local.h.
1710         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
1711         traditional synopsis), remove extraneous stddef.h and limits.h.
1712         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
1713         * libc/syscalls/sysfork.c:  Ditto.
1714         * libc/syscalls/sysgetpid.c:  Ditto.
1715         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
1716         prototype with POSIX definition.
1717         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
1718         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
1719         * libc/syscalls/syskill.c:  Add #include <signal.h>.
1720         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
1721         * libc/syscalls/sysunlink.c:  Ditto.
1722         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
1723         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
1724
1725 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
1726
1727         Implement basic wide char stdio functionality, based on FreeBSD.
1728         * libc/include/stdio.h (__SORD): Define.
1729         (__SWID): Define.
1730         * libc/include/wchar.h: Add declarations for new wide char functions.
1731         (getwc): Define as macro.
1732         (getwchar): Ditto.
1733         (putwc): Ditto.
1734         (putwchar): Ditto.
1735         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
1736         (struct __sFILE64): Ditto.
1737         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
1738         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
1739         and ungetwc.c.
1740         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
1741         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
1742         ungetwc.def.
1743         Add header dependency rules for the new files.
1744         * libc/stdio/Makefile.in: Regenerate.
1745         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
1746         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
1747         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
1748         (__sfmoreglue): Ditto.
1749         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
1750         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
1751         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
1752         * libc/stdio/fread.c (_fread_r): Set stream orientation.
1753         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
1754         _mbstate.
1755         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
1756         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
1757         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
1758         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
1759         * libc/stdio/getwchar.c: New file, implementing getwchar and
1760         _getwchar_r.
1761         * libc/stdio/local.h (ORIENT): New macro.
1762         * libc/stdio/puts.c (_puts_r): Set stream orientation.
1763         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
1764         * libc/stdio/putwchar.c: New file, implementing putwchar and
1765         _putwchar_r.
1766         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
1767         * libc/stdio/stdio.tex: Add documentation for new functions.
1768         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
1769         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
1770         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
1771         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
1772
1773 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
1774
1775         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
1776         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
1777         constants with "long" types where appropriate.
1778         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
1779         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
1780         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
1781         Correct to match logic for defining corresponding types.
1782         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
1783         (SIZE_MAX): Define using __SIZE_MAX__ if available.
1784         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
1785         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
1786         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
1787         (UINT8_C, UINT16_C): Define to give signed values if corresponding
1788         types would promote to int.
1789
1790 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
1791
1792         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
1793         (_POSIX_V6_LP64_OFF64): Ditto.
1794         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
1795
1796 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
1797
1798         * libc/sys/linux/inode.c: Include <dirent.h> instead of
1799         <linux/dirent.h>.
1800         * libc/sys/linux/io64.c: Add weak alias for _stat64.
1801
1802 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1803
1804         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
1805         to fix GCC warning.
1806
1807 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
1808
1809         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
1810         * libc/machine/spu/Makefile.in: Regenerated.
1811         * libc/machine/spu/spu-gmon.c: New file.
1812         * libc/machine/spu/spu-mcount.S: New file.
1813
1814 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
1815
1816         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
1817
1818 2008-11-27  Craig Howland <howland@LGSInnovations.com>
1819
1820         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
1821         prototypes.
1822         * libc/argz/argz_append.c: Ditto.
1823         * libc/argz/argz_count.c: Ditto.
1824         * libc/argz/argz_create.c: Ditto.
1825         * libc/argz/argz_create_sep.c: Ditto.
1826         * libc/argz/argz_delete.c: Ditto.
1827         * libc/argz/argz_next.c: Ditto.
1828         * libc/argz/argz_stringify.c: Ditto
1829         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
1830         prototypes.
1831         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
1832         prototypes, corrected traditional usage comment.
1833         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
1834
1835 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
1836
1837         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
1838         * libm/machine/spu/headers/asind2.h: Likewise.
1839         * libm/machine/spu/headers/asinhf4.h: Likewise.
1840         * libm/machine/spu/headers/divd2.h: Likewise.
1841         * libm/machine/spu/headers/erf_utils.h: Likewise.
1842         * libm/machine/spu/headers/erfcd2.h: Likewise.
1843         * libm/machine/spu/headers/erfcf4.h: Likewise.
1844         * libm/machine/spu/headers/erfd2.h: Likewise.
1845         * libm/machine/spu/headers/recipd2.h: Likewise.
1846
1847 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
1848
1849         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
1850         __sgetc_r instead of _getchar_r.
1851
1852 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
1853
1854         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
1855         include wchar.h for prototype, remove extraneous includes, use
1856         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
1857         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
1858         base value check noted above), remove extraneous includes.
1859         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
1860         prototype for _svfprintf_r().
1861         * libc/stdio/vasnprintf.c:  Ditto.
1862         * libc/stdio/local.h:  Add function prototype for __submore().
1863         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
1864         _ftello_r.
1865         * libc/posix/namespace.h:  Commented out define for write to
1866         eliminate write() prototype being missing for collate.c (which is
1867         the only file that presently includes namespace.h).
1868         * libc/include/reent.h:  Added _rename_r.
1869         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
1870         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
1871
1872 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1873
1874         * libc/search/hash_func.c: Comment out unused static hash functions.
1875         * libc/reent/stat64r.c: New file.
1876         * libc/reent/Makefile.am: Add stat64r.c support.
1877         * libc/reent/Makefile.in: Regenerated.
1878
1879 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1880
1881         * libc/posix/scandir.c: Fix memory leaks.
1882
1883 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1884
1885         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
1886         * libc/posix/Makefile.in: Regenerated.
1887
1888 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
1889
1890         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
1891         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
1892         * libc/stdio/findfp.c (std): Initialize _flags2.
1893         (__sfp): Ditto.
1894         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
1895         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
1896         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
1897         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1898
1899 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1900
1901         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
1902         be in sync with current kernels.
1903
1904 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1905             Patrick Mansfield  <patmans@us.ibm.com>
1906             Joel Schopp   <jschopp@austin.ibm.com>
1907
1908         * libc/machine/spu/configure.in: Add __ea detection.
1909         * libc/machine/spu/Makefile.am: Add new files.
1910         * libc/machine/spu/include/ea.h: New file.
1911         * libc/machine/spu/ea_internal.h: Likewise.
1912         * libc/machine/spu/sys/mman.h: Likewise.
1913         * libc/machine/spu/mmap_ea.c: Likewise.
1914         * libc/machine/spu/munmap_ea.c: Likewise.
1915         * libc/machine/spu/mremap_ea.c: Likewise.
1916         * libc/machine/spu/msync_ea.c: Likewise.
1917         * libc/machine/spu/memchr_ea.c: Likewise.
1918         * libc/machine/spu/memcmp_ea.c: Likewise.
1919         * libc/machine/spu/memcpy_ea.c: Likewise.
1920         * libc/machine/spu/memmove_ea.c: Likewise.
1921         * libc/machine/spu/memset_ea.c: Likewise.
1922         * libc/machine/spu/malloc_ea.c: Likewise.
1923         * libc/machine/spu/realloc_ea.c: Likewise.
1924         * libc/machine/spu/calloc_ea.c: Likewise.
1925         * libc/machine/spu/free_ea.c: Likewise.
1926         * libc/machine/spu/posix_memalign_ea.c: Likewise.
1927         * libc/machine/spu/strcat_ea.c: Likewise.
1928         * libc/machine/spu/strchr_ea.c: Likewise.
1929         * libc/machine/spu/strcmp_ea.c: Likewise.
1930         * libc/machine/spu/strcpy_ea.c: Likewise.
1931         * libc/machine/spu/strcspn_ea.c: Likewise.
1932         * libc/machine/spu/strlen_ea.c: Likewise.
1933         * libc/machine/spu/strncat_ea.c: Likewise.
1934         * libc/machine/spu/strncmp_ea.c: Likewise.
1935         * libc/machine/spu/strncpy_ea.c: Likewise.
1936         * libc/machine/spu/strpbrk_ea.c: Likewise.
1937         * libc/machine/spu/strrchr_ea.c: Likewise.
1938         * libc/machine/spu/strspn_ea.c: Likewise.
1939         * libc/machine/spu/strstr_ea.c: Likewise.
1940         * libc/machine/spu/read_ea.c: Likewise.
1941         * libc/machine/spu/pread_ea.c: Likewise.
1942         * libc/machine/spu/readv_ea.c: Likewise.
1943         * libc/machine/spu/write_ea.c: Likewise.
1944         * libc/machine/spu/pwrite_ea.c: Likewise.
1945         * libc/machine/spu/writev_ea.c: Likewise.
1946
1947 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1948
1949         * libc/include/sys/config.h[__mips__]: Don't bother
1950         setting __ATTRIBUTE_IMPURE_PTR__ here.
1951         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
1952         macro anymore.
1953
1954 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
1955
1956         * libc/sys/linux/bits/dirent.h: New header file.
1957         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
1958         <linux/dirent.h>.
1959         * libc/posix/Makefile.am: Remove reallocf.
1960         * libc/posix/Makefile.in: Regenerated.
1961         * libc/posix/reallocf.c: Moved to...
1962         * libc/stdlib/reallocf.c: Here
1963         * libc/stdlib/malloc.c: Add reallocf documentation.
1964         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
1965         * libc/stdlib/Makefile.am: Add reallocf.
1966         * libc/stdlib/Makefile.in: Regenerated.
1967         * libc/posix/_isatty.c: Set errno.
1968
1969 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
1970
1971         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
1972         strdup() and strlen() calls, also getting rid of a compiler warning.
1973
1974 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
1975
1976         * libc/include/sys/config.h: Don't put
1977         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
1978
1979 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
1980
1981         * libc/posix/runetype.h: Add include of stddef.h and remove
1982         defining standard types: size_t and wchar_t.
1983
1984 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
1985
1986         * libc/include/pthread.h: Remove prototypes for
1987         pthread_attr_getcputime and pthread_attr_setcputime which
1988         were proposed but never approved by the POSIX standard.
1989
1990 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
1991
1992         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
1993
1994 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
1995
1996         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
1997         ignored if desired by a platform.
1998         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
1999         * libc/unix/getcwd.c: Ditto.
2000         * libc/unix/getlogin.c: Ditto.
2001         * libc/unix/getpass.c: Ditto.
2002         * libc/unix/getpwent.c: Ditto.
2003         * libc/unix/getut.c: Ditto.
2004         * libc/unix/pread.c: Ditto.
2005         * libc/unix/pwrite.c: Ditto.
2006         * libc/unix/sigset.c: Ditto.
2007
2008 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
2009
2010         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
2011         ttyname_r.
2012
2013 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2014
2015         * configure.host: RTEMS now uses posix subdirectory.
2016
2017 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2018
2019         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
2020         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
2021
2022 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2023
2024         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
2025         libhover docs generate properly.
2026         * libc/stdio/dprintf.c: Ditto.
2027         * libc/stdio/fflush.c: Ditto.
2028         * libc/stdio/fopencookie.c: Ditto.
2029         * libc/stdio/fread.c: Ditto.
2030         * libc/stdio/fsetpos.c: Ditto.
2031         * libc/stdio/getc_u.c: Ditto.
2032         * libc/stdio/getchar_u.c: Ditto.
2033         * libc/stdio/putc_u.c: Ditto.
2034         * libc/stdio/putchar_u.c: Ditto.
2035         * libc/stdio/remove.c: Ditto.
2036         * libc/stdio/siprintf.c: Ditto.
2037         * libc/stdio/siscanf.c: Ditto.
2038         * libc/stdio/sprintf.c: Ditto.
2039         * libc/stdio/sscanf.c: Ditto.
2040         * libc/stdio/vfprintf.c: Ditto.
2041         * libc/stdio/vfscanf.c: Ditto.
2042         * libc/stdio/viprintf.c: Ditto.
2043         * libc/stdio/viscanf.c: Ditto.
2044         * libc/stdlib/calloc.c: Ditto.
2045         * libc/stdlib/efgcvt.c: Ditto.
2046         * libc/stdlib/envlock.c: Ditto.
2047         * libc/time/asctime.c: Ditto.
2048         * libc/time/ctime.c: Ditto.
2049         * libc/time/gmtime.c: Ditto.
2050         * libc/time/lcltime.c: Ditto.
2051         * libc/time/tzset.c: Ditto.
2052         * libc/stdlib/envlock.h: Moved to libc/include.
2053
2054 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2055
2056         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
2057         * libc/include/envlock.h: New file.
2058         * libc/include/fnmatch.h: Ditto.
2059         * libc/include/glob.h: Ditto.
2060         * libc/include/regex.h: Ditto.
2061         * libc/include/wordexp.h: Ditto.
2062         * libc/posix/Makefile.am: Add new files moved from
2063         libc/sys/linux/stdlib.
2064         * libc/posix/Makefile.in: Regenerated.
2065         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
2066         * libc/posix/cclass.h: Ditto.
2067         * libc/posix/cname.h: Ditto.
2068         * libc/posix/collate.c: Ditto.
2069         * libc/posix/collate.h: Ditto.
2070         * libc/posix/collcmp.c: Ditto.
2071         * libc/posix/engine.c: Ditto.
2072         * libc/posix/fnmatch.3: Ditto.
2073         * libc/posix/glob.3: Ditto.
2074         * libc/posix/fnmatch.c: Ditto.
2075         * libc/posix/glob.c: Ditto.
2076         * libc/posix/namespace.h: Ditto.
2077         * libc/posix/reallocf.c: Ditto.
2078         * libc/posix/regcomp.c: Ditto.
2079         * libc/posix/regerror.c: Ditto.
2080         * libc/posix/regex.3: Ditto.
2081         * libc/posix/regex2.h: Ditto.
2082         * libc/posix/regexec.c: Ditto.
2083         * libc/posix/regfree.c: Ditto.
2084         * libc/posix/rune.h: Ditto.
2085         * libc/posix/runetype.h: Ditto.
2086         * libc/posix/scandir.c: Remove advertising clause which is not in
2087         effect.
2088         * libc/posix/sysexits.h: Ditto.
2089         * libc/posix/un-namespace.h: Ditto.
2090         * libc/posix/utils.h: Ditto.
2091         * libc/posix/wordexp.c: Ditto.
2092         * libc/posix/wordfree.c: Ditto.
2093         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2094         * libc/posix/execle.c: Ditto.
2095         * libc/posix/execlp.c: Ditto.
2096         * libc/posix/execv.c: Ditto.
2097         * libc/posix/execve.c: Ditto.
2098         * libc/posix/execvp.c: Ditto.
2099         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2100         * libc/sys/linux/configure: Regenerated.
2101         * libc/sys/linux/configure.in: Remove stdlib.
2102         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2103         * libc/sys/linux/stdlib/Makefile.am: Removed.
2104         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2105         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2106         * libc/sys/linux/stdlib/cclass.h: Ditto.
2107         * libc/sys/linux/stdlib/cname.h: Ditto.
2108         * libc/sys/linux/stdlib/collate.c: Ditto.
2109         * libc/sys/linux/stdlib/collate.h: Ditto.
2110         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2111         * libc/sys/linux/stdlib/engine.c: Ditto.
2112         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2113         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2114         * libc/sys/linux/stdlib/glob.3: Ditto.
2115         * libc/sys/linux/stdlib/glob.c: Ditto.
2116         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2117         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2118         * libc/sys/linux/stdlib/regerror.c: Ditto.
2119         * libc/sys/linux/stdlib/regex.3: Ditto.
2120         * libc/sys/linux/stdlib/regex2.h: Ditto.
2121         * libc/sys/linux/stdlib/regexec.c: Ditto.
2122         * libc/sys/linux/stdlib/regfree.c: Ditto.
2123         * libc/sys/linux/stdlib/utils.h: Ditto.
2124         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2125         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2126
2127 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2128
2129         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2130
2131 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2132
2133         * libc/include/time.h: Add CLOCK_MONOTONIC.
2134         * libc/include/sys/features.h: Define
2135         _POSIX_MONOTONIC_CLOCK for RTEMS.
2136
2137 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2138
2139         * newlib.hin: Restore to previous 1.14 version which has no
2140         PACKAGE_ macros.
2141
2142 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2143
2144         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2145
2146 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2147
2148         * libc/include/ctype.h (isblank):  isblank is C99.
2149         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2150         have a macro version (as was claimed in the description).
2151
2152 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2153
2154         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2155         %S conversions when the EL/IX level is 1.
2156
2157 2008-10-06  Eric Blake  <ebb9@byu.net>
2158
2159         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2160         is 0.5 or 0.75.
2161
2162 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2163
2164         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2165         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2166
2167 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2168
2169         * libc/string/str-two-way.h (critical_factorization): Cast the index
2170         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2171
2172 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2173
2174         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2175         be size of size_t, not int.
2176         (SIZE_MIN): Remove.
2177         * libc/sys/linux/sys/stdint.h: Ditto.
2178
2179 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2180
2181         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2182         initialization of _rand_next to 1.
2183
2184 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2185             Steve Ellcey  <sje@cup.hp.com>
2186
2187         * configure: Regenerate for new libtool.
2188         * aclocal.m4: Ditto.
2189         * Makefile.in: Ditto.
2190         * newlib.hin: Ditto.
2191         * doc/Makefile.in: Ditto.
2192         * doc/configure: Ditto.
2193         * iconvdata/Makefile.in: Ditto.
2194         * iconvdata/aclocal.m4: Ditto.
2195         * iconvdata/configure: Ditto.
2196         * libc/Makefile.in: Ditto.
2197         * libc/aclocal.m4: Ditto.
2198         * libc/configure: Ditto.
2199         * libc/argz/Makefile.in: Ditto.
2200         * libc/ctype/Makefile.in: Ditto.
2201         * libc/errno/Makefile.in: Ditto.
2202         * libc/iconv/Makefile.in: Ditto.
2203         * libc/iconv/ccs/Makefile.in: Ditto.
2204         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2205         * libc/iconv/ces/Makefile.in: Ditto.
2206         * libc/iconv/lib/Makefile.in: Ditto.
2207         * libc/locale/Makefile.in: Ditto.
2208         * libc/machine/Makefile.in: Ditto.
2209         * libc/machine/aclocal.m4: Ditto.
2210         * libc/machine/configure: Ditto.
2211         * libc/machine/a29k/Makefile.in: Ditto.
2212         * libc/machine/a29k/configure: Ditto.
2213         * libc/machine/arm/Makefile.in: Ditto.
2214         * libc/machine/arm/configure: Ditto.
2215         * libc/machine/bfin/Makefile.in: Ditto.
2216         * libc/machine/bfin/configure: Ditto.
2217         * libc/machine/cris/Makefile.in: Ditto.
2218         * libc/machine/cris/configure: Ditto.
2219         * libc/machine/crx/Makefile.in: Ditto.
2220         * libc/machine/crx/configure: Ditto.
2221         * libc/machine/d10v/Makefile.in: Ditto.
2222         * libc/machine/d10v/configure: Ditto.
2223         * libc/machine/d30v/Makefile.in: Ditto.
2224         * libc/machine/d30v/configure: Ditto.
2225         * libc/machine/fr30/Makefile.in: Ditto.
2226         * libc/machine/fr30/configure: Ditto.
2227         * libc/machine/frv/Makefile.in: Ditto.
2228         * libc/machine/frv/configure: Ditto.
2229         * libc/machine/h8300/Makefile.in: Ditto.
2230         * libc/machine/h8300/configure: Ditto.
2231         * libc/machine/h8500/Makefile.in: Ditto.
2232         * libc/machine/h8500/configure: Ditto.
2233         * libc/machine/hppa/Makefile.in: Ditto.
2234         * libc/machine/hppa/configure: Ditto.
2235         * libc/machine/i386/Makefile.in: Ditto.
2236         * libc/machine/i386/aclocal.m4: Ditto.
2237         * libc/machine/i386/configure: Ditto.
2238         * libc/machine/i960/Makefile.in: Ditto.
2239         * libc/machine/i960/configure: Ditto.
2240         * libc/machine/iq2000/Makefile.in: Ditto.
2241         * libc/machine/iq2000/configure: Ditto.
2242         * libc/machine/m32c/Makefile.in: Ditto.
2243         * libc/machine/m32c/configure: Ditto.
2244         * libc/machine/m32r/Makefile.in: Ditto.
2245         * libc/machine/m32r/configure: Ditto.
2246         * libc/machine/m68hc11/Makefile.in: Ditto.
2247         * libc/machine/m68hc11/configure: Ditto.
2248         * libc/machine/m68k/Makefile.in: Ditto.
2249         * libc/machine/m68k/configure: Ditto.
2250         * libc/machine/m88k/Makefile.in: Ditto.
2251         * libc/machine/m88k/configure: Ditto.
2252         * libc/machine/mep/Makefile.in: Ditto.
2253         * libc/machine/mep/configure: Ditto.
2254         * libc/machine/mips/Makefile.in: Ditto.
2255         * libc/machine/mips/configure: Ditto.
2256         * libc/machine/mn10200/Makefile.in: Ditto.
2257         * libc/machine/mn10200/configure: Ditto.
2258         * libc/machine/mn10300/Makefile.in: Ditto.
2259         * libc/machine/mn10300/configure: Ditto.
2260         * libc/machine/mt/Makefile.in: Ditto.
2261         * libc/machine/mt/configure: Ditto.
2262         * libc/machine/necv70/Makefile.in: Ditto.
2263         * libc/machine/necv70/configure: Ditto.
2264         * libc/machine/powerpc/Makefile.in: Ditto.
2265         * libc/machine/powerpc/configure: Ditto.
2266         * libc/machine/sh/Makefile.in: Ditto.
2267         * libc/machine/sh/configure: Ditto.
2268         * libc/machine/sparc/Makefile.in: Ditto.
2269         * libc/machine/sparc/configure: Ditto.
2270         * libc/machine/spu/Makefile.in: Ditto.
2271         * libc/machine/spu/configure: Ditto.
2272         * libc/machine/tic4x/Makefile.in: Ditto.
2273         * libc/machine/tic4x/configure: Ditto.
2274         * libc/machine/tic80/Makefile.in: Ditto.
2275         * libc/machine/tic80/configure: Ditto.
2276         * libc/machine/v850/Makefile.in: Ditto.
2277         * libc/machine/v850/configure: Ditto.
2278         * libc/machine/w65/Makefile.in: Ditto.
2279         * libc/machine/w65/configure: Ditto.
2280         * libc/machine/x86_64/Makefile.in: Ditto.
2281         * libc/machine/x86_64/configure: Ditto.
2282         * libc/machine/xscale/Makefile.in: Ditto.
2283         * libc/machine/xscale/configure: Ditto.
2284         * libc/machine/xstormy16/Makefile.in: Ditto.
2285         * libc/machine/xstormy16/configure: Ditto.
2286         * libc/machine/z8k/Makefile.in: Ditto.
2287         * libc/machine/z8k/configure: Ditto.
2288         * libc/misc/Makefile.in: Ditto.
2289         * libc/posix/Makefile.in: Ditto.
2290         * libc/reent/Makefile.in: Ditto.
2291         * libc/search/Makefile.in: Ditto.
2292         * libc/signal/Makefile.in: Ditto.
2293         * libc/stdio/Makefile.in: Ditto.
2294         * libc/stdio64/Makefile.in: Ditto.
2295         * libc/stdlib/Makefile.in: Ditto.
2296         * libc/string/Makefile.in: Ditto.
2297         * libc/sys/Makefile.in: Ditto.
2298         * libc/sys/aclocal.m4: Ditto.
2299         * libc/sys/configure: Ditto.
2300         * libc/sys/a29khif/Makefile.in: Ditto.
2301         * libc/sys/a29khif/configure: Ditto.
2302         * libc/sys/arc/Makefile.in: Ditto.
2303         * libc/sys/arc/configure: Ditto.
2304         * libc/sys/arm/Makefile.in: Ditto.
2305         * libc/sys/arm/configure: Ditto.
2306         * libc/sys/d10v/Makefile.in: Ditto.
2307         * libc/sys/d10v/configure: Ditto.
2308         * libc/sys/decstation/Makefile.in: Ditto.
2309         * libc/sys/decstation/configure: Ditto.
2310         * libc/sys/h8300hms/Makefile.in: Ditto.
2311         * libc/sys/h8300hms/configure: Ditto.
2312         * libc/sys/h8500hms/Makefile.in: Ditto.
2313         * libc/sys/h8500hms/configure: Ditto.
2314         * libc/sys/linux/Makefile.in: Ditto.
2315         * libc/sys/linux/aclocal.m4: Ditto.
2316         * libc/sys/linux/configure: Ditto.
2317         * libc/sys/linux/argp/Makefile.in: Ditto.
2318         * libc/sys/linux/cmath/Makefile.in: Ditto.
2319         * libc/sys/linux/dl/Makefile.in: Ditto.
2320         * libc/sys/linux/iconv/Makefile.in: Ditto.
2321         * libc/sys/linux/intl/Makefile.in: Ditto.
2322         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
2323         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
2324         * libc/sys/linux/linuxthreads/configure: Ditto.
2325         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
2326         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
2327         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
2328         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
2329         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
2330         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
2331         * libc/sys/linux/machine/Makefile.in: Ditto.
2332         * libc/sys/linux/machine/aclocal.m4: Ditto.
2333         * libc/sys/linux/machine/configure: Ditto.
2334         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2335         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2336         * libc/sys/linux/machine/i386/configure: Ditto.
2337         * libc/sys/linux/net/Makefile.in: Ditto.
2338         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2339         * libc/sys/m88kbug/Makefile.in: Ditto.
2340         * libc/sys/m88kbug/configure: Ditto.
2341         * libc/sys/mmixware/Makefile.in: Ditto.
2342         * libc/sys/mmixware/configure: Ditto.
2343         * libc/sys/netware/Makefile.in: Ditto.
2344         * libc/sys/netware/configure: Ditto.
2345         * libc/sys/rdos/Makefile.in: Ditto.
2346         * libc/sys/rdos/configure: Ditto.
2347         * libc/sys/rtems/Makefile.in: Ditto.
2348         * libc/sys/rtems/configure: Ditto.
2349         * libc/sys/sh/Makefile.in: Ditto.
2350         * libc/sys/sh/configure: Ditto.
2351         * libc/sys/sparc64/Makefile.in: Ditto.
2352         * libc/sys/sparc64/configure: Ditto.
2353         * libc/sys/sun4/Makefile.in: Ditto.
2354         * libc/sys/sun4/configure: Ditto.
2355         * libc/sys/sysmec/Makefile.in: Ditto.
2356         * libc/sys/sysmec/configure: Ditto.
2357         * libc/sys/sysnec810/Makefile.in: Ditto.
2358         * libc/sys/sysnec810/configure: Ditto.
2359         * libc/sys/sysnecv850/Makefile.in: Ditto.
2360         * libc/sys/sysnecv850/configure: Ditto.
2361         * libc/sys/sysvi386/Makefile.in: Ditto.
2362         * libc/sys/sysvi386/configure: Ditto.
2363         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2364         * libc/sys/sysvnecv70/configure: Ditto.
2365         * libc/sys/tic80/Makefile.in: Ditto.
2366         * libc/sys/tic80/configure: Ditto.
2367         * libc/sys/w65/Makefile.in: Ditto.
2368         * libc/sys/w65/configure: Ditto.
2369         * libc/sys/z8ksim/Makefile.in: Ditto.
2370         * libc/sys/z8ksim/configure: Ditto.
2371         * libc/syscalls/Makefile.in: Ditto.
2372         * libc/time/Makefile.in: Ditto.
2373         * libc/unix/Makefile.in: Ditto.
2374         * libm/Makefile.in: Ditto.
2375         * libm/aclocal.m4: Ditto.
2376         * libm/configure: Ditto.
2377         * libm/common/Makefile.in: Ditto.
2378         * libm/machine/Makefile.in: Ditto.
2379         * libm/machine/aclocal.m4: Ditto.
2380         * libm/machine/configure: Ditto.
2381         * libm/machine/i386/Makefile.in: Ditto.
2382         * libm/machine/i386/aclocal.m4: Ditto.
2383         * libm/machine/i386/configure: Ditto.
2384         * libm/machine/spu/Makefile.in: Ditto.
2385         * libm/machine/spu/configure: Ditto.
2386         * libm/math/Makefile.in: Ditto.
2387         * libm/mathfp/Makefile.in: Ditto.
2388
2389 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
2390
2391         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
2392         contains an equal sign.
2393
2394 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
2395
2396         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2397         new pthread_mutexattr_gettype and pthread_mutexattr_settype
2398         prototypes.
2399         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2400         new mutex type values.
2401         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
2402         field.
2403
2404 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2405
2406         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
2407         name is NULL, empty, or contains equal sign.
2408
2409 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
2410
2411         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
2412         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
2413         return types.
2414         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
2415         names that contain equal chars.
2416         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
2417         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
2418         EINVAL if name contains an equal sign.  Do not remove any equal signs
2419         from the value.
2420         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
2421         if name contains equal sign.  Return -1 if no variable(s) were found
2422         and return 0 otherwise.
2423
2424 2008-09-19  Eric Blake  <ebb9@byu.net>
2425
2426         Supply missing POSIX errno values.
2427         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
2428         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2429
2430 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
2431
2432         * libc/machine/spu/strcpy.h: Add missing header.
2433         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
2434         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
2435
2436 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
2437
2438         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
2439         statement to use "m" instead of "0".
2440         (atomic_add): Ditto.
2441         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
2442         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
2443         * libc/sys/linux/stdlib/glob.c: Ditto.
2444
2445 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2446
2447         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
2448         * libm/machine/spu/headers/acosf4.h: Likewise.
2449         * libm/machine/spu/headers/acoshd2.h: Likewise.
2450         * libm/machine/spu/headers/acoshf4.h: Likewise.
2451         * libm/machine/spu/headers/asind2.h: Likewise.
2452         * libm/machine/spu/headers/asinf4.h: Likewise.
2453         * libm/machine/spu/headers/asinhd2.h: Likewise.
2454         * libm/machine/spu/headers/asinhf4.h: Likewise.
2455         * libm/machine/spu/headers/atan2d2.h: Likewise.
2456         * libm/machine/spu/headers/atan2f4.h: Likewise.
2457         * libm/machine/spu/headers/atand2.h: Likewise.
2458         * libm/machine/spu/headers/atanf4.h: Likewise.
2459         * libm/machine/spu/headers/atanhd2.h: Likewise.
2460         * libm/machine/spu/headers/atanhf4.h: Likewise.
2461         * libm/machine/spu/headers/cos_sin.h: Likewise.
2462         * libm/machine/spu/headers/cosd2.h: Likewise.
2463         * libm/machine/spu/headers/cosf4.h: Likewise.
2464         * libm/machine/spu/headers/coshd2.h: Likewise.
2465         * libm/machine/spu/headers/coshf4.h: Likewise.
2466         * libm/machine/spu/headers/divd2.h: Likewise.
2467         * libm/machine/spu/headers/divf4.h: Likewise.
2468         * libm/machine/spu/headers/erf_utils.h: Likewise.
2469         * libm/machine/spu/headers/erfcd2.h: Likewise.
2470         * libm/machine/spu/headers/erfcf4.h: Likewise.
2471         * libm/machine/spu/headers/erfd2.h: Likewise.
2472         * libm/machine/spu/headers/erff4.h: Likewise.
2473         * libm/machine/spu/headers/exp2d2.h: Likewise.
2474         * libm/machine/spu/headers/exp2f4.h: Likewise.
2475         * libm/machine/spu/headers/expd2.h: Likewise.
2476         * libm/machine/spu/headers/expf4.h: Likewise.
2477         * libm/machine/spu/headers/expm1d2.h: Likewise.
2478         * libm/machine/spu/headers/expm1f4.h: Likewise.
2479         * libm/machine/spu/headers/floord2.h: Likewise.
2480         * libm/machine/spu/headers/floorf4.h: Likewise.
2481         * libm/machine/spu/headers/hypotd2.h: Likewise.
2482         * libm/machine/spu/headers/hypotf4.h: Likewise.
2483         * libm/machine/spu/headers/isnand2.h: Likewise.
2484         * libm/machine/spu/headers/isnanf4.h: Likewise.
2485         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2486         * libm/machine/spu/headers/ldexpf4.h: Likewise.
2487         * libm/machine/spu/headers/lgammad2.h: Likewise.
2488         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2489         * libm/machine/spu/headers/log10d2.h: Likewise.
2490         * libm/machine/spu/headers/log1pd2.h: Likewise.
2491         * libm/machine/spu/headers/log1pf4.h: Likewise.
2492         * libm/machine/spu/headers/log2d2.h: Likewise.
2493         * libm/machine/spu/headers/log2f4.h: Likewise.
2494         * libm/machine/spu/headers/logbf4.h: Likewise.
2495         * libm/machine/spu/headers/logd2.h: Likewise.
2496         * libm/machine/spu/headers/logf4.h: Likewise.
2497         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
2498         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2499         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2500         * libm/machine/spu/headers/powd2.h: Likewise.
2501         * libm/machine/spu/headers/powf4.h: Likewise.
2502         * libm/machine/spu/headers/recipd2.h: Likewise.
2503         * libm/machine/spu/headers/recipf4.h: Likewise.
2504         * libm/machine/spu/headers/rintf4.h: Likewise.
2505         * libm/machine/spu/headers/scalbnf4.h: Likewise.
2506         * libm/machine/spu/headers/signbitd2.h: Likewise.
2507         * libm/machine/spu/headers/sincosd2.h: Likewise.
2508         * libm/machine/spu/headers/sincosf4.h: Likewise.
2509         * libm/machine/spu/headers/sind2.h: Likewise.
2510         * libm/machine/spu/headers/sinf4.h: Likewise.
2511         * libm/machine/spu/headers/sinhd2.h: Likewise.
2512         * libm/machine/spu/headers/sinhf4.h: Likewise.
2513         * libm/machine/spu/headers/sqrtd2.h: Likewise.
2514         * libm/machine/spu/headers/sqrtf4.h: Likewise.
2515         * libm/machine/spu/headers/tand2.h: Likewise.
2516         * libm/machine/spu/headers/tanf4.h: Likewise.
2517         * libm/machine/spu/headers/tanhd2.h: Likewise.
2518         * libm/machine/spu/headers/tanhf4.h: Likewise.
2519         * libm/machine/spu/headers/tgammad2.h: Likewise.
2520         * libm/machine/spu/headers/tgammaf4.h: Likewise.
2521         * libm/machine/spu/headers/truncd2.h: Likewise.
2522         * libm/machine/spu/headers/truncf4.h: Likewise.
2523         * libm/machine/spu/headers/simdmath.h: Likewise.
2524
2525 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2526
2527         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
2528         * libm/machine/spu/headers/asinhd2.h: Likewise.
2529         * libm/machine/spu/headers/atanhd2.h: Likewise.
2530         * libm/machine/spu/headers/atanhf4.h: Likewise.
2531         * libm/machine/spu/headers/erff4.h: Likewise.
2532         * libm/machine/spu/headers/expd2.h: Likewise.
2533         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2534         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2535         * libm/machine/spu/headers/logbf4.h: Likewise.
2536         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2537         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2538         * libm/machine/spu/headers/recipd2.h: Likewise.
2539         * libm/machine/spu/headers/simdmath.h: Likewise.
2540         * libm/machine/spu/headers/acoshd2.: Likewise.
2541
2542 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2543
2544         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
2545         * libm/machine/spu/headers/cbrtf.h: Likewise.
2546
2547 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
2548
2549         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
2550         * libc/machine/spu/spu_timebase.c: New file.
2551         * libc/machine/spu/Makefile.am: Add new file.
2552         * libc/machine/spu/Makefile.in: Regenerated.
2553
2554 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
2555
2556         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
2557         any positive value from user (per std) rather than depending
2558         upon 1).
2559
2560 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
2561
2562         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
2563         for accepting a converted character.
2564
2565 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2566
2567         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
2568         from building pdfs.
2569         * libm/libm.texinfo: Likewise.
2570
2571 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
2572
2573         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
2574         accepting a converted character and continuing the loop.
2575
2576 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2577
2578         * libc/include/ctype.h (_ctype_): Restore for C++ backward
2579         compatability only.
2580
2581 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
2582
2583         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
2584         less than the old __ctype_ptr.
2585         * libc/ctype/isalnum.c: Use __ctype_ptr__.
2586         * libc/ctype/isalpha.c: Ditto.
2587         * libc/ctype/iscntrl.c: Ditto.
2588         * libc/ctype/isdigit.c: Ditto.
2589         * libc/ctype/islower.c: Ditto.
2590         * libc/ctype/isprint.c: Ditto.
2591         * libc/ctype/ispunct.c: Ditto.
2592         * libc/ctype/isspace.c: Ditto.
2593         * libc/ctype/isupper.c: Ditto.
2594         * libc/ctype/isxdigit.c: Ditto.
2595         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
2596         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
2597         from here even though they can still work.
2598
2599 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
2600
2601         * libc/machine/spu/strcpy.h: Fix error in previous patch.
2602
2603 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
2604
2605         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
2606         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2607
2608 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
2609
2610         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2611
2612 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
2613
2614         * libc/machine/mn10300/memset.S: Fix bug where return value is
2615         incorrectly set if number of bytes set is a multiple of 4.
2616
2617 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
2618
2619         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
2620         (strncpy): Cast src to uintptr_t before checking alignment with "&".
2621
2622 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2623
2624         * libc/argz/argz_count.c: Include stddef.h to get size_t.
2625         * libc/argz/argz_extract.c: Ditto.
2626         * libc/argz/argz_stringify.c: Ditto.
2627         * libc/search/hash.h: Ditto.
2628         * libc/sys/linux/include/sched.h: Ditto.
2629         * libc/sys/linux/sys/types.h: Ditto.
2630
2631 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2632
2633         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
2634         source data is taken care of before loop unrolling.
2635
2636 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2637
2638         Fix strict-aliasing issues with _strtod_r and Storeinc.
2639         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
2640         rv, rv0 from double to type U.  Use accessor macros dval, dword0
2641         and dword1 for all accesses except for the ULtod call, where rv.i
2642         replaces the pointer cast.
2643         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
2644         of access macros.  Tweak comment.
2645         Remove #ifdef'd YES_ALIAS code.
2646         (dword0, dword1, dval): Define in terms of uncast union member
2647         access.  Ditto for _DOUBLE_IS_32BITS variants.
2648         (Storeinc): Replace aliasing-flawed microoptimized definition with
2649         alternative suggested in comment.  Remove now stale comment.
2650
2651 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
2652
2653         * libc/include/machine/setjmp.h (_longjmp): Define as function on
2654         Cygwin.
2655         (_setjmp): Ditto.
2656
2657 2008-06-18  Eric Blake  <ebb9@byu.net>
2658
2659         Per Posix, strsignal returns non-const char*.
2660         * libc/include/string.h (strsignal): Fix return type.
2661
2662 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
2663
2664         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
2665         support.
2666
2667 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2668
2669         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
2670         * libc/machine/spu/sys/sched.h: Likewise.
2671         * libc/machine/spu/sys/syscall.h: Likewise.
2672
2673 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2674
2675         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
2676         in generated assembler files.
2677         * libc/machine/spu/fprintf.S: Regenerate.
2678         * libc/machine/spu/fscanf.S: Regenerate.
2679         * libc/machine/spu/printf.S: Regenerate.
2680         * libc/machine/spu/scanf.S: Regenerate.
2681         * libc/machine/spu/snprintf.S: Regenerate.
2682         * libc/machine/spu/sprintf.S: Regenerate.
2683         * libc/machine/spu/sscanf.S: Regenerate.
2684         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
2685         and .size directives.
2686         * libc/machine/spu/setjmp.S (setjmp): Likewise.
2687         (longjmp): Likewise.
2688
2689 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2690
2691         * libc/include/machine/_default_types.h: Fix GNUC check to
2692         handle 4.0 and greater.
2693
2694 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2695
2696         * libc/machine/spu/Makefile.am: Add new files.
2697         * libc/machine/spu/Makefile.in: Likewise.
2698         * libc/machine/spu/include/spu_timer.h: New file to add timer support
2699         using interrupts.
2700         * libc/machine/spu/spu_clock_stop.c: Likewise.
2701         * libc/machine/spu/spu_clock_svcs.c: Likewise.
2702         * libc/machine/spu/spu_timer_flih.S: Likewise.
2703         * libc/machine/spu/spu_timer_free.c: Likewise.
2704         * libc/machine/spu/spu_timer_internal.h: Likewise.
2705         * libc/machine/spu/spu_timer_slih.c: Likewise.
2706         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
2707         * libc/machine/spu/spu_timer_stop.c: Likewise.
2708         * libc/machine/spu/spu_timer_svcs.c: Likewise.
2709
2710 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2711
2712         * libc/machine/spu/strcat.c: Return value fixed.
2713         * libc/machine/spu/strncat.c: Likewise.
2714
2715 2008-05-28  Eric Blake  <ebb9@byu.net>
2716
2717         Fix bug in previous patch.
2718         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
2719
2720 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2721
2722         * libc/string/memset.c: Fix documented prototype to remove
2723         erroneous const attribute on first parameter.
2724
2725 2008-05-26  Eric Blake  <ebb9@byu.net>
2726
2727         Optimize the generic and x86 memchr.
2728         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
2729         Pre-align pointer so unaligned searches aren't penalized.
2730         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
2731         operations are faster than repnz byte searches.
2732
2733 2008-05-26  Eric Blake  <ebb9@byu.net>
2734
2735         Optimize the generic and x86 memset.
2736         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
2737         Pre-align pointer so unaligned stores aren't penalized.
2738         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
2739         Pre-align pointer so unaligned stores aren't penalized.  Prefer
2740         8-byte over 4-byte alignment.  Reduce register pressure.
2741
2742 2008-05-26  Eric Blake  <ebb9@byu.net>
2743
2744         Optimize the generic and x86 strlen.
2745         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
2746         data so unaligned searches aren't penalized.
2747         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
2748         Word operations are faster than repnz byte searches.
2749
2750 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
2751
2752         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2753
2754 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2755
2756         * libc/include/sys/reent.h: Add _h_errno field.
2757         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
2758         now used in net directory.
2759         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
2760         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
2761         in net directory.
2762         * libc/sys/linux/include/netdb.h: Ditto.
2763         * libc/sys/linux/include/resolv.h: Ditto.
2764         * libc/sys/linux/include/stdint.h: Ditto.
2765         * libc/sys/linux/include/arpa/nameser.h: Ditto.
2766         * libc/sys/linux/include/net/ethernet.h: Ditto.
2767         * libc/sys/linux/include/net/if_ppp.h: Ditto.
2768         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
2769         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
2770         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
2771         flags to avoid duplicate definition.
2772         * libc/sys/linux/machine/i386/include/param.h: Ditto.
2773         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
2774         added files.
2775         * libc/sys/linux/net/Makefile.in: Regenerated.
2776         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
2777         * libc/sys/linux/net/getaddrinfo.c: Ditto.
2778         * libc/sys/linux/net/getnameinfo.c: Ditto.
2779         * libc/sys/linux/net/getproto.c: Ditto.
2780         * libc/sys/linux/net/getservent.c: Ditto.
2781         * libc/sys/linux/net/inet_netof.c: Ditto.
2782         * libc/sys/linux/net/inet_lnaof.c: Ditto.
2783         * libc/sys/linux/net/ns_name.c: Ditto.
2784         * libc/sys/linux/net/ns_netint.c: Ditto.
2785         * libc/sys/linux/net/inet_ntoa.c: Ditto.
2786         * libc/sys/linux/net/ns_parse.c: Ditto.
2787         * libc/sys/linux/net/ns_print.c: Ditto.
2788         * libc/sys/linux/net/ns_ttl.c: Ditto.
2789         * libc/sys/linux/net/nsap_addr.c: Ditto.
2790         * libc/sys/linux/net/rcmd.c: Ditto.
2791         * libc/sys/linux/net/res_comp.c: Ditto.
2792         * libc/sys/linux/net/res_data.c: Ditto.
2793         * libc/sys/linux/net/res_debug.c: Ditto.
2794         * libc/sys/linux/net/res_init.c: Ditto.
2795         * libc/sys/linux/net/res_mkquery.c: Ditto.
2796         * libc/sys/linux/net/res_query.c: Ditto.
2797         * libc/sys/linux/net/res_send.c: Ditto.
2798         * libc/sys/linux/net/send.c: Ditto.
2799         * libc/sys/linux/stdlib/collate.c: Ditto.
2800         * libc/sys/linux/sys/ioctl.h: Ditto.
2801         * libc/sys/linux/sys/socket.h: Ditto.
2802         * libc/sys/linux/sys/unistd.h: Ditto.
2803         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
2804         used or because licensing includes advertising clause that cannot be
2805         ignored.
2806         * libc/sys/linux/iconv/strtab.c: Ditto.
2807         * libc/sys/linux/include/libc_private.h: Ditto.
2808         * libc/sys/linux/include/nsswitch.h: Ditto.
2809         * libc/sys/linux/include/net/if_atm.h: Ditto.
2810         * libc/sys/linux/include/net/if_media.h: Ditto.
2811         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
2812         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
2813         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
2814         * libc/sys/linux/intl/locale.alias: Ditto.
2815         * libc/sys/linux/net/addr2ascii.3: Ditto.
2816         * libc/sys/linux/net/bindresvport.c: Ditto.
2817         * libc/sys/linux/net/byteorder.3: Ditto.
2818         * libc/sys/linux/net/res_config.h: Ditto.
2819         * libc/sys/linux/net/ether_addr.c: Ditto.
2820         * libc/sys/linux/net/ethers.3: Ditto.
2821         * libc/sys/linux/net/getaddrinfo.3: Ditto.
2822         * libc/sys/linux/net/gethostbydns.c: Ditto.
2823         * libc/sys/linux/net/gethostbyht.c: Ditto.
2824         * libc/sys/linux/net/gethostbyname.3: Ditto.
2825         * libc/sys/linux/net/gethostbynis.c: Ditto.
2826         * libc/sys/linux/net/gethostnamadr.c: Ditto.
2827         * libc/sys/linux/net/getifaddrs.3: Ditto.
2828         * libc/sys/linux/net/getifaddrs.c: Ditto.
2829         * libc/sys/linux/net/getipnodebyname.3: Ditto.
2830         * libc/sys/linux/net/getnameinfo.3: Ditto.
2831         * libc/sys/linux/net/getnetbydns.c: Ditto.
2832         * libc/sys/linux/net/getnetbyht.c: Ditto.
2833         * libc/sys/linux/net/getnetbynis.c: Ditto.
2834         * libc/sys/linux/net/getnetent.3: Ditto.
2835         * libc/sys/linux/net/getnetnamadr.c: Ditto.
2836         * libc/sys/linux/net/getprotoent.3: Ditto.
2837         * libc/sys/linux/net/getprotoent.c: Ditto.
2838         * libc/sys/linux/net/getprotoname.c: Ditto.
2839         * libc/sys/linux/net/getservbyname.c: Ditto.
2840         * libc/sys/linux/net/getservbyport.c: Ditto.
2841         * libc/sys/linux/net/getservent.3: Ditto.
2842         * libc/sys/linux/net/herror.c: Ditto.
2843         * libc/sys/linux/net/hesiod.3: Ditto.
2844         * libc/sys/linux/net/hesiod.c: Ditto.
2845         * libc/sys/linux/net/if_indextoname.3: Ditto.
2846         * libc/sys/linux/net/inet.3: Ditto.
2847         * libc/sys/linux/net/inet6_option_space.3: Ditto.
2848         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
2849         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
2850         * libc/sys/linux/net/inet_net.3: Ditto.
2851         * libc/sys/linux/net/inet_network.c: Ditto.
2852         * libc/sys/linux/net/innetgr-stub.c: Ditto.
2853         * libc/sys/linux/net/ip6opt.c: Ditto.
2854         * libc/sys/linux/net/iso_addr.3: Ditto.
2855         * libc/sys/linux/net/iso_addr.c: Ditto.
2856         * libc/sys/linux/net/linkaddr.3: Ditto.
2857         * libc/sys/linux/net/linkaddr.c: Ditto.
2858         * libc/sys/linux/net/map_v4v6.c: Ditto.
2859         * libc/sys/linux/net/name6.c: Ditto.
2860         * libc/sys/linux/net/namespace.h: Ditto.
2861         * libc/sys/linux/net/ns.3: Ditto.
2862         * libc/sys/linux/net/ns_addr.c: Ditto.
2863         * libc/sys/linux/net/ns_ntoa.c: Ditto.
2864         * libc/sys/linux/net/nsdispatch.3: Ditto.
2865         * libc/sys/linux/net/nsdispatch.c: Ditto.
2866         * libc/sys/linux/net/nslexer.c: Ditto.
2867         * libc/sys/linux/net/nslexer.l: Ditto.
2868         * libc/sys/linux/net/nsparser.c: Ditto.
2869         * libc/sys/linux/net/nsparser.h: Ditto.
2870         * libc/sys/linux/net/nsparser.y: Ditto.
2871         * libc/sys/linux/net/rcmd.3: Ditto.
2872         * libc/sys/linux/net/rcmdsh.3: Ditto.
2873         * libc/sys/linux/net/res_mkupdate.c: Ditto.
2874         * libc/sys/linux/net/res_update.c: Ditto.
2875         * libc/sys/linux/net/resolver.3: Ditto.
2876         * libc/sys/linux/net/rthdr.c: Ditto.
2877         * libc/sys/linux/net/vars.c: Ditto.
2878         * libc/sys/linux/shlib-compat.h: New file.
2879         * libc/sys/linux/machine/i386/atomic.h: Ditto.
2880         * libc/sys/linux/net/XXX-lookup.c: Ditto.
2881         * libc/sys/linux/net/alias-lookup.c: Ditto.
2882         * libc/sys/linux/net/res_libc.c: Ditto.
2883         * libc/sys/linux/net/aliases.h: Ditto.
2884         * libc/sys/linux/net/check_pf.c: Ditto.
2885         * libc/sys/linux/net/databases.def: Ditto.
2886         * libc/sys/linux/net/digits_dots.c: Ditto.
2887         * libc/sys/linux/net/ether_aton.c: Ditto.
2888         * libc/sys/linux/net/ether_aton_r.c: Ditto.
2889         * libc/sys/linux/net/ether_hton.c: Ditto.
2890         * libc/sys/linux/net/ether_line.c: Ditto.
2891         * libc/sys/linux/net/ether_ntoa.c: Ditto.
2892         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
2893         * libc/sys/linux/net/ether_ntoh.c: Ditto.
2894         * libc/sys/linux/net/etherent.h: Ditto.
2895         * libc/sys/linux/net/ethers-lookup.c: Ditto.
2896         * libc/sys/linux/net/function.def: Ditto.
2897         * libc/sys/linux/net/getXXbyYY.c: Ditto.
2898         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
2899         * libc/sys/linux/net/getXXent.c: Ditto.
2900         * libc/sys/linux/net/getXXent_r.c: Ditto.
2901         * libc/sys/linux/net/getaliasent.c: Ditto.
2902         * libc/sys/linux/net/getaliasent_r.c: Ditto.
2903         * libc/sys/linux/net/getaliasname.c: Ditto.
2904         * libc/sys/linux/net/getaliasname_r.c: Ditto.
2905         * libc/sys/linux/net/gethstbyad.c: Ditto.
2906         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
2907         * libc/sys/linux/net/gethstbynm.c: Ditto.
2908         * libc/sys/linux/net/gethstbynm2.c: Ditto.
2909         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
2910         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
2911         * libc/sys/linux/net/gethstent.c: Ditto.
2912         * libc/sys/linux/net/gethstent_r.c: Ditto.
2913         * libc/sys/linux/net/getnetbyad.c: Ditto.
2914         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
2915         * libc/sys/linux/net/getnetbynm.c: Ditto.
2916         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
2917         * libc/sys/linux/net/getnetent.c: Ditto.
2918         * libc/sys/linux/net/getnetent_r.c: Ditto.
2919         * libc/sys/linux/net/getnetgrent.c: Ditto.
2920         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
2921         * libc/sys/linux/net/getnssent.c: Ditto.
2922         * libc/sys/linux/net/getnssent_r.c: Ditto.
2923         * libc/sys/linux/net/getproto_r.c: Ditto.
2924         * libc/sys/linux/net/getprtent.c: Ditto.
2925         * libc/sys/linux/net/getprtent_r.c: Ditto.
2926         * libc/sys/linux/net/getprtname.c: Ditto.
2927         * libc/sys/linux/net/getprtname_r.c: Ditto.
2928         * libc/sys/linux/net/getrpcbyname.c: Ditto.
2929         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
2930         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
2931         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
2932         * libc/sys/linux/net/getrpcent.c: Ditto.
2933         * libc/sys/linux/net/getrpcent_r.c: Ditto.
2934         * libc/sys/linux/net/getservent_r.c: Ditto.
2935         * libc/sys/linux/net/getsrvbynm.c: Ditto.
2936         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
2937         * libc/sys/linux/net/getsrvbypt.c: Ditto.
2938         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
2939         * libc/sys/linux/net/grp-lookup.c: Ditto.
2940         * libc/sys/linux/net/herrno.c: Ditto.
2941         * libc/sys/linux/net/hosts-lookup.c: Ditto.
2942         * libc/sys/linux/net/ifaddrs.h: Ditto.
2943         * libc/sys/linux/net/ifreq.c: Ditto.
2944         * libc/sys/linux/net/ifreq.h: Ditto.
2945         * libc/sys/linux/net/in6_addr.c: Ditto.
2946         * libc/sys/linux/net/inet6_option.c: Ditto.
2947         * libc/sys/linux/net/inet_mkadr.c: Ditto.
2948         * libc/sys/linux/net/inet_net.c: Ditto.
2949         * libc/sys/linux/net/key-lookup.c: Ditto.
2950         * libc/sys/linux/net/local.h: Ditto.
2951         * libc/sys/linux/net/netgroup.h: Ditto.
2952         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
2953         * libc/sys/linux/net/network-lookup.c: Ditto.
2954         * libc/sys/linux/net/not-cancel.h: Ditto.
2955         * libc/sys/linux/net/ns_samedomain.c: Ditto.
2956         * libc/sys/linux/net/nscd-types.h: Ditto.
2957         * libc/sys/linux/net/nss.h: Ditto.
2958         * libc/sys/linux/net/nsswitch.c: Ditto.
2959         * libc/sys/linux/net/nsswitch.h: Ditto.
2960         * libc/sys/linux/net/opensock.c: Ditto.
2961         * libc/sys/linux/net/proto-lookup.c: Ditto.
2962         * libc/sys/linux/net/pwd-lookup.c: Ditto.
2963         * libc/sys/linux/net/res_debug.h: Ditto.
2964         * libc/sys/linux/net/res_hconf.c: Ditto.
2965         * libc/sys/linux/net/res_hconf.h: Ditto.
2966         * libc/sys/linux/net/rexec.c: Ditto.
2967         * libc/sys/linux/net/rpc-lookup.c: Ditto.
2968         * libc/sys/linux/net/ruserpass.c: Ditto.
2969         * libc/sys/linux/net/service-lookup.c: Ditto.
2970         * libc/sys/linux/net/spwd-lookup.c: Ditto.
2971         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
2972         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
2973
2974 2008-05-21  Eric Blake  <ebb9@byu.net>
2975
2976         Optimize the generic strchr.
2977         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
2978         data so unaligned searches aren't penalized.  Special-case
2979         searching for 0.
2980
2981         Optimize strchr for x86.
2982         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
2983         Pre-align data so unaligned searches aren't penalized.
2984         Special-case searching for 0.
2985
2986 2008-05-20  Nick Clifton  <nickc@redhat.com>
2987
2988         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
2989
2990 2008-05-20  DJ Delorie  <dj@redhat.com>
2991
2992         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
2993
2994 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
2995
2996         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
2997         access macro parameter with parentheses around it.
2998
2999 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
3000
3001         * libc/include/stdint.h (SIZE_MIN): Remove.
3002         (SIZE_MAX): Define.
3003         * testsuite/newlib.stdlib/stdlib.exp: New.
3004         * testsuite/newlib.stdlib/size_max.c: Likewise.
3005
3006 2008-04-29  Eric Blake  <ebb9@byu.net>
3007
3008         Fix 2008-04-14 regression in asprintf(ptr,"").
3009         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
3010         baggage.
3011         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
3012         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
3013         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
3014         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
3015         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
3016         an initial buffer for asprintf.
3017
3018 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3019
3020         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
3021         (fstatat): Fix type of third parameter.
3022
3023 2008-04-25  Nick Clifton  <nickc@redhat.com>
3024
3025         * libc/machine/arm/setjmp.S: Fix thumb2 support.
3026
3027 2008-04-24  Nick Clifton  <nickc@redhat.com>
3028
3029         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
3030         should be _DOUBLE_IS_32BITS.
3031
3032 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3033
3034         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
3035         (UTIME_OMIT): Ditto.
3036         (utimensat): Declare for Cygwin.
3037         (futimens): Ditto.
3038
3039 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
3040
3041         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
3042         * libc/include/math.h: Likewise.
3043
3044 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
3045
3046         * libc/include/stdio.h (renameat): Declare for Cygwin.
3047         (symlinkat): Ditto.
3048         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
3049         (faccessat): Declare for Cygwin.
3050         (fchownat): Ditto.
3051         (linkat): Ditto.
3052         (readlinkat): Ditto.
3053         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
3054         (AT_EACCESS): Ditto.
3055         (AT_SYMLINK_NOFOLLOW): Ditto.
3056         (AT_SYMLINK_FOLLOW): Ditto.
3057         (AT_REMOVEDIR): Ditto.
3058         (futimesat): Declare for Cygwin.
3059         (openat): Ditto.
3060         (unlinkat): Ditto.
3061         * libc/include/sys/stat.h (fchmodat): Ditto.
3062         (fstatat): Ditto.
3063         (mkdirat): Ditto.
3064         (mkfifoat): Ditto.
3065         (mknodat): Ditto.
3066
3067 2008-04-22  Nick Clifton  <nickc@redhat.com>
3068
3069         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
3070         register load/store instructions.
3071
3072 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3073
3074         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3075
3076 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3077
3078         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3079
3080 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3081
3082         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3083         * libc/machine/spu/Makefile.am: Add new file impure.c.
3084         * libc/machine/spu/Makefile.in: Regenerate.
3085         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3086
3087 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3088
3089         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3090         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3091         to build special versions for sprintf/sscanf family functions.
3092         * libc/stdio/Makefile.in: Regenerated.
3093         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3094         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3095         family of functions (i.e. no I/O) and does not support floating-point.
3096         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3097         _svfprintf_r which is optimized to work with sprintf family of
3098         functions and not use I/O.
3099         [STRING_ONLY](__sprint_r): New string only version of static function.
3100         designed to work with sprintf family of functions.
3101         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3102         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3103         family of functions (i.e. no I/O) and no float-point support.
3104         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3105         __ssvfscanf_r which is optimized to work with sscanf family of
3106         functions and does not require I/O functions.
3107         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3108         * libc/stdio/snprintf.c: Ditto.
3109         * libc/stdio/sprintf.c: Ditto.
3110         * libc/stdio/vasnprintf.c: Ditto.
3111         * libc/stdio/vasprintf.c: Ditto.
3112         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3113         * libc/stdio/sniprintf.c: Ditto.
3114         * libc/stdio/vasiprintf.c: Ditto.
3115         * libc/stdio/vsiprintf.c: Ditto.
3116         * libc/stdio/vsniprintf.c: Ditto.
3117         * libc/stdio/vsprintf.c: Ditto.
3118         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3119         _ssvfscanf_r, and _ssvfiscanf_r.
3120         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3121         * libc/stdio/vsscanf.c: Ditto.
3122         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3123         * libc/stdio/vsiscanf.c: Ditto.
3124
3125 2008-04-04  DJ Delorie  <dj@redhat.com>
3126
3127         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3128         * libc/sys/configure: Regenerate with autoconf 2.61.
3129         * libc/machine/configure: Regenerate with autoconf 2.61.
3130
3131 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3132
3133         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3134         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3135         * libc/machine/spu/Makefile.am: Add memcmp.c.
3136         * libc/machine/spu/Makefile.in: Rebuild.
3137         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3138
3139 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3140
3141         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3142           -DMISSING_SYSCALL_NAMES.
3143
3144 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3145
3146         * libc/machine/spu/Makefile.am: Add assert.c.
3147         * libc/machine/spu/Makefile.in: Regenerate.
3148         * libc/machine/spu/assert.c: New file.
3149
3150 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3151
3152         * libc/include/reent.h: Define _func_r functions in this file to
3153         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3154         defined.
3155
3156 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3157
3158         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3159         constants when building for Cygwin.
3160
3161 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3162
3163         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3164         stdin gets resolved properly before refilling.
3165
3166 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3167
3168         * libc/include/getopt.h: Hide newlib extensions under
3169         the __need_getopt_newlib flag.
3170         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3171         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3172         with their own getopt implementation.
3173         * configure.host: Specify HAVE_GETOPT for x86-linux.
3174
3175 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3176
3177         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3178         this macro completely instead of referring to CHECK_STD_INIT which
3179         is only found in libc/stdio/local.h.
3180         * libc/stdio/dprintf.c: Add include of local.h.
3181         * libc/stdio/vdprintf.c: Ditto.
3182         * libc/stdio/vdiprintf.c: Ditto.
3183
3184 2008-03-04  Eric Blake  <ebb9@byu.net>
3185
3186         Fix strtod("nan()", ptr).
3187         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3188         n-char-sequence is omitted, still parse the ().
3189
3190 2008-03-03  Eric Blake  <ebb9@byu.net>
3191
3192         Fix ftell bug after ungetc.
3193         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3194         ftell.
3195         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3196         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3197         repositioning underlying fd offset.
3198
3199 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3200
3201         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3202         (required_argument, optional_argument): Ditto.
3203
3204 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3205
3206         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3207         data area so as to support reentrant calls.  Change all callers
3208         to fill in data area with global values and restore any changes
3209         to the global values after call.
3210         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3211         to support reentrancy that add a data area argument.
3212         * libc/include/getopt.h: Add new _r routines and provide macros
3213         so they can be called with using double-underscores.
3214
3215 2008-02-21  Eric Blake  <ebb9@byu.net>
3216
3217         Fix strtod("-0x", NULL).
3218         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3219         fails.
3220
3221 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3222
3223         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3224         for user specifying --disable-newlib-io-long-long on configure.
3225         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3226         reentrant pointer passed in rather than _REENT.
3227
3228 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3229
3230         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3231         arguments better for long options and short options not
3232         appearing as the first option in a sequence.
3233
3234 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3235
3236         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3237         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3238         * libc/machine/spu/strcpy.c: Use _strcpy.
3239         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3240         str[n]cpy and str[n]cat.
3241         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3242         * libc/machine/spu/strncpy.c: Use _strcpy.
3243
3244 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3245
3246         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3247         calculation of its value.
3248
3249 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3250
3251         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3252         Make ISO C.
3253
3254 2008-01-21  DJ Delorie  <dj@redhat.com>
3255
3256         * libc/sys/sh/syscalls.c (_isatty): New.
3257
3258 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3259
3260         * Makefile.am (crt1.o): Use correct source.
3261         * Makefile.in: Regenerated.
3262
3263 2008-01-15  Eric Blake  <ebb9@byu.net>
3264
3265         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3266         * libc/string/Makefile: Regenerate.
3267
3268 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3269
3270         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3271         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3272         (sigsetjmp): Use __SIGMASK_FUNC.
3273         (siglongjmp): Ditto.
3274         (_setjmp): Define as macro.
3275         (_longjmp): Ditto.
3276
3277 2008-01-11  Eric Blake  <ebb9@byu.net>
3278
3279         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3280         * libc/string/str-two-way.h: New file.
3281         * libc/string/memmem.c (memmem): New file.
3282         * libc/include/string.h (memmem): Declare for all platforms.
3283         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3284         not optimizing for space.
3285         * libc/string/strcasestr.c (strcasestr): Likewise.
3286         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3287         (ELIX_2_SOURCES): ...this.
3288         (ELIX_4_SOURCES): New category, for memmem.
3289         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3290         (CHEWOUT_FILES): Build documentation for memmem.
3291         * libc/string/strings.tex: Include new docs.
3292
3293 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3294
3295         * libc/machine/m68k/memcpy.S: Remove % from register references
3296         as this is already handled by m68kasm.h.
3297         * libc/machine/m68k/memset.S: Ditto.
3298
3299 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3300
3301         * libc/machine/m68k/m68kasm.h: New file.
3302         * libc/machine/m68k/setjmp.S: Remove common definitions and
3303         place in m68kasm.h.  Include "m68kasm.h".
3304         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
3305         SYM() macro when referencing function name.
3306         * libc/machine/m68k/memset.S: Ditto.
3307
3308 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
3309
3310         Make isatty syscall handling consistent with other newlib syscalls.
3311
3312         * libc/include/_syslist.h: Add _isatty.
3313         * libc/include/reent.h: Add _isatty_r.
3314         * libc/include/sys/unistd.h: Add _isatty.
3315         * libc/posix/Makefile.am: Add new _isatty.c file.
3316         * libc/posix/Makefile.in: Regenerated.
3317         * libc/posix/_isatty.c: New file.
3318         * libc/posix/isatty.c: Changed to call _isatty().
3319         * libc/reent/Makefile.am: Add new isattyr.c file.
3320         * libc/reent/Makefile.in: Regenerated.
3321         * libc/reent/isattyr.c: New file.
3322         * libc/stdio/freopen.c: Changed to call _isatty_r().
3323         * libc/stdio/makebuf.c: Ditto.
3324         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
3325         * libc/sys/arc/isatty.c: Ditto.
3326         * libc/sys/arm/syscalls.c: Ditto.
3327         * libc/sys/d10v/syscalls.c: Ditto.
3328         * libc/sys/h8300hms/syscalls.c: Ditto.
3329         * libc/sys/h8500hms/syscalls.c: Ditto.
3330         * libc/sys/linux/Makefile.am: Add new isatty.c file.
3331         * libc/sys/linux/Makefile.in: Regenerated.
3332         * libc/sys/linux/isatty.c: New file.
3333         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
3334         * libc/syscalls/Makefile.in: Regenerated.
3335         * libc/syscalls/sysisatty.c: New file.
3336
3337 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
3338
3339         * libc/syscalls/sysclose.c: Always call reentrant version of the
3340         underlying syscall since one is guaranteed to exist in libc/reent.
3341         * libc/syscalls/sysexecve.c: Ditto.
3342         * libc/syscalls/sysfcntl.c: Ditto.
3343         * libc/syscalls/sysfork.c: Ditto.
3344         * libc/syscalls/sysfstat.c: Ditto.
3345         * libc/syscalls/sysgetpid.c: Ditto.
3346         * libc/syscalls/sysgettod.c: Ditto.
3347         * libc/syscalls/syskill.c: Ditto.
3348         * libc/syscalls/syslink.c: Ditto.
3349         * libc/syscalls/syslseek.c: Ditto.
3350         * libc/syscalls/sysopen.c: Ditto.
3351         * libc/syscalls/sysread.c: Ditto.
3352         * libc/syscalls/syssbrk.c: Ditto.
3353         * libc/syscalls/sysstat.c: Ditto.
3354         * libc/syscalls/systimes.c: Ditto.
3355         * libc/syscalls/sysunlink.c: Ditto.
3356         * libc/syscalls/syswait.c: Ditto.
3357         * libc/syscalls/syswrite.c: Ditto.
3358
3359 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3360
3361         * NEWS: Update with 1.16.0 info.
3362         * README: Ditto.
3363         * acinclude.m4: Change version number to 1.16.0.
3364         * aclocal.m4: Regenerated.
3365         * configure: Ditto.
3366         * doc/aclocal.m4: Ditto.
3367         * doc/configure: Ditto.
3368         * libc/*/aclocal.m4: Ditto.
3369         * libc/*/configure: Ditto.
3370         * libc/libc.texinfo: Ditto.
3371         * libm/*/aclocal.m4: Ditto.
3372         * libm/*/configure: Ditto.
3373         * libm/libm.texinfo: Ditto.
3374         * libc/sys/linux/shared.ld: Add VERS_1.16.
3375
3376 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3377
3378         * libc/string/strcasestr.c: Remove id macro.
3379         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
3380         field reference to be __sched_priority.
3381         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
3382         * libc/sys/linux/linuxthreads/manager.c: Ditto.
3383         * libc/sys/linux/stdlib/collate.c: Remove id macro.
3384         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3385         * libc/sys/linux/stdlib/engine.c: Ditto.
3386         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3387         * libc/sys/linux/stdlib/glob.c: Ditto.
3388         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3389         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3390         * libc/sys/linux/stdlib/regerror.c: Ditto.
3391         * libc/sys/linux/stdlib/regexec.c: Ditto.
3392         * libc/sys/linux/stdlib/regfree.c: Ditto.
3393         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
3394         * libc/sys/linux/include/argp.h: Ditto.
3395         * libc/sys/linux/sys/libc-lock.h: New file.
3396         * libc/sys/linux/sys/stdint.h: Ditto.
3397         * libc/sys/linux/include/sched.h: New file.
3398
3399 2007-12-19  Dave Korn  <dave.korn@artimi.com>
3400             Jeff Johnston  <jjohnstn@redhhat.com>
3401
3402         * libc/include/_ansi.h: Add _LONG_LONG definition.
3403         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
3404         prototypes.
3405         * libc/machine/i386/machine/fastmath.h: Add support for new i386
3406         fast math versions of rint, lrint, and llrint family functions.
3407         * libm/machine/i386/Makefile.am: Add new files.
3408         * libm/machine/i386/Makefile.in: Regenerated.
3409         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
3410         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
3411         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
3412         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
3413         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
3414
3415 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3416
3417         * libc/include/sys/features.h: Add checks for C90 compilers using
3418         -ansi.
3419
3420 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3421
3422         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
3423         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
3424         wcpncpy.c.
3425         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
3426         * libc/string/Makefile.in: Regenerate.
3427         * libc/string/wcpcpy.c: New file.
3428         * libc/string/wcpncpy.c: New file.
3429         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
3430
3431 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3432
3433         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
3434         _wcsrtombs_r.
3435
3436 2007-11-19  Nick Clifton  <nickc@redhat.com>
3437
3438         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
3439         * libc/machine/mn10300/Makefile.in: Regenerate.
3440         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
3441         .debug_frame section.
3442         * libc/machine/mn10300/memcmp.S: Likewise.
3443         * libc/machine/mn10300/memcpy.S: Likewise.
3444         * libc/machine/mn10300/memset.S: Likewise.
3445         * libc/machine/mn10300/strchr.S: Likewise.
3446         * libc/machine/mn10300/strcmp.S: Likewise.
3447         * libc/machine/mn10300/strcpy.S: Likewise.
3448         * libc/machine/mn10300/strlen.S: Likewise.
3449
3450 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
3451
3452         * libc/include/sys/_default_fcntl.h: New header file that
3453         is the default version of sys/fcntl.h.
3454         * libc/include/sys/fcntl.h: Changed to simply include
3455         sys/_default_fcntl.h.
3456         * libc/sys/arm/sys/fcntl.h: New file that includes
3457         sys/_default_fcntl.h and defines O_BINARY.
3458
3459 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
3460
3461         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
3462
3463 2007-11-07  Dave Brolley  <brolley@redhat.com>
3464
3465         * libc/machine/configure: Regenerated to pick up mep-elf changes.
3466
3467         * Contribute mep-elf from Red Hat
3468         2006-10-27  DJ Delorie  <dj@redhat.com>
3469
3470         * libc/include/machine/setjmp.h: Add MeP support.
3471
3472         2003-04-17  DJ Delorie  <dj@redhat.com>
3473
3474         * configure.host (mep-*-*): Support "long long" type.
3475
3476         2001-06-06  DJ Delorie  <dj@redhat.com>
3477
3478         * libc/include/machine/ieeefp.h (mep): Support little endian too.
3479
3480         2001-05-14  DJ Delorie  <dj@redhat.com>
3481
3482         * configure.host: Add mep's machine_dir.
3483         * libc/include/setjmp.h: Add mep support.
3484         * libc/machine/mep: New.
3485         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
3486
3487         2001-05-04  DJ Delorie  <dj@redhat.com>
3488
3489         * configure.host: Add mep.
3490         * libc/include/machine/ieeefp.h: Ditto.
3491
3492 2007-10-31  DJ Delorie  <dj@redhat.com>
3493
3494         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
3495         signal table, just use a default, in case initialization cause
3496         recursion.
3497
3498 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3499
3500         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
3501         size if output buffer is NULL.
3502
3503 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3504
3505         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
3506         fix when handling negative input values.  Make function
3507         consistent with math directory and glibc version such that
3508         inf and nan values return inf and nan respectively with no
3509         errno setting.
3510         * libm/mathfp/sf_logarithm.c: Ditto.
3511         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
3512         * libm/math/wf_log.c: Ditto.
3513         * libm/math/w_log10.c: Ditto.
3514         * libm/math/wf_log10.c: Ditto.
3515
3516 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3517
3518         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
3519         return -inf.
3520         * libm/mathfp/sf_logarithm.c: Ditto.
3521
3522 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3523
3524         * libc/machine/i386/machine/fastmath.h: New file.
3525
3526 2007-10-13  Eric Blake  <ebb9@byu.net>
3527
3528         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
3529         Correctly nest else within conditionals.
3530         Reported by Artur Lipowski.
3531
3532 2007-10-09  Nick Clifton  <nickc@redhat.com>
3533
3534         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
3535         the STT_COMMON type.
3536
3537 2007-10-09  Ben Elliston  <bje@au.ibm.com>
3538
3539         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
3540         before simdmath.h to get a definition for `vector'.
3541         * libm/machine/spu/headers/asind2.h: Likewise.
3542
3543 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3544
3545         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
3546         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
3547         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
3548         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
3549         * libm/machine/spu/headers/acos.h: Add domain check.
3550         * libm/machine/spu/headers/acosf.h: Ditto.
3551         * libm/machine/spu/headers/acosh.h: Ditto.
3552         * libm/machine/spu/headers/acoshf.h: Ditto.
3553         * libm/machine/spu/headers/asin.h: Ditto.
3554         * libm/machine/spu/headers/asinf.h: Ditto.
3555         * libm/machine/spu/headers/atanh.h: Ditto.
3556         * libm/machine/spu/headers/atanhf.h: Ditto.
3557         * libm/machine/spu/headers/fmod.h: Ditto.
3558         * libm/machine/spu/headers/fmodf.h: Ditto.
3559         * libm/machine/spu/headers/log.h: Ditto.
3560         * libm/machine/spu/headers/log10.h: Ditto.
3561         * libm/machine/spu/headers/log1p.h: Ditto.
3562         * libm/machine/spu/headers/log1pf.h: Ditto.
3563         * libm/machine/spu/headers/log2.h: Ditto.
3564         * libm/machine/spu/headers/log2f.h: Ditto.
3565         * libm/machine/spu/headers/sqrt.h: Ditto.
3566         * libm/machine/spu/headers/sqrtf.h: Ditto.
3567         * libm/machine/spu/headers/tgamma.h: Ditto.
3568         * libm/machine/spu/headers/tgammaf.h: Ditto.
3569
3570 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3571
3572         * libm/machine/spu/Makefile.am: Add new C files.
3573         * libm/machine/spu/Makefile.in: Regenerate.
3574         * libm/machine/spu/headers/acos.h: New file.
3575         * libm/machine/spu/headers/acosd2.h: Ditto.
3576         * libm/machine/spu/headers/acosf.h: Ditto.
3577         * libm/machine/spu/headers/acosf4.h: Ditto.
3578         * libm/machine/spu/headers/acosh.h: Ditto.
3579         * libm/machine/spu/headers/acoshd2.h: Ditto.
3580         * libm/machine/spu/headers/acoshf.h: Ditto.
3581         * libm/machine/spu/headers/acoshf4.h: Ditto.
3582         * libm/machine/spu/headers/asin.h: Ditto.
3583         * libm/machine/spu/headers/asind2.h: Ditto.
3584         * libm/machine/spu/headers/asinf.h: Ditto.
3585         * libm/machine/spu/headers/asinf4.h: Ditto.
3586         * libm/machine/spu/headers/asinh.h: Ditto.
3587         * libm/machine/spu/headers/asinhd2.h: Ditto.
3588         * libm/machine/spu/headers/asinhf.h: Ditto.
3589         * libm/machine/spu/headers/asinhf4.h: Ditto.
3590         * libm/machine/spu/headers/atan.h: Ditto.
3591         * libm/machine/spu/headers/atan2.h: Ditto.
3592         * libm/machine/spu/headers/atan2d2.h: Ditto.
3593         * libm/machine/spu/headers/atan2f.h: Ditto.
3594         * libm/machine/spu/headers/atan2f4.h: Ditto.
3595         * libm/machine/spu/headers/atand2.h: Ditto.
3596         * libm/machine/spu/headers/atanf4.h: Ditto.
3597         * libm/machine/spu/headers/atanh.h: Ditto.
3598         * libm/machine/spu/headers/atanhd2.h: Ditto.
3599         * libm/machine/spu/headers/atanhf.h: Ditto.
3600         * libm/machine/spu/headers/atanhf4.h: Ditto.
3601         * libm/machine/spu/headers/cos.h: Ditto.
3602         * libm/machine/spu/headers/cos_sin.h: Ditto.
3603         * libm/machine/spu/headers/cosd2.h: Ditto.
3604         * libm/machine/spu/headers/cosf.h: Ditto.
3605         * libm/machine/spu/headers/cosf4.h: Ditto.
3606         * libm/machine/spu/headers/cosh.h: Ditto.
3607         * libm/machine/spu/headers/coshd2.h: Ditto.
3608         * libm/machine/spu/headers/coshf.h: Ditto.
3609         * libm/machine/spu/headers/coshf4.h: Ditto.
3610         * libm/machine/spu/headers/divd2.h: Ditto.
3611         * libm/machine/spu/headers/divf4.h: Ditto.
3612         * libm/machine/spu/headers/erf.h: Ditto.
3613         * libm/machine/spu/headers/erf_utils.h: Ditto.
3614         * libm/machine/spu/headers/erfc.h: Ditto.
3615         * libm/machine/spu/headers/erfcd2.h: Ditto.
3616         * libm/machine/spu/headers/erfcf.h: Ditto.
3617         * libm/machine/spu/headers/erfcf4.h: Ditto.
3618         * libm/machine/spu/headers/erfd2.h: Ditto.
3619         * libm/machine/spu/headers/erff.h: Ditto.
3620         * libm/machine/spu/headers/erff4.h: Ditto.
3621         * libm/machine/spu/headers/exp.h: Ditto.
3622         * libm/machine/spu/headers/exp2.h: Ditto.
3623         * libm/machine/spu/headers/exp2d2.h: Ditto.
3624         * libm/machine/spu/headers/exp2f4.h: Ditto.
3625         * libm/machine/spu/headers/expd2.h: Ditto.
3626         * libm/machine/spu/headers/expf4.h: Ditto.
3627         * libm/machine/spu/headers/expm1.h: Ditto.
3628         * libm/machine/spu/headers/expm1d2.h: Ditto.
3629         * libm/machine/spu/headers/expm1f.h: Ditto.
3630         * libm/machine/spu/headers/expm1f4.h: Ditto.
3631         * libm/machine/spu/headers/floord2.h: Ditto.
3632         * libm/machine/spu/headers/floorf4.h: Ditto.
3633         * libm/machine/spu/headers/hypot.h: Ditto.
3634         * libm/machine/spu/headers/hypotd2.h: Ditto.
3635         * libm/machine/spu/headers/hypotf.h: Ditto.
3636         * libm/machine/spu/headers/hypotf4.h: Ditto.
3637         * libm/machine/spu/headers/isnan.h: Ditto.
3638         * libm/machine/spu/headers/isnand2.h: Ditto.
3639         * libm/machine/spu/headers/isnanf.h: Ditto.
3640         * libm/machine/spu/headers/isnanf4.h: Ditto.
3641         * libm/machine/spu/headers/ldexpd2.h: Ditto.
3642         * libm/machine/spu/headers/ldexpf4.h: Ditto.
3643         * libm/machine/spu/headers/lgamma.h: Ditto.
3644         * libm/machine/spu/headers/lgammad2.h: Ditto.
3645         * libm/machine/spu/headers/lgammaf.h: Ditto.
3646         * libm/machine/spu/headers/lgammaf4.h: Ditto.
3647         * libm/machine/spu/headers/log.h: Ditto.
3648         * libm/machine/spu/headers/log10.h: Ditto.
3649         * libm/machine/spu/headers/log10d2.h: Ditto.
3650         * libm/machine/spu/headers/log1p.h: Ditto.
3651         * libm/machine/spu/headers/log1pd2.h: Ditto.
3652         * libm/machine/spu/headers/log1pf.h: Ditto.
3653         * libm/machine/spu/headers/log1pf4.h: Ditto.
3654         * libm/machine/spu/headers/log2.h: Ditto.
3655         * libm/machine/spu/headers/log2d2.h: Ditto.
3656         * libm/machine/spu/headers/log2f4.h: Ditto.
3657         * libm/machine/spu/headers/logbf.h: Ditto.
3658         * libm/machine/spu/headers/logbf4.h: Ditto.
3659         * libm/machine/spu/headers/logd2.h: Ditto.
3660         * libm/machine/spu/headers/logf4.h: Ditto.
3661         * libm/machine/spu/headers/nearbyintf.h: Ditto.
3662         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
3663         * libm/machine/spu/headers/nextafter.h: Ditto.
3664         * libm/machine/spu/headers/nextafterd2.h: Ditto.
3665         * libm/machine/spu/headers/nextafterf.h: Ditto.
3666         * libm/machine/spu/headers/nextafterf4.h: Ditto.
3667         * libm/machine/spu/headers/pow.h: Ditto.
3668         * libm/machine/spu/headers/powd2.h: Ditto.
3669         * libm/machine/spu/headers/powf.h: Ditto.
3670         * libm/machine/spu/headers/powf4.h: Ditto.
3671         * libm/machine/spu/headers/recipd2.h: Ditto.
3672         * libm/machine/spu/headers/recipf4.h: Ditto.
3673         * libm/machine/spu/headers/rintf.h: Ditto.
3674         * libm/machine/spu/headers/rintf4.h: Ditto.
3675         * libm/machine/spu/headers/scalbnf4.h: Ditto.
3676         * libm/machine/spu/headers/signbit.h: Ditto.
3677         * libm/machine/spu/headers/signbitd2.h: Ditto.
3678         * libm/machine/spu/headers/simdmath.h: Ditto.
3679         * libm/machine/spu/headers/sin.h: Ditto.
3680         * libm/machine/spu/headers/sincos.h: Ditto.
3681         * libm/machine/spu/headers/sincosd2.h: Ditto.
3682         * libm/machine/spu/headers/sincosf.h: Ditto.
3683         * libm/machine/spu/headers/sincosf4.h: Ditto.
3684         * libm/machine/spu/headers/sind2.h: Ditto.
3685         * libm/machine/spu/headers/sinf.h: Ditto.
3686         * libm/machine/spu/headers/sinf4.h: Ditto.
3687         * libm/machine/spu/headers/sinh.h: Ditto.
3688         * libm/machine/spu/headers/sinhd2.h: Ditto.
3689         * libm/machine/spu/headers/sinhf.h: Ditto.
3690         * libm/machine/spu/headers/sinhf4.h: Ditto.
3691         * libm/machine/spu/headers/sqrtd2.h: Ditto.
3692         * libm/machine/spu/headers/sqrtf.h: Ditto.
3693         * libm/machine/spu/headers/sqrtf4.h: Ditto.
3694         * libm/machine/spu/headers/tan.h: Ditto.
3695         * libm/machine/spu/headers/tand2.h: Ditto.
3696         * libm/machine/spu/headers/tanf.h: Ditto.
3697         * libm/machine/spu/headers/tanf4.h: Ditto.
3698         * libm/machine/spu/headers/tanh.h: Ditto.
3699         * libm/machine/spu/headers/tanhd2.h: Ditto.
3700         * libm/machine/spu/headers/tanhf.h: Ditto.
3701         * libm/machine/spu/headers/tanhf4.h: Ditto.
3702         * libm/machine/spu/headers/tgamma.h: Ditto.
3703         * libm/machine/spu/headers/tgammad2.h: Ditto.
3704         * libm/machine/spu/headers/tgammaf.h: Ditto.
3705         * libm/machine/spu/headers/tgammaf4.h: Ditto.
3706         * libm/machine/spu/headers/truncd2.h: Ditto.
3707         * libm/machine/spu/headers/truncf4.h: Ditto.
3708         * libm/machine/spu/log2.c: Ditto.
3709         * libm/machine/spu/s_asinh.c: Ditto.
3710         * libm/machine/spu/s_atan.c: Ditto.
3711         * libm/machine/spu/s_cos.c: Ditto.
3712         * libm/machine/spu/s_erf.c: Ditto.
3713         * libm/machine/spu/s_expm1.c: Ditto.
3714         * libm/machine/spu/s_isnan.c: Ditto.
3715         * libm/machine/spu/s_log1p.c: Ditto.
3716         * libm/machine/spu/s_nextafter.c: Ditto.
3717         * libm/machine/spu/s_sin.c: Ditto.
3718         * libm/machine/spu/s_tan.c: Ditto.
3719         * libm/machine/spu/s_tanh.c: Ditto.
3720         * libm/machine/spu/sf_asinh.c: Ditto.
3721         * libm/machine/spu/sf_cos.c: Ditto.
3722         * libm/machine/spu/sf_erf.c: Ditto.
3723         * libm/machine/spu/sf_expm1.c: Ditto.
3724         * libm/machine/spu/sf_log1p.c: Ditto.
3725         * libm/machine/spu/sf_logb.c: Ditto.
3726         * libm/machine/spu/sf_nearbyint.c: Ditto.
3727         * libm/machine/spu/sf_nextafter.c: Ditto.
3728         * libm/machine/spu/sf_rint.c: Ditto.
3729         * libm/machine/spu/sf_sin.c: Ditto.
3730         * libm/machine/spu/sf_tan.c: Ditto.
3731         * libm/machine/spu/sf_tanh.c: Ditto.
3732         * libm/machine/spu/w_acos.c: Ditto.
3733         * libm/machine/spu/w_acosh.c: Ditto.
3734         * libm/machine/spu/w_asin.c: Ditto.
3735         * libm/machine/spu/w_atan2.c: Ditto.
3736         * libm/machine/spu/w_atanh.c: Ditto.
3737         * libm/machine/spu/w_cosh.c: Ditto.
3738         * libm/machine/spu/w_exp.c: Ditto.
3739         * libm/machine/spu/w_exp2.c: Ditto.
3740         * libm/machine/spu/w_hypot.c: Ditto.
3741         * libm/machine/spu/w_lgamma.c: Ditto.
3742         * libm/machine/spu/w_log.c: Ditto.
3743         * libm/machine/spu/w_log10.c: Ditto.
3744         * libm/machine/spu/w_pow.c: Ditto.
3745         * libm/machine/spu/w_sincos.c: Ditto.
3746         * libm/machine/spu/w_sinh.c: Ditto.
3747         * libm/machine/spu/w_tgamma.c: Ditto.
3748         * libm/machine/spu/wf_acos.c: Ditto.
3749         * libm/machine/spu/wf_acosh.c: Ditto.
3750         * libm/machine/spu/wf_asin.c: Ditto.
3751         * libm/machine/spu/wf_atan2.c: Ditto.
3752         * libm/machine/spu/wf_atanh.c: Ditto.
3753         * libm/machine/spu/wf_cosh.c: Ditto.
3754         * libm/machine/spu/wf_hypot.c: Ditto.
3755         * libm/machine/spu/wf_lgamma.c: Ditto.
3756         * libm/machine/spu/wf_pow.c: Ditto.
3757         * libm/machine/spu/wf_sincos.c: Ditto.
3758         * libm/machine/spu/wf_sinh.c: Ditto.
3759         * libm/machine/spu/wf_sqrt.c: Ditto.
3760         * libm/machine/spu/wf_tgamma.c: Ditto.
3761
3762 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3763
3764         * configure.host: Define _POSIX_MODE to match the existing vector
3765         math code, as we don't support the matherr callout.
3766         * libm/machine/spu/Makefile.am: New file.
3767         * libm/machine/spu/Makefile.in: Auto-generated.
3768         * libm/machine/spu/headers/atanf.h: New file.
3769         * libm/machine/spu/headers/cbrt.h: Ditto.
3770         * libm/machine/spu/headers/cbrtf.h: Ditto.
3771         * libm/machine/spu/headers/ceil.h: Ditto.
3772         * libm/machine/spu/headers/ceilf.h: Ditto.
3773         * libm/machine/spu/headers/copysign.h: Ditto.
3774         * libm/machine/spu/headers/copysignf.h: Ditto.
3775         * libm/machine/spu/headers/exp2f.h: Ditto.
3776         * libm/machine/spu/headers/expf.h: Ditto.
3777         * libm/machine/spu/headers/fabs.h: Ditto.
3778         * libm/machine/spu/headers/fabsf.h: Ditto.
3779         * libm/machine/spu/headers/fdim.h: Ditto.
3780         * libm/machine/spu/headers/fdimf.h: Ditto.
3781         * libm/machine/spu/headers/floor.h: Ditto.
3782         * libm/machine/spu/headers/floorf.h: Ditto.
3783         * libm/machine/spu/headers/fma.h: Ditto.
3784         * libm/machine/spu/headers/fmaf.h: Ditto.
3785         * libm/machine/spu/headers/fmax.h: Ditto.
3786         * libm/machine/spu/headers/fmaxf.h: Ditto.
3787         * libm/machine/spu/headers/fmin.h: Ditto.
3788         * libm/machine/spu/headers/fminf.h: Ditto.
3789         * libm/machine/spu/headers/fmod.h: Ditto.
3790         * libm/machine/spu/headers/fmodf.h: Ditto.
3791         * libm/machine/spu/headers/frexp.h: Ditto.
3792         * libm/machine/spu/headers/frexpf.h: Ditto.
3793         * libm/machine/spu/headers/ilogb.h: Ditto.
3794         * libm/machine/spu/headers/ilogbf.h: Ditto.
3795         * libm/machine/spu/headers/ldexp.h: Ditto.
3796         * libm/machine/spu/headers/ldexpf.h: Ditto.
3797         * libm/machine/spu/headers/llrint.h: Ditto.
3798         * libm/machine/spu/headers/llrintf.h: Ditto.
3799         * libm/machine/spu/headers/llround.h: Ditto.
3800         * libm/machine/spu/headers/llroundf.h: Ditto.
3801         * libm/machine/spu/headers/log10f.h: Ditto.
3802         * libm/machine/spu/headers/log2f.h: Ditto.
3803         * libm/machine/spu/headers/logf.h: Ditto.
3804         * libm/machine/spu/headers/lrint.h: Ditto.
3805         * libm/machine/spu/headers/lrintf.h: Ditto.
3806         * libm/machine/spu/headers/lround.h: Ditto.
3807         * libm/machine/spu/headers/lroundf.h: Ditto.
3808         * libm/machine/spu/headers/nearbyint.h: Ditto.
3809         * libm/machine/spu/headers/remainder.h: Ditto.
3810         * libm/machine/spu/headers/remainderf.h: Ditto.
3811         * libm/machine/spu/headers/remquo.h: Ditto.
3812         * libm/machine/spu/headers/remquof.h: Ditto.
3813         * libm/machine/spu/headers/rint.h: Ditto.
3814         * libm/machine/spu/headers/round.h: Ditto.
3815         * libm/machine/spu/headers/roundf.h: Ditto.
3816         * libm/machine/spu/headers/scalbn.h: Ditto.
3817         * libm/machine/spu/headers/scalbnf.h: Ditto.
3818         * libm/machine/spu/headers/sqrt.h: Ditto.
3819         * libm/machine/spu/headers/trunc.h: Ditto.
3820         * libm/machine/spu/headers/truncf.h: Ditto.
3821         * libm/machine/spu/headers/vec_literal.h: Ditto.
3822         * libm/machine/spu/llrint.c: Ditto.
3823         * libm/machine/spu/llrintf.c: Ditto.
3824         * libm/machine/spu/llround.c: Ditto.
3825         * libm/machine/spu/llroundf.c: Ditto.
3826         * libm/machine/spu/log2f.c: Ditto.
3827         * libm/machine/spu/s_cbrt.c: Ditto.
3828         * libm/machine/spu/s_ceil.c: Ditto.
3829         * libm/machine/spu/s_copysign.c: Ditto.
3830         * libm/machine/spu/s_fabs.c: Ditto.
3831         * libm/machine/spu/s_fdim.c: Ditto.
3832         * libm/machine/spu/s_floor.c: Ditto.
3833         * libm/machine/spu/s_fma.c: Ditto.
3834         * libm/machine/spu/s_fmax.c: Ditto.
3835         * libm/machine/spu/s_fmin.c: Ditto.
3836         * libm/machine/spu/s_frexp.c: Ditto.
3837         * libm/machine/spu/s_ilogb.c: Ditto.
3838         * libm/machine/spu/s_ldexp.c: Ditto.
3839         * libm/machine/spu/s_lrint.c: Ditto.
3840         * libm/machine/spu/s_lround.c: Ditto.
3841         * libm/machine/spu/s_nearbyint.c: Ditto.
3842         * libm/machine/spu/s_remquo.c: Ditto.
3843         * libm/machine/spu/s_rint.c: Ditto.
3844         * libm/machine/spu/s_round.c: Ditto.
3845         * libm/machine/spu/s_scalbn.c: Ditto.
3846         * libm/machine/spu/s_trunc.c: Ditto.
3847         * libm/machine/spu/sf_atan.c: Ditto.
3848         * libm/machine/spu/sf_cbrt.c: Ditto.
3849         * libm/machine/spu/sf_ceil.c: Ditto.
3850         * libm/machine/spu/sf_copysign.c: Ditto.
3851         * libm/machine/spu/sf_fabs.c: Ditto.
3852         * libm/machine/spu/sf_fdim.c: Ditto.
3853         * libm/machine/spu/sf_floor.c: Ditto.
3854         * libm/machine/spu/sf_fma.c: Ditto.
3855         * libm/machine/spu/sf_fmax.c: Ditto.
3856         * libm/machine/spu/sf_fmin.c: Ditto.
3857         * libm/machine/spu/sf_frexp.c: Ditto.
3858         * libm/machine/spu/sf_ilogb.c: Ditto.
3859         * libm/machine/spu/sf_ldexp.c: Ditto.
3860         * libm/machine/spu/sf_lrint.c: Ditto.
3861         * libm/machine/spu/sf_lround.c: Ditto.
3862         * libm/machine/spu/sf_remquo.c: Ditto.
3863         * libm/machine/spu/sf_round.c: Ditto.
3864         * libm/machine/spu/sf_scalbn.c: Ditto.
3865         * libm/machine/spu/sf_trunc.c: Ditto.
3866         * libm/machine/spu/w_fmod.c: Ditto.
3867         * libm/machine/spu/w_remainder.c: Ditto.
3868         * libm/machine/spu/w_sqrt.c: Ditto.
3869         * libm/machine/spu/wf_exp.c: Ditto.
3870         * libm/machine/spu/wf_exp2.c: Ditto.
3871         * libm/machine/spu/wf_fmod.c: Ditto.
3872         * libm/machine/spu/wf_log.c: Ditto.
3873         * libm/machine/spu/wf_log10.c: Ditto.
3874         * libm/machine/spu/wf_remainder.c: Ditto.
3875
3876 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3877
3878         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
3879
3880 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3881
3882         * libc/include/sched.h: New file, just include sys/sched.h.
3883         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
3884         prototype.
3885         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
3886         struct utimbuf definition.
3887
3888 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3889
3890         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
3891         specific struct and typedef.
3892
3893 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
3894
3895         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
3896         typedef dev_t, gid_t, and uid_t.
3897         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
3898         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
3899         Change to lower case for all __foo_t_defined names.
3900         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
3901         __uid_t, and __gid_t making them all four bytes. Change to lower case
3902         for all __foo_t_defined names.
3903
3904 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
3905
3906         * libc/reent/renamer.c: New file.
3907         * libc/reent/Makefile.am: Add new file.
3908         * libc/reent/Makefile.in: Regenerated.
3909         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
3910         and add check for rename syscall.
3911
3912 2007-09-17  Eric Blake  <ebb9@byu.net>
3913
3914         Obey POSIX on printf("%.s", (char*)NULL).
3915         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
3916         for %s on NULL.  Skip NULL check when optimizing for size.
3917
3918 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3919
3920         * libc/include/sys/_types.h: Protect all types with flag
3921         checks to allow definition in machine/_types.h.
3922
3923 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3924
3925         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
3926         definitions in light of the previous change.
3927
3928 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
3929
3930         * libc/include/machine/_default_types.h: New file, contains what
3931         was previously in libc/include/machine/_types.h.
3932         * libc/include/machine/_types.h: Now only includes
3933         machine/_default_types.h.
3934         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
3935         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
3936         with conditional declarations.
3937         * libc/machine/spu/machine/_types.h: New file, add SPU specific
3938         typedefs for _fpos_t and _fpos64_t.
3939
3940 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3941
3942         * libc/include/math.h (_M_LOG2E): Replace with..
3943         (_M_LOG2_E): New macro.
3944         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
3945
3946 2007-09-06  Brian Dessent  <brian@dessent.net>
3947
3948         * libc/reent/getreent.c: Allow for case where __getreent is
3949         defined as a macro.
3950
3951 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
3952
3953         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
3954         (log2): Use _M_LOG2E instead of M_LOG2E.
3955         (log2f): Ditto.
3956         (M_LOG2E): Define to be _M_LOG2E.
3957
3958 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
3959
3960         * libm/math/wf_tgamma.c: Add missing include.
3961
3962 2007-08-31  Antony King  <antony.king@st.com>
3963
3964         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
3965         bits and redefine associated dword0 macro (rvalue issue).
3966         * libc/stdio/vfieeefp.h: Ditto.
3967         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
3968         to prevent setting dword1 which is an rvalue only.
3969
3970 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
3971
3972         * configure.host: Added support for x86_64.
3973         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
3974         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
3975         * libc/machine/x86_64/aclocal.m4: Generated.
3976         * libc/machine/x86_64/configure.in: New.
3977         * libc/machine/x86_64/configure: Generated.
3978         * libc/machine/x86_64/Makefile.am: New.
3979         * libc/machine/x86_64/Makefile.in: Generated.
3980         * libc/machine/x86_64/setjmp.S: New.
3981         * libc/machine/x86_64/memcpy.S: New.
3982         * libc/machine/x86_64/memset.S: New.
3983         * libc/machine/configure.in: Added support for x86_64.
3984         * libc/machine/configure: Regenerated.
3985
3986 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
3987
3988         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
3989         to int before comparing it to a signed int value.
3990
3991 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
3992
3993         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
3994         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
3995         Define.
3996
3997 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
3998
3999         Reduce the memory consumption of variable argument functions
4000         for SPU (cell):
4001         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
4002           to assembler sources.
4003         * libc/machine/spu/Makefile.in: Regenerated.
4004         * libc/machine/spu/stdio.c: Add __check_init function wrapping
4005           CHECK_INIT macro to use from assembler routines.
4006         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
4007         * libc/machine/spu/fiprintf.S: New file.
4008         * libc/machine/spu/fiscanf.S: Ditto.
4009         * libc/machine/spu/fprintf.S: Ditto.
4010         * libc/machine/spu/fscanf.S: Ditto.
4011         * libc/machine/spu/iprintf.S: Ditto.
4012         * libc/machine/spu/iscanf.S: Ditto.
4013         * libc/machine/spu/printf.S: Ditto.
4014         * libc/machine/spu/scanf.S: Ditto.
4015         * libc/machine/spu/siprintf.S: Ditto.
4016         * libc/machine/spu/siscanf.S: Ditto.
4017         * libc/machine/spu/sniprintf.S: Ditto.
4018         * libc/machine/spu/snprintf.S: Ditto.
4019         * libc/machine/spu/sprintf.S: Ditto.
4020         * libc/machine/spu/sscanf.S: Ditto.
4021         * libc/machine/spu/stack_reg_va.S: Ditto.
4022         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
4023         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
4024         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
4025         * libc/machine/spu/fiscanf.c: Ditto.
4026         * libc/machine/spu/fprintf.c: Ditto.
4027         * libc/machine/spu/fscanf.c: Ditto.
4028         * libc/machine/spu/iprintf.c: Ditto.
4029         * libc/machine/spu/iscanf.c: Ditto.
4030         * libc/machine/spu/printf.c: Ditto.
4031         * libc/machine/spu/scanf.c: Ditto.
4032         * libc/machine/spu/siprintf.c: Ditto.
4033         * libc/machine/spu/siscanf.c: Ditto.
4034         * libc/machine/spu/sniprintf.c: Ditto.
4035         * libc/machine/spu/snprintf.c: Ditto.
4036         * libc/machine/spu/sprintf.c: Ditto.
4037         * libc/machine/spu/sscanf.c: Ditto.
4038
4039 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
4040
4041         * libc/include/tar.h: New.
4042
4043 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
4044
4045         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
4046         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
4047         * libc/sys/linux/intl/Makefile.in: Regenerated.
4048         * libc/sys/linux/intl/stpcpy.c: Renamed to...
4049         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
4050
4051 2007-08-02  Eric Blake  <ebb9@byu.net>
4052
4053         Implement fmemopen and open_memstream.
4054         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
4055         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
4056         New file.
4057         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
4058         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
4059         functions together.
4060         (fmemopen, open_memstream): Declare new functions.
4061         * libc/stdio/stdio.tex: Document them.
4062         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
4063         fmemopen and open_memstream.
4064         * libc/stdio/Makefile.in: Regenerate.
4065
4066 2007-07-31  Eric Blake  <ebb9@byu.net>
4067
4068         More POSIX stream corner cases.
4069         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
4070         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
4071         requested.
4072         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
4073
4074 2007-07-18  Eric Blake  <ebb9@byu.net>
4075
4076         Fix 'make info'.
4077         * libc/stdio/stdio.tex: Add missing include.
4078         * libc/stdio/vfprintf.c: Use expected node name.
4079         * libc/stdio/vfscanf.c: Likewise.
4080         * libc/stdio/sscanf.c: Likewise.
4081         * libc/stdio/sprintf.c: Likewise.
4082         * libc/stdio/siscanf.c: Likewise.
4083         * libc/stdio/siprintf.c: Likewise.
4084         * libc/stdio/fopencookie.c: Quote raw {}.
4085         Reported by DJ Delorie.
4086
4087 2007-07-13  Eric Blake  <ebb9@byu.net>
4088
4089         Fix fflush issues.
4090         * libc/stdio/fflush.c (_fflush_r): New function.
4091         (fflush): Fix reentrancy and large offset behavior.
4092         * libc/include/stdio.h (_fflush_r): Add prototype.
4093         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4094         * libc/stdio/freopen.c (_freopen_r): Likewise.
4095         * libc/stdio/fseek.c (_fseek_r): Likewise.
4096         * libc/stdio/ftell.c (_ftell_r): Likewise.
4097         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4098         * libc/stdio/refill.c (__srefill_r): Likewise.
4099         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4100         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4101         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4102         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4103         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4104         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4105         32-bit version if not large file.
4106         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4107         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4108
4109         Documentation updates.
4110         * libc/stdio/ungetc.c: Document ungetc.
4111         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4112         of files with documentation.
4113         * libc/stdio/Makefile.in: Regenerate.
4114         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4115
4116 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4117
4118         * libc/include/math.h: Fix so C99 functions/macros are accessible
4119         when -std=c99 is used when compiling and not when using C89.
4120
4121 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4122
4123         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4124         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4125         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4126         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4127         wcstoull_r.c.
4128         (CHEWOUT_FILES): Add .def files accordingly.
4129         * libc/stdlib/Makefile.in: Regenerate.
4130         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4131         * libc/stdlib/strtoll.c: Fix portability note.
4132         * libc/stdlib/strtoull.c: Ditto.
4133         * libc/stdlib/wcstol.c: New file.
4134         * libc/stdlib/wcstoll.c: New file.
4135         * libc/stdlib/wcstoll_r.c: New file.
4136         * libc/stdlib/wcstoul.c: New file.
4137         * libc/stdlib/wcstoull.c: New file.
4138         * libc/stdlib/wcstoull_r.c: New file.
4139
4140 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4141
4142         * libc/include/sys/time.h (gettimeofday): Change to proper
4143         prototype where second parameter is void *.
4144         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4145         accordingly.
4146         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4147         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4148         * libc/sys/rdos/gettod.c: Ditto.
4149         * libc/sys/sh/syscalls.c: Ditto.
4150         * libc/time/time.c (time): Change call to _gettimeofday_r
4151         to pass NULL as 2nd argument.
4152
4153 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4154
4155         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4156         * libc/sys/linux/intl/l10nflist.c: Ditto.
4157
4158 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4159
4160         * libc/include/wchar.h: Add prototype for wcsxfrm.
4161         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4162         (CHEWOUT_FILES): Add wcsxfrm.def.
4163         * libc/string/Makefile.in: Regenerate.
4164         * libc/string/wcsxfrm.c: New file.
4165         * libc/string/wcstrings.tex: Add wcsxfrm.
4166
4167 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4168
4169         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4170         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4171         stpncpy.c.
4172         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4173         * libc/string/Makefile.in: Regenerate.
4174         * libc/string/stpcpy.c: New file.
4175         * libc/string/stpncpy.c: New file.
4176         * libc/string/strings.tex: Add stpcpy and stpncpy.
4177
4178 2007-06-27  Eric Blake  <ebb9@byu.net>
4179
4180         Support __func__ in assert, as required by C99.
4181         * libc/stdlib/assert.c (__assert_func): New function.
4182         (__assert): Use __assert_func.
4183         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4184         possible.
4185
4186 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4187
4188         * libc/machine/spu/perror.c: Pass errno as the second argument to
4189         the assist call.
4190
4191 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4192
4193         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4194         defines; expose ftruncate, truncate and sync prototypes.
4195
4196 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4197
4198         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4199         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4200         visible.
4201
4202 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4203
4204         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4205         from a dropped patch.
4206         * libc/machine/spu/Makefile.in: Regenerate.
4207
4208 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4209
4210         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4211         it just calls open with appropriate arguments.
4212         * libc/machine/spu/Makefile.am: Add creat.c.
4213         * libc/machine/spu/Makefile.in: Regenerate.
4214
4215 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4216
4217         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4218         I accidentally dropped.
4219         * libc/machine/spu/Makefile.in: Regenerated.
4220
4221 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4222
4223         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4224         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4225         form and move outside of OS flag checks.
4226         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4227         * libc/machine/spu/Makefile.in: Regenerate.
4228         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4229         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4230
4231 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4232
4233         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4234         Define confstr constants for Cygwin.  Add comment.
4235
4236 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4237
4238         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4239         file-handle and a direct syscall, just use _open.
4240         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4241         file-handle.
4242
4243         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4244         passing on the exit value.
4245
4246 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4247
4248         * libc/string/strcasestr.c: New file.
4249         * libc/include/string.h: Add strcasestr.
4250         * libc/string/strings.tex: Add strcasestr.
4251         * libc/string/Makefile.am: Ditto.
4252         * libc/string/Makefile.in: Regenerated.
4253
4254 2007-06-06  Christian Groessler  <chris@groessler.org>
4255
4256         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4257         rnd is done after the last local variable declaration.
4258
4259 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4260
4261         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4262
4263 2007-06-05  Christian Groessler  <chris@groessler.org>
4264
4265         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4266         declaration to top of function in keeping with C89 standard.
4267
4268 2007-06-04  Eric Blake  <ebb9@byu.net>
4269
4270         Implement funopen, fopencookie.
4271         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4272         Switch to reentrant callbacks.
4273         * libc/include/stdio.h (funopen): Fix declaration.
4274         (fopencookie): Declare.
4275         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4276         (__sseek64, __swrite64): Fix prototypes.
4277         [__SCLE]: Pull in setmode declaration.
4278         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4279         reentrancy.
4280         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4281         (__sseek64, __swrite64): Fix reentrancy.
4282         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4283         reentrancy.
4284         * libc/stdio/ftell.c (_ftell_r): Likewise.
4285         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4286         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4287         * libc/stdio/freopen.c (_freopen_r): Likewise.
4288         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4289         * libc/stdio/refill.c (__srefill_r): Likewise.
4290         * libc/stdio/siscanf.c (eofread): Likewise.
4291         * libc/stdio/sscanf.c (eofread): Likewise.
4292         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4293         * libc/stdio/vsscanf.c (eofread1): Likewise.
4294         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4295         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4296         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4297         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4298         could be fixed.
4299         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4300         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4301         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4302         new files.
4303         * libc/stdio/Makefile.in: Regenerate.
4304
4305 2007-05-29  Eric Blake  <ebb9@byu.net>
4306
4307         Avoid more compiler warnings.
4308         * libc/stdlib/btowc.c: Add missing header.
4309         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
4310         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
4311         * libc/stdlib/wctob.c: Add missing header.
4312         * libc/string/strcpy.c (strcpy): Avoid warnings.
4313         * libc/string/strrchr.c (strrchr): Likewise.
4314
4315 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
4316
4317         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
4318         argument.
4319         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
4320         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
4321         on empty input strings.
4322         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
4323         looping through argz.
4324         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
4325
4326 2007-05-27  Brian Dessent  <brian@dessent.net>
4327
4328         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
4329         handling %p.
4330
4331 2007-05-25  Eric Blake  <ebb9@byu.net>
4332
4333         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
4334
4335 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
4336             Charles Wilson  <libtool@cwilson.fastmail.fm>
4337
4338         * libtool.m4: removed
4339         * configure.in: invoke _LD_DECL_SED before conditionally initializing
4340         libtool.  Move AC_PROG_AWK outside conditional.
4341         * libc/sys/linux/configure.in: Ditto.
4342         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4343         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4344         * libc/sys/linux/machine/i386/configure.in: Ditto.
4345
4346         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
4347         initializing libtool.
4348         * libc/configure.in: Ditto.
4349         * libc/machine/configure.in: Ditto.
4350         * libc/machine/i386/configure.in: Ditto.
4351         * libc/sys/configure.in: Ditto.
4352         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4353         * libc/sys/linux/machine/configure.in: Ditto.
4354         * libm/configure.in: Ditto.
4355         * libm/machine/configure.in: Ditto.
4356
4357         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
4358         * doc/Makefile.am: Ditto.
4359         * iconvdata/Makefile.am: Ditto.
4360         * libc/Makefile.am: Ditto.
4361         * libc/machine/Makefile.am: Ditto.
4362         * libc/machine/a29k/Makefile.am: Ditto.
4363         * libc/machine/arm/Makefile.am: Ditto.
4364         * libc/machine/bfin/Makefile.am: Ditto.
4365         * libc/machine/cris/Makefile.am: Ditto.
4366         * libc/machine/crx/Makefile.am: Ditto.
4367         * libc/machine/d10v/Makefile.am: Ditto.
4368         * libc/machine/d30v/Makefile.am: Ditto.
4369         * libc/machine/fr30/Makefile.am: Ditto.
4370         * libc/machine/frv/Makefile.am: Ditto.
4371         * libc/machine/h8300/Makefile.am: Ditto.
4372         * libc/machine/h8500/Makefile.am: Ditto.
4373         * libc/machine/hppa/Makefile.am: Ditto.
4374         * libc/machine/i386/Makefile.am: Ditto.
4375         * libc/machine/i960/Makefile.am: Ditto.
4376         * libc/machine/iq2000/Makefile.am: Ditto.
4377         * libc/machine/m32c/Makefile.am: Ditto.
4378         * libc/machine/m32r/Makefile.am: Ditto.
4379         * libc/machine/m68hc11/Makefile.am: Ditto.
4380         * libc/machine/m68k/Makefile.am: Ditto.
4381         * libc/machine/m88k/Makefile.am: Ditto.
4382         * libc/machine/mips/Makefile.am: Ditto.
4383         * libc/machine/mn10200/Makefile.am: Ditto.
4384         * libc/machine/mn10300/Makefile.am: Ditto.
4385         * libc/machine/mt/Makefile.am: Ditto.
4386         * libc/machine/necv70/Makefile.am: Ditto.
4387         * libc/machine/powerpc/Makefile.am: Ditto.
4388         * libc/machine/sh/Makefile.am: Ditto.
4389         * libc/machine/sparc/Makefile.am: Ditto.
4390         * libc/machine/spu/Makefile.am: Ditto.
4391         * libc/machine/tic4x/Makefile.am: Ditto.
4392         * libc/machine/tic80/Makefile.am: Ditto.
4393         * libc/machine/v850/Makefile.am: Ditto.
4394         * libc/machine/w65/Makefile.am: Ditto.
4395         * libc/machine/xscale/Makefile.am: Ditto.
4396         * libc/machine/xstormy16/Makefile.am: Ditto.
4397         * libc/machine/z8k/Makefile.am: Ditto.
4398         * libc/sys/Makefile.am: Ditto.
4399         * libc/sys/a29khif/Makefile.am: Ditto.
4400         * libc/sys/arc/Makefile.am: Ditto.
4401         * libc/sys/arm/Makefile.am: Ditto.
4402         * libc/sys/d10v/Makefile.am: Ditto.
4403         * libc/sys/decstation/Makefile.am: Ditto.
4404         * libc/sys/h8300hms/Makefile.am: Ditto.
4405         * libc/sys/h8500hms/Makefile.am: Ditto.
4406         * libc/sys/linux/Makefile.am: Ditto.
4407         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4408         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4409         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4410         * libc/sys/linux/machine/Makefile.am: Ditto.
4411         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4412         * libc/sys/m88kbug/Makefile.am: Ditto.
4413         * libc/sys/mmixware/Makefile.am: Ditto.
4414         * libc/sys/netware/Makefile.am: Ditto.
4415         * libc/sys/rdos/Makefile.am: Ditto.
4416         * libc/sys/rtems/Makefile.am: Ditto.
4417         * libc/sys/sh/Makefile.am: Ditto.
4418         * libc/sys/sparc64/Makefile.am: Ditto.
4419         * libc/sys/sun4/Makefile.am: Ditto.
4420         * libc/sys/sysmec/Makefile.am: Ditto.
4421         * libc/sys/sysnec810/Makefile.am: Ditto.
4422         * libc/sys/sysnecv850/Makefile.am: Ditto.
4423         * libc/sys/sysvi386/Makefile.am: Ditto.
4424         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4425         * libc/sys/tic80/Makefile.am: Ditto.
4426         * libc/sys/w65/Makefile.am: Ditto.
4427         * libc/sys/z8ksim/Makefile.am: Ditto.
4428         * libm/Makefile.am: Ditto.
4429         * libm/machine/Makefile.am: Ditto.
4430         * libm/machine/i386/Makefile.am: Ditto.
4431         * libm/machine/spu/Makefile.am: Ditto.
4432
4433         * aclocal.m4: Regenerate.
4434         * iconvdata/aclocal.m4: Regenerate.
4435         * libc/aclocal.m4: Regenerate.
4436         * libc/machine/aclocal.m4: Regenerate.
4437         * libc/machine/i386/aclocal.m4: Regenerate.
4438         * libc/sys/aclocal.m4: Regenerate.
4439         * libc/sys/linux/aclocal.m4: Regenerate.
4440         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
4441         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
4442         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
4443         * libc/sys/linux/machine/aclocal.m4: Regenerate.
4444         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
4445         * libm/aclocal.m4: Regenerate.
4446         * libm/machine/aclocal.m4: Regenerate.
4447         * libm/machine/i386/aclocal.m4: Regenerate.
4448
4449         * Makefile.in: Regenerate.
4450         * doc/Makefile.in: Regenerate.
4451         * iconvdata/Makefile.in: Regenerate.
4452         * libc/Makefile.in: Regenerate.
4453         * libc/argz/Makefile.in: Regenerate.
4454         * libc/ctype/Makefile.in: Regenerate.
4455         * libc/errno/Makefile.in: Regenerate.
4456         * libc/iconv/Makefile.in: Regenerate.
4457         * libc/iconv/ccs/Makefile.in: Regenerate.
4458         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
4459         * libc/iconv/ces/Makefile.in: Regenerate.
4460         * libc/iconv/lib/Makefile.in: Regenerate.
4461         * libc/locale/Makefile.in: Regenerate.
4462         * libc/machine/Makefile.in: Regenerate.
4463         * libc/machine/a29k/Makefile.in: Regenerate.
4464         * libc/machine/arm/Makefile.in: Regenerate.
4465         * libc/machine/bfin/Makefile.in: Regenerate.
4466         * libc/machine/cris/Makefile.in: Regenerate.
4467         * libc/machine/crx/Makefile.in: Regenerate.
4468         * libc/machine/d10v/Makefile.in: Regenerate.
4469         * libc/machine/d30v/Makefile.in: Regenerate.
4470         * libc/machine/fr30/Makefile.in: Regenerate.
4471         * libc/machine/frv/Makefile.in: Regenerate.
4472         * libc/machine/h8300/Makefile.in: Regenerate.
4473         * libc/machine/h8500/Makefile.in: Regenerate.
4474         * libc/machine/hppa/Makefile.in: Regenerate.
4475         * libc/machine/i386/Makefile.in: Regenerate.
4476         * libc/machine/i960/Makefile.in: Regenerate.
4477         * libc/machine/iq2000/Makefile.in: Regenerate.
4478         * libc/machine/m32c/Makefile.in: Regenerate.
4479         * libc/machine/m32r/Makefile.in: Regenerate.
4480         * libc/machine/m68hc11/Makefile.in: Regenerate.
4481         * libc/machine/m68k/Makefile.in: Regenerate.
4482         * libc/machine/m88k/Makefile.in: Regenerate.
4483         * libc/machine/mips/Makefile.in: Regenerate.
4484         * libc/machine/mn10200/Makefile.in: Regenerate.
4485         * libc/machine/mn10300/Makefile.in: Regenerate.
4486         * libc/machine/mt/Makefile.in: Regenerate.
4487         * libc/machine/necv70/Makefile.in: Regenerate.
4488         * libc/machine/powerpc/Makefile.in: Regenerate.
4489         * libc/machine/sh/Makefile.in: Regenerate.
4490         * libc/machine/sparc/Makefile.in: Regenerate.
4491         * libc/machine/spu/Makefile.in: Regenerate.
4492         * libc/machine/tic4x/Makefile.in: Regenerate.
4493         * libc/machine/tic80/Makefile.in: Regenerate.
4494         * libc/machine/v850/Makefile.in: Regenerate.
4495         * libc/machine/w65/Makefile.in: Regenerate.
4496         * libc/machine/xscale/Makefile.in: Regenerate.
4497         * libc/machine/xstormy16/Makefile.in: Regenerate.
4498         * libc/machine/z8k/Makefile.in: Regenerate.
4499         * libc/misc/Makefile.in: Regenerate.
4500         * libc/posix/Makefile.in: Regenerate.
4501         * libc/reent/Makefile.in: Regenerate.
4502         * libc/search/Makefile.in: Regenerate.
4503         * libc/signal/Makefile.in: Regenerate.
4504         * libc/stdio/Makefile.in: Regenerate.
4505         * libc/stdio64/Makefile.in: Regenerate.
4506         * libc/stdlib/Makefile.in: Regenerate.
4507         * libc/string/Makefile.in: Regenerate.
4508         * libc/sys/Makefile.in: Regenerate.
4509         * libc/sys/a29khif/Makefile.in: Regenerate.
4510         * libc/sys/arc/Makefile.in: Regenerate.
4511         * libc/sys/arm/Makefile.in: Regenerate.
4512         * libc/sys/d10v/Makefile.in: Regenerate.
4513         * libc/sys/decstation/Makefile.in: Regenerate.
4514         * libc/sys/h8300hms/Makefile.in: Regenerate.
4515         * libc/sys/h8500hms/Makefile.in: Regenerate.
4516         * libc/sys/linux/Makefile.in: Regenerate.
4517         * libc/sys/linux/argp/Makefile.in: Regenerate.
4518         * libc/sys/linux/cmath/Makefile.in: Regenerate.
4519         * libc/sys/linux/dl/Makefile.in: Regenerate.
4520         * libc/sys/linux/iconv/Makefile.in: Regenerate.
4521         * libc/sys/linux/intl/Makefile.in: Regenerate.
4522         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
4523         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
4524         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
4525         * libc/sys/linux/machine/Makefile.in: Regenerate.
4526         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
4527         * libc/sys/linux/net/Makefile.in: Regenerate.
4528         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
4529         * libc/sys/m88kbug/Makefile.in: Regenerate.
4530         * libc/sys/mmixware/Makefile.in: Regenerate.
4531         * libc/sys/netware/Makefile.in: Regenerate.
4532         * libc/sys/rdos/Makefile.in: Regenerate.
4533         * libc/sys/rtems/Makefile.in: Regenerate.
4534         * libc/sys/sh/Makefile.in: Regenerate.
4535         * libc/sys/sparc64/Makefile.in: Regenerate.
4536         * libc/sys/sun4/Makefile.in: Regenerate.
4537         * libc/sys/sysmec/Makefile.in: Regenerate.
4538         * libc/sys/sysnec810/Makefile.in: Regenerate.
4539         * libc/sys/sysnecv850/Makefile.in: Regenerate.
4540         * libc/sys/sysvi386/Makefile.in: Regenerate.
4541         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
4542         * libc/sys/tic80/Makefile.in: Regenerate.
4543         * libc/sys/w65/Makefile.in: Regenerate.
4544         * libc/sys/z8ksim/Makefile.in: Regenerate.
4545         * libc/syscalls/Makefile.in: Regenerate.
4546         * libc/time/Makefile.in: Regenerate.
4547         * libc/unix/Makefile.in: Regenerate.
4548         * libm/Makefile.in: Regenerate.
4549         * libm/common/Makefile.in: Regenerate.
4550         * libm/machine/Makefile.in: Regenerate.
4551         * libm/machine/i386/Makefile.in: Regenerate.
4552         * libm/machine/spu/Makefile.in: Regenerate.
4553         * libm/math/Makefile.in: Regenerate.
4554         * libm/mathfp/Makefile.in: Regenerate.
4555
4556         * configure: Regenerate.
4557         * iconvdata/configure: Regenerate.
4558         * libc/configure: Regenerate.
4559         * libc/machine/configure: Regenerate.
4560         * libc/machine/i386/configure: Regenerate.
4561         * libc/sys/configure: Regenerate.
4562         * libc/sys/linux/configure: Regenerate.
4563         * libc/sys/linux/linuxthreads/configure: Regenerate.
4564         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
4565         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
4566         * libc/sys/linux/machine/configure: Regenerate.
4567         * libc/sys/linux/machine/i386/configure: Regenerate.
4568         * libm/configure: Regenerate.
4569         * libm/machine/configure: Regenerate.
4570         * libm/machine/i386/configure: Regenerate.
4571
4572 2007-05-23  Eric Blake  <ebb9@byu.net>
4573
4574         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
4575         sizeof(void*) is 8 but sizeof(long) is 4.
4576         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
4577         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
4578         to fix reentrancy and bug on encoding error in multibyte locales.
4579         Always return EOF on read error.
4580
4581 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
4582
4583         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
4584         prototype.
4585         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
4586         instead of the slot 0 value, remove any now unused variables, and
4587         for some cases, now store the result in an int vs int*.
4588         * libc/machine/spu/feof.c: Ditto.
4589         * libc/machine/spu/ferror.c: Ditto.
4590         * libc/machine/spu/fflush.c: Ditto.
4591         * libc/machine/spu/fgetc.c: Ditto.
4592         * libc/machine/spu/fgetpos.c: Ditto.
4593         * libc/machine/spu/fgets.c: Ditto.
4594         * libc/machine/spu/fileno.c: Ditto.
4595         * libc/machine/spu/fopen.c: Ditto.
4596         * libc/machine/spu/fprintf.c: Ditto.
4597         * libc/machine/spu/fputc.c: Ditto.
4598         * libc/machine/spu/fputs.c: Ditto.
4599         * libc/machine/spu/fread.c: Ditto.
4600         * libc/machine/spu/freopen.c: Ditto.
4601         * libc/machine/spu/fscanf.c: Ditto.
4602         * libc/machine/spu/fseek.c: Ditto.
4603         * libc/machine/spu/fsetpos.c: Ditto.
4604         * libc/machine/spu/ftell.c: Ditto.
4605         * libc/machine/spu/fwrite.c: Ditto.
4606         * libc/machine/spu/getc.c: Ditto.
4607         * libc/machine/spu/getchar.c: Ditto.
4608         * libc/machine/spu/gets.c: Ditto.
4609         * libc/machine/spu/printf.c: Ditto.
4610         * libc/machine/spu/putc.c: Ditto.
4611         * libc/machine/spu/putchar.c: Ditto.
4612         * libc/machine/spu/puts.c: Ditto.
4613         * libc/machine/spu/remove.c: Ditto.
4614         * libc/machine/spu/rename.c: Ditto.
4615         * libc/machine/spu/scanf.c: Ditto.
4616         * libc/machine/spu/setvbuf.c: Ditto.
4617         * libc/machine/spu/snprintf.c: Ditto.
4618         * libc/machine/spu/sprintf.c: Ditto.
4619         * libc/machine/spu/sscanf.c: Ditto.
4620         * libc/machine/spu/tmpfile.c: Ditto.
4621         * libc/machine/spu/tmpnam.c: Ditto.
4622         * libc/machine/spu/ungetc.c: Ditto.
4623         * libc/machine/spu/vfprintf.c: Ditto.
4624         * libc/machine/spu/vfscanf.c: Ditto.
4625         * libc/machine/spu/vprintf.c: Ditto.
4626         * libc/machine/spu/vscanf.c: Ditto.
4627         * libc/machine/spu/vsnprintf.c: Ditto.
4628         * libc/machine/spu/vsprintf.c: Ditto.
4629         * libc/machine/spu/vsscanf.c: Ditto.
4630
4631 2007-05-23  Eric Blake  <ebb9@byu.net>
4632
4633         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
4634         Avoid warning when !FLOATING_POINT.
4635         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
4636         slightly.
4637
4638 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
4639
4640         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
4641         to zero.
4642         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
4643         use with C++.
4644
4645 2007-05-18  Eric Blake  <ebb9@byu.net>
4646
4647         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
4648         compilers.
4649         * libc/stdio/vfscanf.c: Likewise.
4650
4651 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
4652
4653         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
4654         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
4655         * libm/math/wf_atan2.c: Ditto.
4656
4657 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
4658
4659         * libm/common/Makefile.am: Add support for exp10, exp10f,
4660         pow10, and pow10f functions.
4661         * libm/common/Makefile.in: Regenerated.
4662         * libm/common/s_pow10.c: New file.
4663         * libm/common/sf_pow10.c: Ditto.
4664         * libm/common/s_exp10.c: Ditto.
4665         * libm/common/sf_exp10.c: Ditto.
4666         * libc/include/math.h [!pow10]: New pow10 prototype.
4667         [!pow10f]: New pow10f prototype.
4668         [!exp10]: New exp10 prototype.
4669         [!exp10f]: New exp10f prototype.
4670
4671 2007-05-17  Charles Wilson  <cygwin@...>
4672
4673         * stdio/tmpfile.c: Include <sys/stat.h>.
4674         * stdio64/tmpfile64.c: Ditto.
4675
4676 2007-05-16  Eric Blake  <ebb9@byu.net>
4677
4678         Close security hole in tmpfile.
4679         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
4680         generation and opening the fd.
4681         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
4682
4683         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
4684         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
4685         required by POSIX.
4686         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
4687         avoid clash with <math.h>.
4688
4689         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
4690         * libc/search/hash.c (__hash_open): Likewise.
4691
4692 2007-05-14 Eric Blake <ebb9@byu.net>
4693
4694         Reduce stack size of *printf.
4695         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
4696         in %f.  Avoid malloc when possible for %S.
4697         (BUF): Improve stack locality by using smaller size.
4698         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
4699         (exponent): Use smaller stack size.
4700
4701 2007-05-11  Eric Blake  <ebb9@byu.net>
4702
4703         Minimize printf/scanf size on platforms that don't need C99.
4704         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
4705         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
4706         * configure.in (newlib-io-c99-formats): New configure option.
4707         (_WANT_IO_C99_FORMATS): Define appropriately.
4708         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
4709         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
4710         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
4711         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
4712         Likewise.
4713         * configure: Regenerate.
4714
4715         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
4716         (get_arg): Support '%a' and '%A'.
4717
4718 2007-05-09  Eric Blake  <ebb9@byu.net>
4719
4720         Allow zero size with non-null buf in *asnprintf.
4721         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
4722         user's buf.
4723         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
4724         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4725         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
4726
4727 2007-05-07  Charles Wilson  <cygwin@...>
4728
4729         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
4730
4731 2007-05-03  Eric Blake  <ebb9@byu.net>
4732
4733         Add support for asnprintf, and improve *printf documentation.
4734         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
4735         (ELIX_2_SOURCES): ...to this.
4736         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
4737         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
4738         (CHEWOUT_FILES): Include diprintf in documentation.
4739         * libc/stdio/Makefile.in: Regenerate.
4740         * libc/stdio/diprintf.c: Improve documentation.
4741         * libc/stdio/dprintf.c: Likewise.
4742         * libc/stdio/siprintf.c: Likewise.
4743         * libc/stdio/sprintf.c: Likewise.
4744         * libc/stdio/vfprintf.c: Likewise.
4745         * libc/stdio/viprintf.c: Likewise.
4746         * libc/stdio/vsniprintf.c: Consolidate documentation.
4747         * libc/stdio/asiprintf.c: Refer to documentation.
4748         * libc/stdio/asprintf.c: Likewise.
4749         * libc/stdio/fiprintf.c: Likewise.
4750         * libc/stdio/fprintf.c: Likewise.
4751         * libc/stdio/iprintf.c: Likewise.
4752         * libc/stdio/printf.c: Likewise.
4753         * libc/stdio/sniprintf.c: Likewise.
4754         * libc/stdio/vdiprintf.c: Likewise.
4755         * libc/stdio/vdprintf.c: Likewise.
4756         * libc/stdio/vsiprintf.c: Likewise.
4757         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
4758         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
4759         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
4760         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
4761         file.
4762         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
4763         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
4764         typical case.
4765         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
4766         * libc/include/stdio.h: Add prototypes for new functions; sort
4767         existing functions.
4768
4769 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
4770
4771         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4772         and memset.S.
4773         * libc/machine/m68k/Makefile.in: Regenerate.
4774         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
4775         * libc/machine/m68k/memset.S: Likewise.
4776
4777 2007-05-01  Eric Blake  <ebb9@byu.net>
4778
4779         * libc/stdio64/local64.h: Delete, move contents to...
4780         * libc/stdio/local.h: ...here.
4781         * libc/stdio64/fdopen64.c: Update includes.
4782         * libc/stdio64/fopen64.c: Likewise.
4783         * libc/stdio64/freopen64.c: Likewise.
4784         * libc/stdio64/fseeko64.c: Likewise.
4785         * libc/stdio64/ftello64.c: Likewise.
4786         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
4787         and stderr with 64-bit offset.
4788         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
4789         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
4790         * libc/stdio/mktemp.c (_gettemp): Likewise.
4791
4792 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
4793
4794         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
4795         to treatment of NaN and +-inf arguments.
4796         * libm/math/ef_pow.c: Ditto.
4797         * libm/math/w_pow.c: Ditto.
4798         * libm/math/wf_pow.c: Ditto.
4799         * libm/math/w_acos.c: Fix domain errors to return NaN.
4800         * libm/math/w_asin.c: Ditto.
4801         * libm/math/wf_acos.c: Ditto.
4802         * libm/math/wf_asin.c: Ditto.
4803         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
4804         * libm/math/wf_log.c: Ditto.
4805         * libm/math/wf_log10.c: Ditto.
4806         * libm/math/w_log10.c: Ditto.
4807
4808 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
4809
4810         * libc/machine/m68k/Makefile.am: Temporarily remove
4811         memcpy.S and memset.S until logic can be confirmed for
4812         !(__mcoldfile__) case.
4813         * libc/machine/m68k/Makefile.in: Regenerated.
4814
4815 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
4816
4817         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4818         and memset.S.
4819         * libc/machine/m68k/Makefile.in: Regenerate.
4820         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
4821
4822 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
4823
4824         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
4825         overridden via machine/ieeefp.h.
4826         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
4827         macros for isnan and related macros.
4828         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
4829         overridden via machine/ieeefp.h.
4830         * libm/machine/spu/Makefile.am: Add new files.
4831         * libm/machine/spu/Makefile.in: Autogenerate with new files.
4832         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
4833         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
4834         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
4835         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
4836         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
4837         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
4838         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
4839
4840 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
4841
4842         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
4843         * libm/common/sf_fpclassify.c: ...here.  New file.
4844         * libm/common/Makefile.am: Add sf_fpclassify.c.
4845         * libm/common/Makefile.in: Regenerated.
4846
4847 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4848
4849         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
4850         ppu linux values. This file is a copy of the cris/sys/errno.h plus
4851         a few changes (see spu errno.h comments).
4852
4853 2007-04-25  Eric Blake  <ebb9@byu.net>
4854
4855         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
4856         that promote to int.
4857
4858 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4859
4860         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
4861         we clear the proper bits in the fpscr, and don't set some random ones.
4862
4863 2007-04-24  Eric Blake  <ebb9@byu.net>
4864
4865         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
4866         or NaN with %05f.
4867
4868         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
4869         _MB_CAPABLE.
4870
4871         * libc/include/limits.h (NL_ARGMAX): Define a default value.
4872         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
4873         NL_ARGMAX, if present.
4874
4875 2007-04-23  Brian Dessent  <brian@dessent.net>
4876
4877         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
4878         has been specified with types 'f', 'F', 'g', or 'G', ensure the
4879         trailing decimal is printed.
4880
4881 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
4882
4883         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
4884         file.  Override Autoconf-2.59's version of these macros with
4885         fixed handling of multiple adjacent whitespace in arguments.
4886         * aclocal.m4: Regenerated forcefully.
4887         * configure: Ditto.
4888         * Makefile.in: Ditto.
4889         * libc/*Makefile.in: Ditto.
4890         * libc/*aclocal.m4: Ditto.
4891         * libc/*configure: Ditto.
4892         * libm/*Makefile.in: Ditto.
4893         * libm/*aclocal.m4: Ditto.
4894         * libm/*configure: Ditto.
4895
4896 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
4897
4898         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
4899         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
4900         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
4901         * libc/sys/arc/Makefile.in: Regenerated.
4902
4903 2007-04-17  Brian Dessent  <brian@dessent.net>
4904
4905         * libc/stdio/sscanf.c: Update documentation comments.
4906         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
4907
4908 2007-04-12  Eric Blake  <ebb9@byu.net>
4909
4910         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
4911         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
4912         (get_arg): Handle %1$F, %1$n.
4913
4914 2007-04-10  Eric Blake  <ebb9@byu.net>
4915
4916         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
4917         CFLAGS=-O0.
4918
4919 2007-04-09  Eric Blake  <ebb9@byu.net>
4920
4921         * libc/include/stdio.h: Add gcc format attributes to printf and
4922         scanf families.
4923
4924 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
4925
4926         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
4927         even if the passed in length n is shorter than the source string.
4928         This matches both the non-spu specific and the glibc strxfrm
4929         behaviour.
4930
4931 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
4932
4933         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
4934         functions registering additional atexit functions.
4935
4936         * testsuite/lib/flags.exp (newlib_include_flags): Drop
4937         -I${newlib_dir}.
4938
4939 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
4940
4941         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
4942         prototype.
4943         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
4944         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
4945         * libc/machine/spu/fclose.c: Ditto.
4946         * libc/machine/spu/feof.c: Ditto.
4947         * libc/machine/spu/ferror.c: Ditto.
4948         * libc/machine/spu/fflush.c: Ditto.
4949         * libc/machine/spu/fgetc.c: Ditto.
4950         * libc/machine/spu/fgetpos.c: Ditto.
4951         * libc/machine/spu/fgets.c: Ditto.
4952         * libc/machine/spu/fileno.c: Ditto.
4953         * libc/machine/spu/fopen.c: Ditto.
4954         * libc/machine/spu/fprintf.c: Ditto.
4955         * libc/machine/spu/fputc.c: Ditto.
4956         * libc/machine/spu/fputs.c: Ditto.
4957         * libc/machine/spu/fread.c: Ditto.
4958         * libc/machine/spu/freopen.c: Ditto.
4959         * libc/machine/spu/fscanf.c: Ditto.
4960         * libc/machine/spu/fseek.c: Ditto.
4961         * libc/machine/spu/fsetpos.c: Ditto.
4962         * libc/machine/spu/ftell.c: Ditto.
4963         * libc/machine/spu/fwrite.c: Ditto.
4964         * libc/machine/spu/getc.c: Ditto.
4965         * libc/machine/spu/getchar.c: Ditto.
4966         * libc/machine/spu/gets.c: Ditto.
4967         * libc/machine/spu/perror.c: Ditto.
4968         * libc/machine/spu/printf.c: Ditto.
4969         * libc/machine/spu/putc.c: Ditto.
4970         * libc/machine/spu/putchar.c: Ditto.
4971         * libc/machine/spu/puts.c: Ditto.
4972         * libc/machine/spu/remove.c: Ditto.
4973         * libc/machine/spu/rename.c: Ditto.
4974         * libc/machine/spu/rewind.c: Ditto.
4975         * libc/machine/spu/scanf.c: Ditto.
4976         * libc/machine/spu/setbuf.c: Ditto.
4977         * libc/machine/spu/setvbuf.c: Ditto.
4978         * libc/machine/spu/snprintf.c: Ditto.
4979         * libc/machine/spu/sprintf.c: Ditto.
4980         * libc/machine/spu/sscanf.c: Ditto.
4981         * libc/machine/spu/tmpfile.c: Ditto.
4982         * libc/machine/spu/tmpnam.c: Ditto.
4983         * libc/machine/spu/ungetc.c: Ditto.
4984         * libc/machine/spu/vfprintf.c: Ditto.
4985         * libc/machine/spu/vfscanf.c: Ditto.
4986         * libc/machine/spu/vprintf.c: Ditto.
4987         * libc/machine/spu/vscanf.c: Ditto.
4988         * libc/machine/spu/vsnprintf.c: Ditto.
4989         * libc/machine/spu/vsprintf.c: Ditto.
4990         * libc/machine/spu/vsscanf.c: Ditto.
4991
4992 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
4993
4994         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
4995
4996 2007-04-04  Eric Blake  <ebb9@byu.net>
4997
4998         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
4999         (asiprintf): Avoid overhead.
5000         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
5001         (asprintf): Avoid overhead.
5002         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
5003         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
5004         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
5005         (fiprintf): Avoid overhead.
5006         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
5007         (fprintf): Avoid overhead.
5008         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
5009         (iprintf): Avoid overhead.
5010         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
5011         (printf): Avoid overhead.
5012         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
5013         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
5014         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
5015         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
5016         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
5017         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
5018         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
5019         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
5020         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
5021         vdiprintf.c.
5022         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
5023         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
5024
5025 2007-03-30  Dave Korn  <dave.korn@artimi.com>
5026
5027         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
5028         conflicting inline semantics between C99 and GNU89.
5029         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
5030         compatible with -fkeep-inline-functions usage.
5031         (__sputc_r):  Likewise for consistency even though disabled.
5032
5033 2007-03-29  Nick Clifton  <nickc@redhat.com>
5034
5035         Reflect changes made to generic vfprintf.c:
5036         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5037         and add a "struct reent *" argument.
5038         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5039         argument and call _VFPRINTF_R instead of VFPRINTF.
5040         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5041         Fix uses of __sprint() and __sbprintf.
5042
5043 2007-03-20  Nick Clifton  <nickc@redhat.com>
5044
5045         Reflect changes made to generic vfprintf.c:
5046         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5047         and add a "struct reent *" argument.
5048         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5049         argument and call _VFPRINTF_R instead of VFPRINTF.
5050         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5051         Fix uses of __sprint() and __sbprintf.
5052
5053 2007-03-16  Charles Wilson  <cygwin@...>
5054
5055         * libc/argz/argz_insert.c: "before" pointer is
5056         invalid after *argz realloc.  Compute offset
5057         between "before" and *argz, and use it after
5058         reallocation instead.
5059
5060 2007-03-16  Eric Blake  <ebb9@byu.net>
5061
5062         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
5063         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5064
5065 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
5066
5067         * configure.in: Add new --enable-newlib-reent-small option.
5068         * configure: Regenerated.
5069         * acconfig.h: Add _WANT_REENT_SMALL.
5070         * newlib.hin: Regenerated minus PACKAGE macros to add
5071         _WANT_REENT_SMALL macro.
5072         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
5073         if not already set.
5074         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5075         there is no buffer.
5076         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5077         use reentrant pointer passed in when resetting the file
5078         pointer to one of the std streams.
5079
5080 2007-03-15  Eric Blake  <ebb9@byu.net>
5081
5082         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5083         (__smakebuf): Rename...
5084         (__smakebuf_r): to this.
5085         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5086         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5087         allocation, then rename...
5088         (__smakebuf_r): ...to this and fix reentrancy.
5089         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5090         allocation, then rename...
5091         (__swsetup_r): ...to this and fix reentrancy.
5092         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5093         * libc/stdio/refill.c (__srefill_r): Likewise.
5094         * libc/stdio/fclose.c (_fclose_r): Likewise.
5095         * libc/stdio/fread.c (_fread_r): Likewise.
5096         * libc/stdio/freopen.c (_freopen_r): Likewise.
5097         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5098         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5099         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5100         failed asprintf allocation, and fix reentrancy.
5101         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5102         as required by POSIX.
5103         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5104         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5105         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5106
5107 2007-03-12  Eric Blake  <ebb9@byu.net>
5108
5109         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5110         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5111         allocation to caller.
5112         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5113         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5114         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5115
5116 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5117
5118         * libm/math/w_pow.c: Fix typo in documentation comment.
5119
5120 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5121
5122         * libc/reent/timer.c: Removed (split into two new files).
5123         * libc/reent/timesr.c: New file for _times_r.
5124         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5125         * reent/Makefile.in: Remove timer.c, add timesr.c and
5126         gettimeofdayr.c.
5127         * libc/reent/Makefile.am: Regenerate.
5128
5129 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5130
5131         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5132
5133 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5134
5135         * libc/machine/spu/Makefile.am: Add new objects.
5136         * libc/machine/spu/Makefile.in: Regenerated.
5137         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5138         integer-only version.
5139         * libc/machine/spu/fiscanf.c: Ditto.
5140         * libc/machine/spu/iprintf.c: Ditto.
5141         * libc/machine/spu/iscanf.c: Ditto.
5142         * libc/machine/spu/siprintf.c: Ditto.
5143         * libc/machine/spu/siscanf.c: Ditto.
5144         * libc/machine/spu/sniprintf.c: Ditto.
5145         * libc/machine/spu/vfiprintf.c: Ditto.
5146         * libc/machine/spu/vfiscanf.c: Ditto.
5147         * libc/machine/spu/viprintf.c: Ditto.
5148         * libc/machine/spu/viscanf.c: Ditto.
5149         * libc/machine/spu/vsiprintf.c: Ditto.
5150         * libc/machine/spu/vsiscanf.c: Ditto.
5151         * libc/machine/spu/vsniprintf.c: Ditto.
5152         * libc/machine/spu/fprintf.c: Add support for integer-only
5153         version.
5154         * libc/machine/spu/fscanf.c: Ditto.
5155         * libc/machine/spu/printf.c: Ditto.
5156         * libc/machine/spu/scanf.c: Ditto.
5157         * libc/machine/spu/snprintf.c: Ditto.
5158         * libc/machine/spu/sprintf.c: Ditto.
5159         * libc/machine/spu/sscanf.c: Ditto.
5160         * libc/machine/spu/vfprintf.c: Ditto.
5161         * libc/machine/spu/vfscanf.c: Ditto.
5162         * libc/machine/spu/vprintf.c: Ditto.
5163         * libc/machine/spu/vscanf.c: Ditto.
5164         * libc/machine/spu/vsnprintf.c: Ditto.
5165         * libc/machine/spu/vsprintf.c: Ditto.
5166         * libc/machine/spu/vsscanf.c: Ditto.
5167
5168 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5169
5170         * libc/include/stdio.h: Add declaration for vsiprintf.
5171
5172 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5173
5174         Add a floating point environment for SPU (cell):
5175
5176         * configure.host: add libm_machine_dir=spu.
5177         * libm/machine/configure: Add spu.
5178         * libm/machine/configure.in: regenerated with spu added.
5179         * libc/machine/spu/include/fenv.h: New file.
5180         * libc/machine/spu/sys/fenv.h: Ditto.
5181         * libm/machine/spu/Makefile.am: Ditto.
5182         * libm/machine/spu/Makefile.in: Ditto.
5183         * libm/machine/spu/aclocal.m4: Ditto.
5184         * libm/machine/spu/configure: Ditto.
5185         * libm/machine/spu/configure.in: Ditto.
5186         * libm/machine/spu/fe_dfl_env.c: Ditto.
5187         * libm/machine/spu/feclearexcept.c: Ditto.
5188         * libm/machine/spu/fegetenv.c: Ditto.
5189         * libm/machine/spu/fegetexceptflag.c: Ditto.
5190         * libm/machine/spu/fegetround.c: Ditto.
5191         * libm/machine/spu/feholdexcept.c: Ditto.
5192         * libm/machine/spu/feraiseexcept.c: Ditto.
5193         * libm/machine/spu/fesetenv.c: Ditto.
5194         * libm/machine/spu/fesetexceptflag.c: Ditto.
5195         * libm/machine/spu/fesetround.c: Ditto.
5196         * libm/machine/spu/fetestexcept.c: Ditto.
5197         * libm/machine/spu/feupdateenv.c: Ditto.
5198         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5199         * libm/machine/spu/headers/fefpscr.h: Ditto.
5200         * libm/machine/spu/headers/fegetenv.h: Ditto.
5201         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5202         * libm/machine/spu/headers/fegetround.h: Ditto.
5203         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5204         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5205         * libm/machine/spu/headers/fesetenv.h: Ditto.
5206         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5207         * libm/machine/spu/headers/fesetround.h: Ditto.
5208         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5209         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5210
5211 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5212
5213         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5214         Cygwin.
5215
5216 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5217
5218         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5219         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5220
5221 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5222
5223         * libc/include/sys/features.h: Add definition of all supported
5224         _POSIX_xxx values for Cygwin.
5225         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5226         on Cygwin.
5227         (pthread_rwlockattr_t): Ditto.
5228         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5229         required by SUSv3.  Unify formatting.
5230
5231 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5232
5233         * libc/include/sys/errno.h: Add ECANCELED.
5234
5235 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5236             Kazunori Asayama <asayama@sm.sony.co.jp>
5237
5238         * libc/machine/spu/Makefile.am: Add objects.
5239         * libc/machine/spu/Makefile.in: Regenerated.
5240         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5241         implementation.
5242         * libc/machine/spu/snprintf.c: Ditto.
5243         * libc/machine/spu/sprintf.c: Ditto.
5244         * libc/machine/spu/sscanf.c: Ditto.
5245         * libc/machine/spu/remove.c: Ditto.
5246         * libc/machine/spu/rename.c: Ditto.
5247         * libc/machine/spu/tmpnam.c: Ditto.
5248         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5249         stdio stuffs.
5250         * libc/machine/spu/vsprintf.c: Ditto.
5251
5252 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5253             Kazunori Asayama <asayama@sm.sony.co.jp>
5254
5255         * configure.host: Enable SPU specific stdio directory.
5256         * libc/machine/spu/Makefile.am: Add objects.
5257         * libc/machine/spu/Makefile.in: Regenerated.
5258         * libc/machine/spu/c99ppe.h: Add macros and function
5259         declarations to initialize SPU specific stdio stuffs.
5260         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5261         specific FILE structures.
5262         * libc/machine/spu/perror.c: Add initialization routine of
5263         stdio stuffs.
5264         * libc/machine/spu/printf.c: Ditto.
5265         * libc/machine/spu/putchar.c: Ditto.
5266         * libc/machine/spu/puts.c: Ditto.
5267         * libc/machine/spu/vprintf.c: Ditto.
5268         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5269         implementation.
5270         * libc/machine/spu/feof.c: Ditto.
5271         * libc/machine/spu/ferror.c: Ditto.
5272         * libc/machine/spu/fileno.c: Ditto.
5273         * libc/machine/spu/fopen.c: Ditto.
5274         * libc/machine/spu/fclose.c: Ditto.
5275         * libc/machine/spu/freopen.c: Ditto.
5276         * libc/machine/spu/fflush.c: Ditto.
5277         * libc/machine/spu/fseek.c: Ditto.
5278         * libc/machine/spu/ftell.c: Ditto.
5279         * libc/machine/spu/rewind.c: Ditto.
5280         * libc/machine/spu/fgetpos.c: Ditto.
5281         * libc/machine/spu/fsetpos.c: Ditto.
5282         * libc/machine/spu/fread.c: Ditto.
5283         * libc/machine/spu/fwrite.c: Ditto.
5284         * libc/machine/spu/getc.c: Ditto.
5285         * libc/machine/spu/getchar.c: Ditto.
5286         * libc/machine/spu/gets.c: Ditto.
5287         * libc/machine/spu/fgetc.c: Ditto.
5288         * libc/machine/spu/fgets.c: Ditto.
5289         * libc/machine/spu/ungetc.c: Ditto.
5290         * libc/machine/spu/putc.c: Ditto.
5291         * libc/machine/spu/fputc.c: Ditto.
5292         * libc/machine/spu/fputs.c: Ditto.
5293         * libc/machine/spu/vfprintf.c: Ditto.
5294         * libc/machine/spu/vfscanf.c: Ditto.
5295         * libc/machine/spu/fprintf.c: Ditto.
5296         * libc/machine/spu/fscanf.c: Ditto.
5297         * libc/machine/spu/scanf.c: Ditto.
5298         * libc/machine/spu/vscanf.c: Ditto.
5299         * libc/machine/spu/setbuf.c: Ditto.
5300         * libc/machine/spu/setvbuf.c: Ditto.
5301         * libc/machine/spu/tmpfile.c: Ditto.
5302
5303 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
5304
5305         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
5306         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
5307         around stdio macros that manipulate fields in the normal file
5308         structure.
5309         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
5310         <sys/custom_file.h> to define custom FILE structure.
5311         * libc/include/sys/custom_file.h: New default header file
5312         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
5313         * libc/machine/spu/sys/custom_file.h: New file.
5314
5315 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
5316
5317         * configure.host: Define stdio directory as a variable.
5318         * libc/Makefile.am: Define stdio related names
5319         as macros.
5320         * libc/configure.in: Add detection routine of stdio directory.
5321         * libc/Makefile.in: Regenerated.
5322         * libc/configure: Ditto.
5323         * libc/argz/Makefile.in: Ditto.
5324         * libc/ctype/Makefile.in: Ditto.
5325         * libc/errno/Makefile.in: Ditto.
5326         * libc/iconv/Makefile.in: Ditto.
5327         * libc/iconv/ccs/Makefile.in: Ditto.
5328         * libc/iconv/ccs/binary/Makefile.in: Ditto.
5329         * libc/iconv/ces/Makefile.in: Ditto.
5330         * libc/iconv/lib/Makefile.in: Ditto.
5331         * libc/locale/Makefile.in: Ditto.
5332         * libc/misc/Makefile.in: Ditto.
5333         * libc/posix/Makefile.in: Ditto.
5334         * libc/reent/Makefile.in: Ditto.
5335         * libc/search/Makefile.in: Ditto.
5336         * libc/signal/Makefile.in: Ditto.
5337         * libc/stdio/Makefile.in: Ditto.
5338         * libc/stdio64/Makefile.in: Ditto.
5339         * libc/stdlib/Makefile.in: Ditto.
5340         * libc/string/Makefile.in: Ditto.
5341         * libc/syscalls/Makefile.in: Ditto.
5342         * libc/time/Makefile.in: Ditto.
5343         * libc/unix/Makefile.in: Ditto.
5344
5345 2007-01-30  Ben Elliston  <bje@au.ibm.com>
5346
5347         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
5348         fmt member.
5349         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
5350         (printf): Pass fmt to va_start to suppress a warning.
5351
5352         * libc/search/hash.c (init_hash): Make `info' parameter const.
5353
5354 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
5355
5356         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
5357         * libc/machine/spu/vec_literal.h: Ditto.
5358         * libc/machine/spu/strncmp.c: Ditto.
5359
5360 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
5361             Kazu Hirata  <kazu@codesourcery.com>
5362
5363         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
5364         for E500V1 and E500V2.
5365
5366 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
5367
5368         * libm/configure.in: Always configure machine directory.
5369         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
5370         unconditionally.
5371         * libm/configure: Regenerated.
5372         * libm/Makefile.in: Ditto.
5373         * libm/*/Makefile.in: Ditto.
5374
5375 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
5376
5377         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
5378
5379 2007-01-02  Ben Elliston  <bje@au.ibm.com>
5380
5381         * doc/makedoc.c: Include <stdlib.h>.
5382         (malloc, realloc): Remove extern declarations.
5383
5384 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5385
5386         * NEWS: Update with 1.15.0 info.
5387         * README: Ditto.
5388         * acinclude.m4: Change version number to 1.15.0.
5389         * aclocal.m4: Regenerated.
5390         * configure: Ditto.
5391         * doc/aclocal.m4: Ditto.
5392         * doc/configure: Ditto.
5393         * libc/*/aclocal.m4: Ditto.
5394         * libc/*/configure: Ditto.
5395         * libc/libc.texinfo: Ditto.
5396         * libm/*/aclocal.m4: Ditto.
5397         * libm/*/configure: Ditto.
5398         * libm/libm.texinfo: Ditto.
5399         * libc/sys/linux/shared.ld: Add VERS_1.15.
5400
5401 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
5402
5403         Merge from newlib-csl-20060320-branch:
5404         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5405                     Kazu Hirata  <kazu@codesourcery.com>
5406
5407         * configure.host: Recognize fido.
5408
5409 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
5410
5411         * libc/machine/spu/c99ppe.h: New file
5412         * libc/machine/spu/perror.c: New file to override libc/stdio version.
5413         * libc/machine/spu/printf.c: New file
5414         * libc/machine/spu/putchar.c: New file
5415         * libc/machine/spu/puts.c: New file
5416         * libc/machine/spu/vprintf.c: New file
5417         * libc/machine/spu/vsnprintf.c: New file
5418         * libc/machine/spu/vsprintf.c: New file
5419         * libc/machine/spu/Makefile.am: Add new targets.
5420         * libc/machine/spu/Makefile.in: Regenerated.
5421
5422 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5423
5424         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
5425         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
5426
5427 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5428
5429         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
5430         2.6.5 version of Doug Lea's malloc which is the basis of
5431         this code.
5432
5433 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
5434
5435         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
5436
5437 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
5438             Eric Blake  <ebb9@byu.net>
5439
5440         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5441         read but unused data.
5442         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
5443         even read streams may have side effects that must happen.
5444
5445 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5446
5447         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
5448         correctly.
5449
5450 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5451
5452         * libc/include/alloca.h: Add undef alloca to work with xlc.
5453
5454 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
5455
5456         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
5457         cell spu.
5458
5459 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5460
5461         * libc/machine/spu/strncpy.c: Add padding.
5462
5463 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5464
5465         * testsuite/newlib.string/tstring.c:
5466
5467 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
5468
5469         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
5470         * libc/machine/spu/strrchr.c: Ditto.
5471
5472 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
5473
5474         * libc/include/math.h: Allow C99 functions/macros to be
5475         defined for C++ even when __STRICT_ANSI__.
5476
5477 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
5478
5479         * libc/stdio/makebuf.c (__smakebuf): If dealing with
5480         an asprintf-family buffer, make the default initial size 64.
5481
5482 2006-11-29  Eric Blake  <ebb9@byu.net>
5483
5484         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
5485         asprintf, as well as quadratic realloc behavior.
5486
5487 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
5488
5489         * libc/machine/spu/memset.c: Fix type of explicit cast.
5490         * libc/machine/spu/strncmp.c: Add explicit cast.
5491         * libc/machine/spu/strrchr.c: Ditto.
5492         * libc/machine/spu/strspn.c: Ditto.
5493
5494 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
5495
5496         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
5497         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
5498         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
5499         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
5500         * libc/machine/spu/strncat.c: Explicit cast.
5501         * libc/machine/spu/strncmp.c: Use spu_splats.
5502         * libc/machine/spu/strncpy.c: Explicit cast.
5503         * libc/machine/spu/strrchr.c: Use spu_splats.
5504         * libc/machine/spu/strspn.c: Use spu_splats.
5505
5506 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
5507
5508         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
5509
5510 2006-11-14  Eric Blake  <ebb9@byu.net>
5511
5512         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
5513         (chclass): ' is a flag.  j, t, and z are modifiers.
5514
5515 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
5516
5517         * configure.host: Add support for bfin.
5518         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
5519         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
5520         * libc/machine/bfin/aclocal.m4: Generate.
5521         * libc/machine/bfin/configure.in: New.
5522         * libc/machine/bfin/configure: Generate.
5523         * libc/machine/bfin/Makefile.am: New.
5524         * libc/machine/bfin/Makefile.in: Generate.
5525         * libc/machine/bfin/setjmp.S: New.
5526         * libc/machine/bfin/longjmp.S: New.
5527         * libc/machine/configure.in: Add bfin support.
5528         * libc/machine/configure: Generate.
5529
5530 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
5531
5532         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
5533         (_PC_FILESIZEBITS): Add definition.
5534         (_PC_2_SYMLINKS): Ditto.
5535         (_PC_SYMLINK_MAX): Ditto.
5536
5537 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
5538
5539         * libc/machine/spu/memcpy.c: Override generic function with vectorized
5540         version optimized for the cell spu.
5541         * libc/machine/spu/memmove.c: Ditto.
5542         * libc/machine/spu/memset.c: Ditto.
5543         * libc/machine/spu/strcat.c: Ditto.
5544         * libc/machine/spu/strchr.c: Ditto.
5545         * libc/machine/spu/strcmp.c: Ditto.
5546         * libc/machine/spu/strcpy.c: Ditto.
5547         * libc/machine/spu/strcspn.c: Ditto.
5548         * libc/machine/spu/strlen.c: Ditto.
5549         * libc/machine/spu/strncat.c: Ditto.
5550         * libc/machine/spu/strncmp.c: Ditto.
5551         * libc/machine/spu/strncpy.c: Ditto.
5552         * libc/machine/spu/strpbrk.c: Ditto.
5553         * libc/machine/spu/strrchr.c: Ditto.
5554         * libc/machine/spu/strspn.c: Ditto.
5555         * libc/machine/spu/strxfrm.c: Ditto.
5556         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
5557         removing altivec style initializers.
5558         * libc/machine/spu/Makefile.am: Add new files to list so they build
5559         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
5560
5561 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
5562
5563         * README: Add a brief section on how to regenerate
5564         configuration files in newlib.
5565
5566 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
5567
5568         * libc/include/math.h: (exception): Add a comment
5569         telling fixincludes that we handle C vs. C++ issue.
5570
5571 2006-10-11  Yang Tse  <yangsita@gmail.com>
5572
5573         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
5574         braced-groups.
5575
5576 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
5577
5578         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
5579
5580 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
5581
5582         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
5583         for clearerr, feof, or fileno.
5584         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
5585         the dummy std stream scheme to use pointers to const external
5586         fake files, one for each standard stream.
5587         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
5588         argument.  For _REENT_SMALL, reset the file pointer if it
5589         matches one of the fake std stream pointers.
5590         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
5591         argument.
5592         * libc/stdio/fclose.c: Ditto.
5593         * libc/stdio/feof.c: Ditto.
5594         * libc/stdio/ferror.c: Ditto.
5595         * libc/stdio/fflush.c: Ditto.
5596         * libc/stdio/fgetc.c: Ditto.
5597         * libc/stdio/fgets.c: Ditto.
5598         * libc/stdio/fileno.c: Ditto.
5599         * libc/stdio/findfp.c: Ditto.
5600         * libc/stdio/fputc.c: Ditto.
5601         * libc/stdio/fputs.c: Ditto.
5602         * libc/stdio/fread.c: Ditto.
5603         * libc/stdio/freopen.c: Ditto.
5604         * libc/stdio/fseek.c: Ditto.
5605         * libc/stdio/ftell.c: Ditto.
5606         * libc/stdio/fwrite.c: Ditto.
5607         * libc/stdio/getc.c: Ditto.
5608         * libc/stdio/getdelim.c: Ditto.
5609         * libc/stdio/putc.c: Ditto.
5610         * libc/stdio/refill.c: Ditto.
5611         * libc/stdio/setvbuf.c: Ditto.
5612         * libc/stdio/ungetc.c: Ditto.
5613         * libc/stdio/vfprintf.c: Ditto.
5614         * libc/stdio/vfscanf.c: Ditto.
5615         * libc/stdio/wbuf.c: Ditto.: Ditto.
5616         * libc/stdio/wsetup.c: Ditto.
5617         * libc/stdio64/freopen64.c: Ditto.
5618         * libc/stdio64/fseeko64.c: Ditto.
5619         * libc/stdio64/ftello64.c: Ditto.
5620         * libc/machine/powerpc/vfprintf.c: Ditto.
5621         * libc/machine/powerpc/vfscanf.c: Ditto.
5622
5623 2006-09-22  Paul Brook  <paul@codesourcery.com>
5624
5625         * libc/include/sys/reent.h: Define and use __reent_assert.
5626
5627 2006-09-13  Joel Sherrill <joel@oarcorp.com>
5628
5629         * libc/include/pthread.h: Add pthread barriers,
5630         rwlocks, and spinlocks.  Change const to
5631         _CONST and prefix parameter names with
5632         an underscore.
5633         * libc/include/sys/types.h: Add id and attribute
5634         types for barriers, wrlocks, and spinlocks.
5635         * libc/include/sys/features.h: Enable barriers,
5636         wrlocks, and spinlocks for RTEMS.
5637
5638 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
5639
5640         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
5641         supposed to be writable.
5642         * libm/common/s_lib_ver.c: Ditto.
5643
5644 2006-09-12  Paul Brook  <paul@codesourcery.com>
5645
5646         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
5647
5648 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
5649
5650
5651         * libc/machine/xstormy16/Makefile.am:
5652         Add $(lpfx) prefix to LIBADD objects.
5653         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
5654         * libc/machine/xstormy16/Makefile.in: Regenerated.
5655
5656 2006-09-06  Eric Blake  <ebb9@byu.net>
5657
5658         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
5659         't', and 'z' modifiers.
5660
5661 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
5662
5663         Merge from newlib-csl-20060320-branch:
5664         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
5665
5666         * configure.host: Tell it we have _rename and _system when
5667         building m68k-unknown-elf.
5668
5669 2006-08-29  Paul Brook  <paul@codesourcery.com>
5670
5671         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
5672
5673 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
5674
5675         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
5676         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
5677         This is needed to build all AVR and H8300 RTEMS multilib variants.
5678
5679 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
5680
5681         * libc/machine/configure.in: Add configuration for SPU.
5682         * libc/machine/configure: Regenerated.
5683         * libc/machine/spu/memcpy.c: Include string.h.
5684
5685 2006-08-22  Eric Blake  <ebb9@byu.net>
5686
5687         * libc/posix/popen.c (popen): Don't close output end of pipe in
5688         child if stdout was closed on entry.
5689         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
5690
5691 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
5692
5693         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
5694         line.
5695
5696 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
5697
5698         * libc/time/gmtime.c: Correct man page; clock is not a
5699         local time and no conversion occurs.
5700
5701 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5702
5703         * configure.host (newlib_cflags) [spu]: Add special compiler
5704         options to reduce size.
5705
5706 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5707
5708         * configure.host: Add spu support.
5709         * libc/include/stdint.h: Ditto.
5710         * libc/include/machine/ieeefp.h: Ditto.
5711         * libc/include/machine/setjmp.h: Ditto.
5712         * libc/include/sys/config.h: Ditto.
5713         * libc/include/sys/types.h: Ditto.
5714         * libc/machine/spu/Makefile.am: New file.
5715         * libc/machine/spu/Makefile.in: Ditto.
5716         * libc/machine/spu/aclocal.m4: Ditto.
5717         * libc/machine/spu/configure: Ditto.
5718         * libc/machine/spu/configure.in: Ditto.
5719         * libc/machine/spu/memcpy.c: Ditto.
5720         * libc/machine/spu/setjmp.S: Ditto.
5721
5722 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5723
5724         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
5725         properly.
5726
5727 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
5728
5729         * libc/Makefile.am: Add libc_TEXINFOS dependency on
5730         generated .texi files.
5731         * libm/Makefile.am: Add libm_TEXINFOS dependency on
5732         generated .texi files.
5733         * libc/Makefile.in: Regenerated.
5734         * libm/Makefile.in: Ditto.
5735
5736 2006-08-01  Thiemo Seufer  <ths@mips.com>
5737             Nigel Stephens  <nigel@mips.com>
5738
5739         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
5740         define this to force _impure_ptr to live in the .sdata section.
5741
5742 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5743
5744         * acinclude.m4: Check for readelf tool.
5745         * configure.in: Use ${READELF} instead of hard-coding.
5746         * Regenerate all aclocal.m4, Makefile.in, and configure files.
5747
5748 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5749
5750         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
5751         to avoid conflict with newer glibc's revision of mremap.
5752
5753 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
5754
5755         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
5756         floating-point format support.  Also redefine
5757         dword0 and dword1 macros.
5758         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5759         to prevent setting dword1 which is an rvalue only.
5760
5761 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5762
5763         * libc/stdlib/Makefile.am: Add new gdtoa routines.
5764         * libc/stdlib/Makefile.in: Regenerated.
5765         * libc/stdlib/gd_qnan.h: New file.
5766         * libc/stdlib/gdtoa-gethex.c: Ditto.
5767         * libc/stdlib/gdtoa-hexnan.c: Ditto.
5768         * libc/stdlib/gdtoa.h: Ditto.
5769         * libc/stdlib/mprec.c: Add new helper routines needed by
5770         the new gdtoa code.
5771         * libc/stdlib/mprec.h: Integrate some defines and prototypes
5772         used by gdtoa routines here.
5773         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
5774         which adds C99 support such as nan, inf, and hexadecimal input
5775         format.
5776
5777 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
5778
5779         * libc/include/stdio.h (__sgetc_r): Fix typo.
5780         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
5781         * libc/stdio/rget.c (__srbuf): Reinstantiate.
5782         * libc/stdio/wbuf.c (__swbuf): Ditto.
5783
5784 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
5785
5786         * libc/include/stdio.h: Add new reentrant I/O prototypes for
5787         read/write functions.  Change getc/putc macros to have reentrant underlying
5788         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
5789         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
5790         new reentrant I/O functions/macros for reading/writing.
5791         * libc/stdio/fgets.c: Ditto.
5792         * libc/stdio/fputc.c: Ditto.
5793         * libc/stdio/fputs.c: Ditto.
5794         * libc/stdio/fread.c: Ditto.
5795         * libc/stdio/fseek.c: Ditto.
5796         * libc/stdio64/fseeko64.c: Ditto.
5797         * libc/stdio/fwrite.c: Ditto.
5798         * libc/stdio/getc.c: Ditto.
5799         * libc/stdio/getc_u.c: Ditto.
5800         * libc/stdio/getchar.c: Ditto.
5801         * libc/stdio/getchar_u.c: Ditto.
5802         * libc/stdio/putc.c: Ditto.
5803         * libc/stdio/putc_u.c: Ditto.
5804         * libc/stdio/putchar.c: Ditto.
5805         * libc/stdio/puts.c: Ditto.
5806         * libc/stdio/vfprintf.c: Ditto.
5807         * libc/stdio/vfscanf.c: Ditto.
5808         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
5809         Change all previous callers of __sfvwrite.  Set errno to EBADF and
5810         set error flag on if attempt is made to write to file that does not
5811         allow writing.
5812         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
5813         * libc/stdio/local.h: Ditto.
5814         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
5815         Set errno to EBADF and the error flag on if attempt is made to
5816         read unreadable file.  Change all previous callers of __srefill.
5817         * libc/stdio/rget.c
5818         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
5819         all previous callers of __swbuf.
5820         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
5821         huge value macros are already defined correctly for i386 by <math.h>.
5822
5823 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
5824
5825         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
5826         Make them do something useful in the ARM_RDI_MONITOR case.
5827
5828 2006-06-07  Fred Fish  <fnf@specifix.com>
5829
5830         * libc/search/hash_bigkey.c (MIN,MAX): Remove
5831         defines that are already supplied by <sys/param.h>.
5832
5833 2006-06-07  Fred Fish  <fnf@specifix.com>
5834
5835         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
5836
5837 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5838
5839         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
5840         usleep.c.
5841         * libc/posix/Makefile.in: Regenerate.
5842         * libc/posix/sleep.c: New file.
5843         * libc/posix/usleep.c: Ditto.
5844
5845 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5846
5847         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
5848         -DABORT_PROVIDED flag.
5849         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
5850         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
5851
5852 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
5853
5854         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
5855         * Makefile.in: Regenerated.
5856         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
5857         extraneous CFLAGS reference now that CCASFLAGS are being extended
5858         properly via multilib.
5859         * libc/machine/sh/Makefile.in: Regenerated.
5860
5861 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
5862
5863         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
5864         sigismember.
5865
5866 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5867
5868         * libc/misc/dprintf.c: Removed.
5869         * libc/misc/__dprintf.c: Renamed from dprintf.c.
5870         * libc/misc/Makefile.am: Changed appropriately for rename.
5871         * libc/misc/Makefile.in: Regenerated.
5872
5873 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5874
5875         * libc/include/stdio.h: Protect dprintf prototype
5876         with #ifndef dprintf so as to not interfere with
5877         historical code defining their own dprintf macro.
5878
5879 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
5880
5881         * libc/include/stdio.h: Add prototypes for fiscanf,
5882         iscanf, and siscanf.
5883
5884 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
5885
5886         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
5887         (DEF_NEWLIB_VERSION).
5888         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
5889         * configure: Regenerate.
5890
5891 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
5892
5893         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
5894         lib_a_SOURCES.
5895         * libc/ctype/Makefile.in: Regenerated.
5896
5897 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
5898
5899         * libc/machine/arm/Makefile.am: Fix a typo.
5900         * libc/machine/arm/Makefile.in: Regenerated.
5901
5902 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
5903
5904         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5905         * libc/machine/sh/Makefile.in: Regenerate.
5906
5907 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
5908
5909         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5910         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
5911
5912 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
5913
5914         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
5915         .s.
5916         * libc/sys/sysnec810/Makefile.in: Regenerated.
5917         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
5918         * libc/sys/sysnec810/io.S: Ditto.
5919         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
5920         * libc/sys/sysnec810/io.s: Ditto.
5921
5922 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
5923
5924         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
5925         be specified instead of object, do so.
5926         * libc/ctype/Makefile.am: Ditto.
5927         * libc/iconv/ccs/Makefile.am: Ditto.
5928         * libc/iconv/ces/Makefile.am: Ditto.
5929         * libc/iconv/lib/Makefile.am: Ditto.
5930         * libc/locale/Makefile.am: Ditto.
5931         * libc/posix/Makefile.am: Ditto.
5932         * libc/reent/Makefile.am: Ditto.
5933         * libc/search/Makefile.am: Ditto.
5934         * libc/stdio/Makefile.am: Ditto.
5935         * libc/stdio64/Makefile.am: Ditto.
5936         * libc/stdlib/Makefile.am: Ditto.
5937         * libc/string/Makefile.am: Ditto.
5938         * libc/syscalls/Makefile.am: Ditto.
5939         * libc/unix/Makefile.am: Ditto.
5940         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
5941         prefix added automatically.  Any specified rules must use $(lpfx) for
5942         object file names.
5943         * libc/machine/arm/Makefile.am: Ditto.
5944         * libc/machine/cris/Makefile.am: Ditto.
5945         * libc/machine/crx/Makefile.am: Ditto.
5946         * libc/machine/d10v/Makefile.am: Ditto.
5947         * libc/machine/d30v/Makefile.am: Ditto.
5948         * libc/machine/fr30/Makefile.am: Ditto.
5949         * libc/machine/frv/Makefile.am: Ditto.
5950         * libc/machine/h8300/Makefile.am: Ditto.
5951         * libc/machine/h8500/Makefile.am: Ditto.
5952         * libc/machine/hppa/Makefile.am: Ditto.
5953         * libc/machine/i386/Makefile.am: Ditto.
5954         * libc/machine/i960/Makefile.am: Ditto.
5955         * libc/machine/iq2000/Makefile.am: Ditto.
5956         * libc/machine/m32c/Makefile.am: Ditto.
5957         * libc/machine/m32r/Makefile.am: Ditto.
5958         * libc/machine/m68hc11/Makefile.am: Ditto.
5959         * libc/machine/m68k/Makefile.am: Ditto.
5960         * libc/machine/m88k/Makefile.am: Ditto.
5961         * libc/machine/mips/Makefile.am: Ditto.
5962         * libc/machine/mn10200/Makefile.am: Ditto.
5963         * libc/machine/mn10300/Makefile.am: Ditto.
5964         * libc/machine/mt/Makefile.am: Ditto.
5965         * libc/machine/necv70/Makefile.am: Ditto.
5966         * libc/machine/powerpc/Makefile.am: Ditto.
5967         * libc/machine/sh/Makefile.am: Ditto.
5968         * libc/machine/sh/Makefile.in: Ditto.
5969         * libc/machine/sparc/Makefile.am: Ditto.
5970         * libc/machine/tic4x/Makefile.am: Ditto.
5971         * libc/machine/tic80/Makefile.am: Ditto.
5972         * libc/machine/v850/Makefile.am: Ditto.
5973         * libc/machine/w65/Makefile.am: Ditto.
5974         * libc/machine/xscale/Makefile.am: Ditto.
5975         * libc/machine/xstormy16/Makefile.am: Ditto.
5976         * libc/machine/z8k/Makefile.am: Ditto.
5977         * libc/sys/a29khif/Makefile.am: Ditto.
5978         * libc/sys/arm/Makefile.am: Ditto.
5979         * libc/sys/d10v/Makefile.am: Ditto.
5980         * libc/sys/h8300hms/Makefile.am: Ditto.
5981         * libc/sys/h8500hms/Makefile.am: Ditto.
5982         * libc/sys/linux/Makefile.am: Ditto.
5983         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5984         * libc/sys/linux/net/Makefile.am: Ditto.
5985         * libc/sys/linux/stdlib/Makefile.am: Ditto.
5986         * libc/sys/m88kbug/Makefile.am: Ditto.
5987         * libc/sys/mmixware/Makefile.am: Ditto.
5988         * libc/sys/rdos/Makefile.am: Ditto.
5989         * libc/sys/rtems/Makefile.am: Ditto.
5990         * libc/sys/sh/Makefile.am: Ditto.
5991         * libc/sys/sun4/Makefile.am: Ditto.
5992         * libc/sys/sysmec/Makefile.am: Ditto.
5993         * libc/sys/sysnec810/Makefile.am: Ditto.
5994         * libc/sys/sysnecv850/Makefile.am: Ditto.
5995         * libc/sys/sysvi386/Makefile.am: Ditto.
5996         * libc/sys/sysvnecv70/Makefile.am: Ditto.
5997         * libc/sys/tic80/Makefile.am: Ditto.
5998         * libc/sys/w65/Makefile.am: Ditto.
5999         * libc/sys/z8ksim/Makefile.am: Ditto.
6000         * libc/machine/necv70/fastmath.S: Renamed from .s file.
6001         * libc/machine/necv70/setjmp.S: Ditto.
6002         * libc/machine/necv70/fastmath.s: Removed.
6003         * libc/machine/necv70/setjmp.s: Ditto.
6004         * libc/machine/w65/*.S: New files renamed from .s files.
6005         * libc/machine/w65/*.s: Renamed and removed.
6006         * libc/sys/a29khif/*.S: New files renamed from .s files.
6007         * libc/sys/a29khif/*.s: Renamed and removed.
6008         * libc/sys/sysvi386/*.S: New files renamed from .s files.
6009         * libc/sys/sysvi386/*.s: Renamed and removed.
6010         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
6011         * libc/sys/sysvnecv70/*.s: Renamed and removed.
6012         * libc/*Makefile.in: Regenerated as appropriate.
6013
6014 2006-04-24  DJ Delorie  <dj@redhat.com>
6015
6016         * libc/machine/sh/configure.in: Avoid link tests.
6017         * libc/machine/sh/configure: Regenerate.
6018
6019 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
6020
6021         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
6022         (sigaddset, sigemptyset): Add return code.
6023
6024 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
6025
6026         * acinclude.m4: New _NEWLIB_VERSION.
6027         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
6028         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
6029         Use new form of AC_INIT_AUTOMAKE.
6030         * configure.in: AC_PREREQ(2.59).
6031         Use autoconf-2.5.x version of AC_INIT.
6032         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
6033         autoconf-2.13's AC_OUTPUT.
6034         * libm/configure.in: Ditto.
6035         * libm/machine/configure.in: Ditto.
6036         * libm/machine/i386/configure.in: Ditto.
6037         * libc/configure.in: Ditto.
6038         * libc/machine/a29k/configure.in: Ditto.
6039         * libc/machine/arm/configure.in: Ditto.
6040         * libc/machine/configure.in: Ditto.
6041         * libc/machine/mn10300/configure.in: Ditto.
6042         * libc/machine/powerpc/configure.in: Ditto.
6043         * libc/machine/z8k/configure.in: Ditto.
6044         * libc/machine/h8300/configure.in: Ditto.
6045         * libc/machine/mips/configure.in: Ditto.
6046         * libc/machine/crx/configure.in: Ditto.
6047         * libc/machine/m68hc11/configure.in: Ditto.
6048         * libc/machine/h8500/configure.in: Ditto.
6049         * libc/machine/xscale/configure.in: Ditto.
6050         * libc/machine/d10v/configure.in: Ditto.
6051         * libc/machine/fr30/configure.in: Ditto.
6052         * libc/machine/sh/configure.in: Ditto.
6053         * libc/machine/tic80/configure.in: Ditto.
6054         * libc/machine/m32r/configure.in: Ditto.
6055         * libc/machine/xstormy16/configure.in: Ditto.
6056         * libc/machine/i386/configure.in: Ditto.
6057         * libc/machine/d30v/configure.in: Ditto.
6058         * libc/machine/mn10200/configure.in: Ditto.
6059         * libc/machine/frv/configure.in: Ditto.
6060         * libc/machine/mt/configure.in: Ditto.
6061         * libc/machine/i960/configure.in: Ditto.
6062         * libc/machine/v850/configure.in: Ditto.
6063         * libc/machine/necv70/configure.in: Ditto.
6064         * libc/machine/tic4x/configure.in: Ditto.
6065         * libc/machine/cris/configure.in: Ditto.
6066         * libc/machine/m68k/configure.in: Ditto.
6067         * libc/machine/m32c/configure.in: Ditto.
6068         * libc/machine/hppa/configure.in: Ditto.
6069         * libc/machine/w65/configure.in: Ditto.
6070         * libc/machine/iq2000/configure.in: Ditto.
6071         * libc/machine/sparc/configure.in: Ditto.
6072         * libc/machine/m88k/configure.in: Ditto.
6073         * libc/sys/linux/configure.in: Ditto.
6074         * libc/sys/linux/machine/configure.in: Ditto.
6075         * libc/sys/linux/machine/i386/configure.in: Ditto.
6076         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6077         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6078         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6079         * libc/sys/arm/configure.in: Ditto.
6080         * libc/sys/configure.in: Ditto.
6081         * libc/sys/decstation/configure.in: Ditto.
6082         * libc/sys/a29khif/configure.in: Ditto.
6083         * libc/sys/sysnecv850/configure.in: Ditto.
6084         * libc/sys/d10v/configure.in: Ditto.
6085         * libc/sys/netware/configure.in: Ditto.
6086         * libc/sys/mmixware/configure.in: Ditto.
6087         * libc/sys/h8500hms/configure.in: Ditto.
6088         * libc/sys/sh/configure.in: Ditto.
6089         * libc/sys/tic80/configure.in: Ditto.
6090         * libc/sys/rdos/configure.in: Ditto.
6091         * libc/sys/sysmec/configure.in: Ditto.
6092         * libc/sys/sysvi386/configure.in: Ditto.
6093         * libc/sys/h8300hms/configure.in: Ditto.
6094         * libc/sys/sparc64/configure.in: Ditto.
6095         * libc/sys/arc/configure.in: Ditto.
6096         * libc/sys/sysnec810/configure.in: Ditto.
6097         * libc/sys/m88kbug/configure.in: Ditto.
6098         * libc/sys/sysvnecv70/configure.in: Ditto.
6099         * libc/sys/z8ksim/configure.in: Ditto.
6100         * libc/sys/rtems/configure.in: Ditto.
6101         * libc/sys/w65/configure.in: Ditto.
6102         * libc/sys/sun4/configure.in: Ditto.
6103         * doc/configure.in: Ditto.
6104         * iconvdata/configure.in: Ditto.
6105         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6106
6107 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6108
6109         * acinclude.m4: Properly add square brackets for
6110         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6111         macros no longer available.  Add LIB_AM_PROG_AS to
6112         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6113         macro.  Substitute lpfx (library object prefix).
6114         * configure.host: Set lpfx depending on whether
6115         libtool is used or not.
6116         * configure.in: Individually specify libc and libm
6117         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6118         necessary.
6119         * Makefile.am: Use $(lpfx) to get object names for
6120         math-library functions that should also be in libc.
6121         * libc/machine/configure.in: Use case statement to determine
6122         AC_CONFIG_SUBDIRS statement.
6123         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6124         * libc/sys/linux/machine/configure.in: Ditto.
6125         * libc/sys/configure.in: Ditto.
6126         * libm/machine/configure.in: Ditto.
6127         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6128         * libm/configure.in: Add AM_CONDITIONAL statement
6129         for HAVE_LIBM_MACHINE_DIR.
6130         * libc/machine/a29k/Makefile.am: Modified to work with
6131         latest automake.  Change includes setting AM_CCASFLAGS
6132         so building .S files will properly pick up flags used
6133         to build C files.
6134         * libc/machine/arm/Makefile.am: Ditto.
6135         * libc/machine/crx/Makefile.am: Ditto.
6136         * libc/machine/d10v/Makefile.am: Ditto.
6137         * libc/machine/d30v/Makefile.am: Ditto.
6138         * libc/machine/fr30/Makefile.am: Ditto.
6139         * libc/machine/frv/Makefile.am: Ditto.
6140         * libc/machine/h8300/Makefile.am: Ditto.
6141         * libc/machine/h8500/Makefile.am: Ditto.
6142         * libc/machine/hppa/Makefile.am: Ditto.
6143         * libc/machine/i386/Makefile.am: Ditto.
6144         * libc/machine/iq2000/Makefile.am: Ditto.
6145         * libc/machine/m32c/Makefile.am: Ditto.
6146         * libc/machine/m32r/Makefile.am: Ditto.
6147         * libc/machine/m68hc11/Makefile.am: Ditto.
6148         * libc/machine/m68k/Makefile.am: Ditto.
6149         * libc/machine/m88k/Makefile.am: Ditto.
6150         * libc/machine/mips/Makefile.am: Ditto.
6151         * libc/machine/mn10200/Makefile.am: Ditto.
6152         * libc/machine/mn10300/Makefile.am: Ditto.
6153         * libc/machine/mt/Makefile.am: Ditto.
6154         * libc/machine/necv70/Makefile.am: Ditto.
6155         * libc/machine/powerpc/Makefile.am: Ditto.
6156         * libc/machine/sh/Makefile.am: Ditto.
6157         * libc/machine/sparc/Makefile.am: Ditto.
6158         * libc/machine/tic4x/Makefile.am: Ditto.
6159         * libc/machine/tic80/Makefile.am: Ditto.
6160         * libc/machine/v850/Makefile.am: Ditto.
6161         * libc/machine/w65/Makefile.am: Ditto.
6162         * libc/machine/xscale/Makefile.am: Ditto.
6163         * libc/machine/xstormy16/Makefile.am: Ditto.
6164         * libc/machine/z8k/Makefile.am: Ditto.
6165         * libc/sys/a29khif/Makefile.am: Ditto.
6166         * libc/sys/arc/Makefile.am: Ditto.
6167         * libc/sys/arm/Makefile.am: Ditto.
6168         * libc/sys/d10v/Makefile.am: Ditto.
6169         * libc/sys/decstation/Makefile.am: Ditto.
6170         * libc/sys/h8300hms/Makefile.am: Ditto.
6171         * libc/sys/h8500hms/Makefile.am: Ditto.
6172         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6173         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6174         * libc/sys/m88kbug/Makefile.am: Ditto.
6175         * libc/sys/mmixware/Makefile.am: Ditto.
6176         * libc/sys/netware/Makefile.am: Ditto.
6177         * libc/sys/rdos/Makefile.am: Ditto.
6178         * libc/sys/rtems/Makefile.am: Ditto.
6179         * libc/sys/sh/Makefile.am: Ditto.
6180         * libc/sys/sparc64/Makefile.am: Ditto.
6181         * libc/sys/sysmec/Makefile.am: Ditto.
6182         * libc/sys/sysnec810/Makefile.am: Ditto.
6183         * libc/sys/sysnecv850/Makefile.am: Ditto.
6184         * libc/sys/sysvi386/Makefile.am: Ditto.
6185         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6186         * libc/sys/tic80/Makefile.am: Ditto.
6187         * libc/sys/w65/Makefile.am: Ditto.
6188         * libc/sys/z8ksim/Makefile.am: Ditto.
6189         * libm/machine/i386/Makefile.am: Ditto.
6190         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6191         trap.S so that automake will generate a .S.o suffix rule.
6192         * libc/argz/Makefile.am: Modified to work with
6193         latest automake.  Change includes adding lib_a_CFLAGS
6194         so automake doesn't complain about libtool and non-libtool
6195         libraries sharing objects.
6196         * libc/ctype/Makefile.am: Ditto.
6197         * libc/errno/Makefile.am: Ditto.
6198         * libc/iconv/ccs/Makefile.am: Ditto.
6199         * libc/iconv/ces/Makefile.am: Ditto.
6200         * libc/iconv/lib/Makefile.am: Ditto.
6201         * libc/locale/Makefile.am: Ditto.
6202         * libc/misc/Makefile.am: Ditto.
6203         * libc/posix/Makefile.am: Ditto.
6204         * libc/reent/Makefile.am: Ditto.
6205         * libc/search/Makefile.am: Ditto.
6206         * libc/signal/Makefile.am: Ditto.
6207         * libc/stdio/Makefile.am: Ditto.
6208         * libc/stdio64/Makefile.am: Ditto.
6209         * libc/stdlib/Makefile.am: Ditto.
6210         * libc/string/Makefile.am: Ditto.
6211         * libc/sys/linux/Makefile.am: Ditto.
6212         * libc/sys/linux/argp/Makefile.am: Ditto.
6213         * libc/sys/linux/cmath/Makefile.am: Ditto.
6214         * libc/sys/linux/dl/Makefile.am: Ditto.
6215         * libc/sys/linux/iconv/Makefile.am: Ditto.
6216         * libc/sys/linux/intl/Makefile.am: Ditto.
6217         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6218         * libc/sys/linux/net/Makefile.am: Ditto.
6219         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6220         * libc/syscalls/Makefile.am: Ditto.
6221         * libc/time/Makefile.am: Ditto.
6222         * libc/unix/Makefile.am: Ditto.
6223         * libm/Makefile.am: Ditto.
6224         * libm/common/Makefile.am: Ditto.
6225         * libm/math/Makefile.am: Ditto.
6226         * libm/mathfp/Makefile.am: Ditto.
6227         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6228
6229 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6230
6231         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6232         anymore.  Assume there is a gettimeofday syscall.
6233
6234 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6235
6236         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6237         for the declaration of n_long.
6238
6239 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6240
6241         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6242         struct sockaddr.
6243         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6244         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6245         (IFF_NOTRAILERS): New define.
6246         (struct ifreq): Add ifru_netmask.
6247         (ifr_netmask): New define.
6248
6249 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6250
6251         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6252         match sys/ioctl.h.
6253
6254 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6255
6256         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6257         linux-newlib libc implementations.
6258
6259 2006-03-29  Eric Blake  <ebb9@byu.net>
6260
6261         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6262         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6263
6264 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6265
6266         * libc/sys/linux/io.c (__mknod): Fix declaration of
6267         syscall to pass a dev_t as third argument rather than
6268         a pointer to dev_t.
6269
6270 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6271
6272         * libc/sys/linux/net/name6.c: Fix struct references.
6273
6274 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6275
6276         * configure.host: Allow hosts to set the default
6277         newlib_atexit_dynamic_alloc value.
6278         * configure.in: Likewise.
6279         * configure: Regenerated.
6280
6281 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6282
6283         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6284         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6285         option.
6286         * configure: Regenerated.
6287         * newlib.hin: Regenerated.
6288         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6289         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6290         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6291         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6292
6293 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6294
6295         * libc/sys/linux/linuxthreads/config.h: Remove definition
6296         of UINT32_C.
6297
6298 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6299
6300         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6301         for a string I/O file that isn't using the asprintf family.
6302
6303 2006-03-07  Eric Blake  <ebb9@byu.net>
6304
6305         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
6306         filename, allow read-only or write-only FILE atop O_RDWR file
6307         descriptor.
6308         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
6309
6310 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
6311
6312         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
6313         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
6314
6315 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
6316
6317         * libm/math/math.tex: Fix reference to sisnan.def which
6318         is now in common subdirectory.
6319         * libm/mathfp/mathfp.tex: Ditto.
6320
6321 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
6322
6323         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
6324         s_isnand, and sf_isnanf object files.
6325         * Makefile.in: Regenerated.
6326         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
6327         conflict if <math.h> has previously been included.
6328         * libc/include/math.h
6329         * libc/include/math.h: Make isnan and isinf macros to
6330         conform to C99.
6331         (__isinfd, __isinff, __isnand, __isnanf): New functions.
6332         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
6333         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
6334         sf_isinf files which have been moved from math/mathfp directories.
6335         * libm/common/Makefile.in: Regenerated.
6336         * libm/common/s_isinfd.c: New file.
6337         * libm/common/s_isnand.c: Ditto.
6338         * libm/common/sf_isinff.c: Ditto.
6339         * libm/common/sf_isnanf.c: Ditto.
6340         * libm/common/s_isinf.c: Moved from libm/math directory.
6341         * libm/common/s_isnan.c: Ditto.
6342         * libm/common/sf_isinf.c: Ditto.
6343         * libm/common/sf_isnan.c: Ditto.
6344         * libm/math/Makefile.am: Remove isinf and isnan family functions
6345         which have been moved into common directory.
6346         * libm/mathfp/Makefile.am: Ditto.
6347         * libm/math/Makefile.in: Regenerated.
6348         * libm/mathfp/Makefile.in: Ditto.
6349         * libm/math/s_isinf.c: Removed.
6350         * libm/math/s_isnan.c: Ditto.
6351         * libm/math/sf_isinf.c: Ditto.
6352         * libm/math/sf_isnan.c: Ditto.
6353         * libm/mathfp/s_isinf.c: Ditto.
6354         * libm/mathfp/s_isnan.c: Ditto.
6355         * libm/mathfp/sf_isinf.c: Ditto.
6356         * libm/mathfp/sf_isnan.c: Ditto.
6357
6358 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
6359
6360         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
6361         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
6362         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
6363         seek, turn off the __SNPT no-optimization flag.
6364
6365 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
6366
6367         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
6368         will be defined.
6369         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
6370         <features.h> to preset special flags.
6371
6372 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
6373
6374         * libc/include/sys/time.h (struct timeval): Change member types
6375         according to SUSv3.
6376         * libc/include/sys/types.h (useconds_t): Change to unsigned
6377         according to SUSv3.
6378         (suseconds_t): Define type.
6379
6380 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
6381             David Carne  <davidcarne@gmail.com>
6382
6383         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
6384         instead of strlen to determine number of bytes to copy.
6385         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
6386         before looking at storage location.
6387
6388 2006-02-07  Paul Brook  <paul@codesourcery.com>
6389
6390         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
6391         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
6392         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
6393         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
6394         * libc/sys/arm/trap.S: Disable for Thumb-2.
6395
6396 2006-01-31  Leif Ekblad  <leif@rdos.net>
6397
6398         * configure.host: RDOS support added
6399         * libc/include/sys/config.h: Ditto.
6400         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
6401         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
6402         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
6403         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
6404         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
6405         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
6406         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
6407         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
6408         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
6409         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
6410         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
6411         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
6412         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
6413         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
6414         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
6415         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
6416         * libc/sys/rdos/write.c: Ditto.
6417
6418 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
6419
6420         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
6421         so as not to define PACKAGE and VERSION in newlib.h.
6422         * aclocal.m4: Regenerated.
6423         * configure: Ditto.
6424         * newlib.hin: Ditto.
6425
6426 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
6427
6428         * acconfig.h: New file to generate newlib.hin from.
6429         * newlib.hin: Regenerated.
6430         * stamp-h.in: Regenerated.
6431         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
6432         called automatically.
6433         * Makefile.in: Regenerated.
6434         * acinclude.m4: Add proper comment for hack in previous change.
6435         * aclocal.m4 */aclocal.m4: Regenerated.
6436         * configure */configure: Regenerated.
6437
6438 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6439
6440         * acinclude.m4: Add hack to prevent INSTALL in subdirs
6441         from being set to "../".
6442         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
6443         * aclocal.m4: Regenerated.
6444         * configure: Ditto.
6445         * Makefile.in: Ditto.
6446         * doc/aclocal.m4: Ditto.
6447         * doc/configure: Ditto.
6448         * iconvdata/aclocal.m4: Ditto.
6449         * iconvdata/configure: Ditto.
6450         * libc/*/aclocal.m4: Ditto.
6451         * libc/*/configure: Ditto.
6452         * libc/libc.texinfo: Ditto.
6453         * libm/*/aclocal.m4: Ditto.
6454         * libm/*/configure: Ditto.
6455
6456 2006-01-10  Eric Blake  <ebb9@byu.net>
6457
6458         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
6459         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6460
6461 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
6462
6463         * libm/mathfp/s_frexp.c: Check for special values on
6464         the original input, not the manipulated output value.
6465         * libm/mathfp/sf_frexp.c: Ditto.
6466         * libm/mathfp/s_atangent.c: Don't use local value branch
6467         when checking for quadrant.
6468         * libm/mathfp/sf_atangent.c: Ditto.
6469
6470 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
6471
6472         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
6473         * libc/stdio64/freopen64.c: Ditto.
6474
6475 2006-01-09  Eric Blake  <ebb9@byu.net>
6476
6477         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
6478         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6479
6480 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6481
6482         * libc/sys/linux/include/getopt.h: Add macros needed by
6483         new version of getopt.c in libc/stdlib.
6484
6485 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
6486
6487         * libc/stdlib/getopt.c: Replaced with version
6488         that adds getopt_long and getopt_long_only support.
6489         * libc/include/getopt.h: New file.
6490
6491 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6492
6493         * NEWS: Update with 1.14.0 info.
6494         * README: Ditto.
6495         * acinclude.m4: Change version number to 1.14.0.
6496         * aclocal.m4: Regenerated.
6497         * configure: Ditto.
6498         * doc/aclocal.m4: Ditto.
6499         * doc/configure: Ditto.
6500         * libc/*/aclocal.m4: Ditto.
6501         * libc/*/configure: Ditto.
6502         * libc/libc.texinfo: Ditto.
6503         * libm/*/aclocal.m4: Ditto.
6504         * libm/*/configure: Ditto.
6505         * libm/libm.texinfo: Ditto.
6506         * libc/sys/linux/shared.ld: Add VERS_1.14.
6507
6508 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6509
6510         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
6511         take a pointer to struct stat64 rather than struct stat.
6512
6513 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
6514
6515         * libc/include/stdint.h: Prefer long over int for int32_t.
6516         Use __have_long32 to set up int32_t.
6517         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
6518         (Sync with stdint.h).
6519
6520 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
6521
6522         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
6523         typo in O_NDELAY comment.
6524
6525 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
6526
6527         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
6528         * libc/include/machine/setjmp.h (__mt__): Likewise.
6529         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
6530         * libc/machine/configure.in: Ditto.
6531
6532 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
6533
6534         * configure.host: Replace ms1 arch with mt arch.
6535         * libc/machine/mt: Renamed from ms1 dir.
6536
6537 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
6538
6539         * libc/include/sys/types.h: Remove the ifdef armour around
6540         standard POSIX types.
6541
6542 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6543
6544         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
6545         rtems_gxx_key_delete, rtems_gxx_getspecific,
6546         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
6547         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
6548         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
6549
6550 2005-12-05  Christopher Faylor  <cgf@timesys.com>
6551
6552         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
6553         file.  Declare unsetenv and _unsetenv_r when not cygwin.
6554
6555 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
6556
6557         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
6558         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
6559
6560 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6561
6562         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
6563
6564 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6565
6566         * include/time.h: Remove more cygwin-specific stuff.
6567
6568 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6569
6570         * include/time.h: Move cygwin declarations to cygwin-specific header.
6571         * include/sys/time.h: Rename cygwin include to "sys_time.h".
6572
6573 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
6574
6575         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
6576         in libc/sys/linux/include.
6577         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
6578         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
6579         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
6580         in libc/sys/linux/dl.
6581
6582 2005-11-11  Christopher Faylor  <cgf@timesys.com>
6583
6584         * libc/include/sys/time.h: For cygwin, use general header rather than
6585         specific "sys/select.h".
6586
6587 2005-11-08  Tom Walsh  <tom@openhardware.net>
6588
6589         * libc/time/tzvars.c: New file.
6590         * libc/time/tzset_r.c: Moved globals into tzvars.c
6591         so other time functions needn't link in __tzset_r and its
6592         dependencies.
6593         * libc/time/Makefile.am: Add the new file.
6594         * libc/time/Makefile.in: Regenerated.
6595
6596 2005-11-08  Christopher Faylor  <cgf@timesys.com>
6597
6598         * libc/include/string.h: Add cygwin-specific function declaration.
6599
6600 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
6601
6602         * libc/include/ieeefp.h: Add C++ guards.
6603
6604 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
6605
6606         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
6607         * libc/unix/getlogin.c: Ditto.
6608         * libc/unix/getpass.c: Ditto.
6609         * libc/unix/getut.c: Ditto.
6610         * libc/unix/ttyname.c: Ditto.
6611
6612 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
6613
6614         * libc/include/sys/unistd.h (readlink, symlink): Provide these
6615         prototypes by default.
6616         * libc/sys/linux/include/unistd.h (readlink): Remove this
6617         prototype.
6618         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
6619         prototypes.
6620
6621 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
6622
6623         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
6624
6625 2005-10-31  Darin Johnson  <darin@usa.net>
6626
6627         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
6628         correct for constants.
6629
6630 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6631
6632         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
6633         * libc/stdio/siscanf.c: Likewise.
6634         * libc/stdio/sprintf.c: Likewise.
6635         * libc/stdio/sscanf.c: Likewise.
6636         * libc/stdio/vfprintf.c: Likewise.
6637         * libc/stdio/vfscanf.c: Likewise.
6638         * libc/stdio/viprintf.c: Likewise.
6639         * libc/stdio/viscanf.c: Likewise.
6640
6641 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6642
6643         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
6644         example to use "_end" symbol instead of "end".  Change write  example
6645         to use "outbyte" instead of "writechar".
6646
6647 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6648
6649         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
6650         * libc/ctype/islower.c: Likewise.
6651         * libc/ctype/isupper.c: Likewise.
6652         * libc/ctype/iswalnum.c: Likewise.
6653         * libc/ctype/iswalpha.c: Likewise.
6654         * libc/ctype/iswblank.c: Likewise.
6655         * libc/ctype/iswcntrl.c: Likewise.
6656         * libc/ctype/iswdigit.c: Likewise.
6657         * libc/ctype/iswgraph.c: Likewise.
6658         * libc/ctype/iswlower.c: Likewise.
6659         * libc/ctype/iswprint.c: Likewise.
6660         * libc/ctype/iswpunct.c: Likewise.
6661         * libc/ctype/iswspace.c: Likewise.
6662         * libc/ctype/iswupper.c: Likewise.
6663         * libc/ctype/iswxdigit.c: Likewise.
6664         * libc/ctype/tolower.c: Likewise.
6665         * libc/ctype/toupper.c: Likewise.
6666         * libc/ctype/towctrans.c: Likewise.
6667         * libc/ctype/towlower.c: Likewise.
6668         * libc/ctype/towupper.c: Likewise.
6669         * libc/string/strcasecmp.c: Likewise.
6670         * libc/string/strcoll.c: Likewise.
6671         * libc/string/strings.tex: Likewise.
6672         * libc/string/strlwr.c: Likewise.
6673         * libc/string/strncasecmp.c: Likewise.
6674         * libc/string/strupr.c: Likewise.
6675         * libc/string/wcscoll.c: Likewise.
6676         * libc/string/wcslcat.c: Likewise.
6677         * libc/string/wcslcpy.c: Likewise.
6678         * libc/string/wcsnlen.c: Likewise.
6679         * libc/string/wcsstr.c: Likewise.
6680         * libc/string/wcstrings.tex: Likewise.
6681         * libc/string/wmemchr.c: Likewise.
6682         * libc/string/wmemcmp.c: Likewise.
6683         * libc/string/wmemcpy.c: Likewise.
6684         * libc/string/wmemmove.c: Likewise.
6685         * libc/string/wmemset.c: Likewise.
6686
6687 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6688
6689         * libc/misc/unctrl.c: Replace FUNCTION description.
6690         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
6691         * libc/stdio/getdelim.c: Fix spelling errors.
6692         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
6693         * libc/stdio/putw.c: Likewise.
6694         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
6695         documentation.
6696         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
6697         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
6698         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
6699         * libc/stdlib/mlock.c: Likewise.
6700         * libc/stdlib/mstats.c: Likewise.
6701         * libc/time/tzlock.c: Likewise.
6702         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
6703         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
6704         and hyphenate "pseudo-random".
6705         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
6706         * libc/string/strncat.c: Likewise.
6707         * libc/string/memchr.c: Remove extra ">" character in  documentation.
6708         * libc/string/strcspn.c: Use "characters" instead of "chars".
6709         * libc/string/strpbrk.c: Likewise.
6710         * libc/string/strerror_r.c: Capitalize "GNU".
6711         * libc/string/strnlen.c: Likewise.
6712         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
6713         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
6714         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
6715         * libc/string/wcschr.c: Likewise.
6716         * libc/string/wcscmp.c: Likewise.
6717         * libc/string/wcscpy.c: Likewise.
6718         * libc/string/wcscspn.c: Likewise.
6719         * libc/string/wcslen.c: Likewise.
6720         * libc/string/wcsncat.c: Likewise.
6721         * libc/string/wcsncmp.c: Likewise.
6722         * libc/string/wcsncpy.c: Likewise.
6723         * libc/string/wcsnlen.c: Likewise.
6724         * libc/string/wcspbrk.c: Likewise.
6725         * libc/string/wcsrchr.c: Likewise.
6726         * libc/string/wcsspn.c: Likewise.
6727         * libc/string/wmemchr.c: Likewise.
6728         * libc/string/wmemcmp.c: Likewise.
6729         * libc/string/wmemcpy.c: Likewise.
6730         * libc/string/wmemset.c: Likewise.
6731         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
6732         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
6733         * libc/string/wcwidth.c: Likewise.
6734         * libm/common/s_modf.c: Remove extra period from documentation.
6735         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
6736         documentation.
6737         * libm/mathfp/s_isnan.c: Likewise.
6738         * libm/math/s_ldexp.c: Fix punctuation.
6739         * libm/mathfp/s_ldexp.c: Likewise.
6740         * libm/math/w_log.c: Likewise.
6741         * libm/mathfp/s_logarithm.c: Likewise.
6742         * libm/math/w_j0.c: Add spaces to FUNCTION description.
6743         * libm/mathfp/w_jn.c: Likewise.
6744
6745 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
6746
6747         * libc/posix/scandir.c (scandir): Update the function
6748         prototype to match the header.
6749         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
6750         extraneous #endif.
6751         * libc/sys/linux/sys/lock.h: Do not include
6752         machine/weakalias.h, since it's not used by this file.
6753
6754 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
6755
6756         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
6757         directories can override properly.
6758
6759 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
6760
6761         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
6762         gcc is 3.3 or greater, use special gcc builtins.
6763
6764 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
6765
6766         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
6767
6768 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
6769
6770         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
6771
6772 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6773
6774         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
6775         * libm/common/Makefile.am: Add s_infconst.c support.
6776         * libm/common/Makefile.in: Regenerated.
6777         * libm/common/s_infconst.c: New file with float and
6778         long double infinity support added.
6779         * libm/math/Makefile.am: Remove s_infconst.c support.
6780         * libm/math/Makefile.in: Regenerated.
6781         * libm/math/s_infconst.c: Moved to common directory.
6782         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
6783         * libm/mathfp/Makefile.in: Regenerated.
6784         * libm/mathfp/s_infconst.c: Moved to common directory.
6785
6786 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6787
6788         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
6789         dbgprintf to prevent conflict with new dprintf function.
6790
6791 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6792
6793         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
6794         "nan" processing for systems that have long double support.
6795
6796 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6797
6798         * libc/sys/linux/sys/types.h (int8_t): Add type.
6799
6800 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6801
6802         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
6803         * libm/common/Makefile.in: Regenerate.
6804         * libm/common/common.tex: Delete file.
6805         * libm/math/math.tex: Include .def files from common/.
6806         * libm/mathfp/mathfp.tex: Likewise.
6807
6808 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6809
6810         * libc/libc.texinfo (Top): Surround this node with @ifnottex
6811         instead of @ifinfo.  Update menu to add Introduction and match
6812         SUBDIRS order.
6813         (Introduction): New section.
6814
6815 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6816
6817         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
6818         with "Red Hat newlib C Library".
6819         * libc/sys.tex (Stubs): Likewise.
6820         * libm/math/math.tex (Math): Likewise.
6821         * libm/mathfp/mathfp.tex (Math): Likewise.
6822
6823 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
6824
6825         * libc/include/stdio.h (dprintf): New declaration.
6826         (vdprintf): Ditto.
6827         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
6828         and vdprintf.c.
6829         * libc/stdio/Makefile.in: Regenerate.
6830         * libc/stdio/dprintf.c: New file.
6831         * libc/stdio/vdprintf.c: New file.
6832         * libc/stdio/stdio.tex (dprintf): New entry.
6833
6834 2005-10-11  David Weatherford  <weath@tensilica.com>
6835
6836         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
6837         Print "inf" and "nan" in lowercase for e/f/g formats and in
6838         uppercase for E/F/G formats.
6839
6840 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
6841
6842         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
6843         to ENOMEM on failure.
6844
6845 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6846
6847         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
6848
6849 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
6850
6851         * libc/include/stdint.h: Move magic to set __have_long* to the
6852         beginning.  Use #if __have* instead of #if defined(__have*).
6853         Minor typo fixes.
6854
6855 2005-10-04  James E Wilson  <wilson@specifix.com>
6856
6857         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
6858         #error.
6859
6860 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
6861
6862         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
6863         incorporate Ralf's change below.
6864
6865 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
6866
6867         * libc/include/stdint.h:
6868         Use __INTMAX_TYPE__ to derive intmax_t.
6869         Use __UINTMAX_TYPE__ to derive uintmax_t.
6870         Fix minor typo.
6871
6872 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
6873
6874         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
6875         handling GCC >= 4.
6876
6877 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6878
6879         * libc/sys/linux/include/stdint.h: Update to match functionality
6880         of generic newlib stdint.h.
6881
6882 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6883
6884         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
6885         and do not #undef the macro after it is used.  Fix typos.
6886         Also change 64-bit constants to use the __have_long64 and
6887         __have_longlong64 flags to determine if long or long long
6888         constants should be used.
6889         * libc/include/inttypes.h: Include stddef.h to get wchar_t
6890         type defined.
6891
6892 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
6893
6894         * libc/include/stdint.h: Fix typo in names of
6895         LEAST macros.
6896
6897 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6898
6899         * libc/sys/rtems/include/inttypes.h: Moved to...
6900         * libc/include/inttypes.h: ...here.
6901
6902 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
6903
6904         * libc/sys/rtems/include/stdint.h: Moved to...
6905         * libc/include/stdint.h: ...here.
6906
6907 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
6908
6909         * Makefile.am: Add include files under bits sub-directory.
6910         * Makefile.in: Regenerated.
6911         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
6912         actual value of 1 to be compatible with newer glibc headers.
6913         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
6914         glibc headers.
6915         * libc/sys/linux/sys/dirent.h: Ditto.
6916         * libc/sys/linux/argp/argp-xinl.c: Ditto.
6917         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
6918         profile_fixup routines are marked used so they won't be
6919         optimized away.
6920         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
6921         to mark functions as weak.
6922         * libc/sys/linux/dl/dl-open.c: Ditto.
6923         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
6924         rules about lvalues.
6925         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
6926         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
6927         weak_extern macro to mark functions as weak.  Instead always
6928         use #pragma weak.
6929         * iconvdata/jis0208.h: Fix to work with gcc4.
6930         * libc/sys/linux/dl/dl-load.c: Ditto.
6931         * libc/sys/linux/dl/dl-reloc.c: Ditto.
6932         * libc/sys/linux/dl/do-rel.h: Ditto.
6933         * libc/sys/linux/dl/dynamic-link.h: Ditto.
6934         * libc/sys/linux/include/ltdl.h: Ditto.
6935         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
6936         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
6937         * libc/sys/linux/net/ns_ntoa.c: Ditto.
6938         * libc/sys/linux/bits/initspin.h: New file.
6939         * libc/sys/linux/bits/libc-lock.h: Ditto.
6940         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
6941         * libc/sys/linux/bits/typesizes.h: Ditto.
6942
6943 2005-09-08  Eric Blake  <ebb9@byu.net>
6944
6945         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
6946         before is NULL.
6947
6948 2005-09-08  Brian Dessent  <brian@dessent.net>
6949
6950         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
6951         mantissa.
6952         * s_lrint.c: Ditto.
6953
6954 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
6955
6956         * libc/include/stdio.h: Add prototype for viprintf.
6957
6958 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
6959
6960         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
6961         any positive power results in 0.
6962         * libm/mathfp/sf_pow.c (powf): Ditto.
6963
6964 2005-08-31  Paul Brook  <paul@codesourcery.com>
6965
6966         * configure.host: Set have_crt0 to no for Arm targts when not
6967         providing syscalls.  Set sys_dir=arm unconditionally.
6968         Default have_crt0 based on sys_dir.
6969         * configure.in: Use have_crt0.
6970         * libc/configure.in: Ditto.
6971         * libc/sys/configure.in: Ditto.
6972         * configure: Regenerate.
6973         * libc/configure: Regenerate.
6974         * libc/sys/configure: Regenerate.
6975         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
6976         Only build other files when providing syscalls.
6977         * libc/sys/arm/Makefile.in: Regenerate.
6978         * libc/sys/arm/aeabi_atexit.c: New file.
6979
6980 2005-08-26  Christopher Faylor  <cgf@timesys.com>
6981
6982         * libc/include/string.h: Revert previous change.
6983
6984 2005-08-25  Christopher Faylor  <cgf@timesys.com>
6985
6986         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
6987
6988 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
6989
6990         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
6991         define _opendir as opendir, _readdir as readdir, and
6992         _closedir as closedir so that the implementations in
6993         libc/posix will be used.
6994
6995 2005-08-10  DJ Delorie  <dj@redhat.com>
6996
6997         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
6998
6999 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
7000
7001         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
7002         * libm/common/s_max.c: Ditto.
7003         * libm/common/sf_fmin.c: Ditto.
7004         * libm/common/s_min.c: Ditto.
7005
7006 2005-08-10  DJ Delorie  <dj@redhat.com>
7007
7008         * configure.host: Add m32c support.
7009         * libc/include/machine/ieeefp.h: Likewise.
7010         * libc/include/machine/setjmp.h: Likewise.
7011         * libc/include/sys/config.h: Likewise.
7012         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
7013         * libc/machine/m32c/aclocal.m4: New file.
7014         * libc/machine/m32c/configure: Ditto.
7015         * libc/machine/m32c/configure.in: Ditto.
7016         * libc/machine/m32c/Makefile.am: Ditto.
7017         * libc/machine/m32c/Makefile.in: Ditto.
7018         * libc/machine/m32c/setjmp.S: Ditto.
7019
7020 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
7021
7022         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
7023         to the value for 2^126.
7024
7025 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
7026
7027         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
7028         used.
7029
7030 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
7031            Darin Petkov <darin@tensilica.com>
7032
7033        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
7034
7035 2005-07-19  Paul Brook  <paul@codesourcery.com>
7036
7037         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
7038
7039 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
7040
7041         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
7042         names after PASS and FAIL which do not depend on source directory
7043         name or on whether test passed or failed.
7044         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
7045
7046 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
7047
7048         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
7049
7050 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
7051
7052         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
7053         twice for the same directory. _closedir calls free, and freeing
7054         the same pointer twice may cause a crash.
7055
7056 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
7057
7058         * configure.host: Added entry for ms1*.
7059         * libc/include/machine/ieeefp.h: Handle ms1.
7060         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
7061         * libc/machine/ms1/aclocal.m4: New.
7062         * libc/machine/ms1/configure: New.
7063         * libc/machine/ms1/configure.in: New.
7064         * libc/machine/ms1/Makefile.am: New.
7065         * libc/machine/ms1/Makefile.in: New.
7066         * libc/machine/ms1/setjmp.S: New.
7067
7068 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
7069
7070         * Makefile.am (site.exp): Set tmpdir.
7071         * Makefile.in: Regenerated.
7072         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
7073         executables in $tmpdir.
7074         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7075         libgloss version if not running in the build directory.
7076         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7077         $tmpdir.
7078         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7079         in $tmpdir.
7080
7081 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7082
7083         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7084         and miscalculation caused by fp representation of zero.
7085         * libm/common/sf_lrint.c (lrintf):  Likewise.
7086
7087 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7088
7089         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7090         determine characteristics of long double.  Use a union instead.
7091         * ldtoa.c (_ldtoa_r): Ditto.
7092         (_ldcheck): Ditto.
7093         (_strtold): Ditto.
7094         (union uconv): New union.
7095
7096 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7097
7098         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7099         instead of memcpy.
7100
7101 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7102
7103         * configure.host (mn10300-*): Add long long I/O support by default.
7104
7105 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7106
7107         * libc/sys/linux/getpwuid.c: Removed.
7108         * libc/sys/linux/getpwnam.c: Removed.
7109         * libc/sys/linux/getpwent.c: New file containing logic
7110         from files removed above.  This allows overriding of file
7111         in libc/unix.
7112         * libc/sys/linux/Makefile.am: Support changes above.
7113         * libc/sys/linux/Makefile.in: Regenerated.
7114
7115 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7116
7117         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7118         when checking for multiple flags.
7119
7120 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7121
7122         * configure.host <cris-*-* | crisv32-*-*>: Set
7123         default_newlib_io_long_long="yes".
7124
7125 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7126
7127         * libc/include/libgen.h: New file.
7128
7129 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7130
7131         * libc/unix/Makefile.am: Add support for basename and dirname.
7132         * libc/unix/Makefile.in: Regenerated.
7133         * libc/unix/basename.c: New file.
7134         * libc/unix/dirname.c: New file.
7135
7136 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7137
7138         * libc/sys/linux/inode.c (lchown): New function.
7139
7140 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7141
7142         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7143         ELIX level is defined.
7144         * libc/unix/Makefile.in: Regenerated.
7145
7146 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7147
7148         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7149         something that looks like a "NaN", put back the characters processed.
7150
7151 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7152
7153         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7154
7155 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7156
7157         * configure.host: For cygwin, redefine CC with cygwin include directory
7158         first to mimic the behavior of the top-level configury.  Move include
7159         directory out of newlib_cflags.
7160
7161 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7162
7163         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7164         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7165         than errno.
7166
7167 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7168
7169         * libc/include/machine/_types.h: Make trivial change to comment to
7170         avoid a spurious warning from gcc.
7171
7172 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7173
7174         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7175         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7176         reent.h include.
7177
7178 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7179             Corinna Vinschen  <corinna@vinschen.de>
7180
7181         * libc/include/ctype.h: Remove invalid +1 offset from
7182         ctype macro references to __ctype_ptr.
7183         (_ctype_): Move declaration outside #ifndef __cplusplus.
7184
7185 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7186
7187         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7188         evaluate first parameter only once.
7189         (siglongjmp): Ditto.
7190
7191 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7192
7193         * configure.in: Add new check to see if compiler supports
7194         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7195         * configure: Regenerated.
7196         * Makefile.in: Ditto.
7197         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7198         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7199         aliasing the _ctype_ array to _ctype_b.
7200         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7201         _ctype_ as deprecated.
7202
7203 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7204
7205         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7206         -DCOMPACT_CTYPE.
7207
7208 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7209
7210         * libc/sys/rtems/include/inttypes.h: New file.
7211         * libc/sys/rtems/include/stdint.h: Ditto.
7212
7213 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7214
7215         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7216
7217 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7218
7219         * libc/include/machine/_types.h: New file.
7220         * libc/include/sys/types.h: Do not check for __rtems__
7221         when including <machine/_types.h>.  Remove some redundant
7222         declarations now that <machine/_types.h> is included.
7223         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7224         shared header file.
7225
7226 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7227
7228         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7229         L qualifier for these long constants.
7230
7231 2005-02-25  Eric Blake  <ebb9@byu.net>
7232
7233         * libc/include/time.h (__tzrule_struct): Make offset long, since
7234         a 16-bit int overflows on a 12-hour offset.
7235         * libc/sys/linux/include/time.h: Ditto.
7236         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7237         * libc/time/mktm_r.c: Ditto.
7238         * libc/time/gettzinfo.c: Ditto.
7239         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7240         years.  Fix '%z' to use long, not int.
7241
7242 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7243
7244         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7245         manipulate float values in integer form.
7246         * libm/common/sf_round.c: Ditto.
7247
7248 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7249
7250         * libc/include/sys/types.h [__rtems__]: Include new
7251         header file machine/_types.h.
7252         * libc/include/machine/types.h: Ditto.
7253         * libc/sys/rtems/machine/_types.h: New file.
7254
7255 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7256
7257         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7258         (timezone): Drop cast from definition.
7259
7260 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7261
7262         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7263         (__tzrule_type, __tzinfo_type): New types.
7264         (__gettzinfo): New function.
7265         * libc/sys/linux/include/time.h: Ditto.
7266         * libc/time/Makefile.am: Add gettzinfo.c.
7267         * libc/time/Makefile.in: Regenerated.
7268         * libc/time/local.h: Moved __tzrule_type to time.h.
7269         * libc/time/mktime.c: Call __gettzinfo to reference
7270         __tznorth, __tzyear, and __tzrule array.
7271         * libc/time/mktm_r.c: Ditto.
7272         * libc/time/strftime.c: Ditto.
7273         * libc/time/tzset_r.c: Ditto.  Also remove definition
7274         of __tzrule which is now in gettzinfo.c.  Change _timezone
7275         references to not cast to time_t.
7276         * libc/time/gettzinfo.c: New file.
7277
7278 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7279
7280         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7281
7282 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7283
7284         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7285
7286 2005-02-16  Eric Blake  <ebb9@byu.net>
7287
7288         * libc/time/time.tex: Improve the documentation.
7289         * libc/time/strftime.c: Improve the documentation.
7290         (iso_year_adjust): New helper function.
7291         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7292         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7293         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7294         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7295         Avoid core dumps on valid inputs (maxsize == 0, or
7296         tim_p->tm_isdst > 1).
7297
7298 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7299
7300         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7301         members to uid_t and gid_t according to SUSv3.
7302         * libc/include/sys/time.h (utimes):  Change second parameter
7303         to const according to SUSv3.
7304
7305 2005-02-07  Antony King  <antony.king@st.com>
7306
7307         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
7308         called before _flockfile to prevent lock object use before
7309         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
7310         take a struct _reent * instead of a FILE *.
7311         * libc/stdio/fclose.c (_fclose_r): Ditto.
7312         * libc/stdio/feof.c (feof): Ditto.
7313         * libc/stdio/ferror.c (ferror): Ditto.
7314         * libc/stdio/fflush.c (fflush): Ditto.
7315         * libc/stdio/fgetc.c (fgetc): Ditto.
7316         * libc/stdio/fgets.c (fgets): Ditto.
7317         * libc/stdio/fileno.c (fileno): Ditto.
7318         * libc/stdio/fputc.c (fputc): Ditto.
7319         * libc/stdio/fputs.c (fputs): Ditto.
7320         * libc/stdio/fread.c (fread): Ditto.
7321         * libc/stdio/freopen.c (_freopen_r): Ditto.
7322         * libc/stdio/fseek.c (_fseek_r): Ditto.
7323         * libc/stdio/ftell.c (_ftell_r): Ditto.
7324         * libc/stdio/fwrite.c (fwrite): Ditto.
7325         * libc/stdio/getc.c (getc): Ditto.
7326         * libc/stdio/getdelim.c (__getdelim): Ditto.
7327         * libc/stdio/putc.c (putc): Ditto.
7328         * libc/stdio/setvbuf.c (setvbuf): Ditto.
7329         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
7330         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
7331         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7332         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
7333         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
7334         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
7335         _reent * instead of a FILE * and so replace incorrect use of
7336         _REENT with argument.
7337         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
7338         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
7339         CHECK_INIT() take a struct _reent * instead of a FILE *.
7340         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
7341         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
7342         * libc/stdio/perror.c (perror): Ditto.
7343         * libc/stdio/printf.c (printf, _printf_r): Ditto.
7344         * libc/stdio/putchar.c (putchar): Ditto.
7345         * libc/stdio/puts.c (puts): Ditto.
7346         * libc/stdio/refill.c (__srefill): Ditto.
7347         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
7348         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
7349         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
7350         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
7351         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
7352         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
7353         * libc/stdio/wbuf.c (__swbuf): Ditto.
7354         * libc/stdio/wsetup.c (__swsetup): Ditto.
7355         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
7356         * libc/stdlib/mstats.c (_mstats_r): Ditto.
7357         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
7358         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
7359         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
7360         to _flockfile and _funlockfile; rely on locking in _ftell_r.
7361         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
7362         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
7363         initialision of _data field in FILE structure.
7364         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
7365
7366 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7367
7368         * libc/stdio/findfp.c (__sinit): Protect with new lock.
7369         (__sinit_lock): New lock.
7370         (__sinit_lock_acquire, __sinit_lock_release): New functions.
7371         * libc/stdio/local.h: Add reference to new __sinit locking
7372         functions.
7373
7374 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7375
7376         * libc/include/math.h (isfinite, isnormal, isunordered): Change
7377         input variable names to avoid mixups with nesting macros.
7378
7379 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7380
7381         * configure.host: Add support for cris-*-* and crisv32-*-*.
7382         * libc/include/machine/ieeefp.h: Ditto.
7383         * libc/include/machine/setjmp.h: Ditto.
7384         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
7385         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
7386         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
7387         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
7388         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
7389         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
7390         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
7391         files.
7392
7393 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7394
7395         * testsuite/newlib.string/memmove1.c: New test.
7396
7397 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7398
7399         * testsuite/include/check.h: Include stdlib.h.
7400
7401 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7402
7403         * Makefile.am (stmp-targ-include): Support include header files
7404         from machine directories.
7405         (install-data-local): Ditto.
7406         * Makefile.in: Regenerate.
7407
7408 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7409
7410         * libc/include/string.h: Remove Linux-specific declaration of
7411         strsignal and add #include <sys/string.h>.
7412         * libc/include/sys/string.h: New file.
7413         * libc/include/sys/linux/sys/string.h: New file with strsignal
7414         declaration deleted above.
7415
7416 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7417
7418         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
7419         to POSIX standard for "C" locale.  Allow %E and %O modifiers
7420         to be ignored as long as they precede valid specifiers according
7421         to POSIX.
7422
7423 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7424
7425         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7426         environment variable is set.
7427
7428 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7429
7430         * tzset_r.c (_tzname): Add a comma.
7431
7432 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
7433
7434         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
7435         _VFPRINTF_R.
7436
7437 2005-01-07  Paul Brook  <paul@codesourcery.com>
7438
7439         * configure.in: Add test for .init_array.
7440         * configure: Regenerate.
7441         * newlib.hin: Add HAVE_INITFINI_ARRAY.
7442         * libc/misc/Makefile.am: Add init.c
7443         * libc/misc/Makefile.in: Regenerate.
7444         * libc/misc/init.c: New file.
7445         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
7446         _init/_fini if they exist.
7447
7448 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7449
7450         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
7451         * (strtof): Ditto.
7452         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
7453         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
7454         functions for use by strtod and strtof.
7455         * Makefile.in: Regenerated.
7456
7457 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7458
7459         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
7460         bit-test in combination with NULL test.
7461
7462 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7463
7464         * README: Fix typo of LGPL.  Change "license" to "copyright".
7465
7466 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
7467
7468         * NEWS: Update with 1.13.0 info.
7469         * README: Ditto.
7470         * acinclude.m4: Change version number to 1.13.0.
7471         * aclocal.m4: Regenerated.
7472         * configure: Ditto.
7473         * doc/aclocal.m4: Ditto.
7474         * doc/configure: Ditto.
7475         * libc/*/aclocal.m4: Ditto.
7476         * libc/*/configure: Ditto.
7477         * libc/libc.texinfo: Ditto.
7478         * libm/*/aclocal.m4: Ditto.
7479         * libm/*/configure: Ditto.
7480         * libm/libm.texinfo: Ditto.
7481         * libc/sys/linux/shared.ld: Add VERS_1.13.
7482
7483 2004-12-17  Christian Groessler  <chris@groessler.org>
7484
7485         * libc/machine/z8k/memcmp.S: New file.
7486         * libc/machine/z8k/memcpy.S: Ditto.
7487         * libc/machine/z8k/memmove.S: Ditto.
7488         * libc/machine/z8k/memset.S: Ditto.
7489         * libc/machine/z8k/Makefile.am: Add new files.
7490         * libc/machine/z8k/Makefile.in: Regenerated.
7491         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
7492         part.  Implement Z8002 stdcall version.
7493
7494 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
7495
7496         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
7497         a low-level read if we don't get the full amount of bytes so
7498         EOF or error flags will be set.
7499
7500 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
7501
7502         * libc/time/tzset_r (_tzset_r): Properly skip over
7503         '/' when it is detected.
7504
7505 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7506
7507         * libc/time/tzset_r (_tzset_r): Fix loop.
7508
7509 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7510
7511         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
7512         m_day.
7513         (__tzcalc_limits): Fix reference to month array to be zero-based.
7514
7515 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
7516
7517         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
7518         and usleep.
7519
7520 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
7521
7522         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
7523         libgcc dependencies.
7524         (libm_la_LDFLAGS): Ditto.
7525         * Makefile.in: Regenerated.
7526
7527 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
7528
7529         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
7530         our link to use readlink so as to preserve any relative link created
7531         by install-toollibLIBRARIES.
7532         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
7533
7534 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
7535
7536         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
7537         time_t before including sys/stat.h, which uses it.
7538         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
7539         <linux/time.h> just prior to definition of __KERNEL__ so as to
7540         allow building on Debian Linux where otherwise, mktime would
7541         be redefined.
7542
7543 2004-11-26  Paul Brook  <paul@codesourcery.com>
7544
7545         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
7546
7547 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7548
7549         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
7550         const for value string parameter to match Single Unix and glibc.
7551         * libc/stdlib/putenv.c: Ditto.
7552         * libc/stdlib/putenv_r.c: Ditto.
7553
7554 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7555
7556         * libc/stdio/Makefile.am: Fix missing vfscanf.
7557         * libc/stdio/Makefile.in: Regenerated.
7558
7559 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
7560
7561         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
7562         do some reordering.
7563         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
7564         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
7565         family functions.
7566         * libc/stdio/Makefile.in: Regenerated.
7567         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
7568         * libc/stdio/iprintf.c: Ditto.
7569         * libc/stdio/local.h (__svfiscanf_r): New prototype.
7570         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
7571         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
7572         * libc/stdio/stdio.tex: Add new functions.
7573         * libc/stdio/vfscanf.c: Split out __sccl function to separate
7574         file and add special name defines so this file can be used
7575         to build vfiscanf.o.
7576         * libc/stdio/asiprintf.c: New file.
7577         * libc/stdio/fiscanf.c: Ditto.
7578         * libc/stdio/iscanf.c: Ditto.
7579         * libc/stdio/sccl.c: Ditto.
7580         * libc/stdio/siscanf.c: Ditto.
7581         * libc/stdio/vasiprintf.c: Ditto.
7582         * libc/stdio/viprintf.c: Ditto.
7583         * libc/stdio/viscanf.c: Ditto.
7584         * libc/stdio/vsiprintf.c: Ditto.
7585         * libc/stdio/vsiscanf.c: Ditto.
7586         * libc/stdio/vsniprintf.c: Ditto.
7587
7588 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
7589
7590         * libc/include/stdio.h: Add sniprintf.
7591         * libc/stdio/Makefile.am: Add sniprintf.c.
7592         * libc/stdio/Makefile.in: Regenerated.
7593         * libc/stdio/sniprintf.c: New file.
7594         * libc/stdio/stdio.tex: Add sniprintf.
7595
7596 2004-11-17  Christopher Faylor  <cgf@timesys.com>
7597
7598         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
7599         EOF flag if successful.
7600
7601 2004-10-28  Christopher Faylor  <cgf@timesys.com>
7602
7603         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
7604         so that all relevant definitions have been performed for use in the
7605         include.
7606
7607 2004-10-26  Jason Tishler  <jason@tishler.net>
7608
7609         * libc/stdio/fread.c (fread): Fix return value for unbuffered
7610         fread.
7611
7612 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7613
7614         * libc/include/machine/setjmp.h: Add AVR support.
7615         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
7616
7617 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
7618
7619         * libc/include/sys/signal.h: If <signal.h> didn't include
7620         this header file, include <signal.h> to account for
7621         applications that take advantage that the two header
7622         files are the same in glibc.
7623
7624 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
7625
7626         * configure.host: Add support for crx.
7627         * libc/include/machine/ieeefp.h: Ditto.
7628         * libc/include/machine/setjmp.h: Ditto.
7629         * libc/machine/crx/Makefile.am: New file.
7630         * libc/machine/crx/configure.in: Ditto.
7631         * libc/machine/crx/setjmp.S: Ditto.
7632         * libc/machine/crx/getenv.c: Ditto.
7633         * libc/machine/crx/aclocal.m4: Generate.
7634         * libc/machine/crx/configure: Ditto.
7635         * libc/machine/crx/Makefile.in: Ditto.
7636         * libc/machine/crx/sys/asm.h: New file.
7637         * libc/machine/crx/sys/libh.h: Ditto.
7638         * libc/machine/crx/sys/syscall.h: Ditto.
7639
7640 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
7641
7642         * Makefile.am (stmp-targ-include): Support sys header files
7643         from machine directories.
7644         * Makefile.in: Regenerated.
7645
7646 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
7647
7648         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
7649         count skipped zero characters as part of the nread count for %n.
7650         * libc/machine/powerpc/vfscanf.c: Ditto.
7651
7652 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
7653
7654         * libc/stdio/local.h: Include <stdlib.h>.
7655
7656 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
7657
7658         * libc/stdio/fread.c (fread): Include <malloc.h>.
7659
7660 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
7661
7662         * libc/stdio/fread.c (fread):  For non-space-optimized case,
7663         add special code for unbuffered files to use user buffer and
7664         only require one low-level system read.
7665
7666 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
7667
7668         * libc/machine/xscale/setjmp.S: New file, copied from
7669         libc/machine/arm/setjmp.S.
7670         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
7671         * libc/machine/xscale/Makefile.in: Regenerate.
7672
7673 2004-09-16  Antony King  <antony.king@st.com>
7674
7675         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
7676         with locking API.
7677         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
7678         check for__SSTR in _flags and if set, skip lock request.
7679         (_funlockfile)[!SINGLE_THREAD]: Ditto.
7680         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
7681         not NULL.
7682         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
7683         initialisation of _file to -1 in local FILE.
7684         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
7685         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
7686         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
7687         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7688         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
7689         _flags in local FILE to prevent locking.
7690         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7691
7692 2004-09-16  Antony King  <antony.king@st.com>
7693
7694         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
7695         and only walk the reentrancy parameter.
7696         (_fwalk_reent): Ditto.
7697         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
7698
7699 2004-09-16  Antony King  <antony.king@st.com>
7700
7701         * libc/stdio64/freopen64.c: Remove casting of fp lock to
7702         _LOCK_RECURSIVE_T.
7703
7704 2004-09-16  Antony King  <antony.king@st.com>
7705
7706         * libc/time/tzlock.c: Add default stubs that use generic
7707         locking code.
7708
7709 2004-09-16  Antony King  <antony.king@st.com>
7710
7711         * libc/ctype/ctype.tex: Added missing documentation.
7712         * libc/stdio/stdio.tex Ditto.
7713         * libc/stdlib/stdlib.tex Ditto.
7714         * libc/string/strings.tex Ditto.
7715         * libc/time/time.tex: Ditto.
7716         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
7717
7718 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
7719
7720         * libc/reent/impure.c (reent_data): Define as alias to impure_data
7721         when building for Cygwin.
7722         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
7723         _global_impure_ptr.
7724
7725 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
7726
7727         * configure.host: Reverting 2004-09-14 change as fix has occurred on
7728         Cygwin side.
7729         * configure.in: Ditto.
7730         * libc/configure.in: Ditto.
7731         * libc/sys/configure.in: Ditto.
7732         * configure: Ditto.
7733         * libc/configure: Ditto.
7734         * libc/sys/configure: Ditto.
7735         * libc/include/sys/reent.h: Ditto.
7736         * libc/stdlib/__atexit.c: Ditto.
7737         * libc/stdlib/__call_atexit.c: Ditto.
7738         * libc/stdlib/cxa_atexit.c: Ditto.
7739         * libc/stdlib/cxa_finalize.c: Ditto.
7740         * libc/sys/cygwin/Makefile.am: Removed again.
7741         * libc/sys/cygwin/Makefile.in: Ditto.
7742         * libc/sys/cygwin/aclocal.m4: Ditto.
7743         * libc/sys/cygwin/configure: Ditto.
7744         * libc/sys/cygwin/configure.in: Ditto.
7745         * libc/sys/cygwin/dummy.c: Ditto.
7746         * libc/sys/cygwin/sys/reent.h: Ditto.
7747
7748 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
7749
7750         * configure.host: Add Cygwin sys directory.
7751         * configure.in: Do not set CRT0 for cygwin.
7752         * libc/configure.in: Ditto.
7753         * libc/sys/configure.in: Ditto.
7754         * configure: Regenerated.
7755         * libc/configure: Ditto.
7756         * libc/sys/configure: Ditto.
7757         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
7758         * libc/stdlib/__atexit.c: Keep cxa support protected by new
7759         __REENT_HAS_CXA_SUPPORT flag.
7760         * libc/stdlib/__call_atexit.c: Ditto.
7761         * libc/stdlib/cxa_atexit.c: Ditto.
7762         * libc/stdlib/cxa_finalize.c: Ditto.
7763         * libc/sys/cygwin/Makefile.am: New file.
7764         * libc/sys/cygwin/Makefile.in: Ditto.
7765         * libc/sys/cygwin/aclocal.m4: Ditto.
7766         * libc/sys/cygwin/configure: Ditto.
7767         * libc/sys/cygwin/configure.in: Ditto.
7768         * libc/sys/cygwin/dummy.c: Ditto.
7769         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
7770         version of reent.h.
7771
7772 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7773
7774         * libc/iconv/iconv.tex: Updated with new content.
7775         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
7776         instead of NLS_DEFAULT_NLSPATH.
7777         * libc/iconv/lib/iconvnls.h: Fix typo.
7778         * libc/include/sys/iconvnls.h: New file.
7779
7780 2004-09-09  Paul Brook  <paul@codesourcery.com>
7781
7782         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
7783         and _is_cxa.
7784         (struct _atexit): Add _next when _REENT_SMALL.
7785         (struct _reent): Add _atexit0 when _REENT_SMALL.
7786         (_REENT_INIT_PTR): Adjust.
7787         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
7788         __call_exit.c.
7789         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
7790         * libc/stdlib/Makefile.in: Regenerate.
7791         * libc/stdlib/__atexit.c: New file.
7792         * libc/stdlib/__call_atexit.c: New file.
7793         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
7794         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
7795         * libc/stdlib/cxa_atexit.c: New file.
7796         * libc/stdlib/cxa_finalize.c: New file.
7797         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
7798         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
7799         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
7800         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
7801         _on_exit_args_ptr.
7802
7803 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
7804
7805         * libc/include/sys/unistd.h (getpass): Change prototype to use
7806         const instead of __const.
7807
7808 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7809
7810         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
7811         #if.
7812
7813 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
7814
7815         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
7816         on linux systems with glibc 2.3.3 installed.
7817         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
7818         profile_fixup so newlib can build on fc3 system.
7819
7820 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
7821
7822         Introduce SH2a support.
7823         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
7824         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
7825         __SH2A_SINGLE_ONLY__, too.
7826         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
7827         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
7828         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
7829         2004-02-10  DJ Delorie  <dj@redhat.com>
7830         * libc/sys/sh/crt0.S (start_l): Support sh2a.
7831
7832 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
7833
7834         * libc/time/strptime.c: Correct full-name of "March" typo.
7835
7836 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
7837
7838         * configure.host (h8300*-*-*): Default long long printing support.
7839
7840 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
7841
7842         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
7843         calls, if realloc fails, free up buffer as it is no longer
7844         used.
7845
7846 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7847
7848         * libc/iconv/iconv.tex: Updated to represent recent changes.
7849         * libc/iconv/lib/iconv.c: Documentation updated.
7850
7851 2004-07-07  Nick Clifton  <nickc@redhat.com>
7852
7853         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
7854         for xStormy16.
7855
7856 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
7857
7858         * configure.host (mips*-*-elf*): Default long long printing
7859         support.
7860
7861 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
7862
7863         * libc/Makefile.am (libc.dvi): Add target and specify
7864         same dependencies as libc.info.
7865         * libc/Makefile.in: Regenerated.
7866         * libm/Makefile.am (libm.dvi): Add target and specify
7867         same dependencies as libm.info.
7868         * libm/Makefile.in: Regenerated.
7869
7870 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7871
7872         * acinclude.m4: Move --enable-newlib-iconv option back here.
7873         * configure.in: Remove --enable-newlib-iconv option.  Don't
7874         tie iconv support to --enable-newlib-mb.
7875         * aclocal.m4: Regenerated.
7876         * configure: Ditto.
7877         * doc/aclocal.m4, doc/configure: Ditto.
7878         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
7879         * libm/*/aclocal.m4: Ditto.
7880         * libm/*/configure: Ditto.
7881         * libc/*/aclocal.m4: Ditto.
7882         * libc/*/configure: Ditto.
7883
7884 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7885
7886         * acinclude.m4: Move iconv options into configure.in.
7887         * aclocal.m4: Regenerated.
7888         * configure: Ditto.
7889         * configure.in: Add iconv options.
7890         * newlib.hin: Add new iconv encodings and remove deleted ones.
7891         * doc/aclocal.m4: Regenerated.
7892         * doc/configure: Ditto.
7893         * iconvdata/aclocal.m4: Ditto.
7894         * iconvdata/configure: Ditto.
7895         * libc/iconv: Design change.  New size-optimized ccs format.
7896         * libc/iconv/AUTHORS: Removed.
7897         * libc/iconv/COPYING: Ditto.
7898         * libc/iconv/README.ORIGINAL: Ditto.
7899         * libc/iconv/README.TODO: Ditto.
7900         * libc/iconv/charset.aliases: Ditto.
7901         * libc/iconv/encoding.aliases: New file.
7902         * libc/iconv/Makefile.am: Updated.
7903         * libc/iconv/Makefile.in: Regenerated.
7904         * libc/iconv/iconv.tex: Updated.
7905         * libc/iconv/ccs/Makefile.am: Ditto.
7906         * libc/iconv/ccs/Makefile.in: Regenerated.
7907         * libc/iconv/ccs/big5.c: Updated.
7908         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
7909         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
7910         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
7911         * libc/iconv/ccs/cp775.c: Ditto.
7912         * libc/iconv/ccs/cp850.c: Ditto.
7913         * libc/iconv/ccs/cp852.c: Ditto.
7914         * libc/iconv/ccs/cp855.c: Ditto.
7915         * libc/iconv/ccs/cp866.c: Ditto.
7916         * libc/iconv/ccs/iso_8859_1.c: Ditto.
7917         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
7918         * libc/iconv/ccs/gb_2312_80.c: Ditto.
7919         * libc/iconv/ccs/iconv_mktbl: Ditto.
7920         * libc/iconv/ccs/jis_x0201.c: Ditto.
7921         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
7922         * libc/iconv/ccs/shift_jis.c: Ditto.
7923         * libc/iconv/ccs/us_ascii.c: Ditto.
7924         * libc/iconv/ccs/ccs.h: New file.
7925         * libc/iconv/ccs/ccsbi.c: Ditto.
7926         * libc/iconv/ccs/ccsbi.h: Ditto.
7927         * libc/iconv/ccs/ccsnames.h: Ditto.
7928         * libc/iconv/ccs/iso_8859_10.c: Ditto.
7929         * libc/iconv/ccs/iso_8859_11.c: Ditto.
7930         * libc/iconv/ccs/iso_8859_13.c: Ditto.
7931         * libc/iconv/ccs/iso_8859_14.c: Ditto.
7932         * libc/iconv/ccs/iso_8859_3.c: Ditto.
7933         * libc/iconv/ccs/iso_8859_6.c: Ditto.
7934         * libc/iconv/ccs/iso_8859_7.c: Ditto.
7935         * libc/iconv/ccs/iso_8859_8.c: Ditto.
7936         * libc/iconv/ccs/iso_8859_9.c: Ditto.
7937         * libc/iconv/ccs/iso_ir_111.c: Ditto.
7938         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
7939         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
7940         * libc/iconv/ccs/koi8_ru.c: Ditto.
7941         * libc/iconv/ccs/koi8_uni.c: Ditto.
7942         * libc/iconv/ccs/mktbl.pl: Ditto.
7943         * libc/iconv/ccs/win_1250.c: Ditto.
7944         * libc/iconv/ccs/win_1251.c: Ditto.
7945         * libc/iconv/ccs/win_1252.c: Ditto.
7946         * libc/iconv/ccs/win_1253.c: Ditto.
7947         * libc/iconv/ccs/win_1254.c: Ditto.
7948         * libc/iconv/ccs/win_1255.c: Ditto.
7949         * libc/iconv/ccs/win_1256.c: Ditto.
7950         * libc/iconv/ccs/win_1257.c: Ditto.
7951         * libc/iconv/ccs/win_1258.c: Ditto.
7952         * libc/iconv/ccs/iso_8859_15.c: Updated.
7953         * libc/iconv/ccs/iso_8859_2.c: Ditto.
7954         * libc/iconv/ccs/iso_8859_4.c: Ditto.
7955         * libc/iconv/ccs/iso_8859_5.c: Ditto.
7956         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
7957         * libc/iconv/ccs/koi8_r.c: Ditto.
7958         * libc/iconv/ccs/koi8_u.c: Ditto.
7959         * libc/iconv/ccs/ksx1001.c: Ditto.
7960         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
7961         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
7962         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
7963         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
7964         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
7965         * libc/iconv/ccs/binary/Makefile.am: Updated.
7966         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
7967         * libc/iconv/ccs/binary/big5.cct: Updated.
7968         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
7969         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
7970         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
7971         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
7972         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
7973         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
7974         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
7975         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
7976         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
7977         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
7978         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
7979         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
7980         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
7981         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
7982         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
7983         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
7984         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
7985         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
7986         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
7987         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
7988         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
7989         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
7990         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
7991         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
7992         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
7993         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
7994         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
7995         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
7996         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
7997         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
7998         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
7999         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
8000         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
8001         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
8002         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
8003         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
8004         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
8005         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
8006         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
8007         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
8008         * libc/iconv/ces/Makefile.am: Updated.
8009         * libc/iconv/ces/Makefile.in: Regenerated.
8010         * libc/iconv/ces/ucs-2-internal.c: Updated.
8011         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8012         * libc/iconv/ces/utf-16.c: Ditto.
8013         * libc/iconv/ces/utf-8.c: Ditto.
8014         * libc/iconv/ces/cesbi.c: New file.
8015         * libc/iconv/ces/cesbi.h: Ditto.
8016         * libc/iconv/ces/cesdeps.h: Ditto.
8017         * libc/iconv/ces/euc.c: Ditto.
8018         * libc/iconv/ces/mkdeps.pl: Ditto.
8019         * libc/iconv/ces/table-pcs.c: Ditto.
8020         * libc/iconv/ces/table.c: Ditto.
8021         * libc/iconv/ces/ucs-2.c: Ditto.
8022         * libc/iconv/ces/ucs-4.c: Ditto.
8023         * libc/iconv/ces/us-ascii.c: Ditto.
8024         * libc/iconv/ces/euc-jp.c: Removed.
8025         * libc/iconv/ces/euc-kr.c: Ditto.
8026         * libc/iconv/ces/euc-tw.c: Ditto.
8027         * libc/iconv/ces/gb2312.c: Ditto.
8028         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
8029         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8030         * libc/iconv/lib/Makefile.am: Updated.
8031         * libc/iconv/lib/Makefile.in: Regenerated.
8032         * libc/iconv/lib/endian.h: Updated.
8033         * libc/iconv/lib/iconv.c: Ditto.
8034         * libc/iconv/lib/local.h: Ditto.
8035         * libc/iconv/lib/aliases.c: Removed.
8036         * libc/iconv/lib/bialiasesi.c: Ditto.
8037         * libc/iconv/lib/biccs.c: Ditto.
8038         * libc/iconv/lib/bices.c: Ditto.
8039         * libc/iconv/lib/ccs.c: Ditto.
8040         * libc/iconv/lib/ces.c: Ditto.
8041         * libc/iconv/lib/ces_euc.c: Ditto.
8042         * libc/iconv/lib/ces_iso2022.c: Ditto.
8043         * libc/iconv/lib/ces_table.c: Ditto.
8044         * libc/iconv/lib/converter.c: Ditto.
8045         * libc/iconv/lib/deps.h: Ditto.
8046         * libc/iconv/lib/loaddata.c: Ditto.
8047         * libc/iconv/lib/aliasesbi.c: New file.
8048         * libc/iconv/lib/aliasesi.c: Ditto.
8049         * libc/iconv/lib/conv.h: Ditto.
8050         * libc/iconv/lib/encnames.h: Ditto.
8051         * libc/iconv/lib/encoding.deps: Ditto.
8052         * libc/iconv/lib/iconvnls.c: Ditto.
8053         * libc/iconv/lib/iconvnls.h: Ditto.
8054         * libc/iconv/lib/nullconv.c: Ditto.
8055         * libc/iconv/lib/ucsconv.c: Ditto.
8056         * libc/iconv/lib/ucsconv.h: Ditto.
8057         * libc/include/iconv.h: Update copyright.
8058         * libc/*/aclocal.m4: Regenerated.
8059         * libc/*/configure: Ditto.
8060         * libm/*/aclocal.m4: Ditto.
8061         * libm/*/configure: Ditto.
8062
8063 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
8064
8065         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
8066         instead of typedefing jmp_buf.
8067
8068         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
8069         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
8070         * libc/machine/h8300/defines.h (LEN): New macro.
8071         * libc/machine/h8300/memcpy.S: Add h8sx version.
8072         * libc/machine/h8300/memset.S: Likewise.
8073         * libc/machine/h8300/strcmp.S: Likewise.
8074         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8075         * libc/machine/h8300/h8sx_strcpy.S: New file.
8076         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8077         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8078         __H8300SX__.
8079         * libc/include/machine/setjmp.h: Likewise.
8080         * libc/include/sys/config.h: Likewise.
8081         * libc/machine/h8300/defines.h: Likewise.
8082         * libc/machine/h8300/setjmp.S: Likewise.
8083         * libc/machine/h8300/strcmp.S: Likewise.
8084         * libc/sys/h8300hms/close.S: Likewise.
8085         * libc/sys/h8300hms/fstat.S: Likewise.
8086         * libc/sys/h8300hms/lseek.S: Likewise.
8087         * libc/sys/h8300hms/read.S: Likewise.
8088         * libc/sys/h8300hms/write.S: Likewise.
8089         * libc/sys/h8300hms/crt0.S: Likewise.
8090         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8091         __H8300SX__ is defined.
8092         * libc/sys/h8300hms/setarch.h: Likewise.
8093
8094 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8095
8096         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8097         out change which set _GLOBAL_REENT to _global_impure_ptr until
8098         we understand why Cygwin breaks because of it.
8099
8100 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8101
8102         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8103         __syscall_return macro for systems with vsyscall.
8104
8105 2004-06-11  Antony King  <antony.king@st.com>
8106
8107         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8108         _flock_t to be of type _LOCK_RECURSIVE_T.
8109         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8110         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8111         (_global_impure_ptr): New declaration.
8112         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8113         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8114         <sys/reent.h>.
8115         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8116         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8117         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8118         * libc/stdio/fclose.c: Remove casting of fp lock to
8119         _LOCK_RECURSIVE_T.
8120         * libc/stdio/findfp.c: Ditto.
8121         * libc/stdio/fopen.c: Ditto.
8122         * libc/stdio/freopen.c: Ditto.
8123         * libc/stdio/vfprintf.c: Ditto.
8124         * libc/stdio64/fopen64.c: Ditto.
8125         * libc/stdlib/envlock.c: Add default stubs that use generic
8126         locking code.
8127         * libc/stdlib/mlock.c: Ditto.
8128
8129         Jeff Johnston  <jjohnstn@redhat.com>
8130         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8131         (_flock_t): Change to be a struct containing a single member
8132         named mutex which is of type __flock_mutex_t.
8133
8134 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8135
8136         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8137         from /usr/include/asm/signal.h instead of kernel sources.  Also
8138         default max to 32 if not found in header file.
8139         * libc/sys/linux/Makefile.in: Regenerated.
8140         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8141         systems where __syscall_return is not defined.
8142         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8143         systems to use syscall() function instead of assembler interrupt.
8144
8145 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8146
8147         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8148         files from libc/sys/arm to libc/machine/arm.
8149         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8150         library build support for files moved from libc/sys/arm.
8151         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8152         references to access and setjmp.
8153         * configure.host: Add checks for newlib_may_supply_syscalls to
8154         determine whether or not to use sys/arm directory and use
8155         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8156
8157 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8158
8159         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8160         reset digit flags appropriately after we have discovered "0x".
8161         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8162
8163 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8164
8165         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8166         from here ...
8167         (_VFPRINTF_R): ... to here so all I/O printf routines
8168         are covered.
8169
8170 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8171
8172         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8173         redefinition.
8174         * libc/search/hash.c: Ditto.
8175
8176 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8177
8178         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8179         (_WANT_IO_LONG_LONG): Ditto.
8180         (_WANT_IO_LONG_DOUBLE): Ditto.
8181         * configure.in: Add new configuration options
8182         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8183         which tie to new defines in newlib.hin.
8184         * configure: Regenerated.
8185         * configure.host: Add checks for new configuration options.  Also
8186         fix up check for --enable-newlib-io-pos-args so configuration
8187         option will override any default for a given platform.
8188         Remove defining compiler flags for the _WANT_IO* options.
8189         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8190         instead of looking for old compiler flags.
8191         * libc/stdio/vfscanf.c: Ditto.
8192         * libc/stdio/vfieeefp.h: Ditto.
8193         * libc/machine/powerpc/vfprintf.c: Ditto.
8194         * libc/machine/powerpc/vfscanf.c: Ditto.
8195
8196 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8197
8198         * testsuite/include/check.h: Add include of <stdio.h>.
8199
8200 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8201
8202         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8203
8204 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8205
8206         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8207         of free.
8208
8209 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8210
8211         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8212         list for reentrant pointer.  Call _vfiprintf_r.
8213         * libc/stdio/siprintf.c (_siprintf_r): New function.
8214         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8215         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8216         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8217         prototypes.
8218
8219 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8220
8221         * libc/include/sys/param.h: Remove endian info and include
8222         <machine/endian.h> instead.
8223         * libc/include/machine/endian.h: New file.
8224         * libc/include/machine/param.h: Ditto.
8225         * libc/machine/arm/machine/endian.h: Ditto.
8226         * libc/machine/arm/machine/param.h: Ditto.
8227         * libc/sys/arm/sys/param.h: Removed.
8228         * libc/sys/sysvi386/sys/param.h: Ditto.
8229         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8230
8231 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8232
8233         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8234         multibyte functions return failure for %C, %S, %lc, and %ls
8235         format specifiers.
8236
8237 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8238
8239         * testsuite/include/check.h (CHECK): Add flush of stdout.
8240
8241 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8242
8243         * libc/include/stdio.h (_ungetc_r): New prototype.
8244         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8245         (__submore): Add reentrant struct pointer argument.
8246         (ungetc): Change to call _ungetc_r.
8247
8248 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8249
8250         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8251         function pointer argument.
8252         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8253         to specify function pointer arguments.
8254         (__fwalk, __fwalk_reent): Ditto.
8255
8256 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8257
8258         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8259         CT_INT case.
8260
8261 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8262
8263         * configure.in: Define _MB_CAPABLE if mb supported.
8264         * configure: Regenerated.
8265         * configure.host: Remove manual setting of MB_CAPABLE compiler
8266         flag.
8267         * newlib.hin: Add _MB_CAPABLE flag.
8268         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8269         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8270         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8271         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8272         * libc/ctype/jp2uc.c: Ditto.
8273         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8274         * libc/locale/locale.c: Ditto
8275         * libc/machine/powerpc/vfscanf.c: Ditto
8276         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8277         * libc/stdlib/mblen.c: Ditto
8278         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8279         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8280         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8281         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8282         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8283         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8284         * libc/sys/linux/intl/explodename.c: Ditto
8285         * libc/sys/linux/intl/finddomain.c: Ditto
8286         * libc/sys/linux/intl/l10nflist.c: Ditto
8287         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8288         * libc/sys/linux/intl/localealias.c: Ditto
8289
8290 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8291
8292         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8293         (__svfscanf_r): In integer conversions, leave out leading zeroes
8294         which are not part of a base prefix.
8295         Keep track of width truncation to fit into buf, not counting left-out
8296         zeroes against width till the truncation has been compensated for.
8297         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8298
8299 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8300
8301         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8302
8303 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8304
8305         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
8306         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
8307         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
8308         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
8309         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
8310         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
8311         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
8312         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
8313         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
8314         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
8315         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
8316         libc/stdio/getchar.c libc/stdio/getchar_u.c,
8317         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
8318         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
8319         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
8320         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
8321         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
8322         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
8323         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
8324         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
8325         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
8326         libc/stdio/siprintf.c libc/stdio/snprintf.c,
8327         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
8328         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
8329         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
8330         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
8331         libc/stdio/vprintf.c libc/stdio/vscanf.c,
8332         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
8333         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
8334         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
8335         copyright notices to top of file, ensure that <_ansi.h> is
8336         included, be consistent with open parentheses, use _DEFUN macro,
8337         include "local.h" where needed, and remove various compiler
8338         warnings.
8339
8340 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
8341
8342         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
8343         (__svfscanf_r): In integer conversions, leave out leading zeroes
8344         which are not part of a base prefix.
8345         Keep track of width truncation to fit into buf, not counting left-out
8346         zeroes against width till the truncation has been compensated for.
8347
8348 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8349
8350         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
8351
8352 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8353
8354         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
8355
8356 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
8357
8358         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
8359         to SUSv3.
8360
8361 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8362
8363         * libc/stdio/fclose.c (_fclose_r): New function.
8364         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
8365         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
8366         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
8367         * libc/include/stdio.h (_fclose_r): New prototype.
8368         * libc/stdio/fopen.c: Fix typo in comment.
8369
8370 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8371
8372         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
8373         to handle _r reentrant functions.
8374
8375 2004-04-08  Eric Christopher  <echristo@redhat.com>
8376
8377         * libc/include/machine/setjmp.h: Fix endif locations.
8378
8379 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8380
8381         * libc/time/strptime.c: Add standard includes to avoid
8382         warning messages at compilation time.
8383
8384 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
8385
8386         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
8387         of file.
8388
8389 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
8390
8391         * libc/machine/h8300/Makefile.am: Reformat slightly.
8392         * libc/machine/h8300/Makefile.in: Regenerate.
8393
8394 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
8395
8396         * libc/stdio/findfp.c (__fp_lock_all): Add call to
8397         __sfp_lock_acquire.
8398         (__fp_unlock_all): Add call to __sfp_lock_release.
8399
8400 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
8401
8402         * libc/stdio/fclose.c (fclose): Protect file pointer list when
8403         releasing a file.
8404          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
8405         fwalk.
8406         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
8407         _flockfile/_funlockfile.
8408         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
8409         to recursive.
8410         Change __lock_acquire/__lock_release calls for __sfp_lock to
8411         __sfp_lock_acquire/__sfp_lock_release throughout.
8412         (std): Make sure that file lock is only initialized once.
8413         (__sfp): Move _file initialization. Initialize file lock.
8414         (__sfp_lock_acquire): New function.
8415         (__sfp_lock_release): Ditto.
8416         (__fp_lock_all): Remove __sfp_lock_acquire call.
8417         (__fp_unlock_all): Remove __sfp_lock_release call.
8418         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
8419         Add calls to _flockfile/_funlockfile. Remove
8420         __lock_init_recursive call.
8421         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
8422         * libc/stdio/fwalk.c (__fwalk): New static function.
8423         (_fwalk): Protect file pointer list. Use __fwalk to walk through
8424         file pointers.
8425         * libc/stdio/local.h: Add defines for
8426         __sfp_lock_acquire/__sfp_lock_release when
8427         single threaded. Add function prototypes otherwise.
8428         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
8429         _flockfile/_funlockfile.
8430         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
8431         Add calls to _flockfile/_funlockfile. Remove
8432          __lock_init_recursive call.
8433         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
8434         list.
8435
8436 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
8437
8438         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
8439         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
8440         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
8441         to be __LOCK_INIT_RECURSIVE.
8442
8443 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
8444
8445         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
8446         _exit.c with _exit.S.
8447         * libc/sys/h8300hms/Makefile.in: Regenerate.
8448         * libc/sys/h8300hms/_exit.c: Remove.
8449         * libc/sys/h8300hms/_exit.S: New.
8450
8451 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
8452
8453         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
8454         Change __sfp_lock to static global.
8455         (__fp_lock): New static function.
8456         (__fp_unlock): Ditto.
8457         (__fp_lock_all): New function.
8458         (__fp_unlock_all): Ditto.
8459
8460 2004-02-10  Christopher Faylor  <cgf@redhat.com>
8461
8462         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
8463         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
8464         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
8465         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
8466
8467 2004-02-09  Christopher Faylor  <cgf@redhat.com>
8468
8469         * libc/include/time.h (TIMER_RELTIME): New define.
8470
8471 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
8472
8473         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
8474         * libc/stdlib/Makefile.in: Regenerated.
8475
8476 2004-02-08  Christopher Faylor  <cgf@redhat.com>
8477
8478         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
8479         * libc/include/sys/reent.h (__getreent): Protect against possibly being
8480         defined.
8481         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
8482
8483 2004-02-05  Paul Brook  <paul@codesourcery.com>
8484
8485         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
8486         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
8487
8488 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
8489
8490         * NEWS: Update with 1.12.0 info.
8491         * README: Ditto.
8492         * acinclude.m4: Change version number to 1.12.0.
8493         * aclocal.m4: Regenerated.
8494         * configure: Ditto.
8495         * doc/aclocal.m4: Ditto.
8496         * doc/configure: Ditto.
8497         * libc/*/aclocal.m4: Ditto.
8498         * libc/*/configure: Ditto.
8499         * libc/libc.texinfo: Ditto.
8500         * libm/*/aclocal.m4: Ditto.
8501         * libm/*/configure: Ditto.
8502         * libm/libm.texinfo: Ditto.
8503         * libc/sys/linux/shared.ld: Add VERS_1.12.
8504
8505 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
8506
8507         * configure.host: Add support for tic4x.
8508         * libc/include/machine/ieeefp.h: Ditto.
8509         * libc/include/machine/setjmp.h: Ditto.
8510         * libc/machine/tic4x/Makefile.am: New file.
8511         * libc/machine/tic4x/configure.in: Ditto.
8512         * libc/machine/tic4x/setjmp.S: Ditto.
8513         * libc/machine/tic4x/aclocal.m4: Generated.
8514         * libc/machine/tic4x/configure: Ditto.
8515         * libc/machine/tic4x/Makefile.in: Ditto.
8516
8517 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
8518
8519         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
8520         file chain on the passed in reentrancy struct if it
8521         is _GLOBAL_REENT.
8522
8523 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8524             Jeff Johnston  <jjohnstn@redhat.com>
8525
8526         * libc/iconv/iconv.tex: Updated with more information.
8527
8528 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
8529             Jeff Johnston  <jjohnstn@redhat.com>
8530
8531         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
8532         struct for std streams and traverse the global reeentrancy
8533         struct for all other streams.
8534
8535 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
8536
8537         * libc/stdlib/atexit.c: Protect global atexit list with a
8538         lock when newlib is multithreaded.
8539
8540 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8541
8542         * configure.in: Add support to generate iconv converter flags
8543         for newlib.h
8544         * newlib.hin: Add iconv converter flags.
8545         * configure: Regenerated.
8546         * libc/Makefile.in: Ditto.
8547         * libc/configure.in: Moved iconv converter parsing logic to
8548         top level newlib configure.in.
8549         * libc/configure: Regenerated.
8550         * libc/iconv/Makefile.in: Ditto.
8551         * libc/iconv/README.TODO
8552         * libc/iconv/charset.aliases: Remove wrong BE aliases for
8553         UCS2/UCS4/UTF8.
8554         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
8555         newlib.h can be used.
8556         * libc/iconv/ces/Makefile.am: Ditto.
8557         * libc/iconv/lib/Makefile.am: Ditto.
8558         * libc/iconv/ccs/Makefile.in: Regenerated.
8559         * libc/iconv/ces/Makefile.in: Ditto.
8560         * libc/iconv/lib/Makefile.in: Ditto.
8561         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
8562         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
8563         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
8564         defined in newlib.h.
8565         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8566         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8567         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8568         * libc/iconv/ccs/cp775.c: Ditto.
8569         * libc/iconv/ccs/cp850.c: Ditto.
8570         * libc/iconv/ccs/cp852.c: Ditto.
8571         * libc/iconv/ccs/cp855.c: Ditto.
8572         * libc/iconv/ccs/cp866.c: Ditto.
8573         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8574         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8575         * libc/iconv/ccs/iso_8859_15.c: Ditto.
8576         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8577         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8578         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8579         * libc/iconv/ccs/jis_x0201.c: Ditto.
8580         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8581         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8582         * libc/iconv/ccs/koi8_r.c: Ditto.
8583         * libc/iconv/ccs/koi8_u.c: Ditto.
8584         * libc/iconv/ccs/ksx1001.c: Ditto.
8585         * libc/iconv/ccs/shift_jis.c: Ditto.
8586         * libc/iconv/ccs/us_ascii.c: Ditto.
8587         * libc/iconv/ccs/binary/big5.cct: Newly generated.
8588         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8589         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8590         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8591         * libc/iconv/ccs/binary/cp775.cct: Ditto.
8592         * libc/iconv/ccs/binary/cp850.cct: Ditto.
8593         * libc/iconv/ccs/binary/cp852.cct: Ditto.
8594         * libc/iconv/ccs/binary/cp855.cct: Ditto.
8595         * libc/iconv/ccs/binary/cp866.cct: Ditto.
8596         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
8597         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8598         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8599         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8600         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8601         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8602         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8603         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8604         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8605         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8606         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8607         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8608         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8609         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8610         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
8611         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
8612         * libc/iconv/ces/euc-kr.c: Ditto.
8613         * libc/iconv/ces/euc-tw.c: Ditto.
8614         * libc/iconv/ces/gb2312.c: Ditto.
8615         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
8616         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8617         * libc/iconv/ces/ucs-2-internal.c: Ditto.
8618         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8619         * libc/iconv/ces/utf-16.c: Ditto.
8620         * libc/iconv/ces/utf-8.c: Ditto.
8621         * libc/iconv/lib/aliases.c: Ditto.
8622         * libc/iconv/lib/biccs.c: Ditto.
8623         * libc/iconv/lib/bices.c: Ditto.
8624         * libc/iconv/lib/ccs.c: Ditto.
8625         * libc/iconv/lib/ces.c: Ditto.
8626         * libc/iconv/lib/ces_euc.c: Ditto.
8627         * libc/iconv/lib/ces_iso2022.c: Ditto.
8628         * libc/iconv/lib/ces_table.c: Ditto.
8629         * libc/iconv/lib/converter.c: Ditto.
8630         * libc/iconv/lib/deps.h: Ditto.
8631         * libc/iconv/lib/endian.h: Ditto.
8632         * libc/iconv/lib/iconv.c: Ditto.
8633         * libc/iconv/lib/loaddata.c: Ditto.
8634         * libc/iconv/lib/local.h: Include newlib.h.
8635         * libc/argz/Makefile.in: Regenerated.
8636         * libc/ctype/Makefile.in: Ditto.
8637         * libc/errno/Makefile.in: Ditto.
8638         * libc/iconv/ccs/binary/Makefile.in: Ditto.
8639         * libc/locale/Makefile.in: Ditto.
8640         * libc/misc/Makefile.in: Ditto.
8641         * libc/posix/Makefile.in: Ditto.
8642         * libc/reent/Makefile.in: Ditto.
8643         * libc/search/Makefile.in: Ditto.
8644         * libc/signal/Makefile.in: Ditto.
8645         * libc/stdio/Makefile.in: Ditto.
8646         * libc/stdio64/Makefile.in: Ditto.
8647         * libc/stdlib/Makefile.in: Ditto.
8648         * libc/string/Makefile.in: Ditto.
8649         * libc/syscalls/Makefile.in: Ditto.
8650         * libc/time/Makefile.in: Ditto.
8651         * libc/unix/Makefile.in: Ditto.
8652         * testsuite/newlib.iconv/iconv.exp: New file.
8653         * testsuite/newlib.iconv/iconvjp.c: Ditto.
8654         * testsuite/newlib.iconv/iconvnm.c: Ditto.
8655         * testsuite/newlib.iconv/iconvru.c: Ditto.
8656
8657 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8658
8659         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
8660         (--enable-newlib-builtin-converters): Ditto.
8661         * configure.in: Add code to set _ICONV_ENABLED flag.
8662         Set _MB_LEN_MAX to 1 if not mb enabled.
8663         * configure: Regenerated.
8664         * aclocal.m4: Ditto.
8665         * Makefile.in: Ditto.
8666         * newlib.hin: Add _ICONV_ENABLED flag.
8667         * libc/Makefile.am: Add support for iconv.
8668         * libc/configure.in: Ditto.
8669         * libc/Makefile.in: Regenerated.
8670         * libc/aclocal.m4: Ditto.
8671         * libc/configure: Ditto.
8672         * libc/libc.texinfo: Add iconv documentation.
8673         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
8674         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
8675         libc/iconv/README.TODO, libc/iconv/charset.aliases,
8676         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
8677         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
8678         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
8679         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
8680         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
8681         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
8682         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
8683         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
8684         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
8685         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
8686         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
8687         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
8688         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
8689         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
8690         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
8691         libc/iconv/ccs/binary/big5.cct,
8692         libc/iconv/ccs/binary/cns11643_plane1.cct,
8693         libc/iconv/ccs/binary/cns11643_plane14.cct,
8694         libc/iconv/ccs/binary/cns11643_plane2.cct,
8695         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
8696         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
8697         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
8698         libc/iconv/ccs/binary/iso_8859_1.cct,
8699         libc/iconv/ccs/binary/iso_8859_15.cct,
8700         libc/iconv/ccs/binary/iso_8859_2.cct,
8701         libc/iconv/ccs/binary/iso_8859_4.cct,
8702         libc/iconv/ccs/binary/iso_8859_5.cct,
8703         libc/iconv/ccs/binary/jis_x0201.cct,
8704         libc/iconv/ccs/binary/jis_x0208_1983.cct,
8705         libc/iconv/ccs/binary/jis_x0212_1990.cct,
8706         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
8707         libc/iconv/ccs/binary/ksx1001.cct,
8708         libc/iconv/ccs/binary/shift_jis.cct,
8709         libc/iconv/ccs/binary/us_ascii.cct,
8710         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
8711         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
8712         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
8713         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
8714         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
8715         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
8716         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
8717         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
8718         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
8719         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
8720         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
8721         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
8722         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
8723         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
8724         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
8725         * libc/sys/linux/include/iconv.h: Ditto.
8726         * libc/include/sys/_types.h (_iconv_t): Added.
8727         * doc/aclocal.m4: Regenerated.
8728         * doc/configure: Ditto.
8729         * doc/Makefile.in: Ditto.
8730         * iconvdata/Makefile.in: Ditto.
8731         * iconvdata/aclocal.m4: Ditto.
8732         * iconvdata/configure: Ditto.
8733         * libc/*aclocal.m4: Ditto.
8734         * libc/*Makefile.in: Ditto.
8735         * libc/*configure: Ditto.
8736         * libm/*aclocal.m4: Ditto.
8737         * libm/*Makefile.in: Ditto.
8738         * libm/*configure: Ditto.
8739
8740 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8741
8742         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
8743         by a lock when newlib is multithreaded.
8744
8745 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
8746
8747         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
8748         pointer to match C99 spec.
8749         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
8750         dst is NULL.  Also fix to not alter src pointer when dst is NULL
8751         and call _mbrtowc_r instead of _mbtowc_r.
8752         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
8753         of _wctomb_r.
8754
8755 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
8756
8757         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
8758         * libc/stdio/freopen.c (freopen): Ditto.
8759
8760 2004-01-16  Christopher Faylor  <cgf@redhat.com>
8761
8762         * libc/stdio/vfprintf.c: Add sys/lock.h include.
8763
8764 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
8765
8766         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
8767         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
8768         Add calls to __lock_init_recursive and __lock_close_recursive
8769         instead.
8770
8771 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
8772
8773         * libc/stdio/fclose.c: Include sys/lock.h.
8774         (fclose): Destroy lock when file is closed.
8775         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
8776         member.
8777         * libc/stdio/freopen.c: Include sys/lock.h.
8778         (_freopen_r): Destroy lock when file is closed.
8779         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
8780         _lock member.
8781
8782 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8783
8784         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
8785         Remove warnings.
8786
8787 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8788
8789         * libc/sys/rtems/sys/queue.h: New file.
8790         * libc/include/sys/signal.h: Reflect renumbering of signals to
8791         fit into 32-bit mask.
8792         * libc/include/sys/unistd.h: Add fdatasync() prototype.
8793         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
8794         required.  In particular, add the reentrant variants of libc calls.
8795         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
8796
8797 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
8798
8799         * libc/sys/arm/syscalls.c (unistd.h): Include it.
8800         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
8801         Similarly for stdout and stderr.
8802
8803 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8804
8805         * libc/libc.texinfo: Correct escape character for @ sign
8806         so file will be processed by make info.  Update copyright years.
8807         * libm/libm.texinfo: Ditto.
8808
8809 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8810
8811         * libc/include/sys/stat.h: No longer include stat-dj.h.
8812         * libc/include/sys/stat-dj.h: Removed.
8813
8814 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8815
8816         * libc/include/wchar.h: Include <sys/reent.h>.
8817
8818 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8819
8820         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
8821         when defining _mbrtowc.
8822         * libc/stdlib/mbsinit.c: Ditto.
8823         * libc/stdlib/mbsrtowcs.c: Ditto.
8824         * libc/stdlib/wcrtomb.c: Ditto.
8825         * libc/stdlib/wcsrtombs.c: Ditto.
8826         * libc/stdlib/wctob.c: Ditto.
8827
8828 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8829
8830         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
8831         errors when defining _mbrtowc.
8832         * libc/stdlib/mbsinit.c: Ditto.
8833         * libc/stdlib/mbsrtowcs.c: Ditto.
8834
8835 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8836
8837         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
8838         errors when defining _mbrtowc.
8839
8840 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8841
8842         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
8843         of mb routines for %lc and %ls support.
8844         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
8845         %ls, and %S support.  Remove CYGNUS_NEC markers and
8846         code within.
8847
8848 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
8849
8850         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
8851         _wcrtomb_r, and _wcsrtombs_r.
8852
8853 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
8854
8855         * libc/include/sys/fcntl.h: Don't define struct flock when on
8856         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
8857
8858 2003-11-28  Christopher Faylor  <cgf@redhat.com>
8859
8860         * libc/include/sys/signal.h: Use system specific signal file when
8861         building on cygwin.
8862
8863 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8864
8865         * libc/include/stdlib.h (_atoi_r): New prototype.
8866         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
8867
8868 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8869
8870         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
8871         * libc/stdlib/atol.c (_atol_r): New reentrant function.
8872         * libc/stdlib/atoll.c (_atoll_r): Ditto.
8873
8874 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8875             Jeff Johnston  <jjohnstn@redhat.com>
8876
8877         * libc/include/stdlib.h (lldiv_t): New type.
8878         (atoll, llabs, lldiv): New prototypes.
8879         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
8880         * libc/stdlib/stdlib.tex: Ditto.
8881         * libc/stdlib/Makefile.in: Regenerated.
8882         * libc/stdlib/atoll.c: New file.
8883         * libc/stdlib/llabs.c: Ditto.
8884         * libc/stdlib/lldiv.c: Ditto.
8885
8886 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
8887
8888         * libc/include/fcntl.h: Declare syscalls only when building newlib.
8889         * libc/include/unistd.h: Ditto.
8890         * libc/include/stat.h: Ditto.  Also declare struct stat64.
8891
8892 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8893
8894         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
8895         specifier to use ch instead of *fmt.
8896
8897 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8898
8899         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
8900         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
8901         use simple byte logic.
8902
8903 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
8904
8905         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
8906         _strtold routine for processing floats and doubles since it
8907         is not as fast as _strtod_r.
8908
8909 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8910
8911         * libc/machine/h8300/defines.h : Correct pointer register defines
8912         for normal mode.
8913         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
8914         for normal mode.
8915         * libc/machine/h8300/reg_memcpy.S : Likewise.
8916         * libc/machine/h8300/reg_memset.S : Likewise.
8917         * libc/machine/h8300/strcmp.S : Likewise.
8918
8919 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
8920
8921         * configure.host: Enable positional arguments for printf
8922         family for Cygwin.
8923         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
8924         pointer reference for quad_ptr_t.
8925
8926 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
8927
8928         * libc/stdio/scanf.c: Don't include local.h more than once.
8929
8930 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
8931
8932         * libc/include/sys/fcntl.h: Declare _open64.
8933         * libc/include/sys/stat.h: Declare _fstat64.
8934         * libc/include/sys/unistd.h: Declare _lseek64.
8935
8936 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
8937
8938         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
8939         (setprogname): Ditto.
8940
8941 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
8942
8943         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
8944         to use (Ebits + 1) which accounts for the sign-bit.
8945
8946 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
8947
8948         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
8949         x86 build.
8950         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
8951         and set up default flags to pass to aclocal.
8952         * iconvdata/Makefile.in: Regenerated.
8953         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
8954         and getpwuid routines.
8955         * libc/sys/linux/Makefile.in: Regenerated.
8956         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
8957         applications to link with newlib's shared libc library.
8958         * libc/sys/linux/getpwnam.c: Ditto.
8959         * libc/sys/linux/getpwuid.c: Ditto.
8960         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
8961         that were formerly supplied by /usr/include/linux/types.h with
8962         kernel types.
8963         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
8964         test _ELIX_LEVEL macro.
8965
8966 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
8967
8968         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
8969         referring to _NO_LONGLONG macro.
8970
8971 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
8972
8973         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
8974         in LOG() macro so this will compile on gcc 3.4 and up.
8975         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
8976         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
8977         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
8978         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
8979         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
8980         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
8981         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
8982         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
8983         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
8984         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
8985         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
8986         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
8987         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
8988         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
8989         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
8990         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
8991         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
8992         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
8993         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
8994         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
8995         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
8996         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
8997         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
8998         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
8999         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9000         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9001         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9002         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9003         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9004         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9005         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9006         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9007         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9008         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9009         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9010         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9011
9012 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9013             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9014
9015         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
9016         %ls, %S, %lc, and %C format specifiers.
9017         (get_arg): Ditto.
9018         * libc/stdio/sprintf.c: Add documentation regarding new
9019         format specifiers added in vfprintf.c.
9020
9021 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9022
9023         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
9024         to make code work as specified in standard.
9025
9026 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
9027
9028         * configure.in: Use absolute newlib basedir when forming
9029         CC_FOR_NEWLIB include options.
9030         * configure: Regenerated.
9031
9032 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9033
9034         * libc/string/wcsnlen.c: New file.
9035         * libc/include/wchar.h: Add wcsnlen prototype.
9036         * libc/string/Makefile.am: Add wcsnlen support.
9037         * libc/string/Makefile.in: Regenerated.
9038         * libc/string/wcstrings.tex: Add wcsnlen documentation.
9039
9040 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
9041
9042         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
9043
9044 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
9045
9046         * libc/locale/locale.c: Use double quotes in code.
9047         * libc/locale/locale.tex: Likewise.
9048         * libc/libc.texinfo: Hyphenate "floating-point".
9049         * libc/machine/necv70/necv70.tex: Likewise.
9050         * libc/stdio/sprintf.c: Likewise.
9051         * libc/stdio/sscanf.c: Likewise.
9052         * libc/stdlib/atof.c: Likewise.
9053         * libc/stdlib/ldtoa.c: Fix comment typo.
9054         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
9055         * libc/stdlib/ldiv.c: Likewise.
9056         * libm/common/s_expm1.c: Likewise.
9057         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
9058         * libm/common/s_infinity: Hyphenate "double- and single-precision".
9059         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
9060         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
9061         and "floating-point".
9062         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
9063         * libm/math/e_pow.c: Fix comment typo.
9064         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
9065         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
9066         * libm/math/s_atan.c: Likewise.
9067         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
9068         * libm/math/s_isnan.c: Hyphenate "single-precision" and
9069         "floating-point".  Use "nonzero".
9070         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9071         * libm/math/w_acos.c: Likewise.
9072         * libm/math/w_acosh.c: Likewise.
9073         * libm/math/w_asin.c: Likewise.
9074         * libm/math/w_atan2.c: Likewise.
9075         * libm/math/w_atanh.c: Likewise.
9076         * libm/math/w_cosh.c: Likewise.
9077         * libm/math/w_exp.c: Likewise.
9078         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9079         version of 2^x in the description.
9080         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9081         * libm/math/w_gamma.c: Likewise.
9082         * libm/math/w_hypot.c: Likewise.
9083         * libm/math/w_j0.c: Likewise.
9084         * libm/math/w_sinh.c: Likewise.
9085         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9086         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9087         "floating-point".
9088         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9089         * libm/mathfp/e_atanh.c: Likewise.
9090         * libm/mathfp/e_hypot.c: Likewise.
9091         * libm/mathfp/er_lgamma.c: Likewise.
9092         * libm/mathfp/s_acos.c: Likewise.
9093         * libm/mathfp/s_asine.c: Likewise.
9094         * libm/mathfp/s_asinh.c: Likewise.
9095         * libm/mathfp/s_atan.c: Likewise.
9096         * libm/mathfp/s_atan2.c: Likewise.
9097         * libm/mathfp/s_atangent.c: Likewise.
9098         * libm/mathfp/s_cosh.c: Likewise.
9099         * libm/mathfp/s_exp.c: Likewise.
9100         * libm/mathfp/s_fmod.c: Likewise.
9101         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9102         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9103         "floating-point".  Use "nonzero".
9104         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9105         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9106         * libm/mathfp/s_sineh.c: Likewise.
9107         * libm/mathfp/w_jn.c: Likewise.
9108
9109 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9110
9111         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9112         lines, to enable parallel make.
9113         * Makefile.in: Rebuilt.
9114
9115 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9116
9117         * libc/time/clock.c: Clarify documentation of return value when no
9118         measurement is available.
9119
9120 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9121
9122         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9123         * libm/configure: Regenerate.
9124         * libm/Makefile.in: Ditto.
9125
9126 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9127
9128         * libc/machine/sh/strncpy.S: New file.
9129         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9130         * libc/machine/sh/Makefile.in: Regenerate.
9131
9132 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9133
9134         * MAINTAINERS: Update my e-mail address.
9135
9136 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9137
9138         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9139
9140 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9141
9142         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9143         prototype.
9144         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9145         _simdldcheck().  Also add unsigned cast for index variable in
9146         for loop using sizeof operators.
9147         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9148         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9149         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9150         plus fix shift calculation for determining if there is a
9151         carry from word2.
9152
9153 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9154
9155         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9156         setgroupent for Cygwin.
9157
9158 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9159
9160         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9161         is different for _REENT_SMALL than when using regular reent
9162         struct.
9163
9164 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9165
9166         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9167         modern versions of GCC issue a warning.
9168
9169         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9170         after continuation characters that induces a warning from modern
9171         versions of GCC.
9172
9173 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9174
9175         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9176         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9177
9178 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9179
9180         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9181         * libc/stdlib/exit.c : Ditto.
9182         * libc/stdlib/on_exit.c: Ditto.
9183
9184 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9185
9186         * libc/include/reent.h: Define stat64 as __stat64 when
9187         compiling newlib for Cygwin.
9188
9189 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9190
9191         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9192         __stat64 when compiling newlib.
9193
9194 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9195
9196         * libc/include/stdio.h: Allow the io64 function prototypes for
9197         Cygwin when compiling newlib.
9198         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9199         to expose the Cygwin struct __stat64 type.
9200         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9201         pointer.
9202         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9203
9204 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9205
9206         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9207         definition to fseeko64.
9208
9209 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9210
9211         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9212         * libc/stdio: Globally remove/replace all references to fp->_data.
9213         Replace with _REENT or _GLOBAL_REENT where appropriate.
9214         * libc/stdio/asprintf.c: Ditto.
9215         * libc/stdio/fclose.c: Ditto.
9216         * libc/stdio/fvwrite.c: Ditto.
9217         * libc/stdio/makebuf.c: Ditto.
9218         * libc/stdio/refill.c: Ditto.
9219         * libc/stdio/local.h: Ditto.
9220         * libc/stdio/setvbuf.c: Ditto.
9221         * libc/stdio/sscanf.c: Ditto.
9222         * libc/stdio/stdio.c: Ditto.
9223         * libc/stdio/ungetc.c: Ditto.
9224         * libc/stdio/vfscanf.c: Ditto.
9225         * libc/stdio/vsscanf.c: Ditto.
9226         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9227         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9228         * libc/stdio/vsnprintf.c: Ditto.
9229         * libc/stdio/vsprintf.c: Ditto.
9230         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9231         instead of _REENT to walk file list.
9232         * libc/stdio/fflush.c: Ditto.
9233         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9234         version call reentrant version with _REENT argument.
9235         * libc/stdio/fsetpos.c: Ditto.
9236         * libc/stdio/fseek.c: Ditto.
9237         * libc/stdio/fseeko.c: Ditto.
9238         * libc/stdio/ftell.c: Ditto.
9239         * libc/stdio/ftello.c: Ditto.
9240         * libc/stdio/freopen.c: Ditto.
9241         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9242         new files to chain.  Also use _GLOBAL_REENT pointer for
9243         cleaning up.
9244         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9245         * libc/stdio/siprintf.c: Ditto.
9246         * libc/stdio/iprintf.c: Ditto.
9247         * libc/stdio/fprintf.c: Ditto.
9248         * libc/stdio/printf.c: Ditto.
9249         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9250         * libc/stdio/sprintf.c: Ditto.
9251         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9252         * libc/stdio/rewind.c: Call _fseek_r directly.
9253         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9254         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9255         data pointer.
9256         (get_arg): Add extra struct _reent pointer argument.
9257         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9258         to fp->_data.
9259         * libc/stdio64/fopen64.c: Ditto.
9260         * libc/stdio64/freopen64.c: Ditto.
9261         * libc/stdio64/fsetpos64.c: Ditto.
9262         * libc/stdio64/ftello64.c: Ditto.
9263         * libc/stdio64/local64.h: Ditto.
9264         * libc/stdio64/stdio64.c: Ditto.
9265         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9266         _fstat64_r for the meantime.
9267
9268 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9269
9270         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9271         overflow detection.
9272
9273 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9274
9275         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9276         extern "C".
9277
9278 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9279
9280         * libc/include/math.h: Add prototypes for __signbitf and
9281         __signbitd.
9282
9283 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9284
9285         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9286         correct type of conversion when dealing with EUCJP or SJIS.
9287         * libc/ctype/iswblank.c: Ditto.
9288         * libc/ctype/iswcntrl.c: Ditto.
9289         * libc/ctype/iswprint.c: Ditto.
9290         * libc/ctype/iswpunct.c: Ditto.
9291         * libc/ctype/iswspace.c: Ditto.
9292         * libc/ctype/towlower.c: Ditto.
9293         * libc/ctype/towupper.c: Ditto.
9294
9295 2003-07-31  Nick Clifton  <nickc@redhat.com>
9296
9297         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9298         before calling main, in case it saves its argument registers.
9299         Remove reference to deleted v850ea port.
9300         * configure.host: Remove reference to deleted v850ea port.
9301         Do not use -mv850 when building for v850e target.  This
9302         prevents the ctbp system register from being initialised.
9303
9304 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
9305
9306         * libc/stdio/vfprintf.c: Set output size to 1 when
9307         we have %f format with precision 0 and # flag not specified.
9308
9309 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
9310
9311         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
9312         .am33_2.
9313
9314 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9315
9316         * libc/stdio64/fdopen64.c: Include sys/lock.h.
9317
9318 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9319
9320         * configure.host: Find cygwin include directory, when appropriate.
9321
9322 2003-07-24  Christopher Faylor  <cgf@redhat.com>
9323
9324         * libc/stdio64/fdopen64.c: New file.
9325         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
9326         * libc/stdio64/Makefile.in: Regenerate.
9327         * libc/include/stdio.h (fdopen64): Define.
9328         * libc/include/stdio.h (_fdopen64_r): Ditto.
9329
9330 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9331
9332         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9333         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
9334         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
9335         restore callee-saved FP registers.
9336
9337 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9338
9339         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
9340         for __sh__.
9341         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
9342         truncate.c.
9343         * libc/sys/sh/Makefile.in: Regenerate.
9344         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
9345         * libc/sys/sh/ftruncate.c: New file.
9346         * libc/sys/sh/truncate.c: Likewise.
9347
9348 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9349
9350         * libc/include/math.h (nan, nanf): Update prototype to C99.
9351         * libm/common/s_nan.c (nan): Likewise.
9352         * libm/common/s_nanf.c (nanf, nan): Likewise.
9353         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
9354
9355 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
9356
9357         * libc/include/stdbool.h: Removed as this is defined by gcc.
9358
9359 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
9360
9361         * libc/include/stdbool.h: New header file defined by C99.
9362
9363 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9364
9365         * libc/include/sys/types.h (int8_t): Make signed.
9366
9367 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9368
9369         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
9370
9371 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
9372
9373         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
9374         on if we actually created the shared memory file exclusively.
9375
9376 2003-06-27  Joe Vornehm  <joev@mitre.org>
9377
9378         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
9379         comparisons to account for unsigned internal value w.
9380
9381 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
9382
9383         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
9384         wrbuf for a non-creating open.
9385
9386 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
9387
9388         * libc/machine/h8300/setarch.h: New.
9389         * libc/machine/h8300/memcpy.S: Use it.
9390         * libc/machine/h8300/memset.S: Likewise.
9391         * libc/machine/h8300/reg_memcpy.S: Likewise.
9392         * libc/machine/h8300/reg_memset.S: Likewise.
9393         * libc/machine/h8300/setjmp.S: Likewise.
9394         * libc/machine/h8300/strcmp.S: Likewise.
9395
9396 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
9397
9398         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
9399         to atexit().
9400
9401 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9402
9403         * configure.host (iq2000): Add tabs.
9404
9405 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9406
9407         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
9408         to handle latest on_exit change.
9409         * libc/sys/linux/Makefile.am: Remove special compilation
9410         for malloc.c and mcheck.c.
9411         * libc/sys/linux/Makefile.in: Regenerated.
9412         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
9413         after including <features.h>.
9414         * libc/sys/linux/mcheck.c: Ditto.
9415         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
9416         for <features.h>.
9417         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
9418         add -DNOT_IN_libc to C flags.
9419         * libc/sys/linux/intl/Makefile.in: Regenerated.
9420         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
9421         * libc/sys/linux/linuxthreads/semaphore.h: Include
9422         <bits/pthreadtypes.h>.
9423         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
9424         including <features.h>.
9425         * libc/sys/linux/sys/lock.h: Ditto.
9426
9427 2003-06-11  Nick Clifton  <nickc@redhat.com>
9428
9429         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
9430         _on_exit_args_ptr.
9431
9432 2003-06-10  Stan Cox  <scox@redhat.com>
9433             Anthony Green  <green@redhat.com>
9434
9435         * configure.host: Add iq2000 support.
9436         * newlib/libc/include/machine/ieeefp.h: Ditto.
9437         * newlib/libc/include/machine/setjmp.h: Ditto.
9438         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
9439         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
9440         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
9441         libc/machine/iq2000/Makefile.in: New files.
9442
9443 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
9444
9445         * libc/sys/h8300hms/setarch.h: New file.
9446         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
9447         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
9448         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
9449         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
9450
9451 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
9452
9453         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
9454         definition.
9455         * libc/argz/argz_add_sep.c: Ditto.
9456         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
9457         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
9458         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
9459         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
9460         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
9461         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
9462         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
9463         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
9464         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
9465         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
9466         * libc/posix/execl.c libc/posix/execle.c: Ditto.
9467         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
9468         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
9469         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
9470         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
9471         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
9472         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
9473         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
9474         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
9475         * libc/search/twalk.c libc/signal/signal.c: Ditto.
9476
9477 2003-06-05  Nick Clifton  <nickc@redhat.com>
9478
9479         * libc/include/sys/reent.h (struct _on_exit_args): New
9480         structure containing fields used by the on_exit() function.
9481         (struct _atexit): Include struct _on_exit_args.  For
9482         _REENT_SMALL do his via a pointer that is initialised when
9483         needed.
9484         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
9485         structure, if one has been allocated.
9486         * libc/stdlib/atexit.c (atexit): Update indirection to
9487         _fntypes field.
9488         * libc/stdlib/on_exit.c (on_exit): Indirect via the
9489         _on_exit_args structure.  For _REENT_SMALL, allocate a
9490         structure if one does not exist.
9491         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
9492         structure.
9493
9494 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
9495
9496         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
9497         * libc/sys/linux/net/Makefile.in: Regenerated.
9498
9499 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9500
9501         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
9502         * libc/reent/fcntlr.c: Ditto.
9503         * libc/reent/fstat64r.c: Ditto.
9504         * libc/reent/linkr.c: Ditto.
9505         * libc/reent/lseek64r.c: Ditto.
9506         * libc/reent/lseekr.c: Ditto.
9507         * libc/reent/openr.c: Ditto.
9508         * libc/reent/readr.c: Ditto.
9509         * libc/reent/reent.c: Ditto.
9510         * libc/reent/sbrkr.c: Ditto.
9511         * libc/reent/signalr.c: Ditto.
9512         * libc/reent/signgam.c: Ditto.
9513         * libc/reent/statr.c: Ditto.
9514         * libc/reent/timer.c: Ditto.
9515         * libc/reent/unlinkr.c: Ditto.
9516         * libc/reent/writer.c: Ditto.
9517         * libc/syscalls/sysclose.c: Ditto.
9518         * libc/syscalls/sysexecve.c: Ditto.
9519         * libc/syscalls/sysfcntl.c: Ditto.
9520         * libc/syscalls/sysfork.c: Ditto.
9521         * libc/syscalls/sysfstat.c: Ditto.
9522         * libc/syscalls/sysgetpid.c: Ditto.
9523         * libc/syscalls/sysgettod.c: Ditto.
9524         * libc/syscalls/syskill.c: Ditto.
9525         * libc/syscalls/syslink.c: Ditto.
9526         * libc/syscalls/syslseek.c: Ditto.
9527         * libc/syscalls/sysopen.c: Ditto.
9528         * libc/syscalls/sysread.c: Ditto.
9529         * libc/syscalls/syssbrk.c: Ditto.
9530         * libc/syscalls/sysstat.c: Ditto.
9531         * libc/syscalls/systimes.c: Ditto.
9532         * libc/syscalls/sysunlink.c: Ditto.
9533         * libc/syscalls/syswait.c: Ditto.
9534         * libc/syscalls/syswrite.c: Ditto.
9535
9536 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
9537
9538         * libc/time/tzset_r.c: Change local variables that are
9539         set via sscanf using the %h format specifier to be unsigned short
9540         instead of int.
9541
9542 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
9543
9544         * configure.host:  Allow i[34567]86 variant.
9545         * configure.in: Likewise.
9546         * README: Likewise to the docs.
9547         * configure: Regenerated.
9548         * Makefile.in: Ditto.
9549
9550 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
9551             Tom Fitzsimmons  <fitzsim@redhat.com>
9552
9553         * configure.in: Add iconvdata support for x86 linux.
9554         * configure: Regenerated.
9555         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
9556         library, iconv, and linuxthreads support.
9557         * libc/sys/linux/configure.in: Ditto.
9558         * libc/sys/linux/Makefile.in: Regenerated.
9559         * libc/sys/linux/configure: Ditto.
9560         * iconvdata/EUC-JP.irreversible: New file.
9561         * iconvdata/Makefile.am: Ditto.
9562         * iconvdata/Makefile.in: Ditto.
9563         * iconvdata/SJIS.irreversible: Ditto.
9564         * iconvdata/aclocal.m4: Ditto.
9565         * iconvdata/configure: Ditto.
9566         * iconvdata/configure.in: Ditto.
9567         * iconvdata/dummy.c: Ditto.
9568         * iconvdata/euc-jp.c: Ditto.
9569         * iconvdata/gconv-modules: Ditto.
9570         * iconvdata/jis0201.c: Ditto.
9571         * iconvdata/jis0201.h: Ditto.
9572         * iconvdata/jis0208.c: Ditto.
9573         * iconvdata/jis0208.h: Ditto.
9574         * iconvdata/jis0212.c: Ditto.
9575         * iconvdata/jis0212.h: Ditto.
9576         * iconvdata/sjis.c: Ditto.
9577         * libc/include/errno.h: Protect definition of error_t.
9578         * libc/sys/linux/gethostid.c: New file.
9579         * libc/sys/linux/sethostid.c: Ditto.
9580         * libc/sys/linux/dl/Makefile.am: Ditto.
9581         * libc/sys/linux/dl/Makefile.in: Ditto.
9582         * libc/sys/linux/dl/abi-tag.h: Ditto.
9583         * libc/sys/linux/dl/atomicity.h: Ditto.
9584         * libc/sys/linux/dl/dl-addr.c: Ditto.
9585         * libc/sys/linux/dl/dl-cache.c: Ditto.
9586         * libc/sys/linux/dl/dl-cache.h: Ditto.
9587         * libc/sys/linux/dl/dl-close.c: Ditto.
9588         * libc/sys/linux/dl/dl-debug.c: Ditto.
9589         * libc/sys/linux/dl/dl-deps.c: Ditto.
9590         * libc/sys/linux/dl/dl-dst.h: Ditto.
9591         * libc/sys/linux/dl/dl-error.c: Ditto.
9592         * libc/sys/linux/dl/dl-fini.c: Ditto.
9593         * libc/sys/linux/dl/dl-init.c: Ditto.
9594         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
9595         * libc/sys/linux/dl/dl-libc.c: Ditto.
9596         * libc/sys/linux/dl/dl-librecon.h: Ditto.
9597         * libc/sys/linux/dl/dl-load.c: Ditto.
9598         * libc/sys/linux/dl/dl-lookup.c: Ditto.
9599         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
9600         * libc/sys/linux/dl/dl-minimal.c: Ditto.
9601         * libc/sys/linux/dl/dl-misc.c: Ditto.
9602         * libc/sys/linux/dl/dl-object.c: Ditto.
9603         * libc/sys/linux/dl/dl-open.c: Ditto.
9604         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
9605         * libc/sys/linux/dl/dl-profile.c: Ditto.
9606         * libc/sys/linux/dl/dl-profstub.c: Ditto.
9607         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9608         * libc/sys/linux/dl/dl-runtime.c: Ditto.
9609         * libc/sys/linux/dl/dl-support.c: Ditto.
9610         * libc/sys/linux/dl/dl-sym.c: Ditto.
9611         * libc/sys/linux/dl/dl-version.c: Ditto.
9612         * libc/sys/linux/dl/dlfcn.h: Ditto.
9613         * libc/sys/linux/dl/do-lookup.h: Ditto.
9614         * libc/sys/linux/dl/do-rel.h: Ditto.
9615         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9616         * libc/sys/linux/dl/kernel-features.h: Ditto.
9617         * libc/sys/linux/dl/ldsodefs.h: Ditto.
9618         * libc/sys/linux/dl/libintl.h: Ditto.
9619         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
9620         * libc/sys/linux/dl/unsecvars.h: Ditto.
9621         * libc/sys/linux/iconv/Makefile.am: Ditto.
9622         * libc/sys/linux/iconv/Makefile.in: Ditto.
9623         * libc/sys/linux/iconv/categories.def: Ditto.
9624         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
9625         * libc/sys/linux/iconv/gconv.c: Ditto.
9626         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
9627         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
9628         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
9629         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
9630         * libc/sys/linux/iconv/gconv_close.c: Ditto.
9631         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
9632         * libc/sys/linux/iconv/gconv_db.c: Ditto.
9633         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
9634         * libc/sys/linux/iconv/gconv_int.h: Ditto.
9635         * libc/sys/linux/iconv/gconv_open.c: Ditto.
9636         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9637         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
9638         * libc/sys/linux/iconv/hash-string.h: Ditto.
9639         * libc/sys/linux/iconv/iconv.c: Ditto.
9640         * libc/sys/linux/iconv/iconv.h: Ditto.
9641         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
9642         * libc/sys/linux/iconv/iconv_close.c: Ditto.
9643         * libc/sys/linux/iconv/iconv_open.c: Ditto.
9644         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
9645         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
9646         * libc/sys/linux/iconv/loadinfo.h: Ditto.
9647         * libc/sys/linux/iconv/localeinfo.h: Ditto.
9648         * libc/sys/linux/iconv/loop.c: Ditto.
9649         * libc/sys/linux/iconv/skeleton.c: Ditto.
9650         * libc/sys/linux/iconv/strtab.c: Ditto.
9651         * libc/sys/linux/include/dl-hash.h: Ditto.
9652         * libc/sys/linux/include/dlfcn.h: Ditto.
9653         * libc/sys/linux/include/fnmatch.h: Ditto.
9654         * libc/sys/linux/include/gconv.h: Ditto.
9655         * libc/sys/linux/include/glob.h: Ditto.
9656         * libc/sys/linux/include/hesiod.h: Ditto.
9657         * libc/sys/linux/include/ifaddrs.h: Ditto.
9658         * libc/sys/linux/include/libc_private.h: Ditto.
9659         * libc/sys/linux/include/link.h: Ditto.
9660         * libc/sys/linux/include/namespace.h: Ditto.
9661         * libc/sys/linux/include/netconfig.h: Ditto.
9662         * libc/sys/linux/include/netdb.h: Ditto.
9663         * libc/sys/linux/include/nsswitch.h: Ditto.
9664         * libc/sys/linux/include/regex.h: Ditto.
9665         * libc/sys/linux/include/resolv.h: Ditto.
9666         * libc/sys/linux/include/rune.h: Ditto.
9667         * libc/sys/linux/include/runetype.h: Ditto.
9668         * libc/sys/linux/include/semaphore.h: Ditto.
9669         * libc/sys/linux/include/setlocale.h: Ditto.
9670         * libc/sys/linux/include/un-namespace.h: Ditto.
9671         * libc/sys/linux/include/wordexp.h: Ditto.
9672         * libc/sys/linux/include/arpa/ftp.h: Ditto.
9673         * libc/sys/linux/include/arpa/inet.h: Ditto.
9674         * libc/sys/linux/include/arpa/nameser.h: Ditto.
9675         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
9676         * libc/sys/linux/include/arpa/telnet.h: Ditto.
9677         * libc/sys/linux/include/arpa/tftp.h: Ditto.
9678         * libc/sys/linux/include/net/bpf.h: Ditto.
9679         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
9680         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
9681         * libc/sys/linux/include/net/bridge.h: Ditto.
9682         * libc/sys/linux/include/net/ethernet.h: Ditto.
9683         * libc/sys/linux/include/net/fddi.h: Ditto.
9684         * libc/sys/linux/include/net/if.h: Ditto.
9685         * libc/sys/linux/include/net/if_arc.h: Ditto.
9686         * libc/sys/linux/include/net/if_arp.h: Ditto.
9687         * libc/sys/linux/include/net/if_atm.h: Ditto.
9688         * libc/sys/linux/include/net/if_dl.h: Ditto.
9689         * libc/sys/linux/include/net/if_gif.h: Ditto.
9690         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
9691         * libc/sys/linux/include/net/if_llc.h: Ditto.
9692         * libc/sys/linux/include/net/if_media.h: Ditto.
9693         * libc/sys/linux/include/net/if_mib.h: Ditto.
9694         * libc/sys/linux/include/net/if_ppp.h: Ditto.
9695         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
9696         * libc/sys/linux/include/net/if_slvar.h: Ditto.
9697         * libc/sys/linux/include/net/if_sppp.h: Ditto.
9698         * libc/sys/linux/include/net/if_stf.h: Ditto.
9699         * libc/sys/linux/include/net/if_tap.h: Ditto.
9700         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
9701         * libc/sys/linux/include/net/if_tun.h: Ditto.
9702         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
9703         * libc/sys/linux/include/net/if_types.h: Ditto.
9704         * libc/sys/linux/include/net/if_var.h: Ditto.
9705         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
9706         * libc/sys/linux/include/net/intrq.h: Ditto.
9707         * libc/sys/linux/include/net/iso88025.h: Ditto.
9708         * libc/sys/linux/include/net/net_osdep.h: Ditto.
9709         * libc/sys/linux/include/net/netisr.h: Ditto.
9710         * libc/sys/linux/include/net/pfil.h: Ditto.
9711         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
9712         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
9713         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
9714         * libc/sys/linux/include/net/radix.h: Ditto.
9715         * libc/sys/linux/include/net/raw_cb.h: Ditto.
9716         * libc/sys/linux/include/net/route.h: Ditto.
9717         * libc/sys/linux/include/net/slcompress.h: Ditto.
9718         * libc/sys/linux/include/net/slip.h: Ditto.
9719         * libc/sys/linux/include/net/zlib.h: Ditto.
9720         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
9721         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
9722         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
9723         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
9724         * libc/sys/linux/include/netinet/igmp.h: Ditto.
9725         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
9726         * libc/sys/linux/include/netinet/in.h: Ditto.
9727         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
9728         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
9729         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
9730         * libc/sys/linux/include/netinet/in_var.h: Ditto.
9731         * libc/sys/linux/include/netinet/ip.h: Ditto.
9732         * libc/sys/linux/include/netinet/ip6.h: Ditto.
9733         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
9734         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
9735         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
9736         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
9737         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
9738         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
9739         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
9740         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
9741         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
9742         * libc/sys/linux/include/netinet/tcp.h: Ditto.
9743         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
9744         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
9745         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
9746         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
9747         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
9748         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
9749         * libc/sys/linux/include/netinet/udp.h: Ditto.
9750         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
9751         * libc/sys/linux/include/netinet6/ah.h: Ditto.
9752         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
9753         * libc/sys/linux/include/netinet6/esp.h: Ditto.
9754         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
9755         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
9756         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
9757         * libc/sys/linux/include/netinet6/in6.h: Ditto.
9758         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
9759         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
9760         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
9761         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
9762         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
9763         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
9764         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
9765         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
9766         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
9767         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
9768         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
9769         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
9770         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
9771         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
9772         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
9773         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
9774         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
9775         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
9776         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
9777         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
9778         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
9779         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
9780         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
9781         * libc/sys/linux/include/netns/idp.h: Ditto.
9782         * libc/sys/linux/include/netns/idp_var.h: Ditto.
9783         * libc/sys/linux/include/netns/ns.h: Ditto.
9784         * libc/sys/linux/include/netns/ns_error.h: Ditto.
9785         * libc/sys/linux/include/netns/ns_if.h: Ditto.
9786         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
9787         * libc/sys/linux/include/netns/sp.h: Ditto.
9788         * libc/sys/linux/include/netns/spidp.h: Ditto.
9789         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
9790         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
9791         * libc/sys/linux/include/netns/spp_var.h: Ditto.
9792         * libc/sys/linux/include/rpc/Makefile: Ditto.
9793         * libc/sys/linux/include/rpc/auth.h: Ditto.
9794         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
9795         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
9796         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
9797         * libc/sys/linux/include/rpc/clnt.h: Ditto.
9798         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
9799         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
9800         * libc/sys/linux/include/rpc/des.h: Ditto.
9801         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
9802         * libc/sys/linux/include/rpc/nettype.h: Ditto.
9803         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
9804         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
9805         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
9806         * libc/sys/linux/include/rpc/raw.h: Ditto.
9807         * libc/sys/linux/include/rpc/rpc.h: Ditto.
9808         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
9809         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
9810         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
9811         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
9812         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
9813         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
9814         * libc/sys/linux/include/rpc/svc.h: Ditto.
9815         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
9816         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
9817         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
9818         * libc/sys/linux/include/rpc/types.h: Ditto.
9819         * libc/sys/linux/include/rpc/xdr.h: Ditto.
9820         * libc/sys/linux/intl/Makefile.am: Ditto.
9821         * libc/sys/linux/intl/Makefile.in: Ditto.
9822         * libc/sys/linux/intl/bindtextdom.c: Ditto.
9823         * libc/sys/linux/intl/catgets.c: Ditto.
9824         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
9825         * libc/sys/linux/intl/config.h: Ditto.
9826         * libc/sys/linux/intl/dcgettext.c: Ditto.
9827         * libc/sys/linux/intl/dcigettext.c: Ditto.
9828         * libc/sys/linux/intl/dcngettext.c: Ditto.
9829         * libc/sys/linux/intl/dgettext.c: Ditto.
9830         * libc/sys/linux/intl/dngettext.c: Ditto.
9831         * libc/sys/linux/intl/explodename.c: Ditto.
9832         * libc/sys/linux/intl/finddomain.c: Ditto.
9833         * libc/sys/linux/intl/gettext.c: Ditto.
9834         * libc/sys/linux/intl/gettext.h: Ditto.
9835         * libc/sys/linux/intl/gettextP.h: Ditto.
9836         * libc/sys/linux/intl/hash-string.h: Ditto.
9837         * libc/sys/linux/intl/l10nflist.c: Ditto.
9838         * libc/sys/linux/intl/loadinfo.h: Ditto.
9839         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
9840         * libc/sys/linux/intl/locale.alias: Ditto.
9841         * libc/sys/linux/intl/localealias.c: Ditto.
9842         * libc/sys/linux/intl/ngettext.c: Ditto.
9843         * libc/sys/linux/intl/open_catalog.c: Ditto.
9844         * libc/sys/linux/intl/plural.c: Ditto.
9845         * libc/sys/linux/intl/plural.y: Ditto.
9846         * libc/sys/linux/intl/stpcpy.c: Ditto.
9847         * libc/sys/linux/intl/textdomain.c: Ditto.
9848         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
9849         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
9850         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
9851         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
9852         * libc/sys/linux/linuxthreads/attr.c: Ditto.
9853         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
9854         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
9855         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
9856         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
9857         * libc/sys/linux/linuxthreads/config.h: Ditto.
9858         * libc/sys/linux/linuxthreads/configure: Ditto.
9859         * libc/sys/linux/linuxthreads/configure.in: Ditto.
9860         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
9861         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
9862         * libc/sys/linux/linuxthreads/events.c: Ditto.
9863         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
9864         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
9865         * libc/sys/linux/linuxthreads/internals.h: Ditto.
9866         * libc/sys/linux/linuxthreads/join.c: Ditto.
9867         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
9868         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
9869         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
9870         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
9871         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
9872         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
9873         * libc/sys/linux/linuxthreads/manager.c: Ditto.
9874         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
9875         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
9876         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
9877         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
9878         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
9879         * libc/sys/linux/linuxthreads/prio.c: Ditto.
9880         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
9881         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
9882         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
9883         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
9884         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
9885         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
9886         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
9887         * libc/sys/linux/linuxthreads/queue.h: Ditto.
9888         * libc/sys/linux/linuxthreads/reent.c: Ditto.
9889         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
9890         * libc/sys/linux/linuxthreads/restart.h: Ditto.
9891         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
9892         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
9893         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
9894         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
9895         * libc/sys/linux/linuxthreads/signals.c: Ditto.
9896         * libc/sys/linux/linuxthreads/specific.c: Ditto.
9897         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
9898         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
9899         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
9900         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
9901         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9902         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
9903         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9904         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9905         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9906         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9907         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9908         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9909         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9910         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9911         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9912         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9913         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9914         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9915         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9916         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9917         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9918         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9919         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9920         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9921         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9922         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9923         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9924         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9925         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9926         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9927         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9928         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9929         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9930         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9931         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9932         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9933         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9934         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9935         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9936         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9937         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9938         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
9939         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
9940         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
9941         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
9942         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
9943         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
9944         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
9945         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
9946         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
9947         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
9948         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
9949         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
9950         * libc/sys/linux/linuxthreads/unload.c: Ditto.
9951         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
9952         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
9953         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
9954         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
9955         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
9956         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
9957         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
9958         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
9959         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
9960         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
9961         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
9962         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
9963         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
9964         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
9965         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
9966         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
9967         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
9968         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
9969         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
9970         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
9971         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
9972         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
9973         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
9974         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
9975         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
9976         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
9977         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
9978         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
9979         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
9980         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
9981         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
9982         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
9983         * libc/sys/linux/net/Makefile.am: Ditto.
9984         * libc/sys/linux/net/Makefile.in: Ditto.
9985         * libc/sys/linux/net/addr2ascii.3: Ditto.
9986         * libc/sys/linux/net/addr2ascii.c: Ditto.
9987         * libc/sys/linux/net/ascii2addr.c: Ditto.
9988         * libc/sys/linux/net/base64.c: Ditto.
9989         * libc/sys/linux/net/bindresvport.c: Ditto.
9990         * libc/sys/linux/net/byteorder.3: Ditto.
9991         * libc/sys/linux/net/ether_addr.c: Ditto.
9992         * libc/sys/linux/net/ethers.3: Ditto.
9993         * libc/sys/linux/net/getaddrinfo.3: Ditto.
9994         * libc/sys/linux/net/getaddrinfo.c: Ditto.
9995         * libc/sys/linux/net/gethostbydns.c: Ditto.
9996         * libc/sys/linux/net/gethostbyht.c: Ditto.
9997         * libc/sys/linux/net/gethostbyname.3: Ditto.
9998         * libc/sys/linux/net/gethostbynis.c: Ditto.
9999         * libc/sys/linux/net/gethostnamadr.c: Ditto.
10000         * libc/sys/linux/net/getifaddrs.3: Ditto.
10001         * libc/sys/linux/net/getifaddrs.c: Ditto.
10002         * libc/sys/linux/net/getipnodebyname.3: Ditto.
10003         * libc/sys/linux/net/getnameinfo.3: Ditto.
10004         * libc/sys/linux/net/getnameinfo.c: Ditto.
10005         * libc/sys/linux/net/getnetbydns.c: Ditto.
10006         * libc/sys/linux/net/getnetbyht.c: Ditto.
10007         * libc/sys/linux/net/getnetbynis.c: Ditto.
10008         * libc/sys/linux/net/getnetent.3: Ditto.
10009         * libc/sys/linux/net/getnetnamadr.c: Ditto.
10010         * libc/sys/linux/net/getproto.c: Ditto.
10011         * libc/sys/linux/net/getprotoent.3: Ditto.
10012         * libc/sys/linux/net/getprotoent.c: Ditto.
10013         * libc/sys/linux/net/getprotoname.c: Ditto.
10014         * libc/sys/linux/net/getservbyname.c: Ditto.
10015         * libc/sys/linux/net/getservbyport.c: Ditto.
10016         * libc/sys/linux/net/getservent.3: Ditto.
10017         * libc/sys/linux/net/getservent.c: Ditto.
10018         * libc/sys/linux/net/herror.c: Ditto.
10019         * libc/sys/linux/net/hesiod.3: Ditto.
10020         * libc/sys/linux/net/hesiod.c: Ditto.
10021         * libc/sys/linux/net/if_indextoname.3: Ditto.
10022         * libc/sys/linux/net/ifname.c: Ditto.
10023         * libc/sys/linux/net/inet.3: Ditto.
10024         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
10025         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
10026         * libc/sys/linux/net/inet_addr.c: Ditto.
10027         * libc/sys/linux/net/inet_lnaof.c: Ditto.
10028         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
10029         * libc/sys/linux/net/inet_net.3: Ditto.
10030         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
10031         * libc/sys/linux/net/inet_net_pton.c: Ditto.
10032         * libc/sys/linux/net/inet_neta.c: Ditto.
10033         * libc/sys/linux/net/inet_netof.c: Ditto.
10034         * libc/sys/linux/net/inet_network.c: Ditto.
10035         * libc/sys/linux/net/inet_ntoa.c: Ditto.
10036         * libc/sys/linux/net/inet_ntop.c: Ditto.
10037         * libc/sys/linux/net/inet_pton.c: Ditto.
10038         * libc/sys/linux/net/innetgr-stub.c: Ditto.
10039         * libc/sys/linux/net/ip6opt.c: Ditto.
10040         * libc/sys/linux/net/iso_addr.3: Ditto.
10041         * libc/sys/linux/net/iso_addr.c: Ditto.
10042         * libc/sys/linux/net/issetugid-stub.c: Ditto.
10043         * libc/sys/linux/net/linkaddr.3: Ditto.
10044         * libc/sys/linux/net/linkaddr.c: Ditto.
10045         * libc/sys/linux/net/map_v4v6.c: Ditto.
10046         * libc/sys/linux/net/name6.c: Ditto.
10047         * libc/sys/linux/net/namespace.h: Ditto.
10048         * libc/sys/linux/net/ns.3: Ditto.
10049         * libc/sys/linux/net/ns_addr.c: Ditto.
10050         * libc/sys/linux/net/ns_name.c: Ditto.
10051         * libc/sys/linux/net/ns_netint.c: Ditto.
10052         * libc/sys/linux/net/ns_ntoa.c: Ditto.
10053         * libc/sys/linux/net/ns_parse.c: Ditto.
10054         * libc/sys/linux/net/ns_print.c: Ditto.
10055         * libc/sys/linux/net/ns_ttl.c: Ditto.
10056         * libc/sys/linux/net/nsap_addr.c: Ditto.
10057         * libc/sys/linux/net/nsdispatch.3: Ditto.
10058         * libc/sys/linux/net/nsdispatch.c: Ditto.
10059         * libc/sys/linux/net/nslexer.c: Ditto.
10060         * libc/sys/linux/net/nslexer.l: Ditto.
10061         * libc/sys/linux/net/nsparser.c: Ditto.
10062         * libc/sys/linux/net/nsparser.h: Ditto.
10063         * libc/sys/linux/net/nsparser.y: Ditto.
10064         * libc/sys/linux/net/rcmd.3: Ditto.
10065         * libc/sys/linux/net/rcmd.c: Ditto.
10066         * libc/sys/linux/net/rcmdsh.3: Ditto.
10067         * libc/sys/linux/net/rcmdsh.c: Ditto.
10068         * libc/sys/linux/net/recv.c: Ditto.
10069         * libc/sys/linux/net/res_comp.c: Ditto.
10070         * libc/sys/linux/net/res_config.h: Ditto.
10071         * libc/sys/linux/net/res_data.c: Ditto.
10072         * libc/sys/linux/net/res_debug.c: Ditto.
10073         * libc/sys/linux/net/res_init.c: Ditto.
10074         * libc/sys/linux/net/res_mkquery.c: Ditto.
10075         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10076         * libc/sys/linux/net/res_query.c: Ditto.
10077         * libc/sys/linux/net/res_send.c: Ditto.
10078         * libc/sys/linux/net/res_update.c: Ditto.
10079         * libc/sys/linux/net/resolver.3: Ditto.
10080         * libc/sys/linux/net/rthdr.c: Ditto.
10081         * libc/sys/linux/net/send.c: Ditto.
10082         * libc/sys/linux/net/un-namespace.h: Ditto.
10083         * libc/sys/linux/net/vars.c: Ditto.
10084         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10085         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10086         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10087         * libc/sys/linux/stdlib/cclass.h: Ditto.
10088         * libc/sys/linux/stdlib/cname.h: Ditto.
10089         * libc/sys/linux/stdlib/collate.c: Ditto.
10090         * libc/sys/linux/stdlib/collate.h: Ditto.
10091         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10092         * libc/sys/linux/stdlib/engine.c: Ditto.
10093         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10094         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10095         * libc/sys/linux/stdlib/glob.3: Ditto.
10096         * libc/sys/linux/stdlib/glob.c: Ditto.
10097         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10098         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10099         * libc/sys/linux/stdlib/regerror.c: Ditto.
10100         * libc/sys/linux/stdlib/regex.3: Ditto.
10101         * libc/sys/linux/stdlib/regex2.h: Ditto.
10102         * libc/sys/linux/stdlib/regexec.c: Ditto.
10103         * libc/sys/linux/stdlib/regfree.c: Ditto.
10104         * libc/sys/linux/stdlib/utils.h: Ditto.
10105         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10106         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10107         * libc/sys/linux/sys/dlfcn.h: Ditto.
10108         * libc/sys/linux/sys/elfclass.h: Ditto.
10109         * libc/sys/linux/sys/event.h: Ditto.
10110         * libc/sys/linux/sys/ioccom.h: Ditto.
10111         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10112         * libc/sys/linux/sys/link.h: Ditto.
10113         * libc/sys/linux/sys/lock.h: Ditto.
10114         * libc/sys/linux/sys/param.h: Ditto.
10115         * libc/sys/linux/sys/socket.h: Ditto.
10116         * libc/sys/linux/sys/sockio.h: Ditto.
10117
10118 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10119
10120         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10121         normal mode
10122         * newlib/libc/machine/h8300/memset.S: Likewise
10123         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10124         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10125         * newlib/lib/machine/h8300/setjmp.S: Likewise
10126         * newlib/lib/machine/h8300/strcmp.S: Likewise
10127         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10128
10129 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10130
10131         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10132         * libc/include/stdio.h: Ditto.
10133         * libc/include/sys/config.h: Ditto.
10134         * libc/stdio/mktemp.c: Ditto.
10135
10136 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10137
10138         * libc/locale/ldpart.c (__part_load_locale): Substitute
10139         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10140         * libc/search/hash.c (__hash_open): Ditto.
10141         (init_hash): Ditto.
10142         * libc/stdio/fseek.c (fseek): Ditto.
10143         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10144         * libc/stdio/mktemp.c (_gettemp): Ditto.
10145
10146 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10147
10148         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10149
10150 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10151
10152         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10153         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10154         if __CYGWIN_USE_BIG_TYPES__ is set.
10155         * libc/search/hash.c (__hash_open): Ditto.
10156         (init_hash): Ditto.
10157         * libc/stdio/fseek.c (fseek): Ditto.
10158         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10159         * libc/stdio/mktemp.c (_gettemp): Ditto.
10160         * libc/sys/cygwin/Makefile.am: Remove.
10161         * libc/sys/cygwin/Makefile.in: Remove.
10162         * libc/sys/cygwin/aclocal.m4: Remove.
10163         * libc/sys/cygwin/configure: Remove.
10164         * libc/sys/cygwin/configure.in: Remove.
10165         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10166         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10167         directory.
10168         * libc/sys/cygwin/sys/param.h: Ditto.
10169         * libc/sys/cygwin/sys/utime.h: Ditto.
10170         * libc/sys/cygwin/sys/utmp.h: Ditto.
10171
10172 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10173
10174         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10175
10176 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10177
10178         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10179         64 bit inodes.
10180
10181 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10182
10183         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10184         Include cygwin/config.h instead.
10185
10186 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10187
10188         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10189         all code with #ifdef __SPE__ test.
10190         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10191
10192 2003-04-15  Chris January <chris@atomice.net>
10193
10194         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10195         Cygwin.
10196
10197 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10198
10199         * libc/machine/sh/memset.S: Avoid clobbering volatile
10200         objects following a tiny to-be-set array in the same quadword.
10201
10202 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10203
10204         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10205         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10206         * libc/string/Makefile.in: Regenerated.
10207         * libc/string/wcswidth.c: New file.
10208         * libc/string/wcwidth.c: New file.
10209         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10210
10211 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10212
10213         * libc/machine/sh/memset.S: Fix problem with alloco region
10214         exceeding destination region for length >= 88 bytes, start
10215         & 0x16 == 0, end & 0x1f == 18.
10216
10217 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10218
10219         * libc/string/wcscoll.c: Fix comment.
10220
10221 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10222
10223         * libc/include/wchar.h: Add definition for wcscoll.
10224         * libc/string/Makefile.am: Add wcscoll.c.
10225         * libc/string/Makefile.in: Regenerated.
10226         * libc/string/wcscoll.c: New file.
10227         * libc/string/wcstrings.tex: Add wcscoll.
10228
10229 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10230
10231         * libc/stdio/sscanf.c: Update flags description.
10232         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10233         type.
10234         (__svfscanf_r): Add 'hh' and 'll' handling.
10235
10236 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10237
10238         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10239         __d_position member to _off_t.
10240
10241 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10242
10243         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10244         count all characters used to create number against maximum width.
10245         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10246
10247 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10248
10249         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10250         support.
10251         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10252         flag to support simulator only extensions.
10253
10254 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10255
10256         * libc/string/wcschr.c: (wcschr): Look for character first,
10257         then for end of string, so you can do wcschr(x, '\0').
10258
10259 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10260
10261         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10262         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10263         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10264         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10265         * libc/stdio/fseeko.c (fseeko): Ditto.
10266         * libc/stdio/ftello.c (ftello): Ditto.
10267         * libc/stdio/stdio.c (__swrite): Ditto.
10268         (__sseek): Ditto.
10269         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10270         * libc/stdio/fseek.c (fseek): Ditto.
10271         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10272         * libc/stdio/ftell.c (ftell): Ditto.
10273         * libc/stdio/local.h: Declare __sseek using _off_t.
10274
10275 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10276
10277         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10278
10279 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10280
10281         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10282         Cygwin.
10283
10284 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10285
10286         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10287         Cygwin.
10288         * libc/include/sys/stat.h: Ditto.
10289         * libc/include/sys/unistd.h: Ditto.
10290         * libc/sys/cygwin/sys/dirent.h: Ditto.
10291
10292 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10293
10294         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10295         declaration of getopt and avoid getopt_long declaration.
10296         * libc/sys/cygwin/include/unistd.h: Remove.
10297
10298 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10299
10300         * configure.host: Define stdio64_dir for Cygwin.
10301         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10302         Cygwin 64bit file access requirements.
10303         Drop definition of f*64() functions when compiled for Cygwin.
10304         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
10305         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
10306         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
10307
10308 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
10309
10310         * libc/include/sys/reent.h: Remove extraneous _sig_func
10311         declaration.
10312
10313 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
10314
10315         * libc/sys/h8300hms/Makefile.am: Add support for new files.
10316         * libc/sys/h8300hms/Makefile.in: Regenerated.
10317         * libc/sys/h8300hms/close.S: New file.
10318         * libc/sys/h8300hms/fstat.S: Ditto.
10319         * libc/sys/h8300hms/lseek.S: Ditto.
10320         * libc/sys/h8300hms/open.S: Ditto.
10321         * libc/sys/h8300hms/stat.S: Ditto.
10322         * libc/sys/h8300hms/read.S: New file to replace read.c.
10323         * libc/sys/h8300hms/read.c: Removed.
10324         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
10325         _lseek, _close, _stat, _fstat.
10326         * libc/sys/h8300hms/write.S: New file to replace write.c.
10327         * libc/sys/h8300hms/write.c: Removed.
10328
10329 2003-02-20  Nick Clifton  <nickc@redhat.com>
10330
10331         * Add support for Cirrus Maverick ARM co-processor:
10332
10333         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
10334
10335                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
10336                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
10337
10338         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
10339
10340                 * configure.host: set sys_dir, syscall_dir, and
10341                 newlib_cflags for ep9312 host.
10342
10343         * configure.host: Restore alpha sorting of entries in case
10344         statements.
10345
10346 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10347
10348         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
10349
10350 2003-02-18  Christian Groessler  <chris@groessler.org>
10351
10352         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
10353         support z8001 segmented mode.
10354
10355 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
10356
10357         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
10358         with a NULL value.
10359
10360 2003-02-10  Christopher Faylor  <cgf@redhat.com>
10361
10362         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
10363         Don't define some types under cygwin.
10364
10365 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
10366
10367         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
10368         option to allow disabling of syscalls being supplied in newlib.
10369         * aclocal.m4: Regenerated.
10370         * configure: Ditto.
10371         * configure.host: Add support of new configuration option and add
10372         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
10373         * doc/aclocal.m4: Regenerated.
10374         * doc/configure: Ditto.
10375         * libc/*aclocal.m4: Ditto.
10376         * libc/*configure: Ditto.
10377         * libm/*aclocal.m4: Ditto.
10378         * libm/*configure: Ditto.
10379         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
10380         is disabled.
10381         * libc/sys/arm/Makefile.in: Regenerated.
10382
10383 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
10384
10385         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
10386         -1 to be sure it cannot later match a valid file fd causing
10387         isatty() to return 1.
10388         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
10389         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
10390         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
10391
10392 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
10393
10394         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
10395         buffer based on the precision, after we have processed the input value
10396         in a local buffer and know its relative magnitude.
10397
10398 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10399
10400         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
10401         into registers r1 and r2, so that the simulator can distinguish
10402         this trap from a breakpoint trap.  Copied from libgloss.
10403
10404 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10405
10406         * libc/sys/h8300hms/crt0.S (_start): Change local label
10407         from .loop to .Loop, so that ld and gdb will ignore it.
10408
10409 2003-01-29  Jason Tishler  <jason@tishler.net>
10410
10411         * libc/include/time.h: Declare nanosleep() under Cygwin.
10412
10413 2003-01-24  Nick Clifton  <nickc@redhat.com>
10414
10415         * Add sh2e support:
10416
10417         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
10418
10419                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
10420                 * libc/machine/sh/setjmp.S: Likewise.
10421                 * libc/include/machine/ieeefp.h: Likewise.
10422
10423 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
10424
10425         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
10426         for Cygwin.
10427
10428 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
10429
10430         * libc/time/difftime.c : Typecast the result to double.
10431
10432 2003-01-20  Christopher Faylor  <cgf@redhat.com>
10433
10434         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
10435
10436 2003-01-18  Nick Clifton  <nickc@redhat.com>
10437
10438         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
10439         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
10440
10441 2003-01-16  Joel Sherrill <joel@OARcorp.com>
10442
10443         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
10444         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
10445         constants are defined in each file in the shared versions in
10446         libc/include.
10447         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
10448         autoconf can link programs.
10449         * libc/include/machine/types.h: Explicitly specify signed on
10450         intXX_t types to ensure they are signed.
10451
10452 2003-01-14  Christopher Faylor  <cgf@redhat.com>
10453
10454         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
10455         extensions.
10456
10457 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
10458
10459         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
10460
10461 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
10462
10463         * libc/stdio/sprintf.c: fix typo
10464         * libc/stdio/vfprintf.c: fix typo
10465
10466 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
10467
10468         * configure.host: Support long double I/O for x86-linux.
10469         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
10470         large enough to hold formatted result.
10471         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
10472
10473 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10474
10475         * Makefile.am: Add vasprintf.
10476         * Makefile.in: Regenerated.
10477
10478 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10479
10480         * asprintf.c (_asprintf_r): insure both declarations
10481         are the same.
10482
10483 2002-12-28  Christopher Faylor  <cgf@redhat.com>
10484
10485         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
10486         than defining getopt directly.
10487
10488 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10489
10490         * NEWS: Update with 1.11.0 info.
10491         * README: Ditto.
10492         * acinclude.m4: Change version number to 1.11.0.
10493         * aclocal.m4: Regenerated.
10494         * configure: Ditto.
10495         * doc/aclocal.m4: Ditto.
10496         * doc/configure: Ditto.
10497         * libc/*/aclocal.m4: Ditto.
10498         * libc/*/configure: Ditto.
10499         * libc/libc.texinfo: Ditto.
10500         * libm/*/aclocal.m4: Ditto.
10501         * libm/*/configure: Ditto.
10502         * libm/libm.texinfo: Ditto.
10503         * libc/sys/linux/shared.ld: Add VERS_1.11.
10504
10505 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10506
10507         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
10508         Solutions to Red Hat Inc.
10509         * libc/machine/i386/f_atan2f.S: Ditto.
10510         * libc/machine/i386/f_exp.c: Ditto.
10511         * libc/machine/i386/f_expf.c: Ditto.
10512         * libc/machine/i386/f_frexp.S: Ditto.
10513         * libc/machine/i386/f_frexpf.S: Ditto.
10514         * libc/machine/i386/f_ldexp.S: Ditto.
10515         * libc/machine/i386/f_ldexpf.S: Ditto.
10516         * libc/machine/i386/f_log.S: Ditto.
10517         * libc/machine/i386/f_log10.S: Ditto.
10518         * libc/machine/i386/f_log10f.S: Ditto.
10519         * libc/machine/i386/f_logf.S: Ditto.
10520         * libc/machine/i386/f_pow.c: Ditto.
10521         * libc/machine/i386/f_powf.c: Ditto.
10522         * libc/machine/i386/f_tan.S: Ditto.
10523         * libc/machine/i386/f_tanf.S: Ditto.
10524         * libc/machine/i386/memchr.S: Ditto.
10525         * libc/machine/i386/memcmp.S: Ditto.
10526         * libc/machine/i386/memcpy.S: Ditto.
10527         * libc/machine/i386/memmove.S: Ditto.
10528         * libc/machine/i386/memset.S: Ditto.
10529         * libc/machine/i386/strchr.S: Ditto.
10530         * libc/machine/i386/strlen.S: Ditto.
10531         * libm/machine/i386/f_atan2.S: Ditto.
10532         * libm/machine/i386/f_atan2f.S: Ditto.
10533         * libm/machine/i386/f_exp.c: Ditto.
10534         * libm/machine/i386/f_expf.c: Ditto.
10535         * libm/machine/i386/f_frexp.S: Ditto.
10536         * libm/machine/i386/f_frexpf.S: Ditto.
10537         * libm/machine/i386/f_ldexp.S: Ditto.
10538         * libm/machine/i386/f_ldexpf.S: Ditto.
10539         * libm/machine/i386/f_log.S: Ditto.
10540         * libm/machine/i386/f_log10.S: Ditto.
10541         * libm/machine/i386/f_log10f.S: Ditto.
10542         * libm/machine/i386/f_logf.S: Ditto.
10543         * libm/machine/i386/f_pow.c: Ditto.
10544         * libm/machine/i386/f_powf.c: Ditto.
10545         * libm/machine/i386/f_tan.S: Ditto.
10546         * libm/machine/i386/f_tanf.S: Ditto.
10547
10548 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10549
10550         * libc/stdlib/environ.c: Update license to Red Hat.
10551         * libc/machine/hppa/setjmp.S: Ditto.
10552         * libm/test/Makefile.in: Ditto.
10553
10554 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
10555
10556         * configure.host: Remove references to go32.
10557         * libc/sys/go32/*: Removed.
10558
10559 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
10560
10561         * libc/include/sys/config.h: Change setting of INT_MAX
10562         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
10563         __H8300S__.  Also consolidate flag settings for these
10564         platforms.
10565
10566 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
10567
10568         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
10569         for i386-rtems targets.
10570
10571 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
10572
10573         * libc/include/stdlib.h (strtof): New prototype (from C99).
10574         (strtodf): Changed from prototype to macro which redefines
10575         to strtof.
10576         * libc/stdlib/atof.c: Change documentation to refer to strtof
10577         instead of strtodf.
10578         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
10579         strtodf.
10580         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
10581         (strtof): New function.
10582         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
10583         calls strtof.
10584
10585 2002-11-27  Christopher Faylor  <cgf@redhat.com>
10586
10587         * libc/string/memset.c (memset): Fix comment.
10588
10589 2002-11-26  Christopher Faylor  <cgf@redhat.com>
10590
10591         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
10592         function.
10593
10594 2002-11-25  Christopher Faylor  <cgf@redhat.com>
10595
10596         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
10597         variable, introduced below, everywhere.
10598
10599 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
10600
10601         * libc/string/memset.c (memset): Make it safe even if
10602         sizeof (int) = 2.
10603
10604 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
10605
10606         * configure.in: Change check for libc/include in ${CC} to
10607         use an intermediate value so as to work with different shells.
10608         * configure: Regenerated.
10609         * Makefile.in: Ditto.
10610
10611 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
10612
10613         * libc/sys/h8300hms/read.c: Add support for normal mode
10614         architecture.
10615
10616 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
10617
10618         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
10619         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
10620         when -mint32 is used.
10621
10622 2002-11-18  Nick Clifton  <nickc@redhat.com>
10623
10624         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
10625
10626 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
10627
10628         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
10629         only issue one pass/fail message for a compile/link/execute.
10630         * testsuite/newlib.elix/elix.exp: New file.
10631         * testsuite/newlib.elix/tmmap.c: Ditto.
10632
10633 2002-11-06  Christopher Faylor  <cgf@redhat.com>
10634
10635         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
10636         * libc/stdlib/mlock.c: Ditto.
10637         * libc/stdlib/msize.c: Ditto.
10638         * libc/stdlib/msize.c: Ditto.
10639         * libc/stdlib/mtrim.c: Ditto.
10640         * libc/stdlib/valloc.c: Ditto.
10641
10642 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
10643
10644         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
10645         for inf/nan, make sure that the check ignores the sign bit.
10646
10647 2002-11-07  Joel Sherrill <joel@OARcorp.com>
10648
10649         * libc/sys/rtems/machine: New directory.
10650         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
10651         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
10652         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
10653         targets more BSD like when installed without requiring files to
10654         be overwritten at install point when RTEMS itself is installed.
10655         * Makefile.am: Pick up system dependent machine .h files such as
10656         might be found on a BSD-ish system.
10657         * Makefile.in: Regenerate.
10658         * libc/include/machine/types.h: When on an RTEMS target, define a
10659         few BSD flavor types.
10660
10661 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
10662
10663         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
10664
10665 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10666
10667         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
10668         * libc/include/wctype.h: Ditto.
10669
10670 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
10671
10672         * libc/include/wchar.h: Add extern "C" specifier if C++.
10673         * libc/include/wctype.h: Ditto.
10674
10675 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10676
10677         * testsuite/newlib.wctype/tiswctype.c: New test case.
10678         * testsuite/newlib.wctype/twctrans.c: Ditto.
10679
10680 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10681
10682         * libc/sys/linux/machine/i386/include/endian.h: New file.
10683         * libc/sys/linux/machine/i386/include/param.h: Ditto.
10684
10685 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10686
10687         * libm/machine/i386/aclocal.m4: Regenerated.
10688         * libm/machine/i386/configure: Ditto.
10689
10690 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10691
10692         * testsuite/include/check.h: New header file to use with
10693         test cases.
10694         * testsuite/lib/newlib.exp: Add testsuite/include directory
10695         to list of header files to use.
10696         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
10697         * testsuite/newlib.wctype/wctype.exp: New file.
10698
10699 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
10700             Richard Sandiford  <rsandifo@redhat.com>
10701
10702         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
10703         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
10704         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
10705
10706 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10707
10708         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
10709         dummy programs.
10710
10711 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10712
10713         * libc/include/pthread.h: Define PTHREAD_CANCELED.
10714
10715 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10716
10717         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
10718         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
10719         compile with current GNU tools.
10720
10721 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
10722
10723         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
10724         the build library.
10725         * configure.in: Ditto.
10726         * Makefile.in: Regenerated.
10727         * configure: Ditto.
10728         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
10729         for specifying configured libraries/directories.
10730         * libc/sys/linux/configure.in: Ditto.
10731         * libc/sys/linux/Makefile.in: Regenerated.
10732         * libc/sys/linux/configure: Ditto.
10733
10734 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
10735
10736         * libc/include/reent.h: Update documentation at start of file.
10737
10738 2002-09-27  Jim Wilson  <wilson@redhat.com>
10739
10740         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
10741         the ctbp register.
10742
10743 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
10744
10745         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
10746         Also convert to EUCJP before using arrays.  For values not in
10747         the conversion arrays, return WEOF.
10748         * libc/ctype/jp2uc.h: Change from one array to a number of
10749         arrays to account for the fact that the originating table
10750         is not contiguous for the input values since some are invalid.
10751
10752 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
10753
10754         * libc/time/ctime.c: Fix prototype documentation.
10755
10756 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
10757
10758         * libc/include/sys/errno.h: Add EOVERFLOW.
10759
10760 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10761
10762         * libc/include/wctype.h: New file.
10763
10764 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10765
10766         * libc/ctype/Makefile.am: Add new files.
10767         * libc/ctype/Makefile.in: Regenerated.
10768         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
10769         and wctrans functions to documentation index.
10770         * libc/ctype/iswalnum.c: New file.
10771         * libc/ctype/iswalpha.c: Ditto.
10772         * libc/ctype/iswblank.c: Ditto.
10773         * libc/ctype/iswcntrl.c: Ditto.
10774         * libc/ctype/iswctype.c: Ditto.
10775         * libc/ctype/iswdigit.c: Ditto.
10776         * libc/ctype/iswgraph.c: Ditto.
10777         * libc/ctype/iswlower.c: Ditto.
10778         * libc/ctype/iswprint.c: Ditto.
10779         * libc/ctype/iswpunct.c: Ditto.
10780         * libc/ctype/iswspace.c: Ditto.
10781         * libc/ctype/iswupper.c: Ditto.
10782         * libc/ctype/iswxdigit.c: Ditto.
10783         * libc/ctype/jp2uc.c: Ditto.
10784         * libc/ctype/jp2uc.h: Ditto.
10785         * libc/ctype/local.h: Ditto.
10786         * libc/ctype/towctrans.c: Ditto.
10787         * libc/ctype/towlower.c: Ditto.
10788         * libc/ctype/towupper.c: Ditto.
10789         * libc/ctype/utf8alpha.h: Ditto.
10790         * libc/ctype/utf8print.h: Ditto.
10791         * libc/ctype/utf8punct.h: Ditto.
10792         * libc/ctype/wctrans.c: Ditto.
10793         * libc/ctype/wctype.c: Ditto.
10794         * libc/locale/locale.c (__lc_ctype): New external array to
10795         replace static lc_ctype array.
10796         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
10797         rather than reentrancy structure's _current_locale field.
10798         * libc/stdlib/wctomb_r.c: Ditto.
10799
10800 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10801
10802         * configure.host: Minor comment and formatting changes.
10803         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
10804         * libc/Makefile.in: Regenerated.
10805         * libc/include/sys/config.h: Minor format change.
10806
10807 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10808
10809         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
10810         statement comment.
10811
10812 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10813
10814         * libc/posix/opendir.c (opendir): Change code to check
10815         for HAVE_FCNTL before calling fcntl.
10816         * libc/search/hash.c (hash_open): Ditto.
10817         * libc/search/hash_page.c (open_tmp): Ditto.
10818         * libc/reent/Makefile.am: Add fcntlr.c.
10819         * libc/reent/Makefile.in: Regenerated.
10820         * libc/reent/fcntlr.c: New file.
10821         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
10822         instead of _fcntl when HAVE_FCNTL flag is set.
10823         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
10824         to see if _fcntl or _fcntl_r should be called.  If flag is not
10825         set, default to ENOSYS stub.
10826
10827 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
10828
10829         * libc/include/wchar.h (mbstate_t): Change protective flag to
10830         be _MBSTATE_T.
10831         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
10832         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
10833         for Cygwin.
10834         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
10835
10836 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
10837
10838         * acinclude.m4 (enable-newlib-mb): Change check to
10839         default newlib_mb variable to empty string rather than "no".
10840         * configure.host: Remove hard-coding of -DMB_CAPABLE for
10841         x86-linux and Cygwin.  Add code to check for newlib_mb
10842         being unset in which case set to "yes" for x86-linux and
10843         Cygwin.  Change check for newlib_mb being "yes" to allow
10844         for an empty string.
10845         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
10846         * newlib.hin (_MB_LEN_MAX): New define to configure.
10847         * aclocal.m4: Regenerated.
10848         * configure: Ditto.
10849         * libc/include/limits.h: New file.
10850         * libc/sys/linux/include/limits.h: Ditto.
10851         * doc/aclocal.m4 doc/configure libc/aclocal.m4
10852           libc/configure libc/machine/aclocal.m4
10853           libc/machine/configure libc/machine/a29k/aclocal.m4
10854           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
10855           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
10856           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
10857           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
10858           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
10859           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
10860           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
10861           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
10862           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
10863           libc/machine/i386/configure libc/machine/i960/aclocal.m4
10864           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
10865           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
10866           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
10867           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
10868           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
10869           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
10870           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
10871           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
10872           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
10873           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
10874           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
10875           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
10876           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
10877           libc/machine/v850/configure libc/machine/w65/aclocal.m4
10878           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
10879           libc/machine/xscale/configure
10880           libc/machine/xstormy16/aclocal.m4
10881           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
10882           libc/machine/z8k/configure libc/sys/aclocal.m4
10883           libc/sys/configure libc/sys/a29khif/aclocal.m4
10884           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
10885           libc/sys/arc/configure libc/sys/arm/aclocal.m4
10886           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
10887           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
10888           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
10889           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
10890           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
10891           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
10892           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
10893           libc/sys/idt/configure libc/sys/linux/aclocal.m4
10894           libc/sys/linux/configure
10895           libc/sys/linux/machine/aclocal.m4
10896           libc/sys/linux/machine/configure
10897           libc/sys/linux/machine/i386/aclocal.m4
10898           libc/sys/linux/machine/i386/configure
10899           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
10900           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
10901           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
10902           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
10903           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
10904           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
10905           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
10906           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
10907           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
10908           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
10909           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
10910           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
10911           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
10912           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
10913           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
10914           libm/aclocal.m4 libm/configure: Regenerated.
10915
10916 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10917
10918         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
10919         code that clears the .bss section.
10920
10921 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10922
10923         * libc/include/sys/_types.h (_mbstate_t): Changed to use
10924         unsigned char internally.
10925         * libc/sys/linux/sys/_types.h: Ditto.
10926         * libc/include/sys/reent.h
10927         * libc/stdlib/mblen.c (mblen): Use function-specific state
10928         value from default reentrancy structure.
10929         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
10930         _mbtowc_r is less than 0, reset state __count value and
10931         return -1.
10932         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
10933         is NULL, use the function-specific pointer provided in the
10934         default reentrancy structure.
10935         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
10936         If input state pointer is NULL, use function-specific area
10937         provided in reentrancy structure.
10938         * libc/stdlib/mbsrtowcs.c: Ditto.
10939         * libc/stdlib/wcrtomb.c: Ditto.
10940         * libc/stdlib/wcsrtombs.c: Ditto.
10941         * libc/stdlib/mbstowcs.c: Reformat.
10942         * libc/stdlib/wcstombs.c: Ditto.
10943         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
10944         reset the state's __count value and return -1.
10945         * libc/stdlib/mbtowc.c: Ditto.
10946         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
10947         If number of bytes is used up before completing a valid multibyte
10948         character, return -2 and save the state.
10949         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
10950         and change some __count references to __state for clarity.
10951
10952 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
10953
10954         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
10955         is defined by <limits.h>.
10956
10957 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10958
10959         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
10960         defined.
10961
10962 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10963
10964         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
10965         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
10966         __WCHAR_MAX__ or 0x7fffffffu.
10967         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
10968         * libc/string/wcsncmp.c: Ditto.
10969
10970 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
10971
10972         * libc/string/wcschr.c: Add include of <stddef.h>.
10973         * libc/string/wcspbrk.c: Ditto.
10974         * libc/string/wcsrchr.c: Ditto.
10975         * libc/string/wcsstr.c: Ditto.
10976
10977 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
10978
10979         * libc/include/sys/_types.h (_flock_t): Added.
10980         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
10981         (__lock_try_acquire_recursive): Ditto.
10982         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
10983         _lock field.
10984         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
10985         field.
10986         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
10987         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
10988         * libc/sys/linux/include/time.h (struct timespec): Moved from
10989         <sys/types.h> and added check for __need_timespec flag so type
10990         can be defined by itself.
10991         * libc/sys/linux/sys/_types.h (_flock_t): New type.
10992         * libc/sys/linux/sys/types.h (struct timespec): Moved to
10993         <time.h>.
10994
10995 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
10996
10997         * libc/sys/linux/argp: New directory.
10998         * libc/sys/linux/getopt.c: New file.
10999         * libc/sys/linux/getopt1.c: New file.
11000         * libc/sys/linux/getoptlong.c: Remove file.
11001         * libc/sys/linux/include/argp.h: New file.
11002         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
11003         based on ELIX level.
11004         (SUBDIRS): Add argp_dir.
11005         (SUBLIBS): Add ARGP_LIB.
11006         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
11007         getopt_long.$(oext).
11008         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
11009
11010 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11011
11012         * libc/libc.texinfo: Add node reference to wide-character strings.
11013         * libc/string/wcstrings.tex: New file.
11014         * libc/string/strtok_r.c: Remove outdated advertising clause.
11015         * libc/string/Makefile.am (doc): Add wide-character string
11016         chapter to documentation.
11017         * libc/string/Makefile.in: Regenerated.
11018
11019 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11020
11021         * libc/include/wchar.h: Define NULL. Define WEOF more general
11022         way. Declare functions in newlib manner.
11023         * libc/stdlib/Makefile.am: Delete wmem*.c
11024         * libc/stdlib/Makefile.in: Regenerated.
11025         * libc/stdlib/wmemchr.c: Delete.
11026         * libc/stdlib/wmemcmp.c: Ditto.
11027         * libc/stdlib/wmemcpy.c: Ditto.
11028         * libc/stdlib/wmemmove.c: Ditto.
11029         * libc/stdlib/wmemset.c: Ditto.
11030         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
11031         * libc/string/Makefile.in: Regenerated.
11032         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
11033         * libc/string/wcschr.c: Ditto.
11034         * libc/string/wcscmp.c: Ditto.
11035         * libc/string/wcscpy.c: Ditto.
11036         * libc/string/wcscspn.c: Ditto.
11037         * libc/string/wcslcat.c: Ditto.
11038         * libc/string/wcslcpy.c: Ditto.
11039         * libc/string/wcslen.c: Ditto.
11040         * libc/string/wcsncat.c: Ditto.
11041         * libc/string/wcsncmp.c: Ditto.
11042         * libc/string/wcsncpy.c: Ditto.
11043         * libc/string/wcspbrk.c: Ditto.
11044         * libc/string/wcsrchr.c: Ditto.
11045         * libc/string/wcsspn.c: Ditto.
11046         * libc/string/wcsstr.c: Ditto.
11047         * libc/string/wmemchr.c: Ditto.
11048         * libc/string/wmemcmp.c: Ditto.
11049         * libc/string/wmemcpy.c: Ditto.
11050         * libc/string/wmemmove.c: Ditto.
11051         * libc/string/wmemset.c: Ditto.
11052
11053 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11054
11055         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
11056         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
11057         and is treated as if "C" was specified.
11058
11059 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11060
11061         * Makefile.am (install-data-local): Move install of build
11062         newlib.h after installing headers in libc/include so as to
11063         overwrite default newlib.h.
11064         * Makefile.in: Regenerated.
11065
11066 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11067
11068         * libc/include/newlib.h: New file for tools that use newlib
11069         headers but don't build newlib first (e.g. gcc).
11070
11071 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11072
11073         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
11074         * libc/stdlib/wmemcmp.c: Ditto.
11075         * libc/stdlib/wmemcpy.c: Ditto.
11076         * libc/stdlib/wmemmove.c: Ditto.
11077         * libc/stdlib/wmemset.c: Ditto.
11078
11079 2002-08-27  Egor Duda  <deo@logos-m.ru>
11080
11081         * libc/stdlib/wmemchr.c: New file.
11082         * libc/stdlib/wmemcmp.c: Ditto.
11083         * libc/stdlib/wmemcpy.c: Ditto.
11084         * libc/stdlib/wmemmove.c: Ditto.
11085         * libc/stdlib/wmemset.c: Ditto.
11086         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11087         * configure.host: Default -DMB_CAPABLE for cygwin.
11088         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11089         wmemmove() and wmemset().  Add include of <_ansi.h>.
11090         * libc/stdlib/Makefile.in: Regenerate.
11091
11092 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11093
11094         * configure.host: Remove _ELIX_LEVEL flag setting.
11095         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11096         (install-data-local): Install newlib.h.
11097         * Makefile.in: Regenerated.
11098         * aclocal.m4: Ditto.
11099         * configure: Ditto.
11100         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11101         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11102         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11103         In AC_OUTPUT statement, unset ac_file so multilib support does
11104         not use last ac_file temporary used in newlib.h configuration.
11105         * libc/include/_ansi.h: Include <newlib.h>.
11106         * newlib.hin: New template file for newlib.h.
11107         * stamp-h.in: New file.
11108
11109 2002-08-26  Wu Yongwei <adah@netstd.com>
11110
11111         * time.h (timezonevar): Change "#if" to "#ifdef".
11112
11113 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11114
11115         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11116         * Makefile.in: Regenerated.
11117         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11118         * aclocal.m4: Regenerated.
11119         * configure: Ditto.
11120         * configure.host: Add code to define _ELIX_LEVEL if
11121         --enable-newlib-elix-level option is used.
11122         * configure.in:
11123         * libc/aclocal.m4: Regenerated.
11124         * libc/configure: Ditto.
11125         * libc/argz/Makefile.am: Add EL/IX level checking.
11126         * libc/argz/Makefile.in: Regenerated.
11127         * libc/argz/dummy.c: New file.
11128         * libc/ctype/Makefile.am: Add EL/IX level checking.
11129         * libc/ctype/Makefile.in: Regenerated.
11130         * libc/locale/Makefile.am: Add EL/IX level checking.
11131         * libc/locale/Makefile.in: Regenerated.
11132         * libc/posix/Makefile.am: Add EL/IX level checking.
11133         * libc/posix/Makefile.in: Regenerated.
11134         * libc/posix/telldir.c: Add EL/IX level checking.
11135         * libc/reent/Makefile.am: Ditto.
11136         * libc/reent/fstat64r.c: Ditto.
11137         * libc/reent/lseek64r.c: Ditto.
11138         * libc/reent/open64r.c: Ditto.
11139         * libc/reent/Makefile.in: Regenerated.
11140         * libc/search/Makefile.am: Add EL/IX level checking.
11141         * libc/search/Makefile.in: Regenerated.
11142         * libc/stdio/Makefile.am: Add EL/IX level checking.
11143         * libc/stdio/Makefile.in: Regenerated.
11144         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11145         * libc/stdio64/Makefile.in: Regenerated.
11146         * libc/stdio64/dummy.c: New file.
11147         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11148         after first include.
11149         * libc/stdio64/fopen64.c: Ditto.
11150         * libc/stdio64/freopen64.c: Ditto.
11151         * libc/stdio64/fseeko64.c: Ditto.
11152         * libc/stdio64/fsetpos64.c: Ditto.
11153         * libc/stdio64/ftello64.c: Ditto.
11154         * libc/stdio64/tmpfile64.c: Ditto.
11155         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11156         * libc/stdlib/Makefile.in: Regenerated.
11157         * libc/stdlib/mstats.c: Add EL/IX level checking.
11158         * libc/string/Makefile.am: Ditto.
11159         * libc/string/Makefile.in: Regenerated.
11160         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11161         * libc/sys/linux/Makefile.in: Regenerated.
11162         * libc/sys/linux/aclocal.m4: Ditto.
11163         * libc/sys/linux/configure: Ditto.
11164         * libc/sys/linux/aio.c: Add EL/IX level checking.
11165         * libc/sys/linux/ftok.c: Ditto.
11166         * libc/sys/linux/getdate.c: Ditto.
11167         * libc/sys/linux/ids.c: Ditto.
11168         * libc/sys/linux/inode.c: Ditto.
11169         * libc/sys/linux/io.c: Ditto.
11170         * libc/sys/linux/process.c: Ditto.
11171         * libc/sys/linux/resource.c: Ditto.
11172         * libc/sys/linux/sched.c: Ditto.
11173         * libc/sys/linux/sig.c: Ditto.
11174         * libc/sys/linux/termios.c: Ditto.
11175         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11176         __libc___waitpid weak aliases.
11177         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11178         that generate the code for a syscall, but do not create a
11179         weak alias.
11180         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11181         * libc/syscalls/Makefile.in: Regenerated.
11182         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11183         functionality.
11184         * libc/unix/Makefile.am: Add EL/IX level checking.
11185         * libc/unix/Makefile.in: Regenerated.
11186
11187 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11188
11189         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11190         wrapper macros to standard malloc functions.
11191         * libc/include/stdlib.h: Ditto.
11192         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11193
11194 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11195
11196         * libc/include/langinfo.h: New file.
11197         * libc/include/wchar.h: Likewise.
11198         * libc/include/sys/syslimits.h: Likewise.
11199         * libc/locale/fix_grouping.c: Likewise.
11200         * libc/locale/ldpart.c: Likewise.
11201         * libc/locale/ldpart.h: Likewise.
11202         * libc/locale/lmessages.c: Likewise.
11203         * libc/locale/lmessages.h: Likewise.
11204         * libc/locale/lmonetary.c: Likewise.
11205         * libc/locale/lmonetary.h: Likewise.
11206         * libc/locale/lnumeric.c: Likewise.
11207         * libc/locale/lnumeric.h: Likewise.
11208         * libc/locale/nl_langinfo.3: Likewise.
11209         * libc/locale/nl_langinfo.c: Likewise.
11210         * libc/locale/timelocal.c: Likewise.
11211         * libc/locale/timelocal.h: Likewise.
11212         * libc/stdlib/btowc.c: Likewise.
11213         * libc/stdlib/mbrlen.c: Likewise.
11214         * libc/stdlib/mbrtowc.c: Likewise.
11215         * libc/stdlib/mbsinit.c: Likewise.
11216         * libc/stdlib/mbsrtowcs.c: Likewise.
11217         * libc/stdlib/wcrtomb.c: Likewise.
11218         * libc/stdlib/wcsrtombs.c: Likewise.
11219         * libc/stdlib/wctob.c: Likewise.
11220         * libc/sys/linux/prof-freq.c: Likewise.
11221         * libc/sys/linux/profile.c: Likewise.
11222         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11223         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11224         * libc/include/stdlib.h: Change re-entrant functions to take
11225         mbstate_t pointers.
11226         * libc/include/sys/_types.h: Define _mbstate_t.
11227         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11228         * libc/include/sys/errno.h (EILSEQ): New error code.
11229         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11230         structure to use mbstate_t.
11231         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11232         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11233         * libc/machine/powerpc/vfscanf.c: Likewise.
11234         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11235         * libc/stdio/vfprintf.c: Likewise.
11236         * libc/stdio/vfscanf.c: Likewise.
11237         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11238         * libc/stdlib/mblen.c: Use mbstate_t.
11239         * libc/stdlib/mblen_r.c: Likewise.
11240         * libc/stdlib/mbstowcs.c: Likewise.
11241         * libc/stdlib/mbstowcs_r.c: Likewise.
11242         * libc/stdlib/mbtowc.c: Likewise.
11243         * libc/stdlib/mbtowc_r.c: Likewise.
11244         * libc/stdlib/wcstombs.c: Likewise.
11245         * libc/stdlib/wcstombs_r.c: Likewise.
11246         * libc/stdlib/wctomb_r.c: Likewise.
11247         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11248         profile.c.
11249         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11250         dl-procinfo.c.
11251         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11252         * libc/sys/linux/sys/types.h (off_t): Define type.
11253         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11254         to C-UTF-8.
11255         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11256
11257 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11258
11259         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11260           (AlignPage): Continue macro on next line.
11261
11262 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11263
11264         * libc/sys/linux/include/pthread.h: New file.
11265
11266 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11267
11268         * libc/include/sys/types.h: Support __need_inttypes macro
11269         that only sets the __intxx and __uintxx types.
11270         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11271         to get mprec.h.
11272         * libc/machine/powerpc/Makefile.in: Regenerated.
11273         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11274         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11275         redundant fixed-point conversion prototypes.
11276         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11277         after setting __need_inttypes.
11278
11279 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11280
11281         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11282
11283 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11284
11285         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11286         _LONG_DOUBLE to double.
11287
11288 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11289
11290         * configure.host: Add powerpc*-*-eabispe* configuration.
11291         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11292         * libc/machine/powerpc/atosfix32.c: Ditto.
11293         * libc/machine/powerpc/atosfix64.c: Ditto.
11294         * libc/machine/powerpc/atoufix16.c: Ditto.
11295         * libc/machine/powerpc/atoufix32.c: Ditto.
11296         * libc/machine/powerpc/atoufix64.c: Ditto.
11297         * libc/machine/powerpc/fix64.h: Ditto.
11298         * libc/machine/powerpc/simdldtoa.c: Ditto.
11299         * libc/machine/powerpc/strtosfix16.c: Ditto.
11300         * libc/machine/powerpc/strtosfix32.c: Ditto.
11301         * libc/machine/powerpc/strtosfix64.c: Ditto.
11302         * libc/machine/powerpc/strtoufix16.c: Ditto.
11303         * libc/machine/powerpc/strtoufix32.c: Ditto.
11304         * libc/machine/powerpc/strtoufix64.c: Ditto.
11305         * libc/machine/powerpc/ufix64toa.c: Ditto.
11306         * libc/machine/powerpc/configure.in: Add check for
11307         powerpc*-eabispe and add fixed-point conversion functions.
11308         * libc/machine/powerpc/configure: Regenerated.
11309         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
11310         %r and %R format specifiers which handle fixed-point data.
11311         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
11312         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
11313         function prototypes.
11314
11315 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11316
11317         *  Makefile.am: Move cmath stuff into libc/sys/linux.
11318         *  Makefile.in: Regenerated.
11319         *  configure.host: Default -DMB_CAPABLE for x86-linux.
11320         *  libc/include/reent.h: Define _sbrk to take signed int argument.
11321         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
11322         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
11323         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
11324         locale for LC_CTYPE and LC_MESSAGES.
11325         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
11326         *  libc/sys/linux/brk.c: Change sbrk prototype.
11327         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
11328         include <sys/features.h>.
11329         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
11330         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
11331         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
11332         with a few local additions.
11333         *  libc/sys/linux/sys/features.h: New file.
11334         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
11335         to take signed argument.
11336         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
11337         prototypes to take signed size argument.
11338
11339 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
11340
11341         * libc/sys/linux/cmath: New directory.
11342         * libc/sys/linux/include/cmathcalls.h: New file.
11343         * libc/sys/linux/include/complex.h: New file.
11344         * libc/sys/linux/machine/i386/huge_val.h: New file
11345         * libm/math/w_sincos.c: New file
11346         * libm/math/wf_sincos.c: New file
11347         * libm/mathfp/s_sincos.c: New file
11348         * libm/mathfp/sf_sincos.c: New file
11349         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
11350         * libc/include/math.h: Add sincos and sincosf declarations.
11351         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
11352         (SUBLIBS): Likewise.
11353         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
11354         * libm/math/Makefile.am (src): Add w_sincos.c.
11355         (fsrc): Add wf_sincos.c.
11356         * libm/mathfp/Makefile.am (src): Add s_sincos.c
11357         (fsrc): Add sf_sincos.c.
11358
11359 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
11360
11361         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
11362         Declare as extern chars and use the address operator to
11363         properly use values set in linker script.
11364
11365 2002-08-09  Jason Tishler  <jason@tishler.net>
11366
11367         * libc/stdlib/mallocr.c: Include <limits.h>.
11368         (request2size): Change macro to do
11369         unsigned long comparisons and avoid signed overflow.
11370         (mALLOc): Add overflow check for the number of bytes to allocate.
11371         (rEALLOc): Ditto.
11372
11373 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
11374
11375         * configure.host: Add check for --enable-newlib-io-pos-args
11376         and define WANT_IO_POS_ARGS flag if enabled.  Define
11377         the flag by default for x86-linux configurations.
11378         * configure.in: Add support for --enable-newlib-io-pos-args.
11379         * libc/configure.in: Ditto.
11380         * configure: Regenerated.
11381         * libc/configure: Ditto.
11382         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
11383         vfprintf.c and vfiprintf.c.
11384         * libc/stdio/Makefile.in: Regenerated.
11385         * libc/stdio/vfprintf.c: Add positional argument support that
11386         is enabled by compiling with -DWANT_IO_POS_ARGS.
11387
11388 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
11389
11390         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
11391         based on __mips_soft_float rather than __mips64.
11392         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
11393         of both 32-bit and 64-bit code.
11394
11395 2002-08-04  Christopher Faylor  <cgf@redhat.com>
11396
11397         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
11398         arguments for popen to match similar functionality in fopen.
11399
11400 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
11401
11402         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
11403
11404 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
11405
11406         * libc/sys/linux/Makefile.am: Add aio64.c.
11407         * libc/sys/linux/Makefile.in: Regenerated.
11408         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
11409         * libc/sys/linux/aio64.c: New file.
11410
11411 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11412
11413         *  libc/include/sys/param.h (MAX, MIN): Added macros.
11414         *  libc/sys/linux/Makefile.am: Add new files.
11415         *  libc/sys/linux/Makefile.in: Regenerated.
11416         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11417         *  libc/sys/linux/inode.c (fchdir): Added syscall.
11418         *  libc/sys/linux/ftw.c: New file.
11419         *  libc/sys/linux/ftw64.c: Ditto.
11420         *  libc/sys/linux/getwd.c: Ditto.
11421         *  libc/sys/linux/scandir64.c: Ditto.
11422         *  libc/sys/linux/strverscmp.c: Ditto.
11423         *  libc/sys/linux/versionsort.c: Ditto.
11424         *  libc/sys/linux/versionsort64.c: Ditto.
11425
11426 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11427
11428         * libc/string/strings.tex: Fix typo for memccpy.
11429
11430 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11431
11432         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
11433         * libc/sys/linux/sys/types.h (off64_t): Definition added.
11434
11435 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11436
11437         * libc/sys/linux/Makefile.am: Add fclean.c.
11438         * libc/sys/linux/Makefile.in: Regenerated.
11439         * libc/sys/linux/fclean.c: New file.
11440
11441 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11442
11443         * libc/sys/linux/Makefile.am: Add confstr.c.
11444         * libc/sys/linux/Makefile.in: Regenerated.
11445         * libc/sys/linux/confstr.c: New file.
11446         * libc/sys/linux/confstr.h: Ditto.
11447         * libc/sys/linux/sys/unistd.h: Include <features.h> and
11448         <bits/environments.h>.
11449
11450 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11451
11452         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
11453         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
11454         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
11455         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
11456         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
11457         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
11458
11459 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11460
11461         * libc/sys/linux/Makefile.am: Add new files.
11462         * libc/sys/linux/Makefile.in: Regenerated.
11463         * libc/sys/linux/fstab.c: New file.
11464         * libc/sys/linux/fstatvfs.c: Ditto.
11465         * libc/sys/linux/fstatvfs64.c: Ditto.
11466         * libc/sys/linux/internal_statvfs.c: Ditto.
11467         * libc/sys/linux/mntent.c: Ditto.
11468         * libc/sys/linux/mntent_r.c: Ditto.
11469         * libc/sys/linux/statvfs.c: Ditto.
11470         * libc/sys/linux/statvfs64.c: Ditto.
11471         * libc/sys/linux/include/paths.h: Ditto.
11472         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
11473         with double-underscore weak-aliases.
11474         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11475
11476 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11477
11478         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
11479         to use _sig_func_ptr type casted constants.
11480         (_sig_func_ptr): Typedef moved to sys/signal.h.
11481         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
11482         For __rtems, use POSIX definition, otherwise default to ANSI.
11483         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
11484
11485 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
11486
11487         * configure.host: Recognize m6811-elf and m6812-elf targets.
11488         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
11489         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
11490         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
11491         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
11492         according to __INT_MAX__.
11493         (_POINTER_INT): Define to short.
11494         * libc/machine/m68hc11/Makefile.am: New file.
11495         * libc/machine/m68hc11/Makefile.in: New file.
11496         * libc/machine/m68hc11/configure.in: New file.
11497         * libc/machine/m68hc11/configure: New file.
11498         * libc/machine/m68hc11/aclocal.m4: New file.
11499         * libc/machine/m68hc11/setjmp.S: New file.
11500
11501 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11502
11503         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
11504         prototypes.
11505         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
11506         * libc/stdlib/Makefile.in: Regenerated.
11507         * libc/stdlib/strdup.c: Removed.
11508         * libc/stdlib/strdup_r.c: Removed.
11509         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
11510         mempcpy.c, strndup.c, and strndup_r.c.
11511         * libc/string/Makefile.in: Regenerated.
11512         * libc/string/memccpy.c: New file.
11513         * libc/string/mempcpy.c: Ditto.
11514         * libc/string/strndup.c: Ditto.
11515         * libc/string/strndup_r.c: Ditto.
11516         * libc/string/strdup.c: New file moved from stdlib.
11517         * libc/string/strdup_r.c: Ditto.
11518         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
11519
11520 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11521
11522         * libc/include/stdio.h: Move fcloseall prototype within
11523         #ifndef _REENT_ONLY section.
11524         * libc/sys/linux/Makefile.am: Add new files.
11525         * libc/sys/linux/Makefile.in: Regenerated.
11526         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
11527         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
11528         * libc/sys/linux/sys/types.h: Add ino64_t type.
11529         * libc/sys/linux/ctermid.c: New file.
11530         * libc/sys/linux/ttyname_r.c: Ditto.
11531         * libc/sys/linux/readdir64.c: Ditto.
11532
11533 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11534
11535         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
11536         * libc/stdio/Makefile.am: Added fcloseall.c support.
11537         * libc/stdio/Makefile.in: Regenerated.
11538         * libc/stdio/fcloseall.c: New file.
11539         * libc/stdio64/Makefile.am: Remove missing .def references.
11540         * libc/stdio64/Makefile.in: Regenerated.
11541
11542 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11543
11544         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
11545         * libc/machine/powerpc/times.c: New file.
11546         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
11547         * libc/machine/powerpc/Makefile.in: Regenerated.
11548
11549 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
11550
11551         * libc/machine/powerpc/time.c: New file.
11552         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
11553         time.c.
11554         * libc/machine/powerpc/Makefile.in: Regenerated.
11555
11556 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11557
11558         * libc/libc.texinfo: Change copyright notices to Red Hat from
11559         Cygnus.
11560         * libm/libm.texinfo: Likewise.
11561         * README: Change docs URL to
11562         http://sources.redhat.com/newlib/docs.html.
11563
11564 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11565
11566         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
11567         * libc/sys/linux/Makefile.in: Regenerated.
11568         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
11569         * libc/sys/linux/io.c: Add ftruncate syscall.
11570         * libc/sys/linux/fpathconf.c: New file.
11571         * libc/sys/linux/pathconf.c: Ditto.
11572         * libc/sys/linux/linux_fsinfo.h: Ditto.
11573         * libc/sys/linux/sys/unistd.h: Ditto.
11574
11575 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11576
11577         * libc/stdio64/Makefile.am: Remove missing files.
11578         * libc/stdio64/Makefile.in: Regenerated.
11579
11580 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11581
11582         * libc/include/sys/config.h[__i386__][__linux__]: Define
11583         _LARGE64FILE_SOURCE to 1.
11584         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
11585         * libc/sys/linux/Makefile.in: Regenerated.
11586         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
11587         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
11588         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
11589         of <linux/resource.h>.
11590         * libc/sys/linux/getrlimit64.c: New file.
11591         * libc/sys/linux/setrlimit64.c: Ditto.
11592
11593 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11594
11595         * libc/argz/argz_replace.c: Include buf_findstr.h.
11596         * libc/argz/buf_findstr.c: Likewise.
11597         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
11598         value to (char *).
11599         * libc/argz/envz_get.c: Likewise.
11600         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
11601         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
11602         * libc/stdlib/getsubopt.3: New file.
11603         * libc/stdlib/getsubopt.c: New file.
11604         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
11605         Change esp to ebp.
11606
11607 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
11608
11609         * configure.host(stdio64_dir): New setting that is used to
11610         enable building of new stdio64 directory.
11611         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
11612         large files.
11613         (stmp-stdio64,stdio64.texi): New targets to optionally add in
11614         stdio64 info to info files.
11615         * libc/Makefile.in: Regenerated.
11616         * libc/configure: Ditto.
11617         * libc/configure.in: Add configuration variables that are set
11618         when stdio64 is selected as subdir in configure.host.
11619         * libc/libc.texinfo: Add optional menu item for Stdio64, based
11620         on whether STDIO64 flag is set or not.
11621         * libc/sys.tex: Add optional stdio64 syscalls based on whether
11622         STDIO64 flag is set or not.
11623         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
11624         _r sycall routines.
11625         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
11626         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
11627         (__SL64): New file flag indicating file is opened via fopen64.
11628         * libc/include/sys/_types.h(_off64_t): Added.
11629         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
11630         * libc/include/sys/reent.h(struct __sFILE64): New file structure
11631         for 64-bit offset large file support.
11632         (__FILE): New intermediate type either set to struct __sFILE64 or
11633         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
11634         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
11635         * libc/reent/Makefile.in: Regenerated.
11636         * libc/reent/fstat64r.c: New file.
11637         * libc/reent/lseek64r.c: Ditto.
11638         * libc/reent/open64r.c: Ditto.
11639         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
11640         based on whether STDIO64 flag is set.
11641         * libc/stdio/stdio.tex: Add blank line.
11642         * libc/stdio64/Makefile.am: New file.
11643         * libc/stdio64/Makefile.in: Ditto.
11644         * libc/stdio64/fgetpos64.c: Ditto.
11645         * libc/stdio64/fopen64.: Ditto.
11646         * libc/stdio64/freopen64.c: Ditto.
11647         * libc/stdio64/fseeko64.c: Ditto.
11648         * libc/stdio64/fsetpos64.c: Ditto.
11649         * libc/stdio64/ftello64.c: Ditto.
11650         * libc/stdio64/local64.h: Ditto.
11651         * libc/stdio64/stdio64.c: Ditto.
11652         * libc/stdio64/stdio64.tex: Ditto.
11653         * libc/stdio64/tmpfile64.c: Ditto.
11654         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
11655         open64.
11656
11657 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
11658
11659         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
11660         if LIBC_EXTRA_LIB is present.
11661         * libc/Makefile.in: Regenerated.
11662         * libc/libc.texinfo: Add blank line.
11663         * libc/argz/Makefile.am: Add doc support.
11664         * libc/search/Makefile.am: Ditto.
11665         * libc/argz/Makefile.in: Regenerated.
11666         * libc/search/Makefile.in: Ditto.
11667         * libc/misc/misc.tex: Add ffs function.
11668         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
11669
11670 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11671
11672         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
11673         definition that was removed in error.
11674
11675 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11676
11677         * libc/include/machine/ieeefp.h: Change to only define
11678         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
11679         __IEEE_LITTLE_ENDIAN must be defined for each platform).
11680         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
11681         remove redundant floating point definitions.
11682
11683 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11684
11685         * libc/sys/linux/callocr.c: Fix so code references
11686         calloc.
11687
11688 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11689
11690         * libc/sys/linux/Makefile.am: Add new files.
11691         * libc/sys/linux/Makefile.in: Regenerated.
11692         * libc/sys/linux/bp-sym.h: Moved to include directory.
11693         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
11694         * libc/sys/linux/inode.c: Set _LIBC to 1.
11695         * libc/sys/linux/mq_close.c: Ditto.
11696         * libc/sys/linux/mq_getattr.c: Ditto.
11697         * libc/sys/linux/mq_open.c: Ditto.
11698         * libc/sys/linux/mq_receive.c: Ditto.
11699         * libc/sys/linux/mq_send.c: Ditto.
11700         * libc/sys/linux/mq_setattr.c: Ditto.
11701         * libc/sys/linux/mq_unlink.c: Ditto.
11702         * libc/sys/linux/calloc.c: New file.
11703         * libc/sys/linux/callocr.c: Ditto.
11704         * libc/sys/linux/cfreer.c: Ditto.
11705         * libc/sys/linux/config.h: Ditto.
11706         * libc/sys/linux/free.c: Ditto.
11707         * libc/sys/linux/freer.c: Ditto.
11708         * libc/sys/linux/msize.c: Ditto.
11709         * libc/sys/linux/msizer.c: Ditto.
11710         * libc/sys/linux/mstats.c: Ditto.
11711         * libc/sys/linux/mtrim.c: Ditto.
11712         * libc/sys/linux/mtrimr.c: Ditto.
11713         * libc/sys/linux/pvallocr.c: Ditto.
11714         * libc/sys/linux/realloc.c: Ditto.
11715         * libc/sys/linux/reallocr.c: Ditto.
11716         * libc/sys/linux/thread-m.h: Ditto.
11717         * libc/sys/linux/vallocr.c: Ditto.
11718         * libc/sys/linux/bp-checks.h: Ditto.
11719         * libc/sys/linux/libc-symbols.h: Ditto.
11720         * libc/sys/linux/libc-tsd.h: Ditto.
11721         * libc/sys/linux/libintl.h: Ditto.
11722         * libc/sys/linux/malign.c: Ditto.
11723         * libc/sys/linux/malignr.c: Ditto.
11724         * libc/sys/linux/mallinfor.c: Ditto.
11725         * libc/sys/linux/malloc.c: Ditto.
11726         * libc/sys/linux/mallocr.c: Ditto.
11727         * libc/sys/linux/malloptr.c: Ditto.
11728         * libc/sys/linux/mallstatsr.c: Ditto.
11729         * libc/sys/linux/mcheck.c: Ditto.
11730         * libc/sys/linux/mhooks.h: Ditto.
11731         * libc/sys/linux/include/bp-sym.h: Ditto.
11732         * libc/sys/linux/include/malloc.h: Ditto.
11733         * libc/sys/linux/include/mcheck.h: Ditto.
11734         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
11735         getpagesize.c.
11736         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
11737         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
11738         * libc/sys/linux/machine/i386/getpagesize.c: New file.
11739         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
11740         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11741         * libc/sys/linux/machine/i386/sysdep.h: New file.
11742         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
11743         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
11744         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
11745
11746 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
11747
11748         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
11749         instead of <asm/siginfo.h>.
11750         * libc/sys/linux/sys/signal.h: Change to include various linux
11751         <bits/xxx.h> header files, rather than <linux/signal.h> so as
11752         to work with multiple releases of glibc header files.
11753
11754 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
11755
11756         * testsuite/newlib.search/hsearchtest.c: New file to test
11757         newlib/libc/search.
11758         * testsuite/newlib.search/hsearchtest.exp: Likewise.
11759
11760 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
11761
11762         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
11763         a terminal.
11764         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
11765
11766 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
11767
11768         * libc/include/math.h (MAXFLOAT): Added.
11769
11770 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
11771
11772         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
11773         Make strcmp.S unconditional.
11774         * libc/machine/sh/Makefile.in: Regenerate.
11775         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
11776         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
11777         for SHcompact.
11778
11779 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11780
11781         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
11782         define before including <sys/lock.h>.
11783
11784 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11785
11786         * libc/include/utime.h: Add include of <_ansi.h>.
11787         * libc/sys/linux/Makefile.am: Add utimes.c.
11788         * libc/sys/linux/Makefile.in: Regenerated.
11789         * libc/sys/linux/inode.c(__umask): New static routine.
11790         (umask): Written to use __umask and attempt to thread lock.
11791         (getumask): New function written to use __umask and thread lock.
11792         * libc/sys/linux/utimes.c: New file.
11793         * libc/sys/linux/sys/time.h: Fix utimes prototype.
11794         * libc/sys/linux/sys/utime.h: New file.
11795
11796 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
11797
11798         * libtool.m4: New file.
11799         * libc/sys/linux/process.c: Implement vfork in terms of fork,
11800         rather than as a syscall.
11801
11802 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11803
11804         * libc/include/stdio.h: Add new prototypes.
11805         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
11806         * libc/stdio/Makefile.in: Regenerated.
11807         * libc/stdio/fseek.c: Add fseeko documentation.
11808         * libc/stdio/ftell.c: Add ftello documentation.
11809         * libc/stdio/fseeko.c: New file.
11810         * libc/stdio/ftello.c: New file.
11811
11812 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11813
11814         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
11815         * libc/stdio/Makefile.in: Regenerated.
11816         * libc/stdio/asprintf.c: New file.
11817         * libc/stdio/vasprintf.c: Ditto.
11818         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
11819         the buffer for asprintf support.
11820         * libc/stdio/sprintf.c: Add asprintf documentation.
11821         * libc/stdio/vfprintf.c: Add vasprintf documentation.
11822         * libc/include/stdio.h: Add new prototypes.
11823
11824 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
11825
11826         * libc/search/hcreate.c: Remove advertising clause from license.
11827         * libc/search/hcreate_r.c: Likewise.
11828
11829 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
11830
11831         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
11832         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
11833         Check that one of them is defined and error out if not.
11834         Add any platforms defined in <machine/ieeefp.h> that are missing.
11835         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
11836         (DB_LITTLE_ENDIAN): New defines.
11837         * libc/search/hash.c: Replace all incorrect checks for
11838         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
11839         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
11840         * libc/search/hash_page.c: Likewise.
11841
11842 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
11843
11844         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
11845
11846 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
11847
11848         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
11849         * libc/include/time.h: Same.
11850         * libc/include/string.h: Same.
11851         * libc/include/stdlib.h: Same.
11852         * libc/include/signal.h: Same.
11853         * libc/include/setjmp.h: Same.
11854         * libc/include/math.h: Same.
11855         * libc/include/locale.h: Same.
11856         * libc/include/ctype.h: Same.
11857         * libc/include/machine/setjmp.h: Same.
11858         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
11859         (_END_STD_C): Add.
11860
11861 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11862
11863         * libc/include/sys/_types.h: Define _ssize_t as int if int is
11864         32-bits, otherwise define it as long.
11865         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
11866         and define ssize_t as _ssize_t.
11867         * libc/reent/readr.c: Change return type to _ssize_t.
11868         * libc/reent/writer.c: Ditto.
11869         * libc/sys/linux/Makefile.am: Add aio.c.
11870         * libc/sys/linux/Makefile.in: Regenerated.
11871         * libc/sys/linux/aio.c: New file.
11872         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
11873         * libm/common/fdlibm.h: Undef __P before defining it.
11874
11875 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
11876
11877         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
11878         exponent_is_even_int variable.  Handle case where x is
11879         negative, and y is an odd integer.
11880         * libm/mathfp/sf_pow.c (powf): Likewise.
11881
11882         * libm/mathfp/er_lgamma.c: Remove __kernel references.
11883         * libm/mathfp/erf_lgamma.c: Likewise.
11884         * libm/mathfp/s_tgamma.c: Likewise.
11885         * libm/mathfp/sf_tgamma.c: Likewise.
11886
11887 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11888
11889         * libc/sys/linux/Makefile.am: Add new clock routines.
11890         * libc/sys/linux/Makefile.in: Regenerated.
11891         * libc/sys/linux/clock_getres.c: New file.
11892         * libc/sys/linux/clock_gettime.c: Ditto.
11893         * libc/sys/linux/clock_settime.c: Ditto.
11894         * libc/sys/linux/hp-timing.h: Ditto.
11895         * libc/sys/linux/libc-internal.h: Ditto.
11896         * libc/sys/linux/sysconf.c: Fix typo.
11897         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
11898         * libc/sys/linux/machine/hp-timing.h: New file.
11899         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
11900         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11901         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
11902         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
11903         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
11904         * libc/sys/linux/sys/linux_time.h: New file.
11905         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
11906         replace with <sys/linux_time.h>.
11907
11908 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
11909
11910         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
11911
11912 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11913
11914         * libc/sys/linux/Makefile.am: Consolidate additional items under
11915         ADD_OBJS.
11916         * libc/sys/linux/Makefile.in: Regenerated.
11917
11918 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11919
11920         * libc/sys/linux/sethostname.c: New file.
11921         * libc/sys/linux/Makefile.am: Add sethostname.c support.
11922         * libc/sys/linux/Makefile.in: Regenerated.
11923
11924 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11925
11926         * libc/search/db_local.h: New file.
11927         * libc/include/db.h: Remove.
11928         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
11929         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
11930         "db_local.h".
11931         * libc/search/hash_bigkey.c: Likewise.
11932         * libc/search/hash_buf.c: Likewise.
11933         * libc/search/hash_func.c: Likewise.
11934         * libc/search/hash_log2.c: Likewise.
11935         * libc/search/hash_page.c: Likewise.
11936
11937 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
11938
11939         * libc/machine/sh/strlen.S: New file.
11940         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
11941         * libc/machine/sh/Makefile.am: Regenerate.
11942
11943 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11944
11945         * libc/sys/linux/gethostname.c: Change name to __gethostname and
11946         add gethostname alias.
11947
11948 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11949
11950         * libc/include/math.h: Remove <sys/types.h>.
11951         (__dmath): Use __ULong instead of __uint32_t.
11952         * libc/include/sys/reent.h: If long or int is not 32-bits,
11953         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
11954         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
11955         * libm/common/fdlibm.h: Ditto.
11956
11957 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11958
11959         * libc/include/ndbm.h: Remove.
11960         * libc/search/ndbm.c: Remove.
11961
11962 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
11963
11964         * libc/stdio/fseek.c (fseek): Fix braces.
11965
11966 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
11967
11968         * libc/time/strftime.c (strftime): Add %e format specifier.
11969
11970 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
11971
11972         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
11973         previously defined.
11974
11975 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
11976
11977         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
11978         (BYTE_ORDER): Define as appropriate for the target.
11979
11980 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11981
11982         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
11983         to _ssize_t.
11984         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
11985
11986 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11987
11988         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
11989         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
11990         [HAVE_GETDATE](getdate_err): New error code.
11991         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
11992         * libc/stdio/Makefile.in: Regenerated.
11993         * libc/stdio/getdelim.c: New file.
11994         * libc/stdio/getline.c: Ditto.
11995         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
11996         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
11997         * libc/sys/linux/Makefile.in: Regenerated.
11998         * libc/sys/linux/getdate.c: New file.
11999         * libc/sys/linux/getdate_err.c: Ditto.
12000         * libc/sys/linux/ntp_gettime.c: Ditto.
12001         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
12002         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
12003
12004 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12005
12006         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
12007         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
12008         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
12009         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
12010         * libc/include/sys/param.h: Remove i386 case which is handled
12011         by default case.
12012         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
12013         definitions in case they are already defined.
12014         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
12015         _IEEE_LITTLE_ENDIAN flags.
12016         * libc/include/sys/reent.h: Change __uint32_t references to
12017         use _ULong instead.
12018         (_REENT_GETDATE_REENT_P): New macro.
12019         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
12020         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
12021         * libc/search/hash.h: Add default setting of BYTE_ORDER,
12022         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
12023         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
12024         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
12025         pid_t, off_t, loff_t, caddr_t, and daddr_t type
12026         definitions which are done by subsequent glibc headers.
12027         Add macro definitions to prevent subsequent header files from
12028         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
12029         intptr_t to after glibc definitions of types they are based on.
12030
12031 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12032
12033         * libc/include/errno.h: Protect from multiple inclusion.
12034
12035 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
12036
12037         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
12038
12039 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
12040
12041         * Makefile.am (LIB_OBJECTLISTS): Add
12042         libc/search/objectlist.awk.in.
12043         * libc/Makefile.am (SUBDIRS): Add search.
12044         (SUBLIBS): Add search/libsearch.la.
12045         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12046         * libc/search: New directory.
12047         * libc/search/Makefile.am: New file.
12048         * libc/search/extern.h: New file.
12049         * libc/search/hash.c: New file.
12050         * libc/search/hash.h: New file.
12051         * libc/search/hash_bigkey.c: New file.
12052         * libc/search/hash_buf.c: New file.
12053         * libc/search/hash_func.c: New file.
12054         * libc/search/hash_log2.c: New file.
12055         * libc/search/hash_page.c: New file.
12056         * libc/search/hcreate.3: New file.
12057         * libc/search/hcreate.c: New file.
12058         * libc/search/hcreate_r.c: New file.
12059         * libc/search/ndbm.c: New file.
12060         * libc/search/page.h: New file.
12061         * libc/search/tdelete.c: New file.
12062         * libc/search/tdestroy.c: New file.
12063         * libc/search/tfind.c: New file.
12064         * libc/search/tsearch.3: New file.
12065         * libc/search/tsearch.c: New file.
12066         * libc/search/twalk.c: New file.
12067         * libc/include/db.h: New file.
12068         * libc/include/ndbm.h: New file.
12069         * libc/include/search.h: New file.
12070         * libc/include/sys/queue.h: New file.
12071         * libc/include/sys/cdefs.h: New file.
12072         * libc/include/sys/param.h
12073         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
12074         LITTLE_ENDIAN or BIG_ENDIAN.
12075         * libc/include/sys/errno.h (EFTYPE): New macro.
12076         * libc/search/bsearch.c: Move from libc/stdlib.
12077         * libc/search/qsort.c: Likewise.
12078         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12079         qsort.c.
12080         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12081         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12082
12083 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12084
12085         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12086         ipc routines, and ftok.
12087         * libc/sys/linux/Makefile.in: Regenerated.
12088         * libc/sys/linux/ftok.c: New file.
12089         * libc/sys/linux/ipc.c: Ditto.
12090         * libc/sys/linux/mq_close.c: Ditto.
12091         * libc/sys/linux/mq_getattr.c: Ditto.
12092         * libc/sys/linux/mq_notify.c: Ditto.
12093         * libc/sys/linux/mq_open.c: Ditto.
12094         * libc/sys/linux/mq_receive.c: Ditto.
12095         * libc/sys/linux/mq_send.c: Ditto.
12096         * libc/sys/linux/mq_setattr.c: Ditto.
12097         * libc/sys/linux/mq_unlink.c: Ditto.
12098         * libc/sys/linux/mqlocal.h: Ditto.
12099         * libc/sys/linux/include/mqueue.h: Ditto.
12100         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12101         __uid_t_defined.
12102
12103 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12104
12105         * libm/common/sf_lround.c (round): Change name to: (lround).
12106         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12107         remquof.
12108
12109 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12110
12111         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12112         procedure.
12113         (newlib_pass_fail): Change to compile and run only one file.
12114         * testsuite/newlib.locale/locale.exp: Use new
12115         newlib_pass_fail_all procedure.
12116         * testsuite/newlib.string/string.exp: Likewise.
12117
12118 2002-06-18  Dave Brolley  <brolley@redhat.com>
12119
12120         From Catherine Moore, Michael Meissner, Richard Sandiford:
12121         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12122         (_JBTYPE): Ditto.
12123         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12124         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12125         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12126         * configure.host: Support frv-*-*.
12127         * libc/machine/frv/Makefile.am: New file.
12128         * libc/machine/frv/configure.in: New file.
12129         * libc/machine/frv/setjmp.S: New file.
12130
12131 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12132
12133         * libc/include/ctype.h: Remove isblank macro.
12134
12135         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12136         * libc/ctype/isblank.c: New file.
12137         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12138         declaration.  Add isblank macro.
12139
12140 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12141
12142         * testsuite/newlib.stdlib/atexit.c: New file.
12143         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12144         * testsuite/newlib.string/tstring.c: Change default start size
12145         to something more reasonable for embedded platforms.
12146
12147 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12148
12149         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12150
12151         * libc/argz: New directory.
12152         * libc/argz/*: New files.
12153         * libc/argz/argz_add.c: New file.
12154         * libc/argz/argz_add_sep.c: New file.
12155         * libc/argz/argz_append.c: New file.
12156         * libc/argz/argz_count.c: New file.
12157         * libc/argz/argz_create.c: New file.
12158         * libc/argz/argz_create_sep.c: New file.
12159         * libc/argz/argz_delete.c: New file.
12160         * libc/argz/argz_extract.c: New file.
12161         * libc/argz/argz_insert.c: New file.
12162         * libc/argz/argz_next.c: New file.
12163         * libc/argz/argz_replace.c: New file.
12164         * libc/argz/argz_stringify.c: New file.
12165         * libc/argz/buf_findstr.c: New file.
12166         * libc/argz/envz_add.c: New file.
12167         * libc/argz/envz_entry.c: New file.
12168         * libc/argz/envz_get.c: New file.
12169         * libc/argz/envz_merge.c: New file.
12170         * libc/argz/envz_remove.c: New file.
12171         * libc/argz/envz_strip.c: New file.
12172         * libc/include/argz.h: New file.
12173         * libc/include/envz.h: New file.
12174         * Makefile.am (LIBC_OBJECTLISTS): Add
12175         libc/argz/objectlist.awk.in.
12176         * libc/Makefile.am (SUBDIRS): Add argz.
12177         (SUBLIBS): Add argz/libargz.la.
12178         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12179         * libc/include/errno.h: Add error_t typedef.
12180
12181 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12182
12183         * libc/include/stdlib.h: Add _Exit prototype.
12184         * libc/stdlib/Makefile.am: Add _Exit.c support.
12185         * libc/stdlib/Makefile.in: Ditto.
12186         * libc/stdlib/_Exit.c: New file.
12187
12188 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12189
12190         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12191         x is close to -1.0 and y is very large to use ax (absolute value)
12192         instead of x.
12193         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12194
12195 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12196
12197         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12198         Fix clobbering bytes before destination if src and dst have same
12199         non-zero misalignment.
12200
12201         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12202         Fixed bug in writing end of set region.
12203
12204 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12205
12206         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12207         spawnve declaration.
12208
12209 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12210
12211         * libm/common/s_fdim.c: New file.
12212         * libm/common/s_fma.c: Likewise.
12213         * libm/common/s_fmax.c: Likewise.
12214         * libm/common/s_fmin.c: Likewise.
12215         * libm/common/s_fpclassify.c: Likewise.
12216         * libm/common/s_lrint.c: Likewise.
12217         * libm/common/s_lround.c: Likewise.
12218         * libm/common/s_nearbyint.c: Likewise.
12219         * libm/common/s_remquo.c: Likewise.
12220         * libm/common/s_round.c: Likewise.
12221         * libm/common/s_scalbln.c: Likewise.
12222         * libm/common/s_signbit.c: Likewise.
12223         * libm/common/s_trunc.c: Likewise.
12224         * libm/common/sf_fdim.c: Likewise.
12225         * libm/common/sf_fma.c: Likewise.
12226         * libm/common/sf_fmax.c: Likewise.
12227         * libm/common/sf_fmin.c: Likewise.
12228         * libm/common/sf_lrint.c: Likewise.
12229         * libm/common/sf_lround.c: Likewise.
12230         * libm/common/sf_nearbyint.c: Likewise.
12231         * libm/common/sf_remquo.c: Likewise.
12232         * libm/common/sf_round.c: Likewise.
12233         * libm/common/sf_scalbln.c: Likewise.
12234         * libm/common/sf_trunc.c: Likewise.
12235         * libm/math/w_exp2.c: Likewise.
12236         * libm/math/w_tgamma.c: Likewise.
12237         * libm/math/wf_exp2.c: Likewise.
12238         * libm/math/wf_tgamma.c: Likewise.
12239         * libm/mathfp/s_exp2.c: Likewise.
12240         * libm/mathfp/s_tgamma.c: Likewise.
12241         * libm/mathfp/sf_exp2.c: Likewise.
12242         * libm/mathfp/sf_tgamma.c: Likewise.
12243         * libm/math/er_gamma.c: Fix return value.
12244         * libm/math/erf_gamma.c: Likewise.
12245         * libm/mathfp/er_gamma.c: Likewise.
12246         * libm/mathfp/erf_gamma.c: Likewise.
12247         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12248         declarations and macros.
12249         Regenerated all Makefile.in, aclocal.m4 and configure files to
12250         use new libtool macros in top-level libtool.m4
12251
12252 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12253
12254         * libc/include/string.h[__linux__]: Add strsignal prototype.
12255         * libc/include/sys/lock.h: New file with default locking support.
12256         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12257         and psignal.
12258         * libc/posix/Makefile.am: Add support for readdir_r.c.
12259         * libc/posix/Makefile.in: Regenerated.
12260         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12261         * libc/posix/opendir.c: Add lock support.
12262         * libc/posix/readdir.c: Ditto.
12263         * libc/posix/rewinddir.c: Ditto.
12264         * libc/posix/scandir.c: Ditto.
12265         * libc/posix/seekdir.c: Ditto.
12266         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12267         clean up leftover hash table entries.
12268         * libc/posix/readdir_r.c: New file.
12269         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12270         * libc/sys/linux/Makefile.in: Regenerated.
12271         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12272         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12273         * libc/sys/linux/psignal.c: New file.
12274         * libc/sys/linux/strsignal.c: Ditto.
12275
12276 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12277
12278         * libc/include/sys/types.h: Don't define dev_t when compiling for
12279         Cygwin.
12280
12281 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12282
12283         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12284         make siglist.inc dependent on sig.c instead of signal.c.
12285         * libc/sys/linux/Makefile.in: Regenerated.
12286         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12287         use NSIG instead of _NSIG.
12288         * libc/sys/linux/sigaction.c: New file.
12289         * libc/sys/linux/signal.c: Changed to be linux signal() function
12290         so as to override regular newlib default signal.c.
12291         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12292         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12293         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12294         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12295         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12296         default linux sigset_t typedef by defining it equal to __sigset_t.
12297         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12298         with a sigset_t that isn't implemented with a single int.
12299
12300 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12301
12302         * libc/sys/linux/Makefile.am: Add support for new files.
12303         * libc/sys/linux/Makefile.in: Regenerated.
12304         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
12305         * libc/sys/linux/signal.c: Change to use real-time syscalls for
12306         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
12307         it is in a separate file now.
12308         * libc/sys/linux/machine/i386/Makefile.am
12309         * libc/sys/linux/machine/i386/Makefile.in
12310         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
12311         * libc/sys/linux/sigaction.c: New file.
12312         * libc/sys/linux/sigqueue.c: Ditto.
12313         * libc/sys/linux/sigwait.c: Ditto.
12314         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
12315         * libc/sys/linux/kernel_sigaction.h: Ditto.
12316
12317 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
12318
12319         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
12320         tcsendbrk.c.
12321         * libc/sys/linux/Makefile.in: Regenerated.
12322         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
12323         tcgetpgrp(), and tcsetpgrp() functions.
12324         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
12325         to get __MAX_BAUD rate.
12326         * libc/sys/linux/machine/i386/include/termios.h: New file.
12327         * libc/include/machine/termios.h: Ditto.
12328         * libc/sys/linux/cfspeed.c: Ditto.
12329         * libc/sys/linux/tcsendbrk.c: Ditto.
12330
12331 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
12332
12333         * libc/include/string.h: Add strnlen and strerror_r prototypes.
12334         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
12335         * libc/string/Makefile.in: Regenerated.
12336         * libc/string/strerror_r.c: New file.
12337         * libc/string/strnlen.c: New file.
12338         * libc/sys/linux/Makefile.am: Add rename.c.
12339         * libc/sys/linux/Makefile.in: Regenerated.
12340         * libc/sys/linux/rename.c: New file to override default rename.
12341
12342 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12343
12344         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
12345         * libc/sys/linux/sys/time.h: Add conversion macros.
12346         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
12347         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
12348         * libc/sys/linux/gethostname.c: New file.
12349         * libc/sys/linux/seteuid.c: New file.
12350         * libc/sys/linux/sysctl.c: New file.
12351
12352 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12353
12354         * libc/string/Makefile.am: Add support for strsep.c.
12355         * libc/string/Makefile.in: Regenerated.
12356         * libc/string/strsep.c: New file.
12357         * libc/string/strtok.c: Change to call __strtok_r service routine.
12358         * libc/string/strtok_r.c: Add __strtok_r routine which takes
12359         additional flag parameter regarding whether to skip leading delimeters.
12360         Change strtok_r to call __strtok_r.
12361
12362 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
12363
12364         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
12365         * libc/stdio/Makefile.in: Regenerated.
12366         * libc/stdio/setbuffer.c: New file.
12367         * libc/stdio/setlinebuf.c: New file.
12368
12369 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12370
12371         * libc/sys/linux/Makefile.am: Add resource.c.
12372         * libc/sys/linux/Makefile.in: Regenerated.
12373         * libc/sys/linux/resource.c: New file.
12374         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
12375         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
12376         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12377         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
12378         are now found in libc/sys/linux/resource.c.
12379
12380 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12381
12382         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
12383         to use void * pointers and comply with Single Unix spec.
12384         * libc/string/bcmp.c: Change to use void * instead of char *.
12385         * libc/string/bcopy.c: Ditto.
12386         * libc/string/bzero.c: Ditto.
12387
12388 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12389
12390         * libc/sys/linux/shm_open.c: New file.
12391         * libc/sys/linux/shm_unlink.c: Ditto.
12392         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
12393         shm_unlink.c.
12394         * libc/sys/linux/Makefile.in: Regenerated.
12395         * libc/sys/linux/sys/types.h: Add some additional checks to see
12396         if clock_t or time_t is already defined.
12397
12398 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12399
12400         * Makefile.am: Don't pass $toollibdir down directly in
12401         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
12402         Pass it under the name: top_toollibdir.
12403         * Makefile.in: Regenerated.
12404
12405 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12406
12407         * libc/include/sys/types.h: Revert previous patch.
12408
12409 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12410
12411         * libc/include/sys/types.h: Include cygwin/types.h always under
12412         Cygwin, not only if _POSIX_THREADS is defined.
12413
12414 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
12415
12416         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
12417
12418 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
12419
12420         * Makefile.am: Copy and install headers from sys/machine/include
12421         directory.  Also pass $toollibdir to lower-level directories.
12422         * Makefile.in: Regenerated.
12423         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
12424         stderr to use _REENT macro instead of _impure_ptr directly.
12425         * libc/include/sys/config.h[__i386__][__linux__]: Define
12426         __DYNAMIC_REENT__.
12427         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
12428         call to __getreent() function if !__SINGLE_THREAD__ and
12429         __DYNAMIC_REENT__ is set.
12430         * libc/reent/Makefile.am: Add support for getreent.c.
12431         * libc/reent/Makefile.in: Regenerated.
12432         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
12433         * libc/sys/linux/Makefile.am: Add support for new files.
12434         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
12435         * libc/sys/linux/Makefile.in: Regenerated.
12436         * libc/sys/linux/configure: Ditto.
12437         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
12438         __close, __read, __write, __poll, __open, __lseek, __fcntl from
12439         their __libc_ counterparts.
12440         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
12441         and weak-alias to regular names.
12442         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
12443         to pread64 and __pread64.
12444         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
12445         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
12446         weak-alias to pwrite64.
12447         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
12448         __libc_sched_getscheduler, __libc_sched_get_priority_max,
12449         __libc_sched_get_priority_min, and __libc_sched_setschedule to
12450         name with __ instead of __libc_.
12451         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
12452         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
12453         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
12454         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
12455         to raise.
12456         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
12457         __libc_send to __send.
12458         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
12459         __gettimeofday.
12460         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
12461         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
12462         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
12463         type and typedef __jmp_buf to jmp_buf.
12464         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
12465         setjmp.S.
12466         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12467         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
12468         section.
12469         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
12470         prefix for function macros and then use weak_alias() to regular names.
12471         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12472         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
12473         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
12474         to be flockfile() and funlockfile() respectively.
12475         * libc/sys/linux/sys/types.h
12476         * libc/reent/getreent.c: New file.
12477         * libc/sys/linux/flockfile.c: Ditto.
12478         * libc/sys/linux/funlockfile.c: Ditto.
12479         * libc/sys/linux/getreent.c: Ditto.
12480         * libc/sys/linux/pread.c: Ditto.
12481         * libc/sys/linux/pwrite.c: Ditto.
12482         * libc/sys/linux/raise.c: Ditto.
12483         * libc/sys/linux/system.c: Ditto.
12484         * libc/sys/linux/tcdrain.c: Ditto.
12485         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
12486         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
12487         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
12488         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
12489         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
12490
12491 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
12492
12493         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
12494         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
12495         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
12496         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
12497
12498 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12499
12500         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
12501         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
12502         exit point.
12503
12504 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
12505
12506         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
12507         options when testing natively on i[3456]86-*-linux.
12508
12509         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
12510         only one pass or fail per test file.  Trim \r's from output
12511         values received from test programs.  Remove support for named
12512         tests.
12513         * testsuite/newlib.locale/UTF-8.exp: Update to support new
12514         newlib_check_output behaviour.
12515         * testsuite/newlib.locale/UTF-8.c: Likewise.
12516
12517 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
12518
12519         * libc/include/stdlib.h: Add on_exit prototype.
12520         * libc/include/sys/reent.h (struct _atexit): Add argument array
12521         and bits to track type of exit routine to support both on_exit
12522         and atexit.
12523         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
12524         by default and change the setting of the atexit structure.
12525         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
12526         * libc/stdlib/on_exit.c: New file.
12527         * libc/stdlib/Makefile.am: Add support for on_exit.
12528         * libc/stdlib/Makefile.in: Regenerated.
12529         * libc/stdlib/atexit.c: Change to initialize types field.
12530         * libc/stdlib/exit.c: Change to look at types field for each
12531         exit routine and either call an atexit-style or an on_exit-style
12532         routine accordingly.
12533
12534 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12535
12536         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
12537         allow v specifier with n or L specifiers.  For vector c format,
12538         move tmp declaration to the top.
12539
12540 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12541
12542         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
12543         the original format specifier when looping for vectors to compensate
12544         for any changes made in vector %g format processing.
12545         Also add syntax checking for various invalid scenarios
12546         involving vector format extensions.
12547         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
12548         return code setting for vector formats.  Also treat vector
12549         separator mismatch as a match error instead of an input error.
12550         Perform some syntax checking for vector formats.
12551
12552 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12553
12554         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
12555         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
12556         * libc/string/strlcat.c: New file.
12557         * libc/string/strlcpy.c: New file.
12558
12559 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
12560
12561         * libc/string/strchr.c: Fix comment typo.
12562
12563 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
12564
12565         * acinclude.m4: Add support for --enable-newlib-multithread.
12566         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
12567         --enable-newlib-multithread=no.
12568
12569         * libc/stdio/getc_u.c: New file.
12570         * libc/stdio/getchar_u.c: New file.
12571         * libc/stdio/putc_u.c: New file.
12572         * libc/stdio/putchar_u.c: New file.
12573         * libc/include/stdio.h: Add declarations for getc_unlocked,
12574         getchar_unlocked, putc_unlocked and putchar_unlocked.
12575         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
12576         (CHEWOUT_FILES): Add new files' .def's.
12577         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
12578
12579 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
12580
12581         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12582         Also handle as single quad word when destination ends at last
12583         byte of first quad word.  Fix byte selection in single quad code.
12584
12585 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
12586
12587         * libc/include/sys/stdio.h: New file.
12588         * libc/sys/linux/sys/stdio.h: New file.
12589         * libc/include/stdio.h: Add declarations for flockfile,
12590         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
12591         * libc/stdio/clearerr.c: Add file locking.
12592         * libc/stdio/fclose.c: Likewise.
12593         * libc/stdio/feof.c: Likewise.
12594         * libc/stdio/ferror.c: Likewise.
12595         * libc/stdio/fflush.c: Likewise.
12596         * libc/stdio/fgetc.c: Likewise.
12597         * libc/stdio/fgetpos.c: Likewise.
12598         * libc/stdio/fgets.c: Likewise.
12599         * libc/stdio/fileno.c: Likewise.
12600         * libc/stdio/fputc.c: Likewise.
12601         * libc/stdio/fputs.c: Likewise.
12602         * libc/stdio/fread.c: Likewise.
12603         * libc/stdio/freopen.c: Likewise.
12604         * libc/stdio/fseek.c: Likewise.
12605         * libc/stdio/ftell.c: Likewise.
12606         * libc/stdio/fwrite.c: Likewise.
12607         * libc/stdio/getc.c: Likewise.
12608         * libc/stdio/putc.c: Likewise.
12609         * libc/stdio/setvbuf.c: Likewise.
12610         * libc/stdio/ungetc.c: Likewise.
12611         * libc/stdio/vfprintf.c: Likewise.
12612
12613 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12614
12615         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
12616         support for 'p' format.  Fix code to print bytes for vector
12617         integer formats that do not specify 'h' or 'l'.
12618         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
12619         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
12620         formats that do not specify 'h' or 'l'.
12621
12622         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
12623
12624 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
12625
12626         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
12627         (_sbrk): Add cast of return value.
12628
12629 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12630
12631         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
12632         (_REENT_L64A_BUF): New macro for accessing area.
12633         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
12634         *  libc/stdlib/Makefile.in: Regenerated.
12635         *  libc/stdlib/a64l.c: New file.
12636         *  libc/stdlib/l64a.c: New file.
12637
12638 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12639
12640         * libc/unix/pread.c: Fix typo for _pread_r.
12641         * libc/unix/pwrite.c: Fix type for _pwrite_r.
12642         * libc/sys/linux/pread64.c: Fix typo for read syscall.
12643         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
12644
12645 2002-05-03  Christopher Faylor  <cgf@redhat.com>
12646
12647         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
12648
12649 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
12650
12651         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
12652
12653 2002-05-01  Christopher Faylor  <cgf@redhat.com>
12654
12655         * utmp.h: Define more UNIX constants.
12656
12657 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
12658
12659         * Makefile.am: Add support for checking multilibs.
12660
12661         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
12662         (SUBDEFS): Add LIBC_EXTRA_DEF.
12663         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
12664         (LIBC_EXTRA_DEF): Likewise.
12665         (extra_dir): Likewise.
12666         * libc/machine/xscale/machine: New directory.
12667         * libc/machine/xscale/machine/profile.h: New file.
12668
12669         * Makefile.am (site.exp): Remove newlib_cflags.  Add
12670         multibuildtop.
12671         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
12672         * testsuite/lib/flags.exp: New file.
12673         * testsuite/lib/newlib.exp: Load flags.exp.
12674         (newlib_target_compile): Remove libgloss directory references.
12675         (newlib_init): Remove newlib_cflags references.
12676
12677 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
12678
12679         * testsuite/lib/newlib.exp (newlib_target_compile): Change
12680         method of finding libgloss_target_dir.
12681
12682         * Makefile.am (site.exp): Change host_alias, host_triplet,
12683         target_alias, target_triplet to refer to gcc's host and target
12684         variables (newlib's build and host variables).
12685         * testsuite/lib/newlib.exp (newlib_init): Change build
12686         references to host references, host references to target
12687         references to reflect Makefile.am changes.
12688         (newlib_target_compile): Likewise.
12689         (newlib_finish): Likewise.
12690
12691 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12692
12693         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
12694
12695 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
12696
12697         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
12698         (_system): New function. Ditto.
12699         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
12700         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
12701         targets.
12702
12703 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12704
12705         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
12706         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
12707         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
12708         *  libc/sys/linux/Makefile.in: Regenerated.
12709         *  libc/unix/Makefile.in: Ditto.
12710         *  libc/sys/linux/pread64.c: New file.
12711         *  libc/sys/linux/pwrite64.c: Ditto.
12712         *  libc/unix/pread.c: Ditto.
12713         *  libc/unix/pwrite.c: Ditto.
12714
12715 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12716
12717         *  libc/sys/linux/Makefile.am: Add io64.c.
12718         *  libc/sys/linux/Makefile.in: Regenerated.
12719         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
12720         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
12721         *  libc/sys/linux/io64.c: New file.
12722
12723 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12724
12725         * configure.in (CC_FOR_NEWLIB): New variable that
12726         bases on $(CC) and adds targ-include and libc/include as
12727         -isystem directives if they are not already part of $(CC).
12728         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
12729         $(CC_FOR_NEWLIB).
12730         * configure: Regenerated.
12731         * Makefile.in: Ditto.
12732
12733 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
12734
12735         *  libc/sys/linux/Makefile.am: Add support for sched.c.
12736         *  libc/sys/linux/Makefile.in: Regenerated.
12737         *  libc/sys/linux/sched.c: New file.
12738         *  libc/sys/linux/sys/types.h: Add struct timespec.
12739
12740 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
12741
12742         * configure.in (CC_FOR_BUILD): Set to gcc whether
12743         cross-compiling or not.
12744         (CC): Add -isystem's for targ-include and libc/include when they
12745         do not already appear in CC.
12746
12747 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12748
12749         * Makefile.am (check-DEJAGNU): New target.
12750         (site.exp): Likewise.
12751         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
12752         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
12753         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
12754         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
12755         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
12756         * testsuite: New directory.
12757         * testsuite/config: Likewise.
12758         * testsuite/lib: Likewise.
12759         * testsuite/newlib.locale: Likewise.
12760         * testsuite/newlib.string: Likewise.
12761         * testsuite/config/default.exp: New file.
12762         * testsuite/lib/checkoutput.exp: New file.
12763         * testsuite/lib/newlib.exp: New file.
12764         * testsuite/lib/passfail.exp: New file.
12765         * testsuite/newlib.locale/UTF-8.c: New file.
12766         * testsuite/newlib.locale/UTF-8.exp: New file.
12767         * testsuite/newlib.locale/locale.exp: New file.
12768         * testsuite/newlib.string/string.exp: New file.
12769         * testsuite/newlib.string/tstring.c: New file.
12770
12771 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
12772
12773         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
12774         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
12775         *  libc/sys/linux/Makefile.in: Regenerated.
12776         *  libc/sys/linux/mmap.c: New file.
12777         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
12778         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
12779
12780 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12781
12782         * acinclude.m4 (newlib_cflags): Remove include directories that
12783         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
12784
12785 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
12786
12787         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
12788         * libc/machine/xscale/memcmp.c: Ditto.
12789         * libc/machine/xscale/memcpy.c: Ditto.
12790         * libc/machine/xscale/memmove.c: Ditto.
12791         * libc/machine/xscale/memset.c: Ditto.
12792         * libc/machine/xscale/strchr.c: Ditto.
12793         * libc/machine/xscale/strcmp.c: Ditto.
12794         * libc/machine/xscale/strcpy.c: Ditto.
12795         * libc/machine/xscale/strlen.c: Ditto.
12796
12797 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
12798
12799         * libc/include/sys/config.h: Remove include of <limits.h>.
12800         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
12801         define INT_MAX and LONG_MAX.  Use them in tests.
12802
12803 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
12804
12805         *  configure.host: Add support for powerpc-eabialtivec*.
12806         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
12807         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
12808         *  libc/include/machine/malloc.h: New file.
12809         *  libc/include/machine/stdlib.h: Ditto.
12810         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
12811         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
12812         sources based on configuration.
12813         *  libc/machine/powerpc/Makefile.in: Regenerated.
12814         *  libc/machine/powerpc/configure: Ditto.
12815         *  libc/machine/powerpc/configure.in: Add check for
12816         powerpc-eabialtivec* in which case add in additional source files.
12817         *  libc/machine/powerpc/setjmp.S: Add altivec support.
12818         *  libc/machine/powerpc/vec_calloc.c: New file.
12819         *  libc/machine/powerpc/vec_free.c: Ditto.
12820         *  libc/machine/powerpc/vec_malloc.c: Ditto.
12821         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
12822         *  libc/machine/powerpc/vec_realloc.c: Ditto.
12823         *  libc/machine/powerpc/machine/malloc.h: Ditto.
12824         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
12825         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
12826         with added altivec format specifiers.
12827         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
12828         added altivec format specifiers.
12829
12830 2002-04-19      Joel Sherrill <joel@OARcorp.com>
12831
12832         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
12833         while autoconf is trying to link main(){}.
12834
12835 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12836
12837         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
12838         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
12839
12840 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12841
12842         * libc/time/time.tex: Add tzset info.
12843
12844 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12845
12846         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
12847         (strptime): Moved prototype to be within !__STRICT_ANSI__.
12848         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
12849         (tzname): Defined for all platforms.
12850         (daylight, timezone): Defined only for CYGWIN.
12851         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
12852         environment set up.
12853         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
12854         environment variable is set.
12855         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
12856         tzset_r.c.
12857         * libc/time/Makefile.in: Regenerated.
12858         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
12859         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
12860         * libc/time/lcltime_r.c (lcltime_r): Ditto.
12861         * libc/time/local.h: New local header file.
12862         * libc/time/mktime.c (mktime): Add timezone support.
12863         * libc/time/mktm_r.c: New file which is the common engine
12864         for gmtime_r and lcltime_r.  This code has timezone support.
12865         * libc/time/strftime.c (strftime): Add %Z timezone support.
12866         * libc/time/tzlock.c: New file containing timezone lock stubs.
12867         * libc/time/tzset.c: New file containing tzset() routine.
12868         * libc/time/tzset_r.c: New file containing _tzset_r and
12869         internal routine for calculating timezone changes for specified year.
12870
12871 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
12872
12873         * configure.in (CRT0_DIR): Set to libc/.
12874         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
12875         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
12876         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
12877         $(CRT1_DIR)/$(CRT1).
12878         * libc/machine/xstormy16/Makefile.in: Regenerated.
12879         * libc/machine/xstormy16/aclocal.m4: Regenerated.
12880         * libc/machine/xstormy16/configure: Regenerated.
12881
12882 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
12883
12884         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
12885         fails, don't bail out, and try to correct next time.
12886
12887         * libc/include/sys/config.h: Include limits.h.
12888
12889 2002-04-12  Eric Norum  <eric.norum@usask.com>
12890
12891         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
12892         routine to allow autoconf to determine that building executables
12893         for rtems works.
12894         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
12895         (rtems_gxx_mutex_once): Ditto.
12896
12897 2002-04-09  Tom Rix  <trix@redhat.com>
12898
12899         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
12900
12901 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12902
12903         * libc/include/time.h: Fix strptime declaration.
12904         * libc/time/Makefile.am: Add strptime.c.
12905         * libc/time/Makefile.in: Regenerated.
12906         * libc/time/strptime.c: New file.
12907
12908 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
12909
12910         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
12911         siglongjmp prototype, and sigsetjmp macro definition.
12912         * libc/sys/linux/siglongjmp.c: New file.
12913         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
12914         * libc/sys/linux/Makefile.in: Regenerated.
12915
12916 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
12917
12918         * Makefile.am: Add support for installing crt1.o if one exists.
12919         * configure.host: Specify crt1.o for linux.
12920         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
12921         * Makefile.in: Regenerated.
12922         * configure: Ditto.
12923         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
12924         Added for non-Cygwin, non-RTEMS configurations.
12925         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
12926         * libc/sys/linux/Makefile.in: Regenerated.
12927         * libc/sys/linux/crt1.c: New empty file to override one defaulted
12928         by gcc.  This fixes problem with reconfiguring linux newlib build.
12929         * libc/sys/linux/sysconf.c: New file.
12930
12931 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
12932
12933         * configure.host: Add support for machine subdirectory of
12934         sys subdirectory.
12935         * configure.in: Add check for sys machine subdirectory.
12936         * Makefile.am: Ditto.
12937         * configure: Regenerated.
12938         * Makefile.in: Ditto.
12939         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
12940         * libc/sys/linux/sys/syscall.h: Ditto.
12941         * libc/sys/linux/sleep.c: New file.
12942         * libc/sys/linux/socket.c: Ditto.
12943         * libc/sys/linux/sockops.h: Ditto.
12944         * libc/sys/linux/stack.c: Ditto.
12945         * libc/sys/linux/usleep.c: Ditto.
12946         * libc/sys/linux/machine/Makefile.am: Ditto.
12947         * libc/sys/linux/machine/Makefile.in: Ditto.
12948         * libc/sys/linux/machine/aclocal.m4: Ditto.
12949         * libc/sys/linux/machine/configure: Ditto.
12950         * libc/sys/linux/machine/configure.in: Ditto.
12951         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
12952         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
12953         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
12954         * libc/sys/linux/machine/i386/configure: Ditto.
12955         * libc/sys/linux/machine/i386/configure.in: Ditto.
12956         * libc/sys/linux/machine/i386/crt0.c: Ditto.
12957         * libc/sys/linux/machine/i386/sigset.c: Ditto.
12958         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
12959         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
12960         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12961         * libc/sys/linux/sys/select.h: Ditto.
12962         * libc/sys/linux/configure.in: Add support for machine directory.
12963         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
12964         * libc/sys/linux/Makefile.in: Regenerated.
12965         * libc/sys/linux/configure: Ditto.
12966         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
12967         * libc/sys/linux/inode.c: Ditto.
12968         * libc/sys/linux/linux.c: Ditto.
12969         * libc/sys/linux/process.c: Ditto.
12970         * libc/sys/linux/systat.c: Ditto.
12971         * libc/sys/linux/time.c: Ditto.
12972         * libc/sys/linux/wait.c: Ditto.
12973         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
12974         * libc/sys/linux/io.c: Change header plus add readv/writev.
12975         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
12976         use __sigsuspend syscall.
12977         * libc/sys/linux/select.c: Change header plus change select to
12978         use _newselect syscall.
12979         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
12980         used by glibc header files.
12981         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
12982         types.
12983
12984 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
12985
12986         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
12987         initializing a struct _reent that has been dynamically allocated.
12988         (_REENT_CHECK_MISC): New macro that checks _misc struct for
12989         _REENT_SMALL and does nothing otherwise.
12990         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
12991         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
12992         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
12993         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
12994         [_REENT_SMALL](struct _misc_reent): New structure containing
12995         miscellaneous reentrant areas needed by newlib.
12996         [_REENT_SMALL](struct _reent): Add _misc pointer.
12997         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
12998         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
12999         and _REENT_STRTOK_LAST macros.
13000         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13001         and _REENT_MBLEN_STATE macros.
13002         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13003         and _REENT_MBTOWC_STATE macros.
13004         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13005         and _REENT_WCTOMB_STATE macros.
13006
13007 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13008
13009         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13010
13011 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13012
13013         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13014
13015 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13016
13017         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13018         Store high part of leading bytes too.
13019
13020 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13021
13022         * libm/math/ef_hypot.c: Increase scale factor to 68.
13023
13024 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13025
13026         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13027         error.
13028
13029 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13030
13031         * libc/sys/go32/access.c: Change license to relaxed license
13032         used in identical file throughout newlib/libgloss.
13033
13034 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13035
13036         * libc/sys/arm/access.c: New file.
13037         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13038         * libc/sys/arm/Makefile.in: Regenerate.
13039         * libc/sys/arm/syscalls.c (_stat): New function.
13040
13041 2002-03-11  Michael Meissner  <meissner@redhat.com>
13042
13043         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13044         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13045         * libc/machine/mips/Makefile.in: Regenerate.
13046         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13047         * libc/machine/mips/memset.c: Dito.
13048         * libc/machine/mips/strcmp.c: Dito.
13049         * libc/machine/mips/strlen.c: Dito.
13050         * libc/machine/mips/strncmp.c: Dito.
13051
13052 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13053
13054         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13055         object so it works for shared library or statici library.
13056 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13057
13058         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
13059         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13060         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13061         (tzname): Defined for all platforms.
13062         (daylight, timezone): Defined only for CYGWIN.
13063         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13064         environment set up.
13065         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13066         environment variable is set.
13067         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13068         tzset_r.c.
13069         *  libc/time/Makefile.in: Regenerated.
13070         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13071         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13072         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
13073         *  libc/time/local.h: New local header file.
13074         *  libc/time/mktime.c (mktime): Add timezone support.
13075         *  libc/time/mktm_r.c: New file which is the common engine
13076         for gmtime_r and lcltime_r.  This code has timezone support.
13077         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13078         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13079         *  libc/time/tzset.c: New file containing tzset() routine.
13080         *  libc/time/tzset_r.c: New file containing _tzset_r and
13081         internal routine for calculating timezone changes for specified year.
13082
13083 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13084
13085         * configure.in (CRT0_DIR): Set to libc/.
13086         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13087         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13088         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13089         $(CRT1_DIR)/$(CRT1).
13090         * libc/machine/xstormy16/Makefile.in: Regenerated.
13091         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13092         * libc/machine/xstormy16/configure: Regenerated.
13093
13094 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13095
13096         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13097         fails, don't bail out, and try to correct next time.
13098
13099         * libc/include/sys/config.h: Include limits.h.
13100
13101 2002-04-12  Eric Norum  <eric.norum@usask.com>
13102
13103         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13104         routine to allow autoconf to determine that building executables
13105         for rtems works.
13106         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13107         (rtems_gxx_mutex_once): Ditto.
13108
13109 2002-04-09  Tom Rix  <trix@redhat.com>
13110
13111         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13112
13113 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13114
13115         * libc/include/time.h: Fix strptime declaration.
13116         * libc/time/Makefile.am: Add strptime.c.
13117         * libc/time/Makefile.in: Regenerated.
13118         * libc/time/strptime.c: New file.
13119
13120 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13121
13122         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13123         siglongjmp prototype, and sigsetjmp macro definition.
13124         * libc/sys/linux/siglongjmp.c: New file.
13125         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13126         * libc/sys/linux/Makefile.in: Regenerated.
13127
13128 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13129
13130         * Makefile.am: Add support for installing crt1.o if one exists.
13131         * configure.host: Specify crt1.o for linux.
13132         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13133         * Makefile.in: Regenerated.
13134         * configure: Ditto.
13135         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13136         Added for non-Cygwin, non-RTEMS configurations.
13137         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13138         * libc/sys/linux/Makefile.in: Regenerated.
13139         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13140         by gcc.  This fixes problem with reconfiguring linux newlib build.
13141         * libc/sys/linux/sysconf.c: New file.
13142
13143 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13144
13145         * configure.host: Add support for machine subdirectory of
13146         sys subdirectory.
13147         * configure.in: Add check for sys machine subdirectory.
13148         * Makefile.am: Ditto.
13149         * configure: Regenerated.
13150         * Makefile.in: Ditto.
13151         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13152         * libc/sys/linux/sys/syscall.h: Ditto.
13153         * libc/sys/linux/sleep.c: New file.
13154         * libc/sys/linux/socket.c: Ditto.
13155         * libc/sys/linux/sockops.h: Ditto.
13156         * libc/sys/linux/stack.c: Ditto.
13157         * libc/sys/linux/usleep.c: Ditto.
13158         * libc/sys/linux/machine/Makefile.am: Ditto.
13159         * libc/sys/linux/machine/Makefile.in: Ditto.
13160         * libc/sys/linux/machine/aclocal.m4: Ditto.
13161         * libc/sys/linux/machine/configure: Ditto.
13162         * libc/sys/linux/machine/configure.in: Ditto.
13163         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13164         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13165         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13166         * libc/sys/linux/machine/i386/configure: Ditto.
13167         * libc/sys/linux/machine/i386/configure.in: Ditto.
13168         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13169         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13170         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13171         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13172         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13173         * libc/sys/linux/sys/select.h: Ditto.
13174         * libc/sys/linux/configure.in: Add support for machine directory.
13175         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13176         * libc/sys/linux/Makefile.in: Regenerated.
13177         * libc/sys/linux/configure: Ditto.
13178         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13179         * libc/sys/linux/inode.c: Ditto.
13180         * libc/sys/linux/linux.c: Ditto.
13181         * libc/sys/linux/process.c: Ditto.
13182         * libc/sys/linux/systat.c: Ditto.
13183         * libc/sys/linux/time.c: Ditto.
13184         * libc/sys/linux/wait.c: Ditto.
13185         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13186         * libc/sys/linux/io.c: Change header plus add readv/writev.
13187         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13188         use __sigsuspend syscall.
13189         * libc/sys/linux/select.c: Change header plus change select to
13190         use _newselect syscall.
13191         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13192         used by glibc header files.
13193         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13194         types.
13195
13196 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13197
13198         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13199         initializing a struct _reent that has been dynamically allocated.
13200         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13201         _REENT_SMALL and does nothing otherwise.
13202         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13203         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13204         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13205         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13206         [_REENT_SMALL](struct _misc_reent): New structure containing
13207         miscellaneous reentrant areas needed by newlib.
13208         [_REENT_SMALL](struct _reent): Add _misc pointer.
13209         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13210         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13211         and _REENT_STRTOK_LAST macros.
13212         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13213         and _REENT_MBLEN_STATE macros.
13214         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13215         and _REENT_MBTOWC_STATE macros.
13216         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13217         and _REENT_WCTOMB_STATE macros.
13218
13219 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13220
13221         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13222
13223 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13224
13225         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13226
13227 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13228
13229         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13230         Store high part of leading bytes too.
13231
13232 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13233
13234         * libm/math/ef_hypot.c: Increase scale factor to 68.
13235
13236 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13237
13238         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13239         error.
13240
13241 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13242
13243         * libc/sys/go32/access.c: Change license to relaxed license
13244         used in identical file throughout newlib/libgloss.
13245
13246 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13247
13248         * libc/sys/arm/access.c: New file.
13249         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13250         * libc/sys/arm/Makefile.in: Regenerate.
13251         * libc/sys/arm/syscalls.c (_stat): New function.
13252
13253 2002-03-11  Michael Meissner  <meissner@redhat.com>
13254
13255         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13256         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13257         * libc/machine/mips/Makefile.in: Regenerate.
13258         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13259         * libc/machine/mips/memset.c: Dito.
13260         * libc/machine/mips/strcmp.c: Dito.
13261         * libc/machine/mips/strlen.c: Dito.
13262         * libc/machine/mips/strncmp.c: Dito.
13263
13264 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13265
13266         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13267         object so it works for shared library or statici library.
13268         * libc/machine/i386/Makefile.in: Regenerated.
13269
13270 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13271
13272         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13273         Add memcpy.S, memset.S and strcpy.S.
13274         * libc/machine/sh/Makefile.in: Regenerate.
13275         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13276         (SHHI, SHLO): Define.
13277         * libc/machine/sh/memset.S: Add code for SH5.
13278         * libc/machine/sh/memset.S: Likewise.
13279         * libc/machine/sh/strcpy.S: Likewise.
13280
13281 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13282
13283         * configure.host: Add check for --disable-newlib-io-float
13284         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13285         if appropriate.
13286         * acinclude.m4: Added --disable-newlib-io-float option.
13287         * aclocal.m4: Regenerated.
13288         * configure: Ditto.
13289         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13290         * libc/*/aclocal.m4 libc/*/configure
13291         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13292         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13293         if NO_FLOATING_POINT flag is not defined.
13294
13295 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13296
13297         * libc/include/sys/config.h: Add __extension__ in front of
13298         long long references.
13299
13300 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13301
13302         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
13303         (_stat): Ditto.
13304
13305 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13306
13307         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
13308         of off_t.
13309
13310 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
13311
13312         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
13313         clobbered registers.
13314
13315 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13316
13317         * configure.host (newlib_cflags): When host is in m68* add
13318         -DCOMPACT_CTYPE.
13319
13320 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
13321
13322         * libc/include/sys/config.h: Add definitions for
13323         __int16_t, __uint16_t, __int64_t, and __uint64_t.
13324
13325 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
13326
13327         * libc/sys/mmixware/link.c: New.
13328         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
13329         volatile.
13330         * libc/sys/mmixware/times.c (_times): Renamed from times.
13331         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
13332         properly by reading previous contents, not through BinaryReadWrite.
13333         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
13334         * libc/sys/mmixware/Makefile.in: Regenerate.
13335
13336 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
13337
13338         * libc/include/grp.h: Don't declare group functions when compiling
13339         Cygwin.
13340
13341 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
13342
13343         * libc/include/grp.h: Include Cygwin specific header.
13344         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
13345         when compiling for Cygwin.
13346         * libc/include/sys/types.h: Don't define off_t, uid_t
13347         and gid_t when compiling for Cygwin.
13348
13349 2002-02-08  matthew green  <mrg@redhat.com>
13350
13351         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
13352         _REENT_EMERGENCY_SIZE, not sizeof(char *).
13353
13354 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
13355
13356         Contribute sh64-elf.
13357         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13358         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
13359         support in printf.
13360         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
13361         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
13362         any labels.
13363         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
13364         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
13365         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13366         * libc/machine/sh/configure.in: Rework conditionals.
13367         * libc/machine/sh/Makefile.am: Likewise.
13368         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
13369         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13370         * configure.host: Match `sh*'.
13371         * libc/include/machine/setjmp.h: Define for SH5.
13372         * libc/machine/sh/configure.in: Detect SH5.
13373         * libc/machine/sh/configure: Rebuilt.
13374         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
13375         * libc/machine/sh/Makefile.in: Rebuilt.
13376         * libc/machine/sh/asm.h: Adjust for SH5.
13377         * libc/machine/sh/setjmp.S: Implement in SHmedia.
13378         * libc/sys/sh/crt0.S: Likewise.
13379         * libc/sys/sh/trap.S: Likewise.
13380
13381 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
13382
13383         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
13384         (mach_add_obj): Conditionally set to setjmp.o or nothing.
13385         (LIB_SOURCES): Remove $(mach_add_src).
13386         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
13387         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
13388         * libc/machine/i386/Makefile.in: Regenerate.
13389
13390 2002-02-05  Manik Raina <manik@cisco.com>
13391
13392         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
13393         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
13394         s, p, k, and outstr.
13395         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
13396
13397 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
13398
13399         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
13400         _REENT_CHECK_EMERGENCY macro.
13401
13402 2002-02-03  matthew green  <mrg@redhat.com>
13403
13404         * libc/reent/signgam.c (__signgam): Fix error in previous.
13405
13406 2002-02-02  matthew green  <mrg@redhat.com>
13407
13408         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
13409
13410         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
13411         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
13412         * libc/include/sys/reent.h (struct _reent): Completely new version
13413         for _REENT_SMALL.
13414         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
13415         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
13416         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
13417         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
13418         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
13419         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
13420         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
13421         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
13422         (_REENT_EMERGENCY): Likewise.
13423
13424         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
13425         the start of the real __sFILE, used for stdin, stdout and stderr until
13426         they are setup properly.
13427         (struct __sFILE): Move location of _data in _REENT_SMALL case.
13428         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
13429         allocated stdin, stdout and stderr.
13430         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
13431         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
13432         * libc/stdio/perror.c (_perror_r): Likewise.
13433         * libc/stdio/printf.c (printf, _printf_r): Likewise.
13434         * libc/stdio/putchar.c (_putchar_r): Likewise.
13435         * libc/stdio/puts.c (_puts_r): Likewise.
13436         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
13437         * libc/stdio/vprintf.c (vprintf): Likewise.
13438         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
13439
13440         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
13441
13442         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
13443         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
13444         for _REENT_SMALL.
13445         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
13446         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
13447
13448         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
13449         _REENT_SMALL.
13450         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
13451         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
13452         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
13453         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
13454         * libc/stdlib/rand48.c (__dorand48): Likewise.
13455         * libc/stdlib/seed48.c (_seed48_r): Likewise.
13456         * libc/stdlib/srand48.c (_srand48_r): Likewise.
13457         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
13458         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
13459         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
13460         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
13461         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
13462         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
13463         * libc/stdlib/rand.c (rand): Likewise.
13464
13465         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
13466         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
13467
13468         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
13469         _REENT_MP_FREELIST() and _REENT_MP_P5S.
13470         * libc/include/sys/reent.h (struct _mprec): New structure.
13471
13472         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
13473         _unused_strtok_last.
13474         * libc/string/strtok.c (strtok): Use a local static variable.
13475
13476         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
13477         (_REENT_EMERGENCY_SIZE): Likewise.
13478         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
13479         _REENT_ASCTIME_BUF().
13480         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
13481         _REENT_TM().
13482
13483         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
13484         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
13485         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
13486         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
13487         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
13488         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
13489
13490 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
13491
13492         * configure.host (xstormy16): Don't use the generic malloc.
13493         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
13494         * libc/machine/xstormy16/Makefile.in: Regenerate.
13495         * libc/machine/xstormy16/mallocr.c: New file.
13496         * libc/machine/xstormy16/tiny-malloc.c: New file.
13497
13498 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13499
13500         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
13501         when _CYGWIN_TYPES_H is not defined.
13502
13503 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13504
13505         * libc/include/sys/signal.h: Revert 2002-01-23 change.
13506
13507 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
13508
13509         * libc/include/sys/signal.h: Remove pthread_kill declaration
13510         when __CYGWIN__ is defined.
13511
13512 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13513
13514         * libc/include/time.h: Add prototype for strptime for Cygwin.
13515
13516 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
13517
13518         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
13519         dst was not word aligned.
13520
13521         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
13522         if too much memory is requested.
13523
13524 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
13525
13526         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
13527         reads blanks from the input file to break if EOF reached
13528         rather than end processing.
13529
13530 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
13531
13532         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
13533
13534 2002-01-07 Alan Matsuoka <alanm@redhat.com>
13535
13536         * libc/include/machine/ieeefp.h: Configure d10v doubles to
13537         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
13538         libc/include/sys/config.h: Ditto.
13539
13540 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
13541
13542         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
13543
13544 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
13545             Catherine Moore  <clm@redhat.com>
13546             Richard Henderson  <rth@redhat.com>
13547             Corinna Vinschen  <vinschen@redhat.com>
13548
13549         * configure.host: Add support for xstormy16.
13550         * libc/include/machine/ieeefp.h: Add support for xstormy16.
13551         * libc/include/machine/setjmp.h: Add support for xstormy16.
13552         * libc/include/sys/config.h: Add support for xstormy16.
13553         * libc/machine/xstormy16/Makefile.am: New file.
13554         * libc/machine/xstormy16/Makefile.in: New file.
13555         * libc/machine/xstormy16/aclocal.m4: New file.
13556         * libc/machine/xstormy16/configure: New file.
13557         * libc/machine/xstormy16/configure.in: New file.
13558         * libc/machine/xstormy16/setjmp.S: New file.
13559
13560 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13561
13562         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
13563         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
13564
13565 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
13566
13567         * libm/machine/Makefile.am: Change rules to create correct lib.a.
13568         * libm/machine/Makefile.in: Regenerated through automake.
13569
13570 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13571
13572         * Makefile.am (DOCDIR): Force to empty string when doc
13573         directory is not present.
13574
13575 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13576
13577         * libc/machine/i386/f_*: Move to libm/machine/i386.
13578
13579 2001-12-18      Joel Sherrill <joel@OARcorp.com>
13580
13581         * libm/machine/Makefile.am: Add dummy doc stub so
13582         "make info" works.
13583
13584 2001-12-17      Joel Sherrill <joel@OARcorp.com>
13585
13586         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
13587
13588 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13589
13590         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
13591         $(COMPILE) rather than $(CC).
13592         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
13593         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
13594         $(LIB_COMPILE) change.
13595         (vfiprintf.$(oext)): Likewise.
13596
13597 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
13598
13599         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
13600         conditionalized including of getopt stuff.
13601
13602 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13603
13604         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
13605         compile line.
13606         (vfiprintf.$(oext)): Likewise.
13607
13608 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
13609
13610         * Makefile.shared: New file.
13611         * libc/sys/linux/shared.ld: New file.
13612         * libm/machine/*: New files.
13613         * libm/machine/i386/*: New files.
13614         * Makefile.am: Add libtool support.  Change math and mathfp
13615         references to variables.
13616         * configure.host: Add variables for libtool support.  Add
13617         libm_machine_dir variable.
13618         * configure.in: Add objectlist variables, for libtool
13619         support.  Add CC_FOR_BUILD tests.
13620         * libc/Makefile.am: Add libtool support.  Change crt0.o
13621         reference to be a variable reference.
13622         * libc/configure.in: Add libtool support.  Change sublib
13623         names to be lib${subdir}.la when using libtool.
13624         * libc/ctype/Makefile.am: Add libtool support.
13625         * libc/errno/Makefile.am: Likewise.
13626         * libc/locale/Makefile.am: Likewise.
13627         * libc/machine/Makefile.am: Likewise.
13628         * libc/machine/configure.in: Likewise.
13629         * libc/machine/i386/Makefile.am: Likewise.
13630         * libc/machine/i386/configure.in: Likewise.
13631         * libc/misc/Makefile.am: Likewise.
13632         * libc/posix/Makefile.am: Likewise.
13633         * libc/reent/Makefile.am: Likewise.
13634         * libc/signal/Makefile.am: Likewise.
13635         * libc/stdio/Makefile.am: Likewise.
13636         * libc/stdlib/Makefile.am: Likewise.
13637         * libc/string/Makefile.am: Likewise.
13638         * libc/sys/Makefile.am: Likewise.
13639         * libc/sys/configure.in: Likewise.
13640         * libc/sys/linux/Makefile.am: Add libtool support.  Change
13641         awk reference to a variable reference.  Change signal.h
13642         reference to a variable reference.
13643         * libc/sys/linux/configure.in: Add libtool support.
13644         * libc/syscalls/Makefile.am: Likewise.
13645         * libc/time/Makefile.am: Likewise.
13646         * libc/unix/Makefile.am: Likewise.
13647         * libm/Makefile.am: Add libtool support.  Change math and
13648         mathfp references to variables.
13649         * libm/configure.in: Add libtool support.  Add
13650         LIBM_MACHINE_LIB variable.
13651         * libm/common/Makefile.am: Add libtool support.
13652         * libm/math/Makefile.am: Likewise.
13653         * libm/mathfp/Makefile.am: Likewise.
13654         Regenerate all Makefile.in, aclocal.m4, and configure.
13655
13656 2001-12-13 Anita Kulkarni <anitak@kpit.com>
13657
13658         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
13659
13660 2001-12-06  John Peacock <jpeacock@rowman.com>
13661
13662         * libc/include/sys/unistd.h: Correct ualarm declaration.
13663
13664 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
13665
13666         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
13667         vector before calling the initialisation functions.
13668
13669 2001-11-29  Christopher Faylor  <cgf@redhat.com>
13670
13671         * libc/include/dirent.h: Protect against multiple inclusion.
13672
13673 2001-11-27  Christopher Faylor  <cgf@redhat.com>
13674
13675         * libc/include/sys/types.h: Define useconds_t.
13676         * libc/include/sys/ulimit.h: Declare ualarm.
13677
13678 2001-11-21  Christopher Faylor  <cgf@redhat.com>
13679
13680         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
13681
13682 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
13683
13684         * libc/sys/mmixware/*: Tweak license header in all source files.
13685
13686 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
13687
13688         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
13689         to here.  Rearrange for general inclusion by stdlib.h.
13690         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
13691         isn't defined.
13692         * libc/sys/linux/include/alloca.h: Move to libc/include.
13693
13694 2001-11-12  Anthony Green  <green@redhat.com>
13695
13696         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
13697
13698 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
13699
13700         * libc/sys/mmixware/*: Correct spacing in all source files.
13701         * libc/sys/mmixware/syscall.h: Move misplaced file...
13702         * libc/sys/mmixware/sys/syscall.h: ...here.
13703
13704 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
13705
13706         * libc/include/machine/ieeefp.h: Add support for mmix target.
13707         * libc/include/machine/setjmp.h: Ditto.
13708         * configure.host: Ditto.
13709         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
13710         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
13711         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
13712         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
13713         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
13714         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
13715         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
13716         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
13717         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
13718         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
13719         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
13720         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
13721         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
13722         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
13723         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
13724         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
13725         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
13726         libc/sys/mmixware/aclocal.m4: Generate.
13727
13728 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
13729
13730         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
13731         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
13732         when __CYGWIN__ is defined.
13733         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
13734         logwtmp().
13735
13736 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
13737
13738         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
13739         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
13740         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
13741         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
13742
13743 2001-10-24  Christopher Faylor  <cgf@redhat.com>
13744
13745         * libc/stdio/fseek.c: Reset pointer to buffer base
13746         when forced to seek outside of current buffer contents.
13747         This prevents the code from erroneously thinking there is
13748         anything in the current buffer.
13749
13750 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
13751
13752         * libc/include/math.h: The C++ standard adds the single-precision
13753         versions of the elementary functions.
13754
13755 2001-10-22  Christopher Faylor  <cgf@redhat.com>
13756
13757         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
13758         throughout.
13759         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
13760         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
13761         * system.c (_system_r): Ditto.
13762
13763 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
13764
13765         * libc/include/sys/unistd.h: Add prototype for fchdir() when
13766         __CYGWIN__ or __rtems__ is defined.
13767
13768 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
13769
13770         * libc/include/stdlib.h: add declarations for
13771         _strtoull_r, _strtoll_r, strtoull, and strtoll.
13772         * libc/stdio/local.h: remove declarations of
13773         __strtoull_r and __strtoll_r.
13774         * libc/stdio/vfscanf.c(__svfscanf_r): call
13775         _strtoull_r instead of __strtoull_r. Ditto
13776         _strtoll_r vs. __strtoll_r.
13777         * libc/stdlib/Makefile.am: add new files to
13778         .c list and .def list
13779         * libc/stdlib/Makefile.in: regenerate
13780         * libc/stdlib/strtoll_r.c: rename __strtoll_r
13781         as _strtoll_r
13782         * libc/stdlib/strtoull_r.c: rename __strtoull_r
13783         as _strtoull_r
13784         * libc/stdlib/strtoull.c: new file
13785         * libc/stdlib/strtoll.c: new file
13786
13787 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
13788
13789         * libc/include/process.h: Add getpid() declaration.
13790
13791 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
13792
13793         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
13794         for new style arm/elf ctor/dtor handling.
13795         Minor formatting tidy up.
13796
13797 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
13798
13799         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
13800         and strtoull_r.c.
13801         * libc/stdlib/Makefile.in: Regenerated.
13802         * libc/stdlib/strtoll_r.c: New file.
13803         * libc/stdlib/strtoull_r.c: New file.
13804         * libc/stdio/local.h: Add prototypes for long long string
13805         conversion routines.
13806         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
13807         tied to %L integer conversion specifier.
13808
13809 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
13810
13811         * strftime.c (strftime): Fix "%W" implementation to properly handle
13812         Mondays too.
13813
13814 2001-09-07  Jeff Law  <law@redhat.com>
13815
13816         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
13817         __fini with "mov.l" instead of "mov.w".
13818
13819 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
13820
13821         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
13822         and getopt.h.
13823
13824 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
13825
13826         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
13827
13828 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13829
13830         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
13831         field.
13832         (__DIRENT_VERSION): New define.
13833
13834 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13835
13836         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
13837         Shrink __d_reserved accordingly to keep structure size.
13838         (dirfd): Declare external.
13839
13840 2001-08-29  Joel Sherrill <joel@OARcorp.com>
13841
13842         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
13843
13844 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
13845
13846         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
13847           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
13848           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
13849           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
13850           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
13851           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
13852           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
13853           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
13854         Add conditional compilation to avoid HW FPU instructions
13855         when compiled for soft-float.
13856
13857 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13858
13859         * Makefile.am: Add check for ln failing when creating libg.a
13860         so that cp gets used as a backup.
13861         * Makefile.in: Regenerated.
13862
13863 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13864
13865         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
13866         No longer include time.h.  Add struct __tm to use for
13867         _localtime_buf in the reentrant structure.  Add a
13868         _NULL definition to use in initializing the reentrant struct.
13869         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
13870         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
13871         <sys/_types.h>.
13872         * libc/include/sys/unistd.h: Include <sys/_types.h>.
13873         * libc/time/lcltime.c (localtime): Cast the reentrant struct
13874         _localtime_buf to be struct tm *.
13875
13876 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
13877
13878         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
13879         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
13880         __ctors_end.
13881         * libc/sys/h8300hms/syscalls.c: Include errno.h.
13882         (_unlink): New stub function.
13883
13884 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
13885
13886         * libc/include/sys/errno.h: Add a cautionary comment.
13887
13888 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
13889
13890         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
13891         for SIZE_SZ so that alignment ends up a minimum of 8.
13892
13893 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
13894
13895         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
13896         arguments.
13897
13898         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
13899         Cygwin.
13900
13901 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
13902
13903         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
13904         macro constants for mallopt options.
13905         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
13906
13907 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
13908
13909         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
13910         otherwise default.
13911
13912 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
13913
13914         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
13915
13916 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
13917
13918         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
13919         Define for little endian ARMs.
13920
13921         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
13922         __IEEE_BYTES_LITTLE_ENDIAN is defined.
13923
13924 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
13925
13926         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
13927
13928 2001-06-11  Egor Duda  <deo@logos-m.ru>
13929
13930         * libc/ctype/ctype_.c: When compiled with gcc on platforms
13931         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
13932         initialized memory region. Platform can define COMPACT_CTYPE
13933         to avoid allocation of the additional 128 bytes of data.
13934         Add pointer to _ctype_ array. Always initialize all _ctype_
13935         array elements.
13936
13937 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
13938
13939         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
13940         NULL pointer.
13941
13942 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
13943
13944         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
13945
13946 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
13947
13948         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
13949         matching, non-word alignment, and the length is <= 4 but more than
13950         enough to move them over a word boundary.
13951         Add comments explaining what each instruction does.
13952
13953 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
13954
13955         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
13956         * libc/include/sys/unistd.h: Ditto.
13957
13958 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
13959
13960         * libc/string/strrchr.c: Use strchr for the speed improvements.
13961
13962 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
13963
13964         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
13965         real file systems, let __smakebuf() determine if line buffering
13966         should be used for stdout.
13967
13968 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
13969
13970         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
13971
13972 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
13973
13974         * libc/include/stdlib.h: Add prototype for _strtod_r.
13975
13976 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
13977
13978         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
13979         * libc/stdio/vprintf.c (_vprintf_r): new function
13980         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
13981         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
13982         _DEFUN, and call _vfprintf_r, not vfprintf.
13983         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
13984         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
13985         _DEFUN, and call _vfprintf_r, not vfprintf.
13986
13987 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
13988
13989         * libc/include/sys/unistd.h [X_OK]: Use better protection against
13990         Cygwin X_OK definitions in sys/file.h.
13991
13992 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
13993
13994         * libc/include/sys/time.h: Define timercmp and other macros for
13995         __CYGWIN__, too.
13996
13997 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
13998
13999         * acinclude.m4: Added --enable-malloc-debugging configure flag.
14000         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
14001         --enable-malloc-debugging selected.
14002         * aclocal.m4 configure: Regenerated.
14003           libm/aclocal.m4 libm/configure: Ditto.
14004         * libc/aclocal.m4 libc/configure: Ditto.
14005         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
14006         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
14007         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
14008         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
14009         * doc/aclocal.m4 doc/configure: Ditto.
14010
14011 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14012
14013         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
14014         into one list.
14015         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
14016         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
14017         function prototypes.
14018         (_fscanf_r, _sscanf_r): Ditto.
14019         * libc/include/stdlib.h: Added _strtod_r prototype.
14020         * libc/stdio/Makefile.am: Add new v*scanf functions.
14021         * libc/stdio/Makefile.in: Regenerate.
14022         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
14023         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
14024         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
14025         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
14026         (sscanf): Changed to call __svfscanf_r with _REENT argument.
14027         (_sscanf_r): New routine.
14028         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
14029         with __svfscanf_r prototype.
14030         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
14031         routines.
14032         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
14033         structure as argument as calls reentrant versions of helper functions
14034         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
14035         to _strtol_r and _strtod_r respectively.
14036         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
14037         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
14038         _REENT argument.
14039         * libc/stdio/vscanf.c: New file.
14040         * libc/stdio/vsscanf.c: Ditto.
14041
14042 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
14043
14044         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
14045         Define daylight to _daylight if it is not defined
14046         Prepare a variable export of timezone based on timezonevariable.
14047         (Cannot be used with the timezone() function.)
14048
14049 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
14050
14051         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
14052          Correct the numerical values.
14053
14054 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
14055
14056         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
14057
14058 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
14059
14060         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
14061         on case insensitve file systems.
14062
14063 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
14064
14065         * libc/include/sys/features.h: Add appropriate defines for Cygwin
14066         pthread support.
14067         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
14068         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
14069         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
14070
14071 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
14072
14073         * libc/include/machine/ieeefp.h: Comment about new configuration
14074         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14075         * libm/common/fdlib.h: Define new macros for testing floats.
14076         * libm/common/sf_*: Use them.
14077         * libm/math/ef_*: Likewise.
14078         * libm/math/sf_*: Likewise.
14079
14080 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14081
14082         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14083         prolog to by-pass possible assembler error.
14084
14085 2001-03-21  Egor Duda  <deo@logos-m.ru>
14086
14087         Allow building internal stubs for non-reentrant syscalls
14088         if target provides its own malloc
14089         * libc/reent/reent.c (errno): Move definition here.
14090         * libc/reent/sbrkr.c: From here.
14091
14092 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14093
14094         * libc/include/sys/types.h (BSD int typedefs): Guard with
14095         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14096         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14097         _SYS_TYPES_FD_SET.
14098         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14099         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14100
14101 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14102
14103         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14104         _PC_POSIX_SECURITY constants for Cygwin.
14105
14106 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14107
14108         * libc/sys/cygwin/crt0.c: Add copyright hint.
14109         * libc/sys/cygwin/sys/dirent.h: Ditto.
14110         * libc/sys/cygwin/sys/param.h: Ditto.
14111         * libc/sys/cygwin/sys/utime.h: Ditto.
14112         * libc/sys/cygwin/sys/utmp.h: Ditto.
14113
14114 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14115
14116         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14117         equivalent to LONGINT.
14118
14119 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14120
14121         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14122         jmpbuf on MIPS64 targets.
14123         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14124
14125 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14126
14127         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14128           declarations.
14129
14130 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14131
14132         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14133         For RTEMS, define to be ssize_t.  Default to int if not defined.
14134         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14135         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14136         * libc/stdio/local.h (__sread, __swrite): Likewise.
14137         * libc/include/sys/reent.h (_read, _write): Likewise.
14138         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14139         * libc/syscalls/sysread.c (read): Likewise.
14140         * libc/syscalls/syswrite.c (write): Likewise.
14141
14142 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14143
14144         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14145
14146 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14147
14148         * libc/include/sys/stat.h: Use special defines for executable stat bits
14149         when compiling for Cygwin.
14150         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14151         for Cygwin.
14152
14153 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14154
14155         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14156         of strtok_r is always defined.
14157
14158 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14159
14160         * libc/include/machine/ansi.h: New dummy header file.
14161
14162 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14163
14164         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14165         changed the copyright information to allow free modification of the
14166         file with no reference to "copying.dj".
14167         * libc/include/sys/stat-dj.h: Ditto.
14168         * libc/machine/i386/setjmp.S: Ditto.
14169         * libc/sys/h8300hms/sys/file.h: Ditto.
14170         * libc/sys/sysmec/access.c: Ditto.
14171         * libc/sys/sysnecv850/access.c: Ditto.
14172         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14173         * libc/stdlib/getenv_r.c: Ditto.
14174         * libc/stdlib/putenv_r.c: Ditto.
14175         * libc/stdlib/setenv_r.c: Ditto.
14176         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14177         modifications will now be in the _r version of this file.
14178         * libc/stdlib/putenv.c: Ditto.
14179         * libc/stdlib/setenv.c: Ditto.
14180         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14181         valid.  Added a reference to DJ's web page that contains his address.
14182         * libc/sys/go32/*.s: Removed references to DJ's old address.
14183         * libc/sys/go32/*.c: Ditto.
14184         * libc/sys/go32/*.h: Ditto.
14185         * libc/sys/go32/*.S: Ditto.
14186         * libc/sys/go32/sys/*.h: Ditto.
14187
14188 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14189
14190         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14191         HAVE_FCNTL flag check.
14192         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14193         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14194
14195 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14196
14197         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14198
14199 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14200
14201         * libc/include/stdlib.h: Add declarations of rand48 functions and
14202         their reentrant versions.
14203         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14204         struct _rand48 for shared parameters of rand48 functions.
14205         (struct _reent): Add a variable _r48 of struct _rand48.
14206         (_REENT_INIT): Add _r48 initialization.
14207         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14208         (CHEWOUT_FILES): Add rand48.def.
14209         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14210         * libc/stdlib/Makefile.in: Regenerated.
14211         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14212         NetBSD C library.
14213         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14214         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14215         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14216         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14217         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14218         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14219         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14220         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14221         * libc/stdlib/rand48.c (__dorand48): Ditto.
14222         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14223         parameters into macros referring them in the reentrant structure.
14224
14225 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14226
14227         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14228         Cygwin definition has correct prototype.
14229
14230 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14231
14232         * libc/include/sys/stat.h: Must revert change for mknod
14233         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14234         prototype.
14235
14236 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14237
14238         * libc/include/stdio.h: Revert putw prototype.
14239
14240 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14241
14242         * libc/include/grp.h: add prototype for initgroups.
14243         * libc/include/stdio.h: fix prototype for putw.
14244         * libc/include/sys/signal.h: add prototype for killpg.
14245         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14246         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14247         vhangup and remove duplicate sysconf prototype.
14248
14249 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14250
14251         * libc/sys/rtems/sys/types.h: Removed.
14252
14253 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14254
14255         * libc/include/locale.h: add LC_MESSAGES definition
14256
14257 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14258
14259         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14260         SYS_get_argN):
14261         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14262         __setup_argv_and_call_main): New.
14263
14264 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14265
14266         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14267         if defined.
14268         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14269         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14270         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14271         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14272
14273 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14274
14275         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14276         compiling under Cygwin.
14277
14278 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14279
14280         * libc/include/math.h (signgam): Change to errno-like solution
14281         using a function to return the address of the real signgam.
14282         * libc/reent/signgam.c: New file containing __signgam().
14283         * libc/reent/Makefile.am: Added signgam.c to list of files.
14284         * libc/reent/Makefile.in: Regenerated.
14285
14286 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14287
14288         * libc/sys/sh/syscalls.c (_times): New.
14289
14290         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14291         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14292
14293 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14294
14295         * libc/include/math.h (signgam): Regress previous fix as
14296         it does not handle programs with extern int signgam in them.
14297
14298 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14299
14300         * libc/include/math.h (signgam): Changed to a macro refering to
14301         its location in the reentrant structure.
14302
14303 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14304
14305         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
14306         that suppressed . for %.0f, 0.1.  Check now looks if there
14307         are padding zeroes (expt) in addition to any digits (ndig) to
14308         print.
14309
14310 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
14311
14312         * libc/sys/arc/Makefile.am: New file.
14313         * libc/sys/arc/Makefile.in: Ditto.
14314         * libc/sys/arc/aclocal.m4: Ditto.
14315         * libc/sys/arc/configure: Ditto.
14316         * libc/sys/arc/configure.in: Ditto.
14317         * libc/sys/arc/crt0.S: Ditto.
14318         * libc/sys/arc/isatty.c: Ditto.
14319         * libc/sys/arc/mem-layout.c: Ditto.
14320         * libc/sys/arc/sbrk.c: Ditto.
14321         * libc/sys/arc/syscalls.c: Ditto.
14322         * libc/sys/arc/sys/syscall.h: Ditto.
14323
14324 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
14325
14326         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
14327
14328 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
14329
14330         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
14331
14332 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
14333
14334         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
14335
14336 2001-01-09  Nick Clifton  <nickc@redhat.com>
14337
14338         * configure.host (v859): Remove unsupported compiler options.
14339
14340 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
14341
14342         * src/newlib/configure.host (*-*-rtems*): add printf long long
14343         support for RTEMS.
14344
14345 2000-12-19  Graham Stott <grahams@redhat.com>
14346
14347         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
14348
14349 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14350
14351         * configure.host: Turn on long double I/O for Cygwin.
14352
14353 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14354
14355         * MAINTAINERS: Removed Ranjith.
14356         * NEWS: Updated for 1.9.0.
14357         * README: Updated.
14358         * acinclude.m4: Updated to release 1.9.0.
14359         * aclocal.m4 configure
14360           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14361           libc/machine/aclocal.m4 libc/machine/configure
14362           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
14363           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
14364           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
14365           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
14366           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
14367           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
14368           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
14369           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
14370           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
14371           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
14372           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
14373           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
14374           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
14375           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
14376           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
14377           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
14378           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
14379           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
14380           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
14381           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
14382           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
14383           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
14384           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
14385           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
14386           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
14387           libc/sys/aclocal.m4 libc/sys/configure
14388           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
14389           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
14390           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
14391           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
14392           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
14393           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
14394           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
14395           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
14396           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
14397           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
14398           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
14399           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
14400           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
14401           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
14402           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
14403           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
14404           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
14405           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
14406           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
14407           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
14408           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
14409           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
14410           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
14411           libm/aclocal.m4 libm/configure: Regenerated.
14412
14413 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14414
14415         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
14416         when __CYGWIN__ is defined.
14417
14418 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14419
14420         * libc/stdlib/ldtoa.c (_ldcheck): New routine
14421         that categorizes a long double as NaN, Infinity, or other.
14422         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
14423         isinfl and isnanl static routines which were i386-specific.  Changed
14424         calls to the two removed routines to a single _ldcheck call.
14425         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
14426
14427 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14428
14429         * Makefile.am: Fixed install-data-local target to use
14430         $(mkinstalldirs) for the installed header files to ensure
14431         the directories exist before copying.
14432         * Makefile.in: Regenerated.
14433
14434 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
14435
14436         * libc/include/sys/unistd.h: Restored Cygwin _SC
14437         constants and moved new constants appropriately
14438         so Cygwin will build.
14439
14440 2000-12-11  Joel Sherrill <joel@OARcorp.com>
14441
14442         * Merge RTEMS specific .h files into main libc/include.
14443         * libc/sys/rtems/include/signal.h: Removed.
14444         * libc/sys/rtems/include/time.h: Removed.
14445         * libc/sys/rtems/sys/features.h: Removed.
14446         * libc/sys/rtems/sys/sched.h: Removed.
14447         * libc/sys/rtems/sys/siginfo.h: Removed.
14448         * libc/sys/rtems/sys/signal.h: Removed.
14449         * libc/sys/rtems/sys/time.h: Removed.
14450         * libc/sys/rtems/sys/times.h: Removed.
14451         definitions for time_t and clock_t since these are
14452         no longer in time.h.
14453         * libc/include/pthread.h: New file.
14454         * libc/include/sys/sched.h: New file.
14455         * libc/include/sys/features.h: New file.
14456         * libc/include/time.h: Removed duplicate definition of clock_t
14457         and time_t, get them from <sys/types.h> instead.  Add prototypes
14458         for POSIX clock and timer functionality.
14459         * libc/sys/linux/sys/types.h: Changed to include
14460         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
14461         * libc/include/sys/signal.h: Add more complete set of POSIX
14462         signal functionality including real-time and threaded signals.
14463         * libc/include/sys/types.h: Add clock_t, time_t, struct
14464         timespec, and struct itimerspec.  Centralizing these makes
14465         things cleaner.  RTEMS uses 64-bit dev_t.
14466         Added numerous primitive definitions
14467         for pthreads including macros, pthread_attr_t,
14468         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
14469         pthread_once_t, and pthread_t.
14470         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
14471         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
14472         Feature flags removed and moved to new file <sys/features.h>.
14473         Full set of POSIX sysconf() constants
14474
14475 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14476
14477         * configure.host: Added x86 linux target.
14478         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
14479         definitions provided if not already defined.
14480         * libc/sys/linux/crt0.c: New file.
14481         * libc/sys/linux/Makefile.am: Ditto.
14482         * libc/sys/linux/Makefile.in: Ditto.
14483         * libc/sys/linux/aclocal.m4: Ditto.
14484         * libc/sys/linux/brk.c: Ditto.
14485         * libc/sys/linux/configure: Ditto.
14486         * libc/sys/linux/configure.in: Ditto.
14487         * libc/sys/linux/getoptlong.c: Ditto.
14488         * libc/sys/linux/ids.c: Ditto.
14489         * libc/sys/linux/inode.c: Ditto.
14490         * libc/sys/linux/io.c: Ditto.
14491         * libc/sys/linux/linux.c: Ditto.
14492         * libc/sys/linux/process.c: Ditto.
14493         * libc/sys/linux/realpath.c: Ditto.
14494         * libc/sys/linux/select.c: Ditto.
14495         * libc/sys/linux/signal.c: Ditto.
14496         * libc/sys/linux/systat.c: Ditto.
14497         * libc/sys/linux/termios.c: Ditto.
14498         * libc/sys/linux/time.c: Ditto.
14499         * libc/sys/linux/wait.c: Ditto.
14500         * libc/sys/linux/include/alloca.h: Ditto.
14501         * libc/sys/linux/include/getopt.h: Ditto.
14502         * libc/sys/linux/include/stdint.h: Ditto.
14503         * libc/sys/linux/include/unistd.h: Ditto.
14504         * libc/sys/linux/sys/cdefs.h: Ditto.
14505         * libc/sys/linux/sys/dirent.h: Ditto.
14506         * libc/sys/linux/sys/errno.h: Ditto.
14507         * libc/sys/linux/sys/fcntl.h: Ditto.
14508         * libc/sys/linux/sys/file.h: Ditto.
14509         * libc/sys/linux/sys/ioctl.h: Ditto.
14510         * libc/sys/linux/sys/resource.h: Ditto.
14511         * libc/sys/linux/sys/signal.h: Ditto.
14512         * libc/sys/linux/sys/stat.h: Ditto.
14513         * libc/sys/linux/sys/syscall.h: Ditto.
14514         * libc/sys/linux/sys/termios.h: Ditto.
14515         * libc/sys/linux/sys/time.h: Ditto.
14516         * libc/sys/linux/sys/types.h: Ditto.
14517         * libc/sys/linux/sys/utmp.h: Ditto.
14518         * libc/sys/linux/sys/utsname.h: Ditto.
14519         * libc/sys/linux/sys/wait.h: Ditto.
14520
14521 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14522
14523         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
14524         can be a relative path to $(top_srcdir)/install.sh so ensure the
14525         autoconf detected settings are properly passed recursively.
14526         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
14527         properly to subdirectories.
14528         * Makefile.in: Regenerated.
14529
14530 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
14531
14532         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
14533         a floating point register unless really printing a floating
14534         point number.
14535
14536 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
14537
14538         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
14539         Also removed \r's.
14540         (asctoeg): Replaced alloca call with stack array and malloc
14541         when storage exceeds reasonable limit.
14542         (e53toe): Fixed einfin calls missing ldp parameter.
14543         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
14544
14545 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14546
14547
14548         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
14549
14550 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14551
14552         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
14553         * libc/stdlib/Makefile.in: Regenerated.
14554         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
14555         * libc/stdio/vfieeefp.h: Added long double bit structures.
14556         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
14557         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
14558         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
14559         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
14560         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
14561         _strtold routines used for conversions between character
14562         and long double.
14563
14564 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14565
14566         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
14567
14568 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14569
14570         * libc/include/machine/time.h: RTEMS systems can configure clock
14571         tick rate so use sysconf() to ask.
14572
14573 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14574
14575         * libc/include/sys/times.h: Add reference to POSIX standard.
14576
14577 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14578
14579         * libc/include/sys/time.h: Added BSD timer manipulation macros
14580         used by RTEMS code.
14581
14582 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14583
14584         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
14585         referenced by code generated by gcc 2.8.1.
14586         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
14587         satisfy gcc.
14588
14589 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14590
14591         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
14592
14593 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14594
14595         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
14596
14597 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14598
14599         * configure.host (or16, or32): New entries for OpenCores
14600         OpenRisc CPUs.
14601         (*-*-rtems*): Add -DNO_EXEC.
14602
14603 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
14604
14605         * libc/include/sys/errno.h: Added comments on many error numbers.
14606         * libc/string/strerror.c: Added some more strings.
14607
14608 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
14609
14610         * libc/sys/sh/syscalls.c (_link): New stub.
14611
14612 2000-11-29  Nick Clifton  <nickc@redhat.com>
14613
14614         * configure.host: Add xscale target.
14615         * libc/machine/xscale: New directory.
14616         * libc/machine/xscale/Makefile.am: New file.
14617         * libc/machine/xscale/Makefile.in: New file.
14618         * libc/machine/xscale/aclocal.m4: New file.
14619         * libc/machine/xscale/configure: New file.
14620         * libc/machine/xscale/configure.in: New file.
14621         * libc/machine/xscale/memchr.S: New file.
14622         * libc/machine/xscale/memcmp.S: New file.
14623         * libc/machine/xscale/memcpy.S: New file.
14624         * libc/machine/xscale/memmove.S: New file.
14625         * libc/machine/xscale/memset.S: New file.
14626         * libc/machine/xscale/strchr.S: New file.
14627         * libc/machine/xscale/strcmp.S: New file.
14628         * libc/machine/xscale/strcpy.S: New file.
14629         * libc/machine/xscale/strlen.S: New file.
14630
14631 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14632
14633         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
14634         avoid compiler warnings.
14635
14636 2000-11-22  Michael Meissner  <meissner@redhat.com>
14637
14638         * libc/posix/execl.c (execl): Don't reference environ directly,
14639         reference it only via a static pointer to avoid problems with some
14640         shared library systems and with different uses of small data where
14641         the user specifies his own version of environ.
14642         * libc/posix/execv.c (execv): Ditto.
14643         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
14644         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
14645         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
14646
14647         * libc/stdlib/getenv.c (environ): Delete unused reference to
14648         environ.
14649
14650         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
14651         colorization.
14652         * libc/stdlib/system.c: Ditto.
14653
14654 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
14655
14656         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
14657         including windows headers.
14658
14659 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
14660
14661         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
14662         * libc/include/dirent.h: Added definition of MAXNAMLEN if
14663         not defined by sys/dirent.h.
14664         * libc/posix/execvp.c: Added include of dirent.h to get
14665         MAXNAMLEN value which used to be in unistd.h.
14666
14667 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14668
14669         * libc/include/sys/types.h: Change type of i to `size_t' in
14670         FD_ZERO macro to avoid compiler warnings.
14671
14672 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
14673
14674         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
14675         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
14676
14677 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14678
14679         * libc/include/sys/unistd.h: Add defines for sysconf values
14680         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
14681         _SC_AVPHYS_PAGES.
14682
14683 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
14684
14685         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
14686         declarations for __CYGWIN__.
14687
14688 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
14689
14690         * libc/signal/signal.c (__sigtramp_r): ISO C requires
14691         case labels to be integral constant expressions, so
14692         use an if/else tree instead.
14693         (_raise_r): Likewise.
14694
14695 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14696
14697         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
14698         clipping patch from e-mail reader.
14699
14700 2000-09-13  Will Cohen  <wcohen@redhat.com>
14701
14702         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
14703         Added return value 0.
14704         (_longjmp): Allow longjmp to return value of second argument
14705         passed to it.
14706
14707 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
14708
14709         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
14710         inline code to prevent having to include another header file.
14711
14712 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
14713
14714         * Makefile.am: Fix space vs. tab problem in install-data-local.
14715         * Makefile.in: Regenerate.
14716
14717 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
14718
14719         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
14720         (_EXPARM): New macro for defining a function parameter.
14721         * libc/include/stdlib.h: Use _EXPARM.
14722         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
14723
14724 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
14725
14726         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
14727         required, as documented in the gnu coding standards.
14728         * Makefile.in: Regenerate.
14729
14730 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
14731
14732         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
14733         make O_NDELAY and O_NONBLOCK have the same value.
14734
14735 2000-08-30  Kazu Hirata  <kazu@hxi.com>
14736
14737         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
14738
14739 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14740
14741         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
14742         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
14743         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
14744         everywhere else.
14745
14746 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
14747
14748         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
14749         * libc/include/string.h: Don't include <sys/types.h>,
14750         as it causes really bad namespace pollution.  Don't declare
14751         swab(), it is properly declared in unistd.h.
14752
14753 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14754
14755         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
14756         (broken) support for non-existent /etc/passwd field "comment".
14757
14758 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14759
14760         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
14761         only if _DIRENT_HAVE_D_NAMLEN is defined.
14762         (alphasort): aligned prototype with
14763         libc/sys/cygwin/sys/dirent.h and simplified function body.
14764         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
14765         long telldir (DIR *) as mentioned in annex B of POSIX.1
14766
14767 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14768
14769         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
14770         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
14771         Added __CLI and __STI macros (controlled via
14772         _I386MACH_ALLOW_HW_INTERRUPTS macro).
14773         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
14774         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
14775         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
14776         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
14777         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
14778         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
14779         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
14780         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
14781         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
14782         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
14783         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
14784         for all global entry points.
14785         * libc/machine/i386/setjmp.S: removed code replicated in
14786         libc/machine/i386/i386mach.h and included i386mach.h instead;
14787         Use __CLI and __STI instead of cli and sti.
14788
14789 2000-08-25  DJ Delorie  <dj@redhat.com>
14790
14791         * libc/include/sys/unistd.h (environ): this one isn't from the
14792         DLL, no __IMPORT
14793
14794 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
14795
14796         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
14797         environ when compiling under cygwin since it is already declared in
14798         unistd.h.
14799
14800 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14801
14802         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
14803         like  x << y-z  to the equivalent  x << (y-z).
14804         (d2b): changed if statements with assignment to perform the
14805         assignment prior to the if check.
14806         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
14807         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
14808         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
14809         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
14810         precedence.
14811         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
14812         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
14813         execve.c).
14814         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
14815         precedence.
14816         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
14817         clarify && and || precendence (and to remove pascalism).
14818         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
14819         * libm/math/s_infconst.c: added another pair of braces to all
14820         initializers for __infinity (need three: for __infinity[1] array,
14821         for union __dmath, and for i[2]).
14822
14823 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14824
14825         * libc/stdlib/abort.c: changed description: uses "raise" instead of
14826         "getpid" and "kill"; added: uses "write" and "_exit".
14827         Also included unistd.h for "_exit" prototype.
14828         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
14829         reent.h for "_fork_r" and "_wait_r" prototypes.
14830         (do_system): changed  extern char *environ[] to POSIX-friendly
14831         extern char **environ.
14832         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
14833         prototypes.
14834         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
14835         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
14836         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
14837         * libc/reent/openr.c: included fcntl.h for "open" prototype.
14838         * libc/reent/signalr.c: included signal.h for "kill" prototype,
14839         unistd.h for "getpid" prototype.
14840         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
14841         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
14842         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
14843         prototype.  Also included stdlib.h for "abort", string.h for
14844         "strdup" and "strncmp" prototypes.
14845         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
14846         "strncpy", unistd.h for "read" and "close" prototypes.
14847         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
14848         "strcat" prototypes.
14849
14850 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
14851
14852         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
14853         used later (ifdef __SCLE)
14854         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
14855         used later (ifdef MB_CAPABLE)
14856         * libc/string/memset.c (memset): removed unused variables "count"
14857         and "unaligned_addr"
14858         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
14859         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
14860         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
14861         and "gid"
14862
14863 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14864
14865         * libc/stdlib/envlock.c: changed documented "__env_lock" and
14866         "__env_unlock" prototype from "void *" or "char *" to
14867         "struct _reent *" to match real function.  Also added include
14868         of envlock.h.
14869         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
14870         "__malloc_unlock" prototype from "void *" or "char *" to
14871         "struct _reent *" to match real function.
14872         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
14873         prototypes (for getenv_r.c and setenv_r.c).
14874
14875 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14876
14877         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
14878         and prototype in cygwin's utmp.h
14879
14880 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
14881
14882         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
14883
14884 2000-08-09  Nick Clifton  <nickc@cygnus.com>
14885
14886         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
14887         epilogue and to allow the functions to be used in a Thumb based
14888         toolchain.
14889
14890 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
14891
14892         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
14893         so size of 0 results in nothing being written to string.
14894         Also fixed code so that when size is non-zero, there is only
14895         a maximum of size - 1 characters written to the array and
14896         a nul terminator is appended at the end.
14897         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
14898
14899 2000-08-01  DJ Delorie  <dj@redhat.com>
14900
14901         * libc/include/sys/config.h: define __IMPORT appropriately
14902         * libc/include/ctype.h (_ctype_): use __IMPORT
14903         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
14904         * libc/include/math.h (__mb_cur_max): ditto
14905         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
14906         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
14907         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
14908         * libc/include/unistd.h (environ): ditto
14909
14910 2000-07-28  Michael Meissner  <meissner@redhat.com>
14911
14912         * libc/include/math.h (__infinity): Declare as an array without
14913         bounds to get around small data support.  Rewrite Cygwin support
14914         to be more general.
14915         * libm/math/s_infconst.c (__infinity): Ditto.
14916         * libm/mathfp/s_infconst.c (__infinity): Ditto.
14917
14918 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
14919
14920         * libc/include/math.h: Use appropriate dll import linkage for
14921         __infinity under Cygwin.
14922
14923 2000-07-13  DJ Delorie  <dj@cygnus.com>
14924
14925         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
14926
14927 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
14928
14929         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
14930         to argument list for AngelSWI_Reason_GetCmdLine.
14931
14932 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
14933
14934         * configure.host: Add support for AVR target.
14935         * libc/include/machine/ieeefp.h: Likewise.
14936         * libc/include/sys/config.h: Likewise.
14937
14938 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
14939
14940         * README: Newlib 1.8.2 must be built in a separate directory
14941         than the sources.
14942
14943 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14944
14945         * libc/include/sys/reent.h (_rand_next): Added __extension__
14946         qualifier as long long type is not strict ANSI.
14947         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
14948         to long long constant.
14949
14950 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
14951
14952         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
14953         `setegid' provided by Cygwin.
14954
14955 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
14956
14957         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
14958         account for Cygwin.
14959
14960 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14961
14962         * libc/include/sys/reent.h (_rand_next): Changed to
14963         unsigned long long and moved to end of _reent struct in _new union.
14964         (_REENT_INIT): Changed to move _rand_next initialization.
14965         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
14966         linear congruential algorithm that is used by DJGPP.
14967
14968 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
14969
14970         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
14971         * libc/include/sys/config.h: Define __RAND_MAX.
14972
14973 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14974
14975         * libc/stdlib/rand_r.c: New algorithm that meets minimal
14976         standard.
14977
14978 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
14979
14980         * libc/include/string.h: Work around problem with strsignal and gdb.
14981
14982 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
14983
14984         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
14985         * libc/include/malloc.h: Ditto.
14986         * libc/include/process.h: Ditto.
14987         * libc/include/stdio.h: Ditto.
14988         * libc/include/stdlib.h: Ditto.
14989         * libc/include/time.h: Ditto.
14990         * libc/include/machine/setjmp.h: Ditto.
14991         * libc/include/sys/errno.h: Ditto.
14992         * libc/include/sys/signal.h: Ditto.
14993         * libc/include/sys/stat.h: Ditto.
14994         * libc/include/sys/time.h: Ditto.
14995         * libc/include/sys/unistd.h: Ditto.
14996         * libc/include/string.h: Ditto.  strsignal should return a const char *.
14997
14998 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
14999
15000         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
15001         * libm/common/s_log1p.c (log1p): Likewise.
15002         * libm/common/s_scalbn.c (scalbn): Likewise.
15003         * libm/math/e_log.c: Likewise.
15004         * libm/math/e_asin.c: Likewise.
15005         * libm/math/ef_asin.c: Likewise.
15006         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
15007         * libm/math/e_j1.c (pone, qone): Likewise.
15008         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
15009         * libm/math/ef_j1.c (ponef, qonef): Likewise.
15010         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
15011         * libm/mathfp/e_j1.c (pone, qone): Likewise.
15012         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
15013         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
15014
15015 2000-05-19  DJ Delorie  <dj@cygnus.com>
15016
15017         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
15018         (__sread): always read in binary mode
15019         (__swrite): always write in binary mode
15020         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
15021         compatibility issues with different dll versions
15022         * libc/stdio/fopen.c: use __stextmode
15023         * libc/stdio/fdopen.c: ditto
15024         * libc/stdio/freopen.c: ditto
15025         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
15026         * libc/stdio/local.h: declare __stextmode
15027
15028 2000-05-18  DJ Delorie  <dj@cygnus.com>
15029
15030         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
15031
15032 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15033
15034         * libc/include/ctype.h: Changed tolower and toupper macros
15035         to use __extension__ to prevent pedantic warnings.
15036
15037 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
15038
15039         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
15040         structures.
15041
15042 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
15043
15044         * libc/include/machine/ieeefp.h: Add ia64 support.
15045         * configure.host: Likewise.
15046
15047 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
15048
15049         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
15050         month is now padded with space, not zero.  This now conforms to
15051         ANSI standard.
15052
15053 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
15054
15055         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
15056         host or network path") used by cygwin. Add some comments.
15057
15058 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
15059
15060         * libc/include/stdio.h (FILE): define __SCLE for "convert line
15061         endings" for Cygwin.
15062         (__sgetc): convert line endings if needed
15063         (__sputc): ditto
15064         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
15065         * libc/stdio/fopen.c (_fopen_r): ditto
15066         * libc/stdio/freopen.c (freopen): ditto
15067         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
15068         * libc/stdio/fvwrite.c (__sfvwrite): ditto
15069
15070 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
15071
15072         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
15073         post-increment when it is worth it, spacewise.
15074
15075 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15076
15077         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15078         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15079         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15080         return type.
15081         * libc/stdio/putchar.c (putchar): Added return statement.
15082         * libc/stdio/refill.c (lflush): Added correct parentheses.
15083         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15084         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15085         prints long value to use l qualifier.
15086         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15087         messages and initialized local values: ilim, ilim1, and spec_case.
15088         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15089         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15090         * libc/stdlib/mprec.c: Ditto.
15091         * libc/stdlib/setenv_r.c: Ditto.
15092         * libc/stdlib/strtod.c: Ditto.
15093         * libc/stdlib/strtol.c: Ditto.
15094         * libc/stdlib/strtoul.c: Ditto.
15095         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15096         * libm/common/sf_log1p.c: Ditto.
15097         * libm/common/sf_scalbn.c: Ditto.
15098         * libm/math/ef_log.c: Ditto.
15099
15100 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15101
15102         * libc/posix/execvp.c (execvp): Check path for
15103         trailing slash.
15104
15105 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15106
15107         * libc/include/sys/unistd.h: Add prototypes for
15108         fchmod, fchown, lchown.
15109
15110 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15111
15112         * acinclude.m4: Changed release to 1.8.2.
15113         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15114           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15115           libc/machine/configure libc/machine/a29k/aclocal.m4
15116           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15117           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15118           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15119           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15120           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15121           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15122           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15123           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15124           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15125           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15126           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15127           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15128           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15129           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15130           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15131           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15132           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15133           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15134           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15135           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15136           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15137           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15138           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15139           libc/machine/z8k/configure libc/sys/aclocal.m4
15140           libc/sys/aclocal.m4 libc/sys/configure
15141           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15142           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15143           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15144           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15145           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15146           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15147           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15148           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15149           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15150           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15151           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15152           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15153           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15154           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15155           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15156           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15157           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15158           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15159           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15160           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15161           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15162           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15163           libm/aclocal.m4 libm/configure: Regenerated.
15164
15165 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15166
15167         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15168         (do_AngelSWI): Add "cc" to list o registers clobbered.
15169
15170 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15171
15172         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15173         information to be clobbered by an Angel C library support syscall.
15174
15175 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15176
15177         * libc/stdlib/envlock.c: Fixed comment typo.
15178
15179 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15180
15181         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15182         code to update nread as each character is processed instead
15183         of using buffer contents which throw away leading zeroes.
15184
15185 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15186
15187         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15188
15189 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15190
15191         * libc/include/string.h: Include <sys/types.h>.
15192
15193 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15194
15195         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15196         with XSH5, not SVID.
15197
15198 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15199
15200         * libc/include/string.h: Changed last argument back to ssize_t
15201         to make it compatible with XPG4 definition which is
15202         defined in <unistd.h>.  There is a conflict in the SVID 3
15203         and XPG4 definitions and newlib will settle with XPG4.
15204         * libc/string/swab.c: Ditto.
15205
15206 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15207
15208         * libc/include/string.h: Changed last argument to size_t.
15209         * libc/string/swab.c: Changed last argument to size_t.
15210
15211 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15212
15213         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15214         (CHEWOUT_FILES): Added unlinkr.def.
15215         * libc/reent/Makefile.in: Rebuilt.
15216         * libc/sys.tex: Include unlinkr.def.
15217         * libc/reent/linkr.c (_unlink_r): Moved to...
15218         * libc/reent/unlinkr.c: ... new file.
15219
15220 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15221
15222         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15223         (CHEWOUT_FILES): Added swab.def.
15224         * libc/string/Makefile.in: Rebuilt.
15225         * libc/string/string.tex: Include swab.def.
15226         * libc/include/string.h (swab): Declare.
15227         * libc/string/swab.c: New file.
15228
15229 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15230
15231         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15232         (CHEWOUT_FILES): Added getw.def and putw.def.
15233         * libc/stdio/Makefile.in: Rebuilt.
15234         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15235         * libc/stdio/getw.c: New file.
15236         * libc/stdio/putw.c: New file.
15237
15238 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15239
15240         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15241         is non-null before looking at mode[2].
15242
15243 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15244
15245         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15246         * libm/mathfp/sf_atan.c: Ditto.
15247
15248 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15249
15250         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15251
15252 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15253
15254         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15255         _DOUBLE_IS_32BITS.
15256
15257 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15258
15259         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15260         call prior to calling _VFPRINTF_R so reentrant data area is set.
15261         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15262
15263 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15264
15265         * libc/stdio/vfscanf.c (limits.h): #include.
15266         (MAX_LONG_LEN): #define.
15267         (__svfscanf): Handle floating point numbers with arbitrary amounts
15268         of leading zeroes.
15269
15270 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15271
15272         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15273         zero.  Set the blocksize to 1024/
15274
15275 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15276
15277         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15278         with line buffering.
15279
15280 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15281
15282         * acinclude.m4: Changed include directory for winsup headers.
15283         * aclocal.m4 configure libc/aclocal.m4
15284           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15285           libc/locale/Makefile.in libc/machine/aclocal.m4
15286           libc/machine/configure libc/machine/a29k/aclocal.m4
15287           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15288           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15289           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15290           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15291           libc/machine/fr30/configure
15292           libc/machine/h8300/aclocal.m4
15293           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15294           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15295           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15296           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15297           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15298           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15299           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15300           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15301           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15302           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15303           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15304           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15305           libc/machine/powerpc/configure
15306           libc/machine/sh/aclocal.m4
15307           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15308           libc/machine/sparc/configure
15309           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15310           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15311           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15312           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15313           libc/misc/Makefile.in libc/posix/Makefile.in
15314           libc/reent/Makefile.in
15315           libc/signal/Makefile.in
15316           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
15317           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15318           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
15319           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
15320           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
15321           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15322           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15323           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15324           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15325           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15326           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15327           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15328           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15329           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
15330           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
15331           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
15332           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
15333           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
15334           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
15335           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
15336           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
15337           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
15338           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
15339           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
15340           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
15341           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
15342           libm/configure: Regenerated.
15343
15344 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
15345
15346         * libc/stdlib/putenv_r.c (_putenv_r): New file.
15347         * libc/stdlib/strdup_r.c (_strdup_r): New file.
15348         * libc/include/string.h: Added _strdup_r.
15349         * libc/stdlib/putenv.c: Added call to reentrant version.
15350         * libc/stdlib/strdup.c: Ditto.
15351         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
15352         * libc/include/stdlib.h: Ditto.
15353         * libc/stdlib/Makefile.in: Regenerated.
15354         * libc/string/Makefile.in: Regenerated.
15355         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
15356         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
15357         management calls to reentrant versions.
15358         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
15359         * libc/stdlib/wctomb.c: Ditto.
15360         * libc/stdlib/mblen.c: Ditto.
15361         * libc/stdlib/mbstowcs.c: Ditto.
15362         * libc/stdlib/mbtowc.c: Ditto.
15363         * libc/stdlib/getenv.c: Ditto.
15364         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
15365         and _strdup_r.
15366
15367 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
15368
15369         patch from Corinna Vinschen <corinna@vinschen.de>
15370         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
15371
15372 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
15373
15374         * libm/mathfp/s_atangent.c: Fix exponent calculation.
15375         * libm/mathfp/s_ldexp.c: Ditto.
15376         * libm/mathfp/sf_atangent.c: Ditto.
15377         * libm/mathfp/sf_ldexp.c: Ditto.
15378
15379 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15380
15381         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
15382         * libc/include/locale.h: define NULL to be 0.
15383
15384 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
15385
15386         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
15387         function.
15388
15389 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
15390
15391         * libc/machine/mn10300/setjmp.S: Handle am33.
15392
15393 1999-11-26  Nick Clifton  <nickc@cygnus.com>
15394
15395         * libc/sys/arm/syscalls.c: Add function prototypes.
15396         (stack_ptr): Move declaration before function definitions.
15397
15398 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15399
15400         * NEWS: Updated version information.
15401         * README: Ditto.
15402
15403 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
15404
15405         * libc/machine/i386/strchr.S: Fixed alignment test.
15406
15407 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
15408
15409         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
15410
15411 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
15412
15413         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
15414         ensuring that there is space between the two.
15415
15416 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
15417
15418         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
15419         only.
15420
15421 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
15422
15423         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
15424         section
15425
15426 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15427
15428         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
15429         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
15430
15431 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
15432         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
15433           per POSIX 1003.1b.
15434         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
15435           per POSIX 1003.1b.
15436
15437 1999-09-13  DJ Delorie  <dj@cygnus.com>
15438
15439         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
15440         also.
15441
15442 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15443
15444         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
15445         also note BUFSIZ as its size.
15446
15447 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
15448
15449         * configure.host: Corrected feature defines for RTEMS.
15450         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
15451         * libc/include/sys/stat.h: mkfifo() should take const path arg.
15452         * libc/include/sys/unistd.h: pathconf() should take const path arg.
15453           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
15454           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
15455           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
15456           _PC_PRIO_IO, and _PC_SYNC_IO.
15457         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
15458         * libc/machine/m68k/Makefile.in: Regenerated.
15459         * libc/machine/m68k/strcpy.c: New file.
15460         * libc/machine/m68k/strlen.c: New file.
15461         * libc/stdio/tmpnam.c: Always make the returned name usable.
15462         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
15463         * libc/sys/rtems/sys/dirent.h: New file.
15464         * libc/sys/rtems/sys/types.h: Added dev_t.
15465
15466 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
15467
15468         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
15469
15470 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
15471
15472         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
15473         my patch.
15474
15475 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
15476
15477         patch from Jeff Johnston <jjohnstn@cygnus.com>
15478         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
15479         buffer is not in a useful state.
15480
15481 1999-09-01  Nick Clifton  <nickc@cygnus.com>
15482
15483         * libc/sys/arm/syscalls.c (_link): Add stub.
15484
15485 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
15486
15487         * ftell.c (ftell): Use actual position within buffer for text mode.
15488         * findfp.c (std): Initialize ptr->_bf._size.
15489
15490 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
15491
15492         * libc/include/sys/unistd.h: Add nice() declaration.
15493
15494 1999-08-09  Nick Clifton  <nickc@cygnus.com>
15495
15496         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
15497         declare as a thumb function so that the disassembler will see the
15498         mode change.
15499
15500 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15501
15502         * libc/reent/reent.tex: Updated list of reentrant functions.
15503
15504 1999-07-09  Michael Meissner  <meissner@cygnus.com>
15505
15506         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
15507
15508 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
15509
15510         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
15511         separate file.
15512         * libc/stdio/snprintf.c: New file.
15513         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
15514         separate file.
15515         * libc/stdio/vsnprintf.c: New file.
15516         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
15517         * libc/stdio/Makefile.in: Regenerated.
15518
15519 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
15520
15521         Patch submitted by Egor Duda <deo@logos-m.ru>:
15522         * libc/include/stdio.h: Add declarations for *nprintf.
15523         * libc/stdio/sprintf.c (snprintf): New function.
15524         (_snprintf_r): New function.
15525         * libc/stdio/vsprintf.c (vsnprintf): New function.
15526         (_vnsprintf_r): New function.
15527
15528 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15529
15530         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
15531         * libm/Makefile.am (stmp-targetdep): Ditto.
15532         * libc/Makefile.in: Regenerated.
15533         * libm/Makefile.in: Ditto.
15534
15535 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15536
15537         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
15538         * libm/Makefile.am (stmp-targetdep): Ditto.
15539         * libc/Makefile.in: Regenerated.
15540         * libm/Makefile.in: Ditto.
15541
15542 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15543
15544         * Makefile.am: Removed dependencies on all-recursive and added "."
15545         to the SUBDIRS list to prevent infinite recursion from occurring.
15546         Also removed any references to EXTRA_DATA.
15547         * libc/Makefile.am: Ditto.
15548         * libc/machine/Makefile.am: Ditto.
15549         * libc/machine/i386/Makefile.am: Ditto.
15550         * libm/Makefile.am: Ditto.
15551         * libc/sys/Makefile.am: Ditto.
15552         * Makefile.in: Regenerated.
15553         * aclocal.m4: Ditto.
15554         * configure: Ditto.
15555         * doc/Makefile.in: Ditto.
15556         * doc/aclocal.m4: Ditto.
15557         * doc/configure: Ditto.
15558         * libc/Makefile.in: Ditto.
15559         * libc/aclocal.m4: Ditto.
15560         * libc/configure: Ditto.
15561         * libc/machine/Makefile.in: Ditto.
15562         * libc/machine/aclocal.m4: Ditto.
15563         * libc/machine/configure: Ditto.
15564         * libc/machine/mn10300/Makefile.in: Ditto.
15565         * libc/machine/mn10300/aclocal.m4: Ditto.
15566         * libc/machine/mn10300/configure: Ditto.
15567         * libc/sys/Makefile.in: Ditto.
15568         * libc/sys/aclocal.m4: Ditto.
15569         * libc/sys/configure: Ditto.
15570         * libm/Makefile.in: Ditto.
15571         * libm/aclocal.m4: Ditto.
15572         * libm/configure: Ditto.
15573
15574 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15575
15576         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
15577
15578 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15579
15580         * libc/include/stdlib.h: Add reentrant routines.
15581         * libc/stdlib/Makefile.am: Add reentrant routines.
15582         * libc/stdlib/Makefile.in: Ditto.
15583         * libc/stdlib/envlock.c: New file.
15584         * libc/stdlib/envlock.h: New file.
15585         * libc/stdlib/getenv.c: Modify to call reentrant routine.
15586         * libc/stdlib/getenv_r.c: New file.
15587         * libc/stdlib/mblen.c: Modify to call reentrant routine.
15588         * libc/stdlib/mblen_r.c: New file.
15589         * libc/stdlib/setenv.c: Modify to call reentrant routine.
15590         * libc/stdlib/setenv_r.c: New file.
15591         * libc/stdlib/stdlib.tex: Add reentrant routines.
15592
15593 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
15594
15595         * libc/include/sys/types.h: Define __MS_types__ whenever
15596         cygwin or win32.
15597
15598 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
15599
15600         * libc/include/machine/ieeefp.h: Always default to little
15601         endian if Windows, regardless of architecture.
15602         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
15603         regardless of architecture.
15604
15605 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
15606
15607         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
15608         _WIN32 isn't defined.
15609
15610 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15611
15612         * libm/common/s_rint.c (rint): Add volatile qualifier for
15613         intermediate value w.
15614         * libm/common/sf_rint.c (rintf): Ditto.
15615
15616 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15617
15618         * libc/sys/arm/syscalls.c (remap_handle): Added check to
15619         ensure that std streams are initialized before being referenced.
15620
15621 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
15622
15623         * README: Update reference to newlib@cygnus.com new
15624         newlib@sourceware.cygnus.com address.
15625
15626 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
15627
15628         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
15629         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
15630         defined, even if _WIN32 isn't defined.
15631
15632 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
15633
15634         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
15635
15636 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
15637
15638         * libc/include/sys/reent.h: Change Long and ULong to __Long and
15639         __ULong.
15640         * libc/stdlib/dtoa.c: Ditto.
15641         * libc/stdlib/mprec.c: Ditto.
15642         * libc/stdlib/mprec.h: Ditto.
15643         * libc/stdlib/strtod.c: Ditto.
15644
15645 1999-04-21  Nick Clifton  <nickc@cygnus.com>
15646
15647         * configure.host (mcore): Remove mcore machine directory.
15648
15649 1999-04-18  Nick Clifton  <nickc@cygnus.com>
15650
15651         * libc/include/machine/ieeefp.h: Add support for mcore target.
15652         * libc/include/machine/setjmp.h: Add support for mcore target.
15653         * configure.host: Add support for mcore target.
15654
15655 1999-04-13  Mark Salter  <msalter@cygnus.com>
15656
15657         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
15658         * libc/sys/arm/syscalls.c: Added isatty.
15659
15660 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15661
15662         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
15663         insert zeroes after significant digits.
15664
15665 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15666
15667         * libc/stdio/vfprintf.c (cvt): Changed floating point
15668         cvt routine to use union used by dtoa to properly determine
15669         if the sign bit is on or not.
15670         * libc/stdio/vfieeefp.h: New file
15671
15672 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15673
15674         * aclocal.m4: Regenerated.
15675         * configure: Regenerated.
15676
15677 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15678
15679         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
15680         f_tanf reference.
15681         * libc/machine/i386/Makefile.in: Regenerated.
15682
15683 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15684
15685         * acinclude.m4: Changed to work with new automake.
15686         * configure: Regenerated.
15687         * libc/machine/i386/aclocal.m4: Regenerated.
15688         * libc/machine/i386/configure: Regenerated.
15689
15690 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
15691
15692         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
15693         for telldir() and seekdir().  Rename unused structure element
15694         for use with these two routines.
15695
15696 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15697
15698         * libc/time/mktime.c (validate_structure): Multiple fixes to
15699         code to handle cases where input fields are outside valid ranges.
15700         * libc/stdlib/div.c (div): Modified invalid rounding check.
15701         * libc/stdlib/ldiv.c (ldiv): Ditto.
15702
15703 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15704
15705         * libc/machine/i386/memcpy.S: Performance rewrite.
15706         * libc/machine/i386/memmove.S: Ditto.
15707         * libc/machine/i386/i386mach.h: Added more register definitions.
15708         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
15709         option used.
15710         * libc/include/machine/fastmath.h: Add definitions for x86
15711         fast-math routines.
15712
15713 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15714
15715         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
15716
15717 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
15718
15719         Adjust newlib headers for new Cygwin Win32 API header files:
15720         * libc/include/sys/time.h: Check _WINSOCK_H rather than
15721         _GNU_H_WINDOWS32_SOCKETS.
15722         * libc/include/sys/types.h: Ditto.
15723
15724 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15725
15726         *include/sys/reent.h: Add checks for size of Bigint element Long.
15727         *libc/dtoa.c: Change routines to use generic Long type.
15728         *libc/mprec.c: Change routines to use generic Long type.
15729         *libc/mprec.h: Change routines to use generic Long type.
15730
15731 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15732
15733         * libc/Makefile.am: Add .def files.
15734         * libc/Makefile.in: Regenerate.
15735         * libc/e_acosh.c: Documentation update.
15736         * libc/e_atanh.c: Documentation update.
15737         * libc/e_hypot.c: Documentation update.
15738         * libc/e_remainder.c: Documentation update.
15739         * libc/er_lgamma.c: Documentation update.
15740         * libc/mathfp.tex: Documentation update.
15741         * libc/s_acos.c: Documentation update.
15742         * libc/s_atan.c: Documentation update.
15743         * libc/s_atan2.c: Documentation update.
15744         * libc/s_cosh.c: Documentation update.
15745         * libc/s_fmod.c: Documentation update.
15746         * libc/s_isnan.c: Documentation update.
15747         * libc/s_log10.c: Documentation update.
15748         * libc/s_pow.c: Documentation update.
15749         * libc/w_jn.c: Documentation update.
15750
15751 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
15752
15753         * aclocal.m4: Regenerate.
15754         * configure: Regenerate.
15755
15756 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15757
15758         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
15759         to return 1 if user specified return code is 0.
15760         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
15761
15762 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15763
15764         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
15765         to save the return address.  Fixed longjmp to return to the original
15766         calling address of setjmp and to return the user specified return code
15767         rather than default to 1.
15768         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
15769
15770 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15771
15772         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
15773
15774 1999-02-10  Nick Clifton  <nickc@cygnus.com>
15775
15776         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
15777         volatile so that its assignments will not be discarded.
15778
15779 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15780
15781         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
15782         be __STRICT_ANSI__ which is generated by compiler.
15783         * libc/include/ctype.h: Ditto.
15784         * libc/include/math.h: Ditto.
15785         * libc/include/stdio.h: Ditto.
15786         * libc/include/stdlib.h: Ditto.
15787         * libc/include/string.h: Ditto.
15788         * libc/include/sys/signal.h: Ditto.
15789
15790 1999-02-08  Nick Clifton  <nickc@cygnus.com>
15791
15792         * configure.host: Add support for StrongARM target.
15793
15794 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15795
15796         * libc/string/strncpy.c (strncpy): Removed redundant code
15797         that was copying bytes if data unaligned.
15798
15799 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
15800
15801         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
15802         mbstowcs.def, and wcstombs.def.
15803
15804 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
15805
15806         * libc/include/sys/errno.h: Add Cygwin errno.
15807         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
15808         is specified.
15809
15810 1999-01-29  Nick Clifton  <nickc@cygnus.com>
15811
15812         * libc/sys/arm/syscalls.c: Move C library functions into seperate
15813         file.
15814
15815         * libc/sys/arm/libcfunc.c: New file containing C library functions
15816         from syscalls.c
15817
15818         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
15819         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
15820
15821
15822 1999-01-27  Michael Meissner  <meissner@cygnus.com>
15823
15824         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
15825         type, and cut size in half so that the jmp_buf array is guaranteed
15826         to be aligned on a 64-bit boundary.
15827
15828 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15829
15830         * libc/string/strings.tex: Added information about
15831         strcasecmp and strncasecmp.
15832         * libc/stdlib/stdlib.tex: Added missing information
15833         about mblen, mbstowcs, and wcstombs.
15834         * libc/string/strchr.c: Changed how mask is built to use
15835         shift operators so register will be used instead of storage.
15836
15837 1999-01-22  DJ Delorie  <dj@cygnus.com>
15838
15839         * libc/include/stdlib.h: don't use dllimport if we're building
15840         newlib, since it's inside cygwin.dll
15841
15842 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
15843
15844         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
15845         _ctype_ under cygwin.
15846
15847 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
15848
15849         * include/stdlib.h: Fix typo from previous checkin.
15850
15851 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
15852
15853         * include/ctype.h: Use __declspec(dllimport) method for exporting
15854         variable from cygwin DLL.
15855         * include/time.h: Ditto.
15856         * sys/errno.h: Ditto.
15857         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
15858         * libc/locale/locale.c: Use __declspec(dllexport) method for
15859         exporting variable from cygwin DLL.
15860
15861 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
15862
15863         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
15864         access of bogus pointer will result in SIGSEGV.
15865
15866 1999-01-07  Nick Clifton  <nickc@cygnus.com>
15867
15868         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
15869         of an underscore prefix to function names.
15870
15871 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15872
15873         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
15874         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
15875
15876 1998-12-31  Michael Meissner  <meissner@cygnus.com>
15877
15878         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
15879         to `%' if not already defined.
15880
15881 1998-12-30  Michael Meissner  <meissner@cygnus.com>
15882
15883         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
15884         arguments const char *, not char *.
15885         * libc/include/stdio.h (_tempnam_r): Ditto.
15886
15887         * libc/include/sys/reent.h (struct _reent): The _sig_func type
15888         points to a function taking an integer, not void.
15889
15890 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
15891
15892         * configure.host: Add a define for Cygwin builds.
15893         * libc/include/ctype.h: Don't use dll imported variables in newlib.
15894
15895 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
15896
15897         * libc/include/ctype.h: Define _ctype_ as dll imported variable
15898         for use with Cygwin.
15899         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
15900         dll imported variables for use with Cygwin.
15901         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
15902         as a dll imported variable for Cygwin.
15903
15904 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
15905
15906         * libc/include/sys/unistd.h: Add proto for getpass.
15907
15908 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
15909
15910         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
15911         alphasort.
15912
15913 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
15914
15915         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
15916         not posix_path_list_p.
15917
15918 1998-12-15  Nick Clifton  <nickc@cygnus.com>
15919
15920         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
15921         a signed int.
15922
15923 1998-12-13  Nick Clifton  <nickc@cygnus.com>
15924
15925         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
15926
15927 1998-12-12  Nick Clifton  <nickc@cygnus.com>
15928
15929         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
15930         <msalter@cygnus.com>
15931         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
15932         * libc/machine/fr30/Makefile.in: Regenerated.
15933
15934 1998-12-11  Nick Clifton  <nickc@cygnus.com>
15935
15936         * configure.host: Remove use of libc/sys for FR30 port.
15937         * libc/sys/fr30: Remove directory (replaced by libgloss).
15938
15939 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
15940
15941         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
15942         * libc/string/strncat.c (ALIGNED): Ditto.
15943
15944 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
15945
15946         * libc/include/sys/time.h: include sys/types.h
15947
15948 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15949
15950         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
15951         comparison found when checking word at a time.
15952
15953 1998-12-04  Nick Clifton  <nickc@cygnus.com>
15954
15955         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
15956
15957 1998-12-03  Nick Clifton  <nickc@cygnus.com>
15958
15959         * libc/sys/fr30/syscalls.c (_times): New function stub.
15960
15961 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15962
15963         * configure.host (mach_add_setjmp): Replaced mach_add_objs
15964         with mach_add_setjmp flag which indicates if setjmp should
15965         be added to the machine directory objects.
15966         * acinclude.m4: Removed reference to mach_add_objs.
15967         * aclocal.m4: Regenerated.
15968         * Makefile.in: Regenerated.
15969         * configure: Regenerated.
15970         * libc/aclocal.m4: Regenerated.
15971         * libc/Makefile.in: Regenerated.
15972         * libc/configure: Regenerated.
15973         * libc/machine/aclocal.m4: Regenerated.
15974         * libc/machine/Makefile.in: Regenerated.
15975         * libc/machine/configure: Regenerated.
15976         * libc/machine/i386/aclocal.m4: Regenerated.
15977         * libc/machine/i386/Makefile.am: Altered to selectively add
15978         setjmp.S to the src files list.
15979         * libc/machine/i386/Makefile.in: Regenerated.
15980         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
15981         * libc/machine/i386/configure: Regenerated.
15982
15983 1998-12-02  Nick Clifton  <nickc@cygnus.com>
15984
15985         * libc/sys/fr30/crt0.s (_start): Fix function names.
15986
15987         * libc/machine/fr30: New directory
15988         * libc/machine/fr30/Makefile.am: New file.
15989         * libc/machine/fr30/Makefile.in: New generated file.
15990         * libc/machine/fr30/configure.in: New file.
15991         * libc/machine/fr30/configure: New generated file.
15992         * libc/machine/fr30/aclocal.m4: New generated file.
15993         * libc/sys/fr30/Makefile.am: New file.
15994         * libc/sys/fr30/Makefile.in: New generated file.
15995         * libc/sys/fr30/configure.in: New file.
15996         * libc/sys/fr30/configure: New generated file.
15997         * libc/sys/fr30/syscalls.c: New file.
15998
15999 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
16000
16001         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
16002
16003 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
16004
16005         * libc/time/strftime.c (strftime): Also handle %y for years before
16006         1900.
16007
16008 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
16009
16010         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
16011         UNIX convention.  Perform tolower on characters before comparing
16012         them rather than use toupper.
16013         * libc/string/strncasecmp.c (strncasecmp): Ditto.
16014
16015 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16016
16017         * configure.host: Added using i386 machine directory
16018         for all x86 cross-compiler and configuring
16019         which added object files to use via new "mach_add_objs" variable.
16020         * configure: Regenerated.
16021         * libc/configure: Regenerated.
16022         * libc/Makefile.in: Regenerated.
16023         * libc/aclocal.m4: Regenerated.
16024         * libc/ctype/Makefile.in: Regenerated.
16025         * libc/errno/Makefile.in: Regenerated.
16026         * libc/locale/Makefile.in: Regenerated.
16027         * libc/machine/Makefile.in: Regenerated.
16028         * libc/machine/aclocal.m4: Regenerated.
16029         * libc/machine/configure: Regenerated.
16030         * libc/posix/Makefile.in: Regenerated.
16031         * libc/reent/Makefile.in: Regenerated.
16032         * libc/signal/Makefile.in: Regenerated.
16033         * libc/stdio/Makefile.in: Regenerated.
16034         * libc/stdlib/Makefile.in: Regenerated.
16035         * libc/string/Makefile.in: Regenerated.
16036         * libc/string/memmove.c: Optimized code to use memcpy
16037         logic when performing a non-destructive copy.
16038         * libc/string/strncmp.c: Altered code to allow building
16039         optimized for size or speed.
16040         * libc/syscalls/Makefile.in: Regenerated.
16041         * libc/time/Makefile.in: Regenerated.
16042         * libc/unix/Makefile.in: Regenerated.
16043         * libc/machine/i386/Makefile.am: Added new files and reference
16044         to "mach_add_objs" to indicate optional object files.
16045         * libc/machine/i386/Makefile.in: Regenerated.
16046         * libc/machine/i386/aclocal.m4: Regenerated.
16047         * libc/machine/i386/configure: Regenerated.
16048         * libc/machine/i386/memchr.S: New file that implements
16049         function in Intel assembler.
16050         * libc/machine/i386/memcmp.S: ditto.
16051         * libc/machine/i386/memcpy.S: ditto.
16052         * libc/machine/i386/memmove.S: ditto.
16053         * libc/machine/i386/memset.S: ditto.
16054         * libc/machine/i386/strchr.S: ditto.
16055         * libc/machine/i386/strlen.S: ditto.
16056         * libc/machine/i386/f_atan2.S: New file that implements
16057         fast version of math function to be used by compiler when
16058         --ffast_math compile option is used.
16059         * libc/machine/i386/f_atan2f.S: ditto.
16060         * libc/machine/i386/f_exp.c: ditto.
16061         * libc/machine/i386/f_expf.c: ditto.
16062         * libc/machine/i386/f_frexp.S: ditto.
16063         * libc/machine/i386/f_frexpf.S: ditto.
16064         * libc/machine/i386/f_ldexp.S: ditto.
16065         * libc/machine/i386/f_ldexpf.S: ditto.
16066         * libc/machine/i386/f_log.S: ditto.
16067         * libc/machine/i386/f_logf.S: ditto.
16068         * libc/machine/i386/f_log10.S: ditto.
16069         * libc/machine/i386/f_log10f.S: ditto.
16070         * libc/machine/i386/f_math.h: New file.
16071         * libc/machine/i386/f_pow.c: ditto.
16072         * libc/machine/i386/f_powf.S: ditto.
16073         * libc/machine/i386/f_tan.S: ditto.
16074         * libc/machine/i386/f_tan.S: ditto.
16075         * libc/machine/i386/i386mach.h: New file.
16076
16077 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16078
16079         patch from Mumit Khan <khan@xraylith.wisc.edu>
16080         * libc/include/stdio.h (tempnam): Add prototype.
16081         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16082         (tempnam): Adhere to prototype.
16083
16084 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16085
16086         * Makefile.am: Add default for AR_FLAGS.
16087         * Makefile.in: Regenerate.
16088
16089 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16090
16091         * libc/include/time.h: move __cplusplus wrapper after includes
16092         * libc/include/sys/time.h: ditto.  If Cygwin, include
16093         sys/select.h.
16094         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16095
16096 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16097
16098         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16099
16100 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16101
16102         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16103         abnormnal end-of-crt0 marker.
16104
16105 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16106
16107         * libc/sys/fr30/crt0.s: New file/directory.
16108         * libc/include/machine/setjmp.h: Add FR30 target.
16109         * libc/include/machine/ieeefp.h: Add FR30 target.
16110         * configure.host: Add FR30 target.
16111
16112 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16113
16114         * libm/math: Files that are duplicated in common directory removed.
16115         * libm/math/fdlibm.h: Removed.
16116         * libm/math/s_cbrt.c: Removed.
16117         * libm/math/s_copysign.c: Removed.
16118         * libm/math/s_expm1.c: Removed.
16119         * libm/math/s_finite.c: Removed.
16120         * libm/math/s_ilogb.c: Removed.
16121         * libm/math/s_infinity.c: Removed.
16122         * libm/math/s_lib_ver.c: Removed.
16123         * libm/math/s_log1p.c: Removed.
16124         * libm/math/s_logb.c: Removed.
16125         * libm/math/s_matherr.c: Removed.
16126         * libm/math/s_modf.c: Removed.
16127         * libm/math/s_nan.c: Removed.
16128         * libm/math/s_nextafter.c: Removed.
16129         * libm/math/s_rint.c: Removed.
16130         * libm/math/s_scalbn.c: Removed.
16131         * libm/math/sf_cbrt.c: Removed.
16132         * libm/math/sf_copysign.c: Removed.
16133         * libm/math/sf_expm1.c: Removed.
16134         * libm/math/sf_finite.c: Removed.
16135         * libm/math/sf_ilogb.c: Removed.
16136         * libm/math/sf_infinity.c: Removed.
16137         * libm/math/sf_log1p.c: Removed.
16138         * libm/math/sf_logb.c: Removed.
16139         * libm/math/sf_modf.c: Removed.
16140         * libm/math/sf_nan.c: Removed.
16141         * libm/math/sf_nextafter.c: Removed.
16142         * libm/math/sf_rint.c: Removed.
16143         * libm/math/sf_scalbn.c: Removed.
16144         * libm/math/Makefile.am: Removed references to deleted files (above).
16145         * libm/math/Makefile.in: Regenerated.
16146         * libm/Makefile.am: Added common directory to math.
16147         * libm/Makefile.in: Regenerated.
16148
16149 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16150
16151         * libm/mathfp: Add non-ANSI functions.
16152         * libm/mathfp/e_acosh.c acosh(): New file.
16153         * libm/mathfp/e_atanh.c atanh(): New file.
16154         * libm/mathfp/e_hypot.c hypot(): New file.
16155         * libm/mathfp/e_j0.c j0(): New file.
16156         * libm/mathfp/e_j1.c j1(): New file.
16157         * libm/mathfp/e_remainder.c remainder(): New file.
16158         * libm/mathfp/e_scalb.c scalb(): New file.
16159         * libm/mathfp/ef_acosh.c acoshf(): New file.
16160         * libm/mathfp/ef_atanh.c atanhf(): New file.
16161         * libm/mathfp/ef_hypot.c hypotf(): New file.
16162         * libm/mathfp/ef_j0.c j0f(): New file.
16163         * libm/mathfp/ef_j1.c j1f(): New file.
16164         * libm/mathfp/ef_remainder.c remainderf(): New file.
16165         * libm/mathfp/ef_scalb.c scalbf(): New file.
16166         * libm/mathfp/er_gamma.c gamma_r: New file.
16167         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16168         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16169         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16170         * libm/mathfp/w_cabs.c cabs(): New file.
16171         * libm/mathfp/w_drem.c drem(): New file.
16172         * libm/mathfp/w_jn.c jn(): New file.
16173         * libm/mathfp/wf_cabs.c cabsf(): New file.
16174         * libm/mathfp/wf_drem.c dremf(): New file.
16175         * libm/mathfp/wf_jn.c jnf(): New file.
16176
16177 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16178
16179         * libc/sys/cygwin32: remove directory and contents
16180         * libc/sys/cygwin: and add back, losing the "32".
16181         * configure.host: check for cygwin* instead of cygwin32.
16182         * acinclude.m4: ditto.
16183         * aclocal.m4: regenerate with aclocal
16184         * configure: regenerate with autoconf
16185
16186 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16187
16188         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16189         for length
16190
16191 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16192
16193         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16194         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16195         to make rand/srand, strtok, asctime, localtime, w_gamma,
16196         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16197         time.h to bring in struct tm definition.
16198         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16199         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16200         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16201         instead of static variable.
16202         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16203         struct reent instead of static variable.
16204         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16205         struct reent instead of static variable.
16206         * libm/math/Makefile.am: Removed s_signgam.o.
16207         * libm/math/Makefile.in: Regenerated.
16208         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16209         struct reent instead of global variable 'signgam'.
16210         * libm/math/w_lgamma.c (lgamma): Likewise.
16211         * libm/math/wf_gamma.c (gammaf): Likewise.
16212         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16213         * libm/math/s_signgam.c: Removed.
16214         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16215         to be const.
16216         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16217         to be const.
16218         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16219         libc/include/reent.h.
16220         * libc/reent/Makefile.in: Regenerated.
16221         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16222         to be const.
16223         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16224         'JIS_action_table' to be const.
16225         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16226
16227 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16228
16229         * acinclude.m4:  $with_target_subdir should default to '.'
16230         or confusion results when configuring in same directory as sources.
16231         * Regenerate all aclocal.m4 and configure files.
16232
16233 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16234
16235         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16236         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16237         for platforms where sizeof(size_t) < sizeof(long) via
16238         SIZE_T_SMALLER_THAN_LONG macro.
16239
16240 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16241
16242         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16243         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16244         which sets _CLOCKS_PER_SEC_ for selected machines.
16245         * libc/include/machine/time.h: New file.
16246
16247 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16248
16249         * libc/syscalls/sysexecve.c: New file.
16250         * libc/syscalls/sysgettod.c: New file.
16251         * libc/syscalls/systimes.c: New file.
16252         * libc/syscalls/Makefile.am: Added new objects.
16253         * libc/syscalls/Makefile.in: Regenerated.
16254         * libc/include/_syslist.h (_execve): Moved define in file.
16255         * libc/include/reent.h:  Added _execve_r declaration.
16256         * libc/Makefile.in: Regenerated.
16257         * libc/ctype/Makefile.in: Regenerated.
16258         * libc/errno/Makefile.in: Regenerated.
16259         * libc/locale/Makefile.in: Regenerated.
16260         * libc/machine/Makefile.in: Regenerated.
16261         * libc/misc/Makefile.in: Regenerated.
16262         * libc/posix/Makefile.in: Regenerated.
16263         * libc/reent/Makefile.in: Regenerated.
16264         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16265         * libc/signal/Makefile.in: Regenerated.
16266         * libc/stdio/Makefile.in: Regenerated.
16267         * libc/time/Makefile.in: Regenerated.
16268         * libc/unix/Makefile.in: Regenerated.
16269         * libm/mathfp/Makefile.in: Regenerated.
16270
16271 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16272
16273         * libc/string/Makefile.in: Regenerated.
16274         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16275         * libc/string/memcpy.c (memcpy): Ditto.
16276         * libc/string/memcmp.c (memcmp): Ditto.
16277         * libc/string/memset.c (memset): Ditto.
16278         * libc/string/strchr.c (strchr): Ditto.
16279         * libc/string/strcmp.c (strcmp): Ditto.
16280         * libc/string/strcpy.c (strcpy): Ditto.
16281         * libc/string/strlen.c (strlen): Ditto.
16282
16283 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16284
16285         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16286         to generate aclocal.m4.
16287         * libm/Makefile.in: Regenerated.
16288         * libm/aclocal.m4: Regenerated.
16289         * libm/configure: Regenerated.
16290         * libm/math/Makefile.in: Regenerated.
16291         * libm/mathfp/Makefile.in: Regenerated.
16292
16293 1998-09-25  Mark Salter  <msalter@cygnus.com>
16294
16295         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16296         by adding leading and trailing underscores to symbol names.
16297
16298 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16299
16300         * Makefile.in: Add default for AR_FLAGS.
16301
16302 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
16303
16304         patch from ian@airs.com (Ian Taylor):
16305         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
16306         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
16307         is needed for detecting the build machine.  Required for
16308         cygwin native builds.
16309
16310         * Regenerate all aclocal.m4 and configure files.
16311
16312 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
16313
16314         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
16315         used to start with LC.
16316
16317 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16318
16319         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
16320         (longjmp): Likewise.
16321
16322 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16323
16324         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
16325         the test for small number of bytes.
16326
16327 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16328
16329         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
16330         math library that uses floating point algorithms instead of the old
16331         libm.
16332         * Makefile.in: Regenerate with automake version 1.3b.
16333         * configure: Rebuild.
16334         * libm/Makefile.in: Regenerate with automake version 1.3b.
16335         * libm/aclocal.m4: Regenerate.
16336         * libm/configure: Rebuild.
16337         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
16338         * libm/acinclude.m4: Define macros for configure.in.
16339         * libm/config.h.in: Generate.
16340         * libm/mathfp/Makefile.am: New file.
16341         * libm/mathfp/Makefile.in: Generate.
16342         * libm/mathfp/s_acos.c (acos): New file.
16343         * libm/mathfp/s_asin.c (asin): New file.
16344         * libm/mathfp/s_asine.c (asine): New file.
16345         * libm/mathfp/s_atan.c (atan): New file.
16346         * libm/mathfp/s_atan2.c (atan2): New file.
16347         * libm/mathfp/s_atangent.c (atangent): New file.
16348         * libm/mathfp/s_ceil.c (ceil): New file.
16349         * libm/mathfp/s_copysign.c (copysign): New file.
16350         * libm/mathfp/s_cos.c (cos): New file.
16351         * libm/mathfp/s_cosh.c (cosh): New file.
16352         * libm/mathfp/s_exp.c (exp): New file.
16353         * libm/mathfp/s_fabs.c (fabs): New file.
16354         * libm/mathfp/s_finite.c (finite): New file.
16355         * libm/mathfp/s_floor.c (floor): New file.
16356         * libm/mathfp/s_fmod.c (fmod): New file.
16357         * libm/mathfp/s_frexp.c (frexp): New file.
16358         * libm/mathfp/s_infconst.c: New file.
16359         * libm/mathfp/s_isinf (isinf).c: New file.
16360         * libm/mathfp/s_isnan.c (isnan): New file.
16361         * libm/mathfp/s_ispos.c (ispos): New file.
16362         * libm/mathfp/s_ldexp.c (ldexp): New file.
16363         * libm/mathfp/s_log.c (log): New file.
16364         * libm/mathfp/s_log10.c (log10): New file.
16365         * libm/mathfp/s_logarithm.c (logarithm): New file.
16366         * libm/mathfp/s_mathcnst.c: New file.
16367         * libm/mathfp/s_modf (modf).c: New file.
16368         * libm/mathfp/s_numtest.c (numtest): New file.
16369         * libm/mathfp/s_pow.c (pow): New file.
16370         * libm/mathfp/s_scalbn.c (scalbn): New file.
16371         * libm/mathfp/s_sin (sin).c: New file.
16372         * libm/mathfp/s_sine.c (sine): New file.
16373         * libm/mathfp/s_sineh.c (sineh): New file.
16374         * libm/mathfp/s_sinf.c (sinf): New file.
16375         * libm/mathfp/s_sinh.c (sinh): New file.
16376         * libm/mathfp/s_sqrt.c (sqrt): New file.
16377         * libm/mathfp/s_tan.c (tan): New file.
16378         * libm/mathfp/s_tanh.c (tanh): New file.
16379         * libm/mathfp/sf_acos.c (acosf): New file.
16380         * libm/mathfp/sf_asin.c (asinf): New file.
16381         * libm/mathfp/sf_asine.c (asinef): New file.
16382         * libm/mathfp/sf_atan.c (atanf): New file.
16383         * libm/mathfp/sf_atan2.c (atan2f): New file.
16384         * libm/mathfp/sf_atangent.c (atangent): New file.
16385         * libm/mathfp/sf_ceil.c (ceilf): New file.
16386         * libm/mathfp/sf_copysign.c (copysignf): New file.
16387         * libm/mathfp/sf_cos.c (cosf): New file.
16388         * libm/mathfp/sf_cosh.c (coshf): New file.
16389         * libm/mathfp/sf_exp.c (expf): New file.
16390         * libm/mathfp/sf_fabs.c (fabsf): New file.
16391         * libm/mathfp/sf_finite.c (finitef): New file.
16392         * libm/mathfp/sf_floor.c (floorf): New file.
16393         * libm/mathfp/sf_fmod.c (fmodf): New file.
16394         * libm/mathfp/sf_frexp.c (frexpf): New file.
16395         * libm/mathfp/sf_isinf.c (isinff): New file.
16396         * libm/mathfp/sf_isnan.c (isnanf): New file.
16397         * libm/mathfp/sf_ispos.c (isposf): New file.
16398         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
16399         * libm/mathfp/sf_log.c (logf): New file.
16400         * libm/mathfp/sf_log10.c (log10f): New file.
16401         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
16402         * libm/mathfp/sf_modf.c (modff): New file.
16403         * libm/mathfp/sf_numtest.c (numtestf): New file.
16404         * libm/mathfp/sf_pow.c (powf): New file.
16405         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
16406         * libm/mathfp/sf_sin.c (sinf): New file.
16407         * libm/mathfp/sf_sine.c (sinef): New file.
16408         * libm/mathfp/sf_sineh.c (sinehf): New file.
16409         * libm/mathfp/sf_sinh.c (sinhf): New file.
16410         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
16411         * libm/mathfp/sf_tan.c (tanf): New file.
16412         * libm/mathfp/sf_tanh.c (tanhf): New file.
16413         * libm/mathfp/zmath.h: New file.
16414
16415 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16416
16417         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
16418         exit if it has been overwritten by pre-fetching in delay slot.
16419
16420 1998-09-01  Michael Meissner  <meissner@cygnus.com>
16421
16422         * Makefile.am (tooldir): Add in host_alias, so that multilib
16423         libraries are installed in the directory the compiler looks in.
16424         * Makefile.in: Regenerate.
16425
16426         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
16427
16428 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16429
16430         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
16431         ahead of test for number of bytes being moved.
16432
16433 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
16434
16435         * libc/include/sys/unistd.h: Nothing special needed for
16436         _exit under cygwin.
16437
16438 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
16439
16440         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
16441         conform to user label naming conventions.
16442
16443 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
16444
16445         * libc/sys/cygwin32/sys/utime.h: variable names in
16446         protos should start with two leading underscores
16447         * libc/include/string.h: ditto
16448         * libc/include/sys/signal.h: ditto
16449         * libc/include/sys/stat.h: ditto
16450         * libc/include/sys/time.h: ditto
16451         * libc/include/sys/unistd.h: ditto
16452         * libc/include/ctype.h: ditto
16453         * libc/include/stdlib.h: ditto
16454         * libc/include/sys/reent.h: struct _atexit function ptr takes a
16455         void, same with _sig_func.
16456
16457 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16458
16459         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
16460         for MB_CAPABLE to reduce code size when newlib is not configured
16461         with --enable-newlib-mb.
16462         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
16463         mbtowc_r.o to minimize size.
16464         * libc/stdlib/Makefile.in: Rebuild.
16465
16466 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
16467
16468         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
16469         to -DREENT.
16470         * libc/sys/sparc64/Makefile.in: Rebuild.
16471
16472 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
16473
16474         * Makefile.am (MAKEOVERRIDES): Define.
16475         * Makefile.in: Rebuild.
16476
16477 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
16478
16479         * libc/sys/sparc64/sys/stat.h (stat): Add const.
16480
16481 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
16482
16483         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
16484         newlib_cflags when looking for targ-include.
16485         * */aclocal.m4, */configure: Rebuild.
16486
16487 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
16488
16489         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
16490         to "_end".
16491
16492 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
16493
16494         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
16495         on SPARCs with little-endian data.
16496         * libc/include/machine/ieeefp.h: Ditto.
16497
16498 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
16499
16500         * acinclude.m4: Handle a relative srcdir correctly when setting
16501         newlib_cflags.
16502         * */aclocal.m4, */configure: Rebuild.
16503
16504 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16505
16506         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
16507         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
16508         * libm/math/wrf_gamma.c (gammaf_r): ditto
16509         * libm/math/wr_lgamma.c (lgamma_r): ditto
16510         * libm/math/wr_gamma.c (gamma_r): ditto
16511         * libm/math/wf_sqrt.c (sqrtf): ditto
16512         * libm/math/wf_sinh.c (sinhf): ditto
16513         * libm/math/wf_scalb.c (scalbf): ditto
16514         * libm/math/wf_remainder.c (remainderf): ditto
16515         * libm/math/wf_pow.c (powf): ditto
16516         * libm/math/wf_log10.c (log10f): ditto
16517         * libm/math/wf_log.c (logf): ditto
16518         * libm/math/wf_lgamma.c (lgammaf): ditto
16519         * libm/math/wf_jn.c (jnf, ynf): ditto
16520         * libm/math/wf_j1.c (j1f, y1f): ditto
16521         * libm/math/wf_j0.c (j0f, y0f): ditto
16522         * libm/math/wf_hypot.c (hypotf): ditto
16523         * libm/math/wf_gamma.c (gammaf): ditto
16524         * libm/math/wf_fmod.c (fmodf): ditto
16525         * libm/math/wf_exp.c (expf): ditto
16526         * libm/math/wf_cosh.c (coshf): ditto
16527         * libm/math/wf_atanh.c (atanhf): ditto
16528         * libm/math/wf_atan2f.c (atan2f): ditto
16529         * libm/math/wf_asin.c (asinf): ditto
16530         * libm/math/wf_acosh.c (acoshf): ditto
16531         * libm/math/wf_acos.c (acosf): ditto
16532         * libm/math/w_sqrt.c (sqrt): ditto
16533         * libm/math/w_sinh.c (sinh): ditto
16534         * libm/math/w_scalb.c (scalb): ditto
16535         * libm/math/w_remainder.c (remainder): ditto
16536         * libm/math/w_pow.c (pow): ditto
16537         * libm/math/w_log10.c (log10): ditto
16538         * libm/math/w_log.c (log): ditto
16539         * libm/math/w_lgamma.c (lgamma): ditto
16540         * libm/math/w_jn.c (jn, yn): ditto
16541         * libm/math/w_j1.c (j1, y1): ditto
16542         * libm/math/w_j0.c (j0, y0): ditto
16543         * libm/math/w_hypot.c (hypot): ditto
16544         * libm/math/w_gamma.c (gamma): ditto
16545         * libm/math/w_fmod.c (fmod): ditto
16546         * libm/math/w_exp.c (exp): ditto
16547         * libm/math/w_cosh.c (cosh): ditto
16548         * libm/math/w_atanh.c (atanh): ditto
16549         * libm/math/w_atan2f.c (atan2): ditto
16550         * libm/math/w_asin.c (asin): ditto
16551         * libm/math/w_acosh.c (acosh): ditto
16552         * libm/math/w_acos.c (acos): ditto
16553
16554 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
16555
16556         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
16557         (fsrc): Add wf_cabs.c and wf_drem.c.
16558         * libm/math/Makefile.in: Rebuild.
16559
16560         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
16561         unused directory variables.  Remove duplicate CFLAGS.
16562         * Makefile.in: Rebuild.
16563
16564         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
16565         with $(CC_FOR_BUILD).
16566         (makedoc.o): Likewise.
16567         * doc/Makefile.in: Rebuild.
16568
16569         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
16570         force a definition of COMPILE.
16571         (libfoo_a_SOURCES): Define.
16572         * libc/sys/cygwin32/Makefile.in: Rebuild.
16573         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
16574         force a definition of COMPILE.
16575         (libfoo_a_SOURCES): Define.
16576         * libc/sys/tic80/Makefile.in: Rebuild.
16577
16578 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
16579
16580         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
16581         flag.
16582
16583 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
16584
16585         * Build using autoconf and automake.  Added many Makefile.am and
16586         configure.in files, plus generated files.  Old configure.in files
16587         and all old Makefile.in files completely replaced.  Removed
16588         host/any.  Added acinclude.m4 and configure.host.
16589
16590 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
16591
16592         * libc/stdio/vfprintf.c: enable long long support, sometimes.
16593         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
16594
16595 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16596
16597         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
16598         * libc/machine/sh/Makefile.in: Add rules for new files.
16599
16600 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16601
16602         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
16603         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
16604         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
16605
16606 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
16607
16608         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
16609         code is ignored.
16610
16611 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16612
16613         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
16614         internal static buffer when s is NULL, as prescribed by ANSI.
16615
16616 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
16617
16618         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
16619         removed.
16620         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
16621         libc/stdlib will be used for h8300hms.
16622
16623 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16624
16625         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
16626         version that can be built either for speed or size.
16627         * libc/machine/mn10300/memset.S (_memset): ditto
16628         * libc/machine/mn10300/memchr.S (_memchr): ditto
16629         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
16630         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
16631         * libc/machine/mn10300/strchr.S (_strchr): ditto
16632         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
16633         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
16634         * libc/machine/mn10300/Makefile.in: Added entries for
16635         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
16636         strcmp.o, strcpy.o, and strlen.o.
16637
16638 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
16639
16640         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
16641         been replaced with libgloss/mn10200.
16642
16643 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
16644
16645         * libc/string/strchr.c (strchr): Make s a constant pointer to
16646         avoid warning.
16647
16648 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
16649
16650         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
16651         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
16652         board SWIs instead of Demon board SWIs).
16653
16654 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
16655
16656         * libc/string/strncat.c (strncat):  Make -Os act the same as
16657         PREFER_SIZE_OVER_SPEED being defined.
16658
16659 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
16660
16661         * libc/string/memchr.c (memchr): Make -Os act the same as
16662         PREFER_SIZE_OVER_SPEED being defined.
16663         * libc/string/memcmp.c (memcmp): Ditto.
16664         * libc/string/memcpy.c (memcpy): Ditto.
16665         * libc/string/memset.c (memset): Ditto.
16666         * libc/string/strcat.c (strcat): Ditto.
16667         * libc/string/strchr.c (strchr): Ditto.
16668         * libc/string/strcmp.c (strcmp): Ditto.
16669         * libc/string/strcpy.c (strcpy): Ditto.
16670         * libc/string/strlen.c (strlen): Ditto.
16671         * libc/string/strncat.c (strncat): Ditto.
16672         * libc/string/strncmp.c (strncmp): Ditto.
16673         * libc/string/strncpy.c (strncpy): Ditto.
16674
16675 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
16676
16677         * libc/include/sys/itimer.h: remove
16678         * libc/include/sys/time.h: itimer stuff should be here
16679
16680 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16681
16682         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
16683         bit instead of comparing to 0 so -0.0 can be printed correctly.
16684
16685 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16686
16687         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
16688
16689 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
16690
16691         * libc/include/sys/unistd.h: fix sync() proto
16692         * libc/include/sys/fcntl.h: remove _close which is already
16693         defined in unistd.h.
16694         * libc/include/sys/time.h: add getitimer proto
16695
16696 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
16697
16698         * libc/string/strchr.c: convert arg to unsigned char
16699         * libc/include/stdlib.h: add protos for random, srandom
16700         * libc/include/sys/stat.h: add lstat proto
16701         * libc/include/sys/time.h: add setitimer proto
16702         * libc/include/sys/unistd.h: add readlink, symlink protos
16703         * libc/include/process.h: instead of including windows.h and using
16704         HANDLEs in sexec protos, just use void *s.  Need to include
16705         sys/types.h.
16706
16707 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
16708
16709         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
16710
16711 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
16712
16713         * libc/include/process.h: add secure exec protos
16714
16715 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
16716
16717         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
16718         which are accessed as both doubles and integers.
16719         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
16720         * libc/stdlib/strtod.c (_strtod_r): Likewise.
16721         * libc/stdlib/mprec.h: Add "union double_union" and change
16722         word0/word1 macros to use it.
16723
16724 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
16725
16726         * libc/include/sys/signal.h: add __cplusplus wrapper
16727
16728 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
16729
16730         * libc/include/sys/utime.h: new generic file that gets replaced by
16731         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
16732         function.
16733         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
16734         * libc/include/time.h: remove duplicate utime proto
16735         * libc/include/utime.h: add comment
16736
16737 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
16738
16739         * libc/include/sys/time.h: Add missing include to
16740         allow use of _EXFUN.  Remove times function that is
16741         already defined in times.h.
16742
16743 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
16744
16745         * libc/include/time.h: Fix typo in tzset.
16746
16747 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
16748
16749         * libc/include/sys/time.h: add missing Cygwin32 function protos
16750         * libc/include/sys/unistd.h: ditto
16751         * libc/include/time.h: ditto
16752
16753 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
16754
16755         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
16756         FIXME.
16757         * libc/include/sys/types.h: add a new __MS_types__ section
16758         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
16759         __BIT_TYPES_DEFINED__.
16760
16761 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
16762
16763         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
16764         since it overrides the one in libc/include/sys.  Also, start
16765         including types.h.
16766
16767 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
16768
16769         * libm/math/Makefile.in: add s_signgam.o to obj list
16770
16771 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16772
16773         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
16774
16775 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
16776
16777         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
16778         so don't use defines.
16779
16780 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
16781
16782         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
16783
16784 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
16785
16786         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
16787         _current_locale as default locale.
16788
16789 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
16790
16791         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
16792         insufficient space in a chunk.
16793
16794 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16795
16796         * configure.in (links): Added check for --enable-newlib-mb configure
16797         option which defines the MB_CAPABLE macro.
16798         * libc/locale/locale.c (_setlocale_r): Added support for setting
16799         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
16800         defined.
16801         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
16802         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
16803         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
16804         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
16805         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
16806         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
16807         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
16808         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
16809         * libc/stdlib/Makefile.in: Added new multibyte
16810         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
16811         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
16812         _mbstowcs_r(), and _wcstombs_r().
16813         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
16814         for JIS, SJIS, and EUC-JP characters.
16815         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
16816         MB_CAPABLE defined.
16817         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
16818         MB_CAPABLE defined.
16819         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
16820         MB_CAPABLE defined.
16821         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
16822         if MB_CAPABLE defined.
16823         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
16824         if MB_CAPABLE defined.
16825         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
16826         to the format string processing when MB_CAPABLE.
16827         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
16828         call _mbtowc_r().
16829
16830 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
16831
16832         The following modifications are courtesy of Anthony Thompson,
16833         athompson@cambridge.arm.com:
16834         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
16835         boith RDI and RDP monitors.
16836         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
16837         RDI and RDP monitors.
16838
16839 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16840
16841         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
16842         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
16843         (_swiopen): Fixed open flags to treat write with append as just append.
16844         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
16845         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
16846
16847 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16848
16849         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
16850         When needing to transfer an initial 2-byte-word, store as
16851         two single bytes.
16852
16853 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16854
16855         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
16856         __SH3E__ .
16857         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
16858         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
16859
16860 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
16861
16862         * configure.in (target_cflags): If --enable-target-optspace, use
16863         -Os to compile newlib rather than -O2.  Default to using -Os for
16864         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
16865         used.
16866
16867 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
16868
16869         * libc/include/machine/setjmp.h: change sigsetjmp and
16870         siglongjmp definitions to use an array instead of a struct
16871         for __CYGWIN32__
16872
16873 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
16874
16875         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
16876
16877 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
16878
16879         * libc/string/strxfrm.c: fix to get correct return value
16880
16881 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
16882
16883         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
16884         builds.  Make mode change labels global so that they will be seen
16885         by the debugger.
16886
16887 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
16888
16889         * configure.in (links): Do not use ARM debiugging protocols for PE
16890         builds.
16891
16892         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
16893         message.
16894
16895 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16896
16897         * libc/stdio/findfp.c (__sinit): Made stdout default to
16898         line buffered mode as defined by ANSI.
16899
16900 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
16901
16902         * libc/include/sys/itimer.h: New file.
16903
16904         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
16905
16906 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16907
16908         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
16909         failure.
16910
16911 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
16912
16913         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
16914         insns.
16915
16916 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
16917
16918         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
16919
16920 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
16921
16922         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
16923         support.
16924
16925         * libc/include/machine/setjmp.h: Add D30V support.
16926
16927         * configure.in (d30v-*): Add d30v machine directory.
16928
16929 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
16930
16931         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
16932         been replaced with libgloss/mn10300.
16933
16934 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
16935
16936         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
16937         it is no longer needed.
16938
16939 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
16940
16941         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
16942
16943 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
16944
16945         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
16946         the file when O_APPEND is set, wherever the EOF happens to be at
16947         that time.
16948
16949 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
16950
16951         patch from cgf@bbc.com (Christopher Faylor):
16952         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
16953         convention of closing fp prior to attempting to open the file
16954         argument.  This allows correct operation when reopening
16955         stdin/stdout/stderr.  Replaces last freopen.c patch.
16956
16957 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
16958
16959         patch from cgf@bbc.com (Christopher Faylor):
16960         * libc/stdio/freopen.c: freopen was not preserving the fd
16961         of the stream being operated on.  This confuses programs that
16962         expect that the handles for stdout and stderr will be 1 and 2.
16963
16964 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
16965
16966         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
16967
16968 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
16969
16970         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
16971
16972 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16973
16974         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
16975         altered to not use a branch.  Also added hint that last
16976         bclr in longjmp will likely result in branch.
16977
16978
16979 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
16980
16981         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
16982
16983 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
16984
16985         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
16986         v850 builds.
16987
16988         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
16989
16990 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16991
16992         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
16993         that loads FR14 to specify offset of 8 rather than 4
16994         so it loads from offset 96 (where setjmp stored it).
16995
16996 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16997
16998         * libc/machine/sh/memcpy.S: (_memcpy): Update to
16999         latest version supplied by customer.
17000         * libc/machine/sh/memset.S (_memset): Ditto.
17001
17002 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
17003
17004         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17005         PR14730).
17006
17007 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
17008
17009         * libc/include/string.h: remove redefinition of ffs
17010
17011 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
17012
17013         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
17014         defined
17015
17016 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17017
17018         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17019         TI Libraries to link to libc.a
17020
17021 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
17022
17023         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
17024         * libc/include/sys/stat.h (_{,f}stat): Ditto.
17025         * libc/include/sys/wait.h (_wait): Ditto.
17026         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
17027         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
17028
17029 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
17030
17031         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
17032         minded stabs so function name shows up when running the simulator
17033         with -t.
17034         * libc/sys/d10v/{crt0,trap}.S: Ditto.
17035
17036 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
17037
17038         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
17039         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
17040         Use R5 where we used to use R3.
17041
17042 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
17043
17044         * libc/stdlib/getopt.c (getopt): replaced __progname
17045         with nargv[0] to improve portability to imbedded systems.
17046
17047 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
17048
17049         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
17050         patch supplied by Tont.Thompson@arm.com to fix the creation of the
17051         stdout file.
17052
17053 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
17054
17055         * libc/stdio/tmpnam.c (worker): Generate a different file name
17056         each time.
17057
17058         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
17059         fails, try an execlp for sh.
17060
17061         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
17062         option for the winsup include directory.
17063
17064 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
17065
17066         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
17067         debugging interface from Tony.Thompson@arm.com.
17068
17069         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
17070         * libc/sys/arm/swi.h: ditto.
17071
17072 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17073
17074         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17075         DIR struct used for readdir hashes.
17076
17077 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17078
17079         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17080
17081 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17082
17083         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17084         integer targets.
17085
17086 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17087
17088         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17089         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17090         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17091         (__malloc_copy): Declare.
17092
17093 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17094
17095         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17096         <sys/config.h>.
17097         (POINTER_UINT): Define.
17098         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17099         (MALLOC_ALIGNMENT): Don't define if already defined.
17100         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17101         long.
17102
17103 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17104
17105         * libc/string/memset.c (memset): Fiddle with code so that the long
17106         value being stored is not a stack value.  Unroll storing longs 4
17107         times.
17108
17109 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17110
17111         * Reduce code size for libm modules.
17112         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17113         and simply move code into sqrt.
17114         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17115         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17116         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17117         * libm/math/wr_gamma.c (gamma_r): Likewise.
17118         * libm/math/wf_sinh.c (sinfh): Likewise.
17119         * libm/math/w_sinh.c (sinh): Likewise.
17120         * libm/math/wf_scalb.c (scalbf): Likewise.
17121         * libm/math/w_scalb.c (scalb): Likewise.
17122         * libm/math/wf_remainder.c (remainderf): Likewise.
17123         * libm/math/w_remainder.c (remainder): Likewise.
17124         * libm/math/wf_pow.c (powf): Likewise.
17125         * libm/math/w_pow.c (pow): Likewise.
17126         * libm/math/wf_log10.c (log10f): Likewise.
17127         * libm/math/w_log10.c (log10): Likewise.
17128         * libm/math/wf_log.c (logf): Likewise.
17129         * libm/math/w_log.c (log): Likewise.
17130         * libm/math/w_lgamma.c (lgamma): Likewise.
17131         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17132         * libm/math/wf_jn.c (jnf): Likewise.
17133         * libm/math/w_jn.c (jn): Likewise.
17134         * libm/math/wf_j1.c (j1f): Likewise.
17135         * libm/math/w_j1.c (j1): Likewise.
17136         * libm/math/wf_j0.c (j0f): Likewise.
17137         * libm/math/w_j0.c (j0): Likewise.
17138         * libm/math/wf_hypot.c (hypotf): Likewise.
17139         * libm/math/w_hypot.c (hypot): Likewise.
17140         * libm/math/wf_gamma.c (gammaf): Likewise.
17141         * libm/math/w_gamma.c (gamma): Likewise.
17142         * libm/math/wf_fmod.c (fmodf): Likewise.
17143         * libm/math/w_fmod.c (fmod): Likewise.
17144         * libm/math/wf_exp.c (expf): Likewise.
17145         * libm/math/w_exp.c (exp): Likewise.
17146         * libm/math/wf_cosh.c (coshf): Likewise.
17147         * libm/math/w_cosh.c (cosh): Likewise.
17148         * libm/math/wf_atanh.c (atanhf): Likewise.
17149         * libm/math/w_atanh.c (atanh): Likewise.
17150         * libm/math/wf_atan2.c (atan2f): Likewise.
17151         * libm/math/w_atan2.c (atan2): Likewise.
17152         * libm/math/wf_asin.c (asinf): Likewise.
17153         * libm/math/w_asin.c (asin): Likewise.
17154         * libm/math/wf_acosh.c (acoshf): Likewise.
17155         * libm/math/w_acosh.c (acosh): Likewise.
17156         * libm/math/wf_acos.c (asocf): Likewise.
17157         * libm/math/w_acos.c (acos): Likewise.
17158         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17159         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17160         for embedded systems.
17161
17162 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17163
17164         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17165         Lea in case of a foreign sbrk.
17166
17167 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17168
17169         Incorporate Doug Lea's malloc:
17170         * libc/stdlib/mallocr.c: Completely replaced.
17171         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17172         (realloc): Remove.
17173         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17174         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17175         mallopt.
17176         (mallinfo, malloc_stats, mallopt): New functions.
17177         (_mstats_r): Just call _malloc_stats_r.
17178         * libc/stdlib/malign.c: New file.
17179         * libc/stdlib/mlock.c: New file.
17180         * libc/stdlib/msize.c: New file.
17181         * libc/stdlib/mtrim.c: New file.
17182         * libc/stdlib/realloc.c: New file.
17183         * libc/stdlib/valloc.c: New file.
17184         * libc/stdlib/malloc.h: Remove.
17185         * libc/stdlib/callocr.c: Remove.
17186         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17187         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17188         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17189         reallocr.o, valloc.o, vallocr.o.
17190         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17191         (MALLOC_CFLAGS): New variable.
17192         (mallocr.o): New target, build from mallocr.c.
17193         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17194         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17195         (msizer.o, malloptr.o): Likewise.
17196         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17197         (valloc.o): New target.
17198         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17199         * libc/include/malloc.h: Declare struct mallinfo, and new
17200         routines.
17201         * libc/include/stdlib.h (cfree): Correct declaration.
17202
17203 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17204
17205         * libc/include/machine/setjmp.h: Add support for Thumb target.
17206
17207         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17208
17209         * configure.in (links): Add support for Thumb target.
17210
17211 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17212
17213         * libc/sys/arm/setjmp.S: Updated with version from branch.
17214
17215 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17216
17217         * libc/include/stdio.h: add POSIX-required define L_ctermid
17218         for ctermid
17219
17220 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17221
17222         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17223         addition to MISSING_SYSCALL_NAMES.
17224
17225 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17226
17227         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17228
17229 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17230
17231         * libc/include/string.h: change strsignal proto to return
17232         a char *.  This eliminates compile problems in gdb resulting
17233         from gdb's definition of strsignal in defs.h.
17234
17235 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17236
17237         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17238         winsup/include) so as not to conflict with the one in
17239         libc/include.
17240         * libc/include/string.h: add protos for strsignal, strtosigno
17241
17242 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17243
17244         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17245
17246         * configure.in (d30v-*-*): Add configuration.
17247
17248 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17249
17250         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17251         to select which kind of debug monitor is in use for an ARM target.
17252
17253         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17254         Angel and Demon debug monitors.  Part of this code was supplied by
17255         Tony Thompson at ARM: athompso@arm.com.
17256
17257 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17258
17259         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17260         semantics when the count is greater than the length of the second
17261         source string.
17262
17263 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17264
17265         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17266         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17267         truncate and ftruncate take off_t, not size_t
17268
17269 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17270
17271         * libc/string/strcat.c (strcat): Add missing comment end.
17272         * libc/string/strncat.c (strncat): Likewise.
17273
17274 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17275
17276         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17277         targets.
17278         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17279         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17280         defined.
17281         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17282         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17283         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17284
17285 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17286
17287         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17288         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17289
17290 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17291
17292         * libc/machine/i386/setjmp.S: New file.
17293         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17294         (OFILES): Add setjmp.o.
17295         (setjmp.o): Add rule for.
17296         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17297
17298 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17299                          Jeffrey A Law  (law@cygnus.com)
17300
17301         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17302         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17303         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17304         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17305
17306 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
17307
17308         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17309         rules.
17310
17311         * libc/include/sys/config.h: Use __v850 to select v850
17312         endianness.
17313
17314         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
17315         buffer size.
17316
17317         * libc/include/machine/ieeefp.h: Use __v850 to select v850
17318         endianness.
17319
17320 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
17321
17322         * libc/stdlib/setenv.c: change unsetenv definition to match
17323         style of setenv (with _DEFUN).  The string should be a const.
17324         * libc/include/stdlib.h: unsetenv proto should return void.
17325
17326 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
17327
17328         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
17329
17330 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
17331
17332         * libc/stdio/glue.h: remove.
17333         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
17334         * libc/stdio/Makefile.in: remove glue.h dependencies
17335
17336 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
17337
17338         * libc/sys/sysnecv850/crt0.S: Created V850e version.
17339
17340 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
17341
17342         * configure.in (target_cpu): Add `arc'.
17343
17344 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
17345
17346         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
17347           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
17348         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
17349         * newlib/libc/reent/reent.c: Add _wrapup_reent.
17350         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
17351
17352 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
17353
17354         * libc/machine/mips/setjmp.S: Handle mips16 builds.
17355
17356 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
17357
17358         * libc/include/stdio.h (siprintf): Declare.
17359
17360 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
17361
17362         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
17363         TARGET_CFLAGS and NEWLIB_FLAGS.
17364
17365 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17366
17367         * configure.in (links): Add support for v850ea target.
17368
17369 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17370
17371         * configure.in (links): Add support for v850e target.
17372
17373 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
17374
17375         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
17376
17377 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
17378
17379         * configure.in (arc-*-*): Add support for.
17380         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
17381
17382 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17383
17384         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
17385
17386 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
17387
17388         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
17389         comparison which accesses invalid memory when the key is
17390         larger than the last member of the array.
17391         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
17392         for CYGWIN32
17393         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
17394
17395 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17396
17397         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
17398         not _STRICT_ANSI.
17399
17400 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
17401
17402         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
17403         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
17404
17405 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
17406
17407         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
17408         to load/store memory.
17409
17410 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
17411
17412         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
17413         underscores if _WIN32.
17414
17415 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
17416
17417         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
17418         support ifdef _USE_WRITE missed in last change.
17419         From Anders Blomdell <anders.blomdell@control.lth.se>.
17420
17421 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
17422
17423         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
17424         (_tmpnam_r, _tempnam_r): Update.
17425
17426 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
17427
17428         * libc/machine/sparc/setjmp.S: New file.
17429         * libc/machine/sparc/Makefile.in: Add setjmp.
17430         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
17431
17432 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
17433
17434         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
17435
17436 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
17437
17438         From Joel Sherrill <joel@oarcorp.com>.
17439         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
17440
17441         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
17442         * configure.in: Recognize *-*-rtems*.
17443         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
17444         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
17445         time.h,times.h,types.h}: New files.
17446         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
17447
17448 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
17449
17450         patch from sos@prospect.com.ru (Sergey Okhapkin):
17451         * include/sys/wait.h: correct operator precidence bug
17452         in WIFSIGNALED
17453
17454 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
17455
17456         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
17457         with newlib's unsetenv function
17458         * libc/sys/cygwin32/sys: new directory for includes
17459         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
17460         here from winsup/include/sys
17461
17462 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
17463
17464         * libc/include/sys/unistd.h: _exit should only be
17465         labelled noreturn when not __CYGWIN32__
17466         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
17467         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
17468         increment NSIG
17469
17470 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
17471
17472         * libc/include/sys/time.h: Only define timeval and timezone if
17473         _GNU_H_WINDOWS32_SOCKETS is not defined.
17474         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
17475
17476 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
17477
17478         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
17479         * libc/machine/mn10300/setjmp.S: Likewise.
17480
17481         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
17482         the mn10300 (more relaxing opportunities).
17483
17484 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
17485
17486         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
17487         Build libraries with -mstrict-align.
17488
17489 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
17490
17491         * libc/string/strlwr.c: New file.
17492         * libc/string/strupr.c: New file.
17493         * libc/include/string.h: Declare strlwr and strupr.
17494         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
17495         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
17496         (strlwr.o, strupr.o): New targets.
17497         * libc/string/strings.tex: Include strlwr and strupr docs.
17498
17499         * libc/include/sys/types.h: Don't define u_char, et. al., if
17500         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
17501         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
17502         _types_fd_set rather than fd_set, and define fd_set as a macro.
17503
17504         * libc/include/malloc.h: New file.
17505
17506         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
17507         strnicmp if they are not already defined.
17508
17509         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
17510         _timezone, _daylight, and _tzname.
17511
17512 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17513
17514         * configure.in: Sort all configuration tables.
17515
17516         From Joel Sherrill <joel@oarcorp.com>
17517         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
17518
17519 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
17520
17521         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
17522         use int when declaring kill.
17523
17524         * libc/include/sys/timeb.h: New file.
17525
17526 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
17527
17528         * libc/include/sys/time.h: add itimer support for Cygwin32
17529
17530 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
17531
17532         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
17533         out a message that abort was called to stderr.
17534
17535 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
17536
17537         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
17538         so that libio doesn't freak.
17539
17540         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
17541         int.
17542
17543         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
17544         memory sizes, not int.
17545
17546 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
17547
17548         * libm/math/ef_hypot.c: Use long constants where
17549         appropriate.
17550         * libm/math/ef_sqrt.c: Ditto.
17551
17552         * libc/sys/sysmec/times.c(_times): Change to times.
17553
17554         * libc/sys/sysmec/read.c(_read): The third argument is
17555         size_t.
17556         * libc/sys/sysmec/write.c (_write): Ditto.
17557
17558         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
17559         (_lseek): It's off_t for the second argument.
17560
17561 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
17562
17563         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
17564         as well as machine/ieeefp.h.
17565
17566 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
17567
17568         * libc/include/sys/signal.h: add signal protos for winsup
17569         functions (when __CYGWIN32__), include types.h
17570         * libc/include/sys/types.h: Change __go32_types__ internal
17571         define to __MS_types__ since it's used for more than just
17572         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
17573         defined.
17574         * libc/include/sys/unistd.h: add ftruncate proto for
17575         winsup functions (when __CYGWIN32__)
17576
17577 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17578
17579         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
17580
17581 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
17582
17583         * libc/include/machine/setjmp.h: Add tic80 support.
17584         * libc/machine/tic80/setjmp.S: Likewise.
17585
17586 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
17587
17588         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
17589         link programs from libraries only (such as in the X11
17590         distribution)
17591
17592 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
17593
17594         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
17595         supplied elsewhere in newlib.
17596
17597 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
17598
17599         * Makefile.in (INSTALL): Change install.sh to install-sh.
17600
17601 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
17602
17603         * README: update WWW address for on-line documentation.
17604
17605 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
17606
17607         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
17608         increment NSIG
17609
17610 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
17611
17612         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
17613         mn10300.
17614         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
17615
17616 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
17617
17618         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
17619         * libc/sys/d10v/syscalls.c: Likewise.
17620         * libc/sys/h8300hms/sbrk.c: Likewise.
17621         * libc/sys/h8500hms/syscalls.c: Likewise.
17622         * libc/sys/m88kbug/syscalls.c: Likewise.
17623         * libc/sys/sh/syscalls.c: Likewise.
17624         * libc/sys/sysmec/sbrk.c: Likewise.
17625         * libc/sys/sysnecv850/sbrk.c: Likewise.
17626         * libc/sys/w65/syscalls.c: Likewise.
17627         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
17628
17629 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
17630
17631         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
17632         emulated syscall instead of "trap".
17633
17634 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
17635
17636         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
17637         not trap 0.
17638
17639 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
17640
17641         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
17642
17643 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
17644
17645         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
17646         not "sh".
17647         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
17648         not "d10v".
17649         * libc/sys/tic80/crt0.c: New file for TIc80.
17650         * libc/sys/tic80/Makefile.in: New file for TIc80.
17651         * libc/machine/tic80/Makefile.in: New file for TIc80.
17652
17653 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
17654
17655         * libc/machine/sh/memcpy.S: New file.
17656         * libc/machine/sh/memset.S: New file.
17657         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
17658
17659 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
17660
17661         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
17662         for TIc80.
17663
17664 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
17665
17666         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
17667         the mn10200.
17668
17669 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
17670
17671         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
17672         (patch from andrew@pogo.WV.TEK.COM).
17673
17674 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
17675
17676         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
17677         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
17678
17679 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
17680
17681         * configure.in:  Add cases for "tic80" to set machine_dir,
17682         sys_dir, and syscall_dir.
17683
17684 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
17685
17686         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
17687
17688 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
17689
17690         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
17691
17692 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
17693
17694         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
17695         Use proper constant prefix.
17696
17697 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
17698
17699         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
17700         that loses on the mn10200 where ints and pointers are different
17701         sizes.
17702
17703 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
17704
17705         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
17706         target as signal is provided in winsup.
17707
17708 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
17709
17710         * libc/include/sys/process.h: Corrected const definitions
17711         in spawn functions. Added cwait.
17712
17713 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
17714
17715         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
17716         doubles.
17717         * libc/include/sys/config.h: Similarly.
17718
17719 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17720
17721         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
17722         target_cflags.
17723         (i[3456]86-*-sco*): Ditto.
17724
17725         * libc/signal/Makefile.in (OFILES): Add signal.o.
17726         (CFILES): Add signal.c.
17727
17728         * libc/signal/raise.c (_raise_r): Only compile code if
17729         SIGNAL_PROVIDED is defined.
17730
17731         * libc/signal/signal.c: Redo whole file so that it works with
17732         current newlib.  Use _kill_r if no signal handler provided.
17733
17734         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
17735         signal stubs.
17736         * libc/sys/sysvnecv70/Makefile.in: Ditto.
17737         * libc/sys/sysnecv850/Makefile.in: Ditto.
17738
17739         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
17740         * libc/sys/sysmec/{raise,signal}.c: Ditto.
17741         * libc/sys/sysvnecv70/signal.s: Ditto.
17742         * libc/sys/sysnecv850/raise.c: Ditto.
17743
17744         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
17745         simulator and debugger can tell the difference between a signal
17746         being raised and an exit system call.
17747
17748         * NEWS: Document software signals being provided.
17749
17750 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17751
17752         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
17753         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
17754         include/sys/config.h.
17755         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
17756         Change from 'inpure_data'.
17757         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
17758         &impure_data, not &inpure_data.
17759
17760         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
17761         and and System V ABI, define so that _impure_ptr lives in the
17762         .sdata section.
17763
17764 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17765
17766         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
17767         nothing if not defined.
17768         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
17769         its attributes.
17770
17771         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
17772
17773 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
17774
17775         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
17776         * libc/sys/sysmec/trap.s: Handle mn10200 too.
17777         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
17778
17779 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
17780
17781         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
17782
17783 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
17784
17785         * libc/include/sys/errno.h: Added net errno's.
17786
17787 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17788
17789         * libc/misc/ffs.c: New file to support ffs function for GCC test
17790         gcc.c-torture/execute/960909-1.c.
17791
17792         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
17793
17794 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
17795
17796         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
17797         * libc/sys/sysmec/trap.S: Likewise.
17798
17799 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
17800
17801         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
17802         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
17803
17804 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
17805
17806         * libc/sys/sysmec/signal.c: Dummy file.
17807         * libc/sys/sysmec/Makefile.in: Build it.
17808
17809 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
17810
17811         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
17812         mips16.
17813
17814 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
17815
17816         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
17817         c-startup and simulator traps.
17818
17819
17820         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
17821         * libc/sys/sysmec/trap0.S: Likewise.
17822
17823 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17824
17825         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
17826         round to double word alignment.
17827         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
17828         byte alignment.
17829
17830         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
17831
17832         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
17833         out of memory.
17834
17835 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
17836
17837         * configure.in: Handle mn10200 and mn10300.
17838         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
17839         * libc/include/sys/config.h: Likewise.
17840         * libc/sys/sysmec: New directory for mec stuff.
17841         * libc/machine/mn10300: New directory for mn10300 stuff.
17842         * libc/machine/mn10200: Similarly for mn10200 stuff.
17843
17844 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
17845
17846         * libc/sys/arm/crt0.S: Use .text, not .section .text.
17847         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
17848
17849         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
17850         (nlink_t): Change type from unsigned int to unsigned short.
17851         (mode_t): Ensure size is 32 bits even if int is 16.
17852         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
17853         (st_spare[123]): Change type from int to long.
17854
17855 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17856
17857         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
17858         byte boundary.
17859
17860         * configure.in (d10v*): Define SMALL_MEMORY.
17861
17862 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17863
17864         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
17865         -mrelocatable-lib and -mno-eabi flags.
17866
17867 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
17868
17869         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
17870         Fix handling of mis-aligned source operand when both the
17871         destination & length are properly aligned.
17872
17873 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
17874
17875         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
17876         times.o, time.o and gettime.o
17877         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
17878         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
17879         SYS_gettimeofday.
17880
17881 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
17882
17883         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
17884         * libc/sys/sysnecv850/access.c: New file.
17885
17886 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
17887
17888         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
17889
17890         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
17891         long.
17892
17893 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
17894
17895         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
17896
17897 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
17898
17899         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
17900         * libc/include/sys/config.h: Add m32r support.
17901
17902 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
17903
17904         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
17905         here.
17906
17907 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
17908
17909         * libc/include/machine/setjmp.h: Add D10v support.
17910
17911 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
17912
17913         * configure.in: Configure the "libc/syscalls" directory for
17914         the v850.
17915
17916         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
17917         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
17918         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
17919         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
17920         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
17921
17922 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
17923
17924         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
17925         stack for args for main and other routines.  Zero out args for
17926         main.
17927
17928         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
17929         correctly.
17930
17931 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17932
17933         * libc/stdio/findfp.c (std): Remove extraneous ';' after
17934         function.
17935
17936         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
17937
17938         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
17939         real system calls now.
17940
17941         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
17942         before casting them to int.
17943         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
17944
17945         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
17946         aligning pointer.
17947         * libc/string/memset.c (memset): Ditto.
17948
17949         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
17950         first convert ints to _POINTER_INT to eliminate GCC warning.
17951
17952         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
17953         processing %p.
17954
17955         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
17956         from 65000 if ints are only 16 bits.
17957
17958         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
17959         from 50000 if ints are only 16 bits.
17960
17961         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
17962         int type that is the same size as a pointer.
17963
17964         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
17965         processing %p.
17966         (get_number): Explicitly cast number to long before shifting by 16
17967         or 24, in case ints are short.
17968
17969         * libc/include/sys/config.h (_POINTER_INT): Define as short.
17970
17971 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
17972
17973         * libc/string.h: Added ffs, removed swab.
17974         * libc/sys/errno.h: Added EOPNOTSUPP.
17975         * libc/sys/unistd.h: Added swab.
17976
17977 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
17978
17979         * libc/include/sys/stat.h: Added fchmod.
17980         * libc/include/sys/unistd.h: Added fsync.
17981
17982 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
17983
17984         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
17985         and ECONNRESET (104) for cygwin32.
17986
17987 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
17988
17989         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
17990         do the static destructors.
17991
17992 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
17993
17994         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
17995
17996 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
17997
17998         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
17999         * configure.in: Recognize m32r-*-*.
18000
18001 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
18002
18003         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
18004         __rt_stkovf_split_small): Added default software stack overflow
18005         handlers, which just call SWI_Exit.
18006         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
18007         limit initialisation.
18008
18009 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
18010
18011         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
18012
18013 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
18014
18015         * libc/include/sys/types.h: Added ssize_t definition.
18016
18017 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18018
18019         * libc/machine/d10v/setjmp.S: Use ';' for comments.
18020         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
18021
18022         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
18023         branch around a single ldi instruction.
18024
18025         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
18026         Call exit, instead of just issuing a stop instruction.
18027
18028 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18029
18030         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
18031
18032 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18033
18034         * libc/stdlib/mprec.h: Explicitly declare all large constants as
18035         longs, and then cast them to __uint32_t.
18036
18037         * libc/include/sys/config.h: Protect against multiple inclusions.
18038
18039 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
18040
18041         * configure.in (d10v*): Set syscall_dir.
18042
18043 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
18044
18045         * libc/sys/d10v/crt0.S: Set stack pointer.
18046
18047 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
18048
18049         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
18050         in assembly for efficiency.  Change calling convention to allow
18051         long ints to be returned.
18052
18053 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18054
18055         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
18056
18057 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
18058
18059         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
18060         Handle empty entries in $PATH.
18061
18062 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
18063
18064         * libc/machine/d10v/setjmp.S: Make it really work.
18065
18066 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
18067
18068         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
18069         the .stack section.
18070
18071 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
18072
18073         * sys/sysnecv850/sys/file.h: Remove.
18074         * sys/sysnecv850/sys/syscall.h: New file.
18075         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18076         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18077         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18078         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18079         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18080         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18081         * sys/sysnec850/trap.S: New file.
18082         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18083         syscalls.
18084         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18085         * sys/sysnec850/sbrk.c: New version.
18086
18087 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18088
18089         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18090         as long as r6 is less than r7.
18091
18092 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18093
18094         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18095         remove *.a or targ-include.
18096         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18097
18098 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18099
18100         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18101         d10v.
18102         (__SMALL_BITFIELDS): Ditto.
18103
18104         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18105
18106 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18107
18108         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18109         prefix.
18110
18111         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18112         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18113         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18114         * libc/sys/sysnecv850/write.c (write): Likewise.
18115
18116         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18117         .bss.
18118
18119 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18120
18121         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18122         appropriately for D10V, depending on -mint16/-mint32.
18123
18124 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18125
18126         * configure.in: Add cases for D10V.
18127
18128 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18129
18130         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18131
18132 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18133
18134         * libc/include/machine/ieeefp.h: Fix typo.
18135
18136 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18137
18138         * libc/sys/d10v: New directory for D10V stuff.
18139         * libc/include/machine/ieeefp.h: Add D10V defines.
18140
18141 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18142
18143         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18144         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18145         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18146         * libc/string/strerror.c (strerror): Add them.
18147
18148 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18149
18150         * libc/sys/sysnecv850: New directory for v850 stuff.
18151
18152         * libc/machine/v850: New directory for v850 stuff.
18153         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18154
18155         * configure.in: Add support for the v850.
18156
18157         * libc/include/machine/ieeefp.h: Add v850 defines.
18158         * libc/include/machine/setjmp.h: Likewise.
18159         * libc/include/sys/config.h: Add v850 defines.
18160
18161 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18162
18163         * libc/include/machine/ieeefp.h
18164         * libc/include/machine/setjmp.h
18165         * libc/include/sys/fcntl.h
18166         * libc/include/sys/signal.h
18167         * libc/include/sys/types.h
18168         * libc/stdlib/system.c:
18169         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18170         API availability, __CYGWIN32__ for cygwin32 environment specific).
18171
18172 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18173
18174         * libc/include/stdlib.h: add multibyte character functions.  Add
18175         __eprintf for assert.
18176
18177 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18178
18179         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18180         arithmetic or __alignof__ to properly get the alignment, instead
18181         of hardwiring it to 4.
18182
18183 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18184
18185         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18186         on append stream (fix from NetBSD sources), adjust curoff offset
18187         for ungetc's benefit.
18188         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18189         * libc/stdio/rewind.c: replace code with up to date NetBSD
18190         code to undo hacks made to work around above problem of not
18191         having fflush call mentioned above
18192
18193 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18194
18195         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18196         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18197         Partially revert last changes.  The thread specific errno is set
18198         iff if the underlying syscall fails and the global errno is not
18199         zero.
18200
18201 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18202
18203         * libc/reent/filer.c: Removed files, all functions have split out
18204         into their own files.
18205         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18206         New files containing functions formally in filer.c
18207         * libc/reent/Makefile.in: Updated for above change.
18208
18209         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18210         syscall fails, not if errno is changed.
18211         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18212         _write_r): Likewise.
18213         * libc/reent/fstatr.c (_fstat_r): Likewise.
18214         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18215         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18216         * libc/reent/signalr.c (_kill_r): Likewise.
18217         * libc/reent/statr.c (_stat_r): Likewise.
18218         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18219
18220         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18221         signalr.c, statr.c, timer.c} (errno): declare extern rather
18222         than as a common.
18223
18224         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18225         instead of calling vfprintf so that i*printf will not require
18226         floating point support code.
18227
18228 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18229
18230         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18231         path delimiter.
18232         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18233         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18234
18235 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18236
18237         * libc/include/signal.h: _sig_func_ptr function takes an int
18238         * libc/include/sys/signal.h: sa_handler function takes an int
18239
18240 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18241
18242         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18243         * libc/include/sys/config.h: Add missing H8/S conditional.
18244
18245 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18246
18247         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18248
18249 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18250
18251         * libc/include/machine/setjmp.h: Handle H8/S.
18252         * libc/include/machine/ieeefp.h: Likewise.
18253         * libc/include/sys/config.h: Likewise.
18254         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18255         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18256         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18257         * libc/sys/h8300hms/crt0.S: Likewise.
18258
18259 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18260
18261         * Makefile.in (datadir): Set to $(prefix)/share.
18262         (oldincludedir, docdir): Removed.
18263         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18264         (oldincludedir, docdir): Removed.
18265         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18266         (oldincludedir, docdir): Removed.
18267         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18268         (oldincludedir, docdir): Removed.
18269
18270 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18271
18272         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18273         _reent struct.
18274
18275 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18276
18277         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18278         fetch current path rules with sysconf and handler posix/win32
18279         appropriately.
18280
18281         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18282
18283         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18284         (WAIT_CHILD): Always define.
18285
18286 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18287
18288         * libc/stdlib/eprintf.c: New file.
18289         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18290         (eprintf.o): New target.
18291
18292 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18293
18294         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18295         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18296
18297 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18298
18299         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18300         NT in PowerPC endianess cases.
18301
18302 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18303
18304         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
18305
18306 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18307
18308         * libc/string/strtok.c: Fix doc typo.
18309
18310 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18311
18312         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
18313         _next, _scanpoint, _signgam fields.
18314
18315         * libc/include/stdlib.h (rand_r): Added new declaration.
18316         (_rand_r, _srand_r): Removed declarations.
18317         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
18318         have been made obsolete by rand_r.
18319         * libc/stdlib/rand_r.c: New file, rand_r function as specified
18320         by POSIX.1c.
18321
18322         * libc/string/strtok.c: Update documentation to describe
18323         strtok_r().
18324
18325 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
18326
18327         * libc/include/sys/stat.h (stat structure): Use the expanded stat
18328         structure on Solaris, and PowerPC systems even though __svr4__ is
18329         defined.
18330
18331 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18332
18333         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
18334
18335 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
18336
18337         * host/any: Use ../.. rather than .. to get to the main build
18338         directory.  This matches the current layout of the build
18339         directory.
18340
18341 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
18342
18343         * libc/machine/h8300/__main.S: Delete.  No longer needed.
18344         * libc/machine/h8300/Makefile.in: Corresponding changes.
18345         * libc/sys/h8300hms/crt1.c: New file.
18346         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
18347         * libc/sys/h8300hms/crt0.s: Call __main.
18348
18349         * libc/sys/h8300hms/crt0.S: Use temporary label names
18350         for branch targets.
18351
18352 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
18353
18354         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
18355
18356 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18357
18358         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
18359         .sdata on the PowerPC so that we can link newlib with code
18360         compiled with -msdata.
18361
18362 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
18363
18364         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
18365
18366 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
18367
18368         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
18369         exception handler to __cygwin_exception_handler.
18370
18371 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
18372
18373         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
18374
18375 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
18376
18377         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
18378         SunOS VPATH.
18379         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
18380         wcstombs.o): Likewise.
18381
18382 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
18383
18384         * libc/stdlib/environ.c (initial_env): New static local.
18385         (environ): Point to `initial_env'.
18386
18387         * libc/include/machine/setjmp.h: Clean up.
18388         (__H8300H__,__PPC__): Define _JBTYPE.
18389         (__arm__): Provide entry for.
18390         (sigjmp_buf): Delete.
18391         (jmp_buf): Use _JBTYPE if defined, otherwise int.
18392
18393 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
18394
18395         * libc/machine/h8300/strcmp.S: Sign extend the result to
18396         32bits so we don't lose with -mint32.
18397
18398 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
18399
18400         * libc/sys/go32/sys/errno.h: New file.
18401         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
18402         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
18403         errno's address (make compatible with rest of newlib).
18404         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
18405         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
18406
18407 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18408
18409         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
18410         * libc/machine/sparc/Makefile.in: Build them.
18411         * libc/machine/sparc/machine/sparclet.h: New file.
18412
18413 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18414
18415         * libc/machine/sh/asm.h: New file.
18416         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
18417         support for SH3e's FP registers.  Use asm.h.
18418
18419 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
18420
18421         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
18422         as first argument.  Call _dtoa_r and pass the reent structure
18423         instead of calling __dtoa.
18424
18425 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
18426
18427         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
18428         the h8300, h8500, and others.  Add comments for some rather
18429         dubious code.
18430
18431 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
18432
18433         * Makefile.in (check): Check that testsuite exists before cd.
18434
18435 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18436
18437         * libc/include/string.h (strsep): Correct prototype.
18438
18439 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
18440
18441         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
18442         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
18443         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
18444
18445 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
18446
18447         * libc/posix/{creat.c,isatty.c}: New files.
18448         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
18449
18450         * libc/sys/sparc64/crt0.S (environ): Delete.
18451         (.LHaveBias): Renamed from HaveBias.
18452
18453 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
18454
18455         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
18456         (_morecore_r): Delete SBRK_IS_ALLOC support.
18457
18458 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18459
18460         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
18461         module rather than touch, so we don't get warning messages when
18462         all of the libraries are combined into libc.a.
18463
18464 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
18465
18466         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
18467         crt0.s replaced by version in libgloss.
18468
18469 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18470
18471         * libc/reent/Makefile.in (OFILES): Add impure.o.
18472         * libc/reent/impure.o: New file, define initial reentrancy struct.
18473         * libc/reent/reent.c: Remove above definition.
18474
18475         * libm/math/sf_asinh.c: Fix typo.
18476
18477         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
18478         srf_ldexp.o.
18479
18480         * libm/libm.texinfo: Change documentation to reflect changes
18481         in reentrancy model.
18482         * libm/math/w_gamma.c: Likewise.
18483
18484 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18485
18486         * configure.in (*-*-cygwin32): New.
18487         (*-*-win32): Deleted.
18488         * libc/sys/win32 renamed libc/sys/cygwin32.
18489
18490 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18491
18492         * libc/include/sys/file.h: New include file.
18493
18494 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18495
18496         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
18497
18498 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18499
18500         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
18501
18502 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18503
18504         * doc/makedoc.c (realloc): Declare at file scope.
18505         (catchar): Not here.
18506
18507 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
18508
18509         * Makefile.in (VERSION): Update to 1.7.0.
18510         * {libc,libm}/Makefile.in (VERSION): Likewise.
18511         * configure.in: Minor clean up of multilib stuff.
18512
18513         From David Johnson <davidj@ICSI.Berkeley.EDU>
18514         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
18515
18516         * libc/stdlib/environ.c: New file.
18517         * libc/stdlib/Makefile.in (OFILES): Build it.
18518         * libc/sys/h8500hms/crt0.c (environ): Deleted.
18519         * libc/sys/m88kbug/crt0.c (environ): Deleted.
18520         * libc/sys/z8ksim/crt0.c (environ): Deleted.
18521         * libc/sys/netware/environ.c: Deleted.
18522
18523 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
18524
18525         * configure.in (links): set sys_dir, posix_dir, syscall_dir
18526
18527 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18528
18529         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
18530         declaration out to external scope and declare it PTR, not char *.
18531
18532 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
18533
18534         * libc/include/sys/unistd.h (getpagesize): New declaration.
18535         (_SC_PAGESIZE): New definition.
18536         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
18537         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
18538
18539 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
18540
18541         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
18542         addressing. System call returns size, not (last address + 1).
18543
18544 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18545
18546         * libm/math/*.c: Removed _foo_r() reentrancy API.
18547         * libc/include/math.h: Removed _foo_r prototypes and macros.
18548
18549         * libm/math/*.c: On systems with IEEE single precision "doubles"
18550         move foo() -> foof() wrapper code from the files that implement
18551         the standard IEEE double precision functions to the files that
18552         implement IEEE single precision functions. (ie. On those systems
18553         sin is moved from s_sin.c to sf_sin.c).  There should eventually
18554         be use of a C extension (like gcc's alias attribute) so that the
18555         wrappers are not needed at all.
18556
18557         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
18558         strict NEC V810 compiler.
18559         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
18560         for same reason.
18561
18562 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18563
18564         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
18565         from NetBSD C library.
18566         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
18567
18568         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
18569         and adapted from implementation I wrote for NetBSD C library.
18570         The difference is __assert doesn't take a format argument,
18571         so that there won't be multiple copies of the same string
18572         constant in the executable if assertions are enabled in
18573         more than one source module.
18574         * libc/include/assert.h (assert): Changed to call __assert.
18575
18576 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18577
18578         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
18579         word1 on systems with 32 bit doubles.
18580         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
18581         so that we can do arithmetic on them.
18582         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
18583         compilers.
18584
18585 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
18586
18587         * libc/sys/arm/crt0.S: Zero bss.
18588
18589 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
18590
18591         * libc/include/unctrl.h: New file.
18592         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
18593         * configure.in (subdirs): Add libc/misc.
18594         * libc/Makefile.in (SUBDIRS): Add misc.
18595         (SUBLIBS): Add misc/lib.a.
18596
18597         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
18598
18599 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
18600
18601         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
18602         (_vfprintf_r): Call CHECK_INIT.
18603
18604 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
18605
18606         * Makefile.in (MULTITOP): Delete.
18607         (MULTISRCTOP, MULTIBUILDTOP): Add.
18608         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
18609         instead of cfg-ml-pos.in.
18610
18611 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18612
18613         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
18614         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
18615         presence.
18616
18617 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
18618
18619         * libc/string/strtok.c: Include string.h to pick up strtok_r
18620         prototype.
18621
18622 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18623
18624         * libc/string/strtok.c: include <_ansi.h>.
18625         * libc/time/asctime_r.c: `reresult' -> `result'.
18626
18627 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18628
18629         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
18630         in #ifndef _REENT_ONLY ... #endif conditional.
18631
18632         * libc/include/string.h (_strtok_r): Remove declaration.
18633         * libc/include/time.h (_asctime_r): Remove declaration.
18634         * libc/string/strtok.c (_strtok_r): Removed.
18635         * libc/time/asctime.c (_asctime_r): Removed.
18636
18637         * libc/string/Makefile.in (OFILES): Add new object.
18638         * libc/string/strtok_r.c: New file.  strtok_r function as
18639         specified by POSIX.1c, adapted from strtok implementation
18640         from NetBSD C library.
18641         * libc/string/strtok.c (strtok): Reimplemented in terms of
18642         strtok_r.
18643
18644         * libc/time/Makefile.in (OFILES): Add new objects.
18645         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
18646         New files, reentrant time functions specified by POSIX.1c.
18647         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
18648         reentrant time functions re-written in terms of reentrant
18649         functions.
18650         * libc/time/lcltime.c: Renamed from localtime.c
18651
18652         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
18653         gmtime_r, and localtime_r.
18654
18655 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
18656
18657         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
18658         * libc/include/sys/unistd.h (getlogin): Revert change of
18659         Oct 19.
18660         * libc/include/sys/signal.h (sigprocmask): Change prototype
18661         so it compiles with c++.
18662
18663 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
18664
18665         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
18666         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
18667         to give some room in case we need to align the jmp_buf.
18668
18669         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
18670         the new ppc-asm.h include file the compiler provides to specify
18671         function prologue/epilogue.  Eliminate saves of the xer and ctr
18672         registers, which are volatile.  Before starting to save registers,
18673         align to 8 byte boundary.
18674
18675 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18676
18677         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
18678         referenced by standard libraries.
18679
18680 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
18681
18682         * libc/unix/Makefile.in, libc/string/Makefile.in,
18683         libc/stdio/Makefile.in, libc/reent/Makefile.in,
18684         libc/posix/Makefile.in:
18685         Remove tabs from otherwise empty line.  Confuses some
18686         older non-GNU versions of "make".
18687
18688 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18689
18690         * libc/sys/unistd.h (getlogin): Returns const char *.
18691
18692 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
18693
18694         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
18695         * libc/include/errno.h: Moved into and include...
18696         * libc/include/sys/errno.h: New file.
18697         * libc/include/sys/wait.h: New file.
18698         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
18699         * libc/sys/win32/*: Moved out.
18700         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
18701         * configure.in (i[345]86-*-win32): HAVE_RENAME
18702
18703 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
18704
18705         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
18706         avoid macro expansion for these two names.
18707
18708 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
18709
18710         * libc/machine/h8500/psi.S: r6 renamed to fp.
18711
18712 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18713
18714         * configure.in (powerpc*): No longer need to define
18715         NO_LONGLONG_POINTERS to supress warnings.
18716
18717 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18718
18719         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
18720         through PTR instead of directly.
18721
18722         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
18723         non-standard constructor support.
18724
18725 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18726
18727         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
18728         address of the Bigint instead of the address of its _x field,
18729         as the size the result buffer was calculated accordingly.
18730         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
18731
18732         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
18733         from NetBSD C library.  No longer special cases division by
18734         zero (which needs to be done by the application anyway), but
18735         it doesn't need to call abs() (or labs()) four times either.
18736
18737         * libc/stdlib/qsort.c: Replaced with implementation from
18738         NetBSD C library.
18739
18740 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18741
18742         * libc/stdio/vfprintf.c: Replaced with implementation from
18743         NetBSD C library (which is derived from the 4.4BSD C library).
18744         * libc/stdio/cvt.c: Removed.
18745         * libc/stdio/Makefile: Updated.
18746
18747 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
18748
18749         * libc/sys/win32/syscalls.c (rename): New.
18750         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
18751
18752 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18753
18754         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
18755         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
18756
18757         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
18758         (setjmp.o): Delete rule to build setjmp.o.
18759         * libc/sys/sh/setjmp.S: Delete file.
18760
18761 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18762
18763         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
18764         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
18765         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
18766         pow5mult and s2b to identifiers with leading underscores.
18767         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
18768         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
18769
18770 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
18771
18772         * libc/sys/posix/popen.c (sys/types.h): Include.
18773
18774 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
18775
18776         * libc/sys/win32/syscalls.h (fhandler): New struct.
18777         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
18778         (__fhandler_normal): Declare.
18779         (hinfo): New member op_handlers.
18780         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
18781         (__write): Likewise.
18782         (_read, _write, _open, _close, _lseek): Validate fd here.
18783         Move file type specific stuff to foo_normal.
18784         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
18785         New functions.
18786         (__lookup_fhandler): New function.
18787         (__lookup_fhandler_hook, __fhandler_normal): New variables.
18788
18789         From anders.blomdell@control.lth.se (Anders Blomdell)
18790         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
18791         Don't touch standard handles.
18792         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
18793         (_execve): Only create __FD_TABLE__ if necessary.
18794         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
18795
18796 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
18797
18798         * libc/sys/win32/sys/termios.h (FLUSHO): New.
18799         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
18800         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
18801         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
18802         without a handler is received.
18803         * libc/sys/win32/Makefile.in: Remove --nodelete.
18804         * libc/sys/win32/resouce.c (gettimeofday): New.
18805         * libc/sys/win32/syscalls.c (path_to_real_path): New.
18806         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
18807
18808 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
18809
18810         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
18811         Don't append "/*" to search pattern if trailing '/' already there,
18812         append "*".
18813         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
18814         like /'s, convert them to \'s.  Handle //<drive>/ path names.
18815         Add space for quoted \'s in arg string.  Print translated prog name
18816         and original prog name.
18817         (_execve): Handle parent doing exec a teensy bit better.
18818         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
18819         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
18820         path needs conversion, handle both cases.  Delete `const' from result.
18821         (hash_path_name): New function.
18822         (_open): Call it.
18823         (_stat): Likewise.  Fill in more fields for directories.
18824         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
18825         (wait_for_any): Fix trace message.
18826         (waitpid): Explicitly test for intpid == 0.
18827
18828         From anders.blomdell@control.lth.se (Anders Blomdell)
18829         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
18830         so `next' is valid.
18831
18832 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
18833
18834         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
18835         complicated.
18836
18837 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
18838
18839         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
18840         at all, not just == 1.
18841         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
18842
18843 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
18844
18845         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
18846         * libc/sys/win32/include/wintypes.h: include <winnt.h>
18847         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
18848         file.
18849
18850 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18851
18852         * libc/sys/syscalls.c (getcwd): Fix off by one error.
18853
18854         * libc/sys/signal.c (sleep): Fill it in.
18855         * libc/sys/termios.c (tcflush): Use PurgeComm
18856         (tcsetattr): Set some more of the bits.
18857         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
18858
18859 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
18860
18861         * libc/sys/arm/crt0.S (fp): Initialize to 0.
18862         Conditionally include .idata$3 stuff ifdef __pe__.
18863
18864 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18865
18866         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
18867         * libc/sys/win32/pipe.c (pipe): Ditto.
18868         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
18869         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
18870         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
18871         (tcgetattr): Contents are new.
18872         * libc/sys/win32/include/winkernel.h (DCB): New.
18873         (GetCommState, SetCommState): New.
18874
18875 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
18876
18877         * libc/sys/arm/crt0.S (_start): Define.
18878
18879 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
18880
18881         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
18882         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
18883
18884         * libc/sys/win32/sysconf.c: New
18885         * libc/sys/win32/sys/winadvapi.h: New
18886         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
18887         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
18888         * libc/sys/win32/pipe.c (pipe): Ditto.
18889         * libc/sys/win32/signal.c (_raise): New.
18890         (_kill): Moved from spawn.c
18891         * libc/sys/win32/spawn.c (kill): Moved to signal.c
18892         * libc/sys/win32/syscalls.c (__read): Use new fields.
18893         (_open): Ditto.
18894         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
18895         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
18896         * libc/include/sys/unistd.h (rmdir): Takes const path.
18897         * libc/include/sys/stat.h (mkdir): Takes const path.
18898         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
18899
18900 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18901
18902         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
18903
18904         Add support for specifying paths as //<drive>/foo/bar.
18905         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
18906         (__path_to_real_path): Declare.
18907         (PATH_TO_REAL_PATH): New macro.
18908         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
18909         (__path_needs_conversion_p, __path_to_real_path): New functions.
18910         (_open): Fix test for error return from CreateFileA.
18911         Handle new path syntax.
18912         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
18913         * libc/sys/win32/dirsearch.c (opendir): Likewise.
18914
18915 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
18916
18917         * libc/sys/win32/include/*.h: Reorganized
18918         * libc/sys/win32/include/WINREADME: New.
18919         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
18920         * libc/sys/win32/*.c: Fix for new include scheme.
18921         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
18922         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
18923         * libc/sys/win32/passwd.c (*): Fix.
18924         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
18925         (_stat): Get directory owner and permissions right.
18926         * libc/sys/win32/syscalls.h (uinfo): New.
18927         * libc/sys/win32/version.def: Remove leading underscores.
18928
18929 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18930
18931         * libc/sys/win32/key.c: include "include/wincon.h".
18932
18933 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
18934
18935         * libc/sys/win32/{key, stubs}.c: New.
18936         * libc/sys/win32/Makefile: Adjust to cope.
18937         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
18938         (environ_init): Change env names to upper case.
18939         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
18940         * libc/sys/win32/passwd.c (*): Fill in the functions.
18941         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
18942         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
18943         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
18944         (_open): Initialze hmap->execable_p too.
18945         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
18946         (_fstat): Fill in permissions.
18947         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
18948
18949 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18950
18951         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
18952         if defined.
18953         (cfg-ml-pos.in invocation): Likewise.
18954
18955 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18956
18957         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
18958         s_isnan.o and sf_isnan.o.
18959
18960 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
18961
18962         * All Makefile.in files: added maintainer-clean target as a
18963         synonym for realclean.
18964
18965 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
18966
18967         * libc/include/machine/setjmp.h: Add hppa support.
18968         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
18969         support.
18970         * libc/machine/hppa/Makefile.in: Related changes.
18971
18972 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
18973
18974         * configure.in (machine_dir): Don't set for v810-*-*.
18975
18976 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18977
18978         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
18979         conventions correctly.
18980
18981 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
18982
18983         * libc/stdio/puts.c: Update documentation of return value to match
18984         ANSI standard.
18985
18986 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
18987
18988         Fix file descriptor inheritance.
18989         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
18990         (NOT_OPEN_FD): Fix.
18991         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
18992         close-on-exec flag not set.  Initialize child's entire fd table.
18993         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
18994         CHILD_P.
18995         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
18996         if CHILD_P.  Initialize entire hmap entry.
18997         (dup): Only create new handle as inheritable if CHILD_P.
18998         (dup2): Likewise.  Properly initialize hmap entry.
18999
19000         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
19001         _spawn.
19002         (_exit): Use CHILD_P.
19003         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
19004         (_stat): Likewise.
19005
19006 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19007
19008         * libc/sys/win32/crt0.c (passover): fix up the state table.
19009         * libc/posix/popen.c: Added.
19010         * libc/posix/Makefile.in: compile popen.c.
19011
19012 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
19013
19014         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
19015         h8/500 define _DOUBLE_IS_32BITS.
19016
19017 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
19018
19019         Get vfork/exec/spawn/cwait/wait working again.
19020         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
19021         (procinfo): New member vfork_level.
19022         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
19023         (vfork_init_first): Use GetCurrentProcessId to get pid.
19024         Initialize vfork_level.
19025         (vfork_init): Delete __PID__.
19026         (environ_init): New function.  Undo patch of Aug 19, Posix says
19027         environment variables are case sensitive.
19028         (mainCRTStartup): Call it.
19029         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
19030         (my_longjump: Make static.
19031         (_spawn): New argument `h'.  Delete setting of __PID__.
19032         Delete local `idx'.  Look for chars that need quotes, rather than
19033         ones that don't.  Set handle of created process in `h'.
19034         Result is process id if created task.
19035         (allocate_spawn_entry): New function.
19036         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
19037         (_execve): Set __FD_TABLE__ before spawning child.
19038         Scan our fd table when passing fds, not our parent's.
19039         Store handle and pid in procinfo entry.
19040         (vfork0): Ensure strace message always printed.
19041         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
19042         (vfork): Don't clobber result of vfork0.
19043         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
19044         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
19045
19046         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
19047         and `exit_code'.
19048         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
19049         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
19050         adding vfork level to pseudo-pid.
19051         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
19052         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
19053         (_exit): If child, set exit code.
19054         (__vfork_record_death): Only close process handle if valid.
19055         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
19056         didn't exec.
19057         (wait_for_any): Likewise.  Start scan after root entry.
19058
19059 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19060
19061         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
19062         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
19063         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
19064         of actual file length.
19065
19066         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
19067         * libc/include/paths.h: _PATH_BSHELL added.
19068         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
19069         and STDERR_FILENO.
19070
19071 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19072
19073         * libc/include/ar.h: Added.
19074         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19075         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19076         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19077         on filename.
19078         (_fstat): use .namehash for inode number of the fd.
19079
19080 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19081
19082         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19083          Change hinfo to __this_procinfo.
19084         * libc/sys/win32/crt0.c: Remove procinfo_list.
19085
19086 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19087
19088         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19089         win32 environment.
19090
19091 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19092
19093         * libc/sys/win32/include/grp.h: Removed.
19094         * libc/sys/include/grp.h: Added.
19095         * libc/sys/win32/grp.c: Include <grp.h>.
19096
19097 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19098
19099         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19100         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19101         Defined for all but strict ANSI.
19102         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19103         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19104         * libc/signal/signal.c (_signal_r): Changed from using
19105         _MAX_SIGNALS to NSIG.
19106         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19107          __hmap): Deleted.
19108         (__strace, __vfork_next_pid): New.
19109         (__exe_suffix): Default to 1.
19110         (passover, table): Understand quoted arguments.
19111         (vfork_init_first): New.
19112         (vfork_init): Initialize new process structure.
19113         (mainCRTStartup): Pass environ to main.
19114         * exceptions.c (__sig_mask): New
19115         (ehandler3): Ignore signals in mask.
19116         (really_exit): Remove CHILD_P test.
19117         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19118         * resource.c (getrusage): Ditto.
19119         * signal.c (sigprocmask): New.
19120         * spawn.c (*): Rewritten.
19121         * syscalls.c (*): Use new process and file structure.
19122         (find_unused_handle): New.
19123         * syscalls.h (MAX_HANDLES): Deleted.
19124         (hinfo): Removed child_created_p.
19125         (MAX_CHILDREN): Deleted.
19126         (vfork_jmp_info, procinfo): New.
19127         * wait.c (*): Mostly new.
19128         * sys/strace.h (_STRACE_PARANOID): New.
19129         * sys/param.h: New file.
19130
19131 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19132
19133         * libc/include/sys/stat.h: add S_BLKSIZE.
19134         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19135         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19136         types under win32.
19137         (mode_t): add a #else to avoid multiple definitons.
19138
19139         * libc/sys/win32/Makefile.in: add grp.c.
19140         * libc/sys/win32/grp.c: include grp.h correctly.
19141         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19142         of the st structure with real information.
19143         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19144
19145 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19146
19147         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19148         and (maybe) sparc64.
19149         (nlink_t): Provide typedef.
19150
19151 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19152
19153         * libc/sys/win32/grp.c: New file.
19154         * libc/sys/win32/include/grp.h: New file.
19155
19156 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19157
19158         * libc/include/machine/ieeefp.h: Added whitespace to make this
19159         file easier to maintain.
19160         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19161         depending on the value of __LITTLE_ENDIAN__.
19162         On the sh3e, define _DOUBLE_IS_32BITS.
19163
19164 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19165
19166         * libc/sys/vr4300/syscalls.c: Added missing support
19167         routines. _raise() and getpid().
19168
19169 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19170
19171         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19172
19173 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19174
19175         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19176         and VR4300 processor.
19177         * libc/sys/vr4300: Add directory.
19178         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19179         monitor run-time support.
19180
19181 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19182
19183         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19184         * libc/stdlib/stdlib.tex: Don't include atol.def.
19185
19186 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19187
19188         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19189
19190 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19191
19192         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19193
19194 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19195
19196         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19197         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19198         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19199         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19200         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19201
19202 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19203
19204         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19205
19206 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19207
19208         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19209         * libc/stdlib/atoff.c: New file.
19210         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19211         * libc/stdlib/atoi.c (atol): Removed.
19212         * libc/stdlib/atol.c: Removed duplicate documentation.
19213
19214         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19215         #ifndef _STRICT_ANSI conditional.
19216         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19217         * libc/ctype/_tolower.c: New file.
19218         * libc/ctype/_toupper.c: New file.
19219         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19220         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19221         * libc/ctype/toascii.c (_toascii): Removed.
19222
19223 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19224
19225         * libc/sys/sparc64/sys/types.h: Deleted.
19226
19227 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19228
19229         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19230         and recognize Windows_95 systems.
19231
19232 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19233
19234         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19235         and passed fds should be opened in text mode.
19236
19237 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19238
19239         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19240         in __hmap, set to binary mode by default.
19241
19242 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19243
19244         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19245         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19246         vector 34.
19247
19248 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19249
19250         * Makefile.in (install): Install all libraries found in the
19251         top level.  If there's a sys/<type>/include directory,
19252         install those headers into include.
19253
19254         * libc/sys/win32/kernel.def351: Delete
19255         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19256         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19257         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19258         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19259         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19260         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19261         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19262         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19263
19264         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19265         * libc/sys/win32/crt0.c: Force all env names to upper case.
19266         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19267         * libc/sys/win32/*.c: Headers have moved.
19268         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19269         __vfork_child_idx is now __vfork_child_ptr.
19270
19271         * posix/execvp (execvp): Don't crash if no PATH envname.
19272
19273 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19274
19275         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19276         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19277         through the _freelist instead of through the _reclaim list.
19278         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19279         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19280         sources.
19281
19282 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19283
19284         * libc/machine/h8500/setjmp.S: New file.
19285         * libc/include/machine/setjmp.h: Updated for H8/500.
19286
19287 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19288
19289         * libc/sys/win32/syscalls.c (_open): More stracing.
19290         (_stat): Open the file in O_BINARY.
19291
19292 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19293
19294         * libc/machine/h8300/setjmp.S: New file.
19295         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19296
19297 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19298
19299         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19300         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19301         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19302         __exe_suffix.  Free fd_tab after setting env variable.
19303         (spawnv,_execve): Update.
19304         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
19305         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
19306         (__small_vfprintf): New function.
19307         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
19308         * libc/sys/win32/wait.c (cwait): Validate argument.
19309
19310         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
19311         (process_deletion_queue): Likewise.
19312
19313         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
19314
19315 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
19316
19317         * libc/sys/win32: Copyrights and gratuitous indenting.
19318
19319 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
19320
19321         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
19322         (process_deletion_queue): Likewise.
19323         (__close_all_files): New function.
19324         (_close): Only queue file deletion if really a file.
19325         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
19326         _P_APPEND_EXE.
19327         (_exit): Call __close_all_files.
19328
19329         * libc/stdlib/system.c: #include <errno.h>.
19330         (_system_r): Fix results in -DNO_EXEC case.
19331
19332         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
19333         Reorganize structure.
19334         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
19335         if argument is valid.  Save directory name in DIR.  malloc space
19336         for dirent struct separately.
19337         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
19338
19339         * libc/include/errno.h (ENAMETOOLONG): Define.
19340         * libc/string/strerror.c (strerror): Reword ENFILE.
19341         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
19342
19343 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
19344
19345         * libc/sys/win32/crt0.c (__progname): New global.
19346         (mainCRTStartup): Support strace=bitmask,filename.
19347         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
19348         * libc/sys/win32/syscalls.c (_write): Print parent trace message
19349         if error.
19350         (getcwd): Handle len too small.  Convert '\\' to '/'.
19351         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
19352         Add prototypes for open, creat, fcntl.
19353         (O_APPEND): Change value to conform to Microsoft's value.
19354         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
19355
19356         * libc/stdlib/getopt.c: New file.
19357         * libc/stdlib/Makefile.in: Build it.
19358
19359 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
19360
19361         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
19362         Fix scanning of $PATH.
19363         * libc/posix/exec*.c: Call _execve, not execve.
19364         * libc/posix/execve.c: New file.
19365         * libc/posix/Makefile.in (OFILES): Add execve.o.
19366
19367         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
19368         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
19369         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
19370         * libc/sys/win32/crt0.c: Update _STRACE calls.
19371         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
19372
19373         * libc/sys/win32/smallprint.c (rn): Fix digit list.
19374
19375         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
19376         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
19377         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
19378         Print __seterrno trace message first.
19379         (_execve): Renamed from execve.
19380         (vfork): Update __strace usage.
19381         (__vfork_child_pid): Deleted.
19382         (__vfork_children, __vfork_child_idx): New globals.
19383         (_spawnvp): New function.
19384         (spawnvp, spawnv, _execve): Call _spawnvp.
19385         (init_child): Record child in __vfork_children.
19386         (__vfork_get_entry, __vfork_record_death): New functions.
19387         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
19388         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
19389         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
19390         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
19391         (children): New typedef.
19392         (__vfork_children,__vfork_child_idx): Declare.
19393         (__vfork_get_entry,__vfork_record_death): Declare.
19394         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
19395         (waitpid): Handle pid == -1.
19396         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
19397         * configure.in (i386-win32): Add -DNO_FORK.
19398         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
19399         * libc/reent/execr.c (_fork_r): Likewise.
19400         * libc/stdlib/system.c (do_system): New function.
19401         If WIN32, try to get shell path from $SH_PATH, use vfork.
19402         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
19403         otherwise return 0.
19404
19405 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
19406
19407         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
19408         * libc/sys/win32/fcntl.h: Don't include self.
19409         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
19410         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
19411         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
19412         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
19413         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
19414         Correct prototypes.
19415         * libc/sys/win32/strace.c: New file.
19416         * libc/sys/win32/smallprint.c: New file.
19417         * libc/sys/win32/crt0.c (func): Delete.
19418         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
19419         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
19420         * libc/sys/win32/exceptions.c: Lint.
19421         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
19422         Clean up handle usage.
19423         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
19424         (open.c): Default file type is text.
19425         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
19426         * libc/sys/win32/advapi32.def: New
19427
19428 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19429
19430         * configure.in (posix_dir, libc_posix_lib): New variables.
19431         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
19432         (i[345]86-*-win32): Define posix_dir.
19433         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
19434         (if unix_dir): Fix typo.
19435         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
19436         scandir,seekdir,telldir}: New files.
19437         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
19438         from libc/unix.
19439         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
19440         (SUBDIRS): Add posix.
19441         (SUBLIBS): Add $(LIBC_POSIX_LIB).
19442
19443         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
19444         (NSIG): Increase to 21.
19445         * libc/include/sys/unistd.h (pid_t): Move from here,
19446         * libc/include/sys/types.h (pid_t): to here.
19447
19448         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
19449         (__ptrace): Delete.
19450         (hinfo): New members close_exec_p, child_created_p.
19451         (struct exception_list): Define.
19452         (__hmap): Redefine as pointer to table.
19453         (__parent_hmap, __child_hmap): New globals.
19454         (__set_errno, __really_exit): Declare.
19455         (__vfork_child_pid): Declare.
19456         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
19457         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
19458         (__parent_hmap, __child_hmap): New globals.
19459         (__hmap): Redefine as pointer to active map.
19460         (__get_console): New function.
19461         (mainCRTStartup): Change leading '=' in environ vars to '!'.
19462         (env __FD_TABLE__): Watch for this and initialize our fd/handle
19463         mapping table from it if defined.
19464         (argv, envp): Dump if __strace >= 4.
19465         (main): Call here.
19466         * libc/sys/win32/exceptions.c (myp): Redefine.
19467         (__syscalls_b): Delete.
19468         (__stack_trace): New function.
19469         (ehandler3): Update to use _STRACE.  Print stack trace.
19470         Call __really_exit instead of exit.
19471         (init_exceptions): Delete args argc,argv.  New arg mine.
19472         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
19473         FindFirstFileA, FindNextFileA, GetComputerNameA,
19474         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
19475         * libc/sys/win32/signal.c (signal): Validate arg.
19476         (alarm, sleep): Define as stubs for now.
19477         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
19478         (__syscalls_b, errno): Delete.
19479         (__vfork_child_pid, __vfork_jmp_buf): New globals.
19480         (__seterrno): Handle more errors.
19481         (__sys_printf): Renamed from _ptrace.
19482         (__really_exit): New function.
19483         (queue_file_deletion, process_deletion_queue): New functions.
19484         (__resume_parent): New function.
19485         (_unlink): Handle trying to delete open file.
19486         (__totime_t): Renamed from totime_t.
19487         (setsid, __read, __write): New functions.
19488         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
19489         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
19490         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
19491         * libc/sys/win32/console.c: Update to new definition of __hmap.
19492         * libc/sys/win32/Makefile.in: Build new files.
19493         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
19494         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
19495         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
19496         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
19497
19498 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19499
19500         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
19501
19502 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19503
19504         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
19505         have been made to the master dtoa.c sources (from netlib.att.com)
19506         since they were integrated into newlib in early 1992.  Fixes
19507         problems with storage leaks and handling of numbers with very
19508         negative exponents.
19509
19510 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19511
19512         * Makefile.in (all): set rootpre and srcrootpre before calling
19513         sub-makes.
19514
19515 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19516
19517         * libc/sys/win32/crt0.c: Change __hmap usage.
19518         * libc/sys/win32/exceptions.c: Use _ptrace call.
19519         * libc/sys/win32/syscalls.c: Use _ptrace call.
19520         (read, write): Cope with DOS style CRLF when in TEXT mode.
19521         * libc/sys/win32/syscalls.h: Declare hinfo struct.
19522         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
19523         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
19524         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
19525         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
19526
19527 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19528
19529         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
19530
19531         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
19532         wrappers for hypot() and remainder() for BSD libm compatibility.
19533         These are public domain implementations written by me for the
19534         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
19535         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
19536         (fobj): Added wf_cabs.o and wf_drem.o.
19537
19538 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19539
19540         * libc/sys/h8500hms/misc.c: New file.
19541         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
19542
19543 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19544
19545         * libc/time/localtime.c (localtime): Fix problem with leap year
19546         handling.  Stole algorithm from Arthur David Olson's tz code.
19547
19548 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
19549
19550         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
19551
19552         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
19553         (_exit): Use argument.
19554
19555 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
19556
19557         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
19558
19559 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19560
19561         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
19562
19563 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19564
19565         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
19566         target_cflags.
19567
19568 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
19569
19570         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
19571         ptrace with case insensitivity
19572         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
19573         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
19574         New files.
19575
19576 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
19577
19578         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19579         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
19580         (all, install, *clean): Use new multilib support.
19581         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19582
19583 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
19584
19585         * libc/include/sys/signal.h (__WIN32__): New.
19586
19587         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
19588
19589         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
19590         (ulp, b2d): Handle 32 bit doubles.
19591         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
19592         * libc/stdlib/strtod.c (_strtod_r): Ditto.
19593
19594 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
19595
19596         from medp@primag.co.uk:
19597         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
19598         dynamically allocated buffers.
19599
19600 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
19601
19602         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
19603         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
19604
19605 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19606
19607         * configure.in (powerpc): Fix previous fix.
19608
19609 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19610
19611         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
19612         directories for this target.
19613
19614 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
19615
19616         * configure.in (hppa): Add machine_dir definition.
19617         * libc/machine/hppa: New directory with PA specific implementations
19618         of the basic memory/string functions.
19619
19620 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19621
19622         * configure.in: Update current PowerPC multilib directories.
19623         Split big and little endian configurations.
19624
19625 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
19626
19627         * configure.in: Add --enable-single-float option to configure to
19628         control use of MIPS single-float directories.  Default to yes.
19629
19630         * Makefile.in (all): Don't recurse into multilib directory if it
19631         does not exist.
19632
19633 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19634
19635         * libc/sys/sh/syscalls.c: Fix typo.
19636
19637 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19638
19639         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
19640         Pass down DLLTOOL.
19641         * libc/include/process.h: Define WAIT_CHILD.
19642         * libc/include/types.h: Get sizes right for win32.
19643         * configure.in (i386-*-pe): Becomes i386-win32.
19644         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19645         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
19646         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
19647         is defined.
19648
19649 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19650
19651         * configure.in (i[345]86-*-pe):  New target (NT).
19652         * host/any: DLLTOOL new.
19653         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19654         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
19655         WIN32 (just enough to cross host the comp-tools).
19656
19657 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
19658
19659         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
19660         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
19661
19662 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
19663
19664         * libc/include/machine/ieeefp.h (arm): Change to always be
19665         __IEEE_BIG_ENDIAN (even on little endian ARM's).
19666
19667 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19668
19669         * libc/sys/crt0.S: Initialze sp, and call exit after main.
19670         * libc/sys/syscalls.c (abort): New.
19671         * configure.in (arm): Define ABORT_PROVIDED.
19672
19673 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19674
19675         * configure.in (powerpc): Define multidirs.
19676
19677 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
19678
19679         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
19680
19681 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
19682
19683         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
19684
19685 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19686
19687         * configure.in, libc/include/machine/ieeefp.h: Modified
19688         for arm:
19689         libc/machine/arm/*, libc/sys/arm/*: New
19690
19691 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19692
19693         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
19694           __powerpc__ when determining endianness.
19695
19696 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19697
19698         * configure.in (m68*): Add multidir for the m68332.
19699
19700         * host/any (CC): Fix typo in last change.
19701
19702 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
19703
19704         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
19705         when determining endianness.
19706         * libc/include/machine/ieeefp.h: Ditto.
19707         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
19708         operands.
19709
19710 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
19711
19712         * libc/include/errno.h (ENOTEMPTY): Define.
19713
19714 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19715
19716         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
19717           target_cflags.
19718
19719         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
19720           and umultiply.o.
19721
19722         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
19723           instead of only when open succeeds.  ANSI requires that multiple
19724           calls to tmpnam() result in different files.
19725
19726         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
19727           objects pulled in from /lib/libc.a that must be renamed before
19728           being pulled into newlib.  /lib/libc.a's div.o conflicted with
19729           newlib's file with the same name.
19730
19731         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
19732
19733         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
19734           the build tree will only be used if the executables are present
19735           (instead of just the Makefiles).
19736
19737         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
19738           wcstombs): Define.
19739         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
19740           versions of these functions that I orignally wrote for the
19741           NetBSD C library.
19742         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
19743           versions I wrote for NetBSD.
19744
19745 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
19746
19747         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
19748         * libc/sys/sparclite/crt0.s: ditto.
19749
19750 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
19751
19752         * configure.in: Add soft-float for proelf.
19753
19754 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
19755
19756         * libc/stdlib/mprec.h (Bcopy): Copy the right number
19757         of bytes.
19758
19759 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
19760
19761         * Makefile.in (all): Depend on `force'.
19762         * configure.in (syscall_dir): Renamed from fake_sys_dir.
19763         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
19764         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
19765         * libc/Makefile.in: Likewise.
19766         * libc/include/reent.h: Update syscall references.
19767         (_fcntl_r): Add prototype.
19768         * libc/syscalls/*.c #include <reent.h>.
19769         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
19770
19771 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
19772
19773         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
19774         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
19775         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
19776         (time.h, sys/types.h): Always include (even if MSDOS).
19777         (stat): Fix prototype.
19778
19779 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
19780
19781         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
19782
19783 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19784
19785         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
19786
19787 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
19788
19789         * libc/include/regdef.h: New file.
19790         * libc/machine/mips/machine/regdef.h: New file.
19791
19792 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
19793
19794         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
19795
19796 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
19797
19798         * libc/sys/sh/crt0.S: Pass main's return to exit.
19799         * libc/sys/sh/trap.S: Put errno in the right place.
19800
19801 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19802
19803         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
19804         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
19805         * libm/math/ef_rem_pio2.c: Likewise.
19806         * libm/math/e_log10.c: Remove unused static one.
19807         * libm/math/ef_log10.c: Likewise.
19808         * libm/math/s_frexp.c: Likewise.
19809         * libm/math/sf_frexp.c: Likewise.
19810
19811 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
19812
19813         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
19814         longjmp.S: Upgraded.
19815         * libc/sys/go32/sys/setjmp.h: Upgraded.
19816         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
19817
19818 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19819
19820         * configure.in: Add many entries to multidirs for mips targets.
19821
19822 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19823
19824         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
19825           5.2 which fixes bug where jn(-1,x) is three times larger than
19826           the actual answer.
19827         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
19828
19829 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
19830
19831         * libc/sys/w65/sys/syscalls.h: New file
19832         * libc/include/machine/ieeefp.h: W65 support.
19833         * libc/include/sys/config.h: Ditto.
19834         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
19835         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
19836         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
19837
19838 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19839
19840         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
19841
19842 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
19843
19844         * Makefile.in, configure.in: Remove any references to the old
19845         "stub" dir.
19846
19847 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19848
19849         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
19850         uses ... in prototype.
19851
19852
19853 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
19854
19855         * libc/sys/a29khif/sys/libconfig.h: Remove.
19856         * libc/sys/go32/sys/libconfig.h: Remove.
19857         * libc/sys/sun4/sys/libconfig.h: Remove.
19858         * libc/sys/sysvi386/sys/libconfig.h: Remove.
19859         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
19860         * libc/sys/sparc64/sys/libconfig.h: Remove.
19861
19862         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
19863         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
19864         * libc/include/math.h: Change all uses of _FLOAT_RET and
19865         _FLOAT_ARG to float.
19866         * libm/test/math.c: Likewise.
19867         * testsuite/libm.sac/math.c: Likewise.
19868         * testsuite/libm.sac/working/math.c: Likewise.
19869
19870 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19871
19872         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
19873         gcc calls gas with endian option.
19874         * configure.in (sh): Build little endian version too.
19875
19876 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19877
19878         * configure.in: Configure big and little endian versions for MIPS
19879         targets.
19880
19881 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
19882
19883         * libc/include/limits.h: Deleted.
19884         * libc/include/machine/limits.h: Deleted.
19885
19886 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
19887
19888         * ChangeLog: Remove stub directory. This has all been rewritten
19889         and moved to devo/libgloss.
19890
19891 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19892
19893         * Makefile.in (dvi): Add to info target, use $@ in sub make.
19894         (docs): Merge into info target.
19895         * libm/Makefile.in (dvi): Add $(srcdir).
19896         * libm/math/Makefile.in (chobjs): Remove underscores from file
19897         names.  Texinfo doesn't like them.
19898         (wacos.def, ...): Add explicit targets for all .def files.
19899         * libm/math/math.tex: Remove underscores from @include file names.
19900         * doc/Makefile.in (dvi): Add dummy target.
19901         * testsuite/Makefile.in (dvi): Add dummy target.
19902
19903 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
19904
19905         * Makefile.in (VERSION): Define.  For net newlib releases.
19906
19907 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
19908
19909         * README: New file.
19910
19911 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19912
19913         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
19914
19915 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19916
19917         * libc/stdlib/setenv.c (_findenv): Declare.
19918
19919         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
19920         fcntl to not use _EXFUN, and change string parameters to open and
19921         creat to be ``const char *''.
19922         * libc/sys/sparc64/sys/fcntl.h: Likewise.
19923         * libc/sys/sparc64/creat.c (creat): Make PATH const.
19924         * libc/syscalls/sysopen.c: Include <fcntl.h>.
19925         (open) Make _FILE const.
19926         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
19927         (_creat): Make PATH const.
19928         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
19929         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
19930         * libc/sys/m88kbug/syscalls.c (open): Likewise.
19931         * libc/sys/sh/syscalls.c (_open): Likewise.
19932         * stub/shared/glue.c (open): Make BUF const.
19933         * stub/ex93x/syscalls.c (open): Make FILENAME const.
19934
19935 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19936
19937         * libc/include/errno.h: Add ENMFILE
19938         * libc/include/sys/config.h: Support Z8000.
19939         * libc/include/sys/signal.h: New signals for go32.
19940         * libc/machine/h8500/psi.S (__addpsir0r0): New function
19941         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
19942         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
19943         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
19944         size is variable, depending upon CHUNK_POWER.
19945         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
19946
19947 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19948
19949         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
19950
19951 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19952
19953         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
19954
19955 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19956
19957         * configure.in: Change i[34]86 to i[345]86.
19958
19959         * libc/include/math.h: Don't define HUGE_VAL if it is already
19960         defined.
19961
19962 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19963
19964         * testsuite/libm.sac/test_erfc.c: Correct some result values.
19965         * testsuite/libm.sac/test_gammaf.c: Likewise.
19966         * testsuite/libm.sac/test_sin.c: Likewise.
19967         * testsuite/libm.sac/test_tanh.c: Likewise.
19968
19969 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19970
19971         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
19972         already set.  Define typedefs __int32_t and __uint32_t.
19973         * libc/include/math.h: Include <machine/ieeefp.h>.
19974         (union __dmath): Use __uint32_t.
19975         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
19976         instead of int and unsigned int.
19977
19978 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19979
19980         Replace the math library with the SunPRO fdlibm package.
19981         * libm/math: Completely changed all files.
19982         * libm/ieeefp: Remove contents and directory.
19983         * libm/Makefile.in (LIBM_FP_LIB): Remove.
19984         (SUBDIRS): Just set to math/lib.a.
19985         * libm/libm.texinfo: Updated for new library.
19986         * libc/include/math.h: Extensive changes for new math library.
19987         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
19988         from _FLOAT_ARG to float.
19989         (maxpowtwo, maxpowtwof): Don't declare.
19990         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
19991         (libm_fp_lib): Removed.
19992         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
19993         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
19994         argument to ${RUNTEST}.
19995         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
19996         (.c.o): New rule.
19997         (RUNTESTFLAGS): Set CC and CFLAGS.
19998         (TESTS): Remove test_log2 and test_log2f.
19999         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
20000         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
20001         _FLOAT_ARG, for single precision argument type.
20002         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
20003         expected failure.  Close the input pipe.
20004         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
20005         Correct misspelling of inaccurate.
20006         (test_mok): Use ``inaccurate'', not ``wrong''.
20007         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
20008         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
20009         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
20010         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
20011         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
20012         test_yn.c): Correct many result values.  Many are still wrong.
20013
20014         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
20015         just copy the string.
20016         (_gcvt): Always return the buffer.
20017
20018 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20019
20020         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
20021
20022 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
20023
20024         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
20025         structure.
20026         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
20027         (_reclaim_reent): declare new entry point.
20028         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
20029         functions.
20030
20031         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
20032         ever allocated, so that we can later reclaim them all.
20033         (pow5mult): make reentrant.
20034
20035         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
20036         so that when given NULL as a buffer, return a pointer to static
20037         space in the rent structure.  This is not documented behaviour;
20038         it's only to support ecvt and fcvt, which aren't ANSI anyway.
20039         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
20040         therefore become reentrant).
20041
20042         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
20043
20044 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20045
20046         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
20047
20048 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20049
20050         * Makefile.in: Make link to libg.a after libc.a; this is needed
20051           for the testsuites to build executables when everything comes
20052           from the tree.
20053
20054 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
20055
20056         * libc/Makefile.in: Add a VERSION variable so we can keep track.
20057         * libm/Makefile.in: Add a VERSION variable so we can keep track.
20058
20059 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20060
20061         * libc/include/stdio.h: Use __VALIST, not va_list.
20062
20063 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
20064
20065         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
20066         testsuite/libm.sac/execute.exp:
20067           Replace error proc calls with perror calls.
20068
20069 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
20070
20071         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
20072         * libc/include/time.h: #define NULL as 0L.
20073
20074 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20075
20076         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20077         care of it.
20078
20079 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20080
20081         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20082         not __unix__.
20083
20084 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20085
20086         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20087         (z8k-*-*): Use syscalls fake sys dir.
20088         * libc/sys/z8k/glue.c: Rename syscalls.
20089         * libc/sys/go32/Makefile.in: Use new routines.
20090         * libc/machine/Makefile.in: Fix typo in ln stuff.
20091
20092 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20093
20094         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20095         * libc/Makefile.in (crt0.o): Likewise.
20096         * libc/machine/Makefile.in (lib.a): Likewise.
20097         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20098
20099         All Makefile.in files: Added mostlyclean, realclean and distclean
20100         targets.
20101
20102         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20103         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20104         the top level Makefile.
20105
20106 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20107
20108         * libc/sys/sparc64/sys/stat.h: New file.
20109         * libc/sys/sparc64/sys/time.h: New file.
20110         * libc/sys/sparc64/sys/types.h: New file.
20111
20112 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20113
20114         * stub/ex93x/crt0.s (start): Add code to clear bss.
20115
20116 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20117
20118         * libc/include/sys/types.h (time_t): Properly protect inside
20119         #ifndef __time_t_defined.
20120
20121         * libc/stdio/fileno.c: New file.
20122         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20123         (fileno.o): Add dependency.
20124         * libc/include/stdio.h (__sgetc): Rename never to _never.
20125         (fileno macro): Disable, needs to do CHECK_INIT first.
20126
20127 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20128
20129         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20130         goal.
20131
20132         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20133         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20134         runtest.
20135         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20136         runtest.
20137
20138 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20139
20140         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20141         of the various constants.
20142
20143 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20144
20145         * libc/include/math.h: #ifndef __math_68881 around things which
20146         conflict with the (gcc-provided) inline functions in
20147         gcc/ginclude/math-68881.h.
20148
20149 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20150
20151         * libc/include/_syslist.h (_gettimeofday): Define.
20152         (_times): Ditto.
20153         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20154         (struct tms, timeval, timezone): Declare.
20155         (_gettimeofday_r, _times_r): Declare.
20156         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20157         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20158         (time_t): Add multiple definition protection, __time_t_defined.
20159         * libc/include/sys/time.h: Don't #include <time.h>.
20160         Always define struct timezone (remove #ifndef _TIME_H_).
20161         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20162         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20163         * libc/reent/Makefile.in (OFILES): Add timer.o.
20164         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20165         * libc/reent/timer.c: New file.
20166         * libc/time/clock.c: #include <reent.h>.
20167         (clock): Call _times_r instead of times.
20168         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20169         HAVE_GET_TIME_OF_DAY.
20170         Add comment regarding supporting OS routine(s) required (for docs).
20171         #include <reent.h>.
20172         (time): Call _gettimeofday_r instead of gettimeofday.
20173         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20174         * libc/time/ctime.c: Ditto.
20175         * libc/time/strftime.c: Ditto.
20176         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20177         (TEMPLATE_SFILES_R): Define here.  Also define times.
20178         Add times_r.o/times.S dependence.
20179         (time2.c, junk.c): Deleted.
20180         * libc/sys/sparc64/time2.c: Deleted.
20181         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20182
20183         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20184         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20185         * libc/sys/sparc64/junk.c: Deleted.
20186
20187 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20188
20189         * libc/sys/sparc64/Makefile.in: Add times syscall.
20190         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20191         be used with and without it.  Add comment clarifying Medium/Anywhere
20192         model requirements.
20193         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20194         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20195         even if obsolete.
20196
20197 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20198
20199         * configure.in (target_cflags): Move init.
20200         (sparc64-*-*): Define HAVE_BLKSIZE.
20201
20202 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20203
20204         * libc/include/sys/_types.h: New file.
20205         * libc/include/reent.h: #include it.
20206         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20207         MISSING_SYSCALL_NAMES.
20208         Sort syscalls.
20209         * libc/include/_syslist.h: Remove _raise.
20210         * libc/reent/signalr.c: New file.
20211         * libc/reent/Makefile.in: Compile it.
20212         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20213         Add doc for raise and _raise_r.
20214         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20215         (raise): Call _raise_r.
20216         (_raise_r): Call _getpid_r and _kill_r.
20217         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20218         (abort): Loop forever calling raise and _exit.
20219
20220 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20221
20222         * configure.in: Remove extraneous echo.
20223
20224 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20225
20226         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20227         collision with unistd.h, and fix for svr4.
20228
20229 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20230
20231         * libc/stdio/local.h (_llicvt): Declare.
20232         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20233         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20234         (_llicvt): Define.
20235         (_sicvt): Fix function header (`value' is short).
20236         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20237         Add printing of long long's support.
20238         Add printing of 8 byte pointer support.
20239
20240 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20241
20242         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20243         stat, chmod): New hooks.
20244         (sbrk): Abort if stack and heap collide.
20245         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20246         shortcut when given small args.
20247         * libc/machine/sh/setjmp.s: Rewritten.
20248         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20249         of cmp/str instruction.
20250
20251 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20252
20253         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20254         and machine_dir powerpc.
20255         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20256         Add cases for __powerpc__.
20257         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20258         New files.
20259
20260         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20261
20262 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20263
20264         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20265         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20266
20267 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20268
20269         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20270         (print_e): More comments to describe args, etc.
20271         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20272         trailing blanks.
20273         (_gcvt): Remove locals decpt, sign, end, p, done.
20274         More comments for print_e invocation.
20275         Pass "type" to print_e as is (g/G).
20276
20277 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20278
20279         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20280         stock m68000.
20281
20282 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20283
20284         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20285         works with any sized pointer, including ones bigger than ints and
20286         longs.
20287
20288 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20289
20290         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20291
20292 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20293
20294         * libc/include/stdlib.h (_calloc_r): Add prototype.
20295         * libc/machine/h8500/negsi2.c: New file.
20296         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20297         large unsigned numbers.
20298         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20299         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20300         works when sizeof(size_t) != sizeof(char *).
20301         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20302         get play area
20303         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
20304
20305 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
20306
20307         * libc/include/assert.h (assert): Handle -traditional.
20308
20309 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
20310
20311         * Makefile.in: added ; after every "fi" and "done" that wasn't at
20312         the end of a line (ie. anything before a backslash continuation)
20313         so that bash handles them.
20314
20315 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20316
20317         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
20318         stat to lstat
20319
20320 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
20321
20322         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
20323         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
20324         libc/machine/sh/udivsi3.s: Use new calling convention.
20325
20326 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
20327
20328         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
20329         chmod, access, chdir, chown by making _path const. Also fix _amode
20330         param of access.
20331
20332 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
20333
20334         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
20335         _khif_tmpnam, because it doesn't comply with ANSI but may be
20336         useful anyway. Real tmpnam was already in libc/stdio, and was
20337         colliding with this one (pr 2176.)
20338         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
20339         the wrong idea anyhow.
20340
20341 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20342
20343         * configure.in: Remove h8300h, we have multilib now.
20344
20345 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
20346
20347         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
20348         functions, to get preference over the ones in libiberty (since we
20349         provide correct declarations in <string.h>.
20350         * libc/string/Makefile.in: add support for strncasecmp,
20351         strcasecmp.
20352
20353 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
20354
20355         * Change netware config not to look for cpu explicitly.
20356
20357 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20358
20359         * libc/sys/sparc64/{creat.c,junk.c}: New files.
20360         * libc/sys/sparc64/Makefile.in: Add dependencies.
20361
20362 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
20363
20364         * configure.in: Clean up v9 a bit, new "os" aoutv8.
20365
20366 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
20367
20368         * libc/include/sys/reent.h: make structure smaller by allocating
20369         some stuff when needed.
20370         * libc/signal/signal.c: allocate as needed
20371         * libc/stdio/findfp.c,stdio/local.h: ditto
20372         * libc/stdlib/mprec.c: ditto
20373
20374         * libc/time/localtime.c: don't return a dangling stack ptr.
20375
20376 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20377
20378         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
20379
20380 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20381
20382         * libc/include/stdio.h (__sputc): comment out static inline which
20383           confuses coff toolchains.
20384
20385 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
20386
20387         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
20388         _write.s, getpid.c, kill.c, read.s}:
20389         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
20390         through the syscalls directory.
20391
20392 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20393
20394         * configure.in: fixed double quote gotcha.
20395
20396 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20397
20398         * stub/ex931: stub library for sparclite board.
20399         * stub/idp: Renamed from mc68ec. Added contructor table
20400         stuff to linker script.
20401         * stub/mvme135: Renamed from m68kmvme. Added contructor table
20402         stuff to linker script.
20403
20404 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20405
20406         * configure.in: Configure testsuites only if they exist.
20407
20408 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20409
20410         * configure.in: Don't set machine_dir for i386 until there is
20411         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
20412         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
20413         CLOCK_PROVIDED and MALLOC_PROVIDED.
20414
20415         * libc/sys/netware: New directory.  Contains simplistic and
20416         probably incorrect stubs for NetWare.  Should be enough to load
20417         the library.
20418         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
20419         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
20420         stub files.
20421
20422         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
20423         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
20424         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
20425         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
20426
20427 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
20428
20429         * testsuite/Makefile.in: add "docs" dummy target for consistency
20430         with rest of newlib; turn "info" and "install-info" into dummy
20431         targets, since they wouldn't have worked.  (Depended on
20432         nonexistent "doc" subdir.)
20433
20434 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20435
20436         * configure.in: handle mips* instead of mips
20437
20438 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20439
20440         * libc/include/sys/dirent.h: New file.  If it is not overridden by
20441         a version of libc/sys/*/sys/dirent.h, it includes the next
20442         <dirent.h> file in case there is one lurking somewhere.
20443
20444 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20445
20446         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
20447         compliance, namely: Accept a minus sign.  Consider a single 0 with
20448         a radix of 0 as being a conversion.  Determine overflow correctly.
20449         If an overflow occurs, set *ptr to the end of the number, not the
20450         middle.
20451         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
20452
20453 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
20454
20455         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
20456
20457 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
20458
20459         * Makefile.in (INSTALL): Use $srcrootpre.
20460         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
20461         can't handle it.
20462         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
20463         it.
20464         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
20465         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
20466         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
20467         * libm/math/Makefile.in (matherr.o): Ditto.
20468
20469 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20470
20471         * configure.in: Build multidirs for z8k.
20472         * libc/include/stdlib.h (_strtoul_r): add prototype.
20473         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
20474         * libc/include/machine/setjmp.h: Add for z8k.
20475         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
20476         * libc/sys/z8ksim/glue.c: tidy up.
20477
20478 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
20479
20480         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
20481         New files.  Requires execve system call.
20482         * libc/unix/Makefile.in: Use them.
20483         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
20484         Deleted, moved to libc/unix.
20485         * libc/sys/sparc64/Makefile.in: Remove them.
20486
20487 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20488
20489         * libc/sys/sparc64/{template.S template_r.S}: New files.
20490         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
20491         from templates.
20492         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
20493         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
20494         umask.S unlink.S wait4.S write.S}: Removed, now built from
20495         templates.
20496
20497 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
20498
20499         * libc/time/time.c: #include <_ansi.h>.
20500
20501 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20502
20503         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
20504
20505 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20506
20507         * configure.in: match m8* rather than m88k so that m88110 is
20508           recognized as well.
20509
20510 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20511
20512         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
20513         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
20514         misc.c: New file.
20515
20516         * configure.in: Add multilib support to h8300.
20517
20518 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20519
20520         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
20521         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
20522         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
20523
20524 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20525
20526         * configure.in: Corrected multidirs for sparc target.
20527
20528 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20529
20530         Support for building newlib multiple times with different
20531         compilation flags.
20532         * configure.in: Only configure doc at top level.  Set multidirs
20533         when appropriate for target, unless not at top level.  If
20534         multidirs is set, independently configure each subdirectory.
20535         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
20536         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
20537         automagically set by configure.in.
20538         (all): If MULTIDIRS is set, build multiple copies of libraries.
20539         (install): If MULTIDIRS is set, install multiple copies of
20540         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
20541         MULTISUBDIR is set, don't bother to install header files.
20542         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
20543         ${srcrootpre}.
20544         * stub/configure.in: Set MULTISUBDIR appropriately.
20545         * stub/Makefile.in (install): Install in
20546         $(tooldir)/lib/$(MULTISUBDIR).
20547         * All Makefile.in files: Define SRCTOP as well as TOP.
20548
20549 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
20550
20551         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
20552         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
20553
20554 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
20555
20556         * libc/sys/h8300hms/exit.c (_exit): New function.
20557
20558 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20559
20560         * configure.in: recognize m88110.
20561
20562 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20563
20564         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
20565           prototype main and call with args.
20566
20567 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
20568
20569         First real try at system traps for m88k-bug.
20570         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
20571           to real trap calls.
20572         * libc/sys/m88kbug/sys/systraps.h: new file.
20573
20574 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20575
20576         Patches to fix info building when target does not use sys
20577         directory.
20578         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
20579         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
20580           libc/sys.tex.
20581         * libc/sys/Makefile.in (doc): do nothing.
20582
20583 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20584
20585         * libc/Makefile.in (CRT0): new macro.
20586           (all): depend on $(CRT0) rather than crt0.o.
20587
20588         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
20589           do not default crt0, instead, set crt0 and crt0_dir based on
20590           sys_dir and stub_dir.
20591
20592         * Makefile.in (CRT0_DIR): new macro.
20593           (all): depend on $(CRT0) rather than crt0.o which may not exist.
20594           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
20595           $(CRT0).
20596           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
20597
20598 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20599
20600         * testsuite/lib/libm.exp:
20601                 added code to support compiling and linking of tests for
20602                 libm.sac (paranoia to be added next) and processing the
20603                 pass or failure of the tests.
20604
20605         * testsuite/config/unix-libm.exp:
20606                 platform specific proc's for dealing with compiler, linker
20607                 and the way we execute and process the test results.
20608
20609         * testsuite/libm.sac/execute.exp:
20610                 generic framework for the sac tests. the config and lib
20611                 expect code for specific platforms tie it all together.
20612
20613         * testsuite/libm.sac/test_is.c:
20614                 changed the output of the test to be consistant with the
20615                 other tests. parsing of pass nad fail messages is now fixed.
20616
20617 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
20618
20619         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
20620         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
20621         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
20622         #ifdef __cplusplus, surround by extern ""C { ... }.
20623         * libc/include/assert.h:  Do *not* protect assert.h against
20624         multiple inclusion!  Also, #undef it before #define, to allow
20625         redefinition.
20626         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
20627         should be only in unistd.h.
20628
20629         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
20630         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
20631         ... }.
20632
20633 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
20634
20635         * libc/machine/sparc/Makefile.in: Must create a library, even
20636         if empty.
20637
20638 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20639
20640         * configure.in: set machine_dir for m88k.  edit crt0 definition
20641           into makefiles.
20642
20643         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
20644
20645         * libc/Makefile.in (all): also build crt0.o.
20646
20647         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
20648           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
20649           to remove CRT0.
20650
20651         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
20652           (all): reworked to build in place.
20653           (clean): remove lib.a
20654           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
20655
20656         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
20657           (_start): key off edata rather than _start_bss.
20658
20659 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
20660
20661         * libc/include/sys/unistd.h, libc/include/reent.h,
20662         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
20663
20664 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20665
20666         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
20667
20668         * Makefile.in (libc.a): break into two rules, one for libc.a and
20669           one for libc/libc.a.  Force subdirs current before rebuilding
20670           library.
20671           (libm.a): break into two rules, one for libm.a and one for
20672           libm/libm.a.  Force subdirs current before rebuilding library.
20673
20674         * libc/Makefile.in (SUBLIBS): fix typo.
20675
20676         * libc/sys/Makefile.in (all): force descent into subdirs, then
20677           rebuild library iff out of of date.
20678
20679 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20680
20681         Rework so that library is built and then finished rather than
20682         being built on each invocation of make.
20683
20684         * host/any (machine_dir, sys_dir, signal_dir): these are not
20685           shared and have been moved to their associated Makefile.in's.
20686           (AR_FLAGS): switch to qc which is faster.
20687         * configure.in: no longer assign machine_dir for m88k.  set
20688           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
20689           stub_dir set, then add to configdirs.  add comment about silly
20690           configuration.
20691           (configdirs): drop stub.  It will be added only
20692           when needed.
20693           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
20694           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
20695           stub_lib, crt0): new variables for tailoring lower level
20696           makefiles.  Assign accordingly and edit into makefiles.
20697         * libm/Makefile.in: updated copyright.
20698           (TARGETLIB): removed.
20699           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
20700           (SUBDIRS): removed TARGETDEP_DIRS.
20701           (LIBM_FP_LIB, SUBLIBS): new macros.
20702           (all): reworked.
20703           (force): new target to force rebuilds.
20704           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20705         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
20706           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
20707           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
20708           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
20709           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
20710           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
20711           stub/m68kmvme/Makefile.in: updated copyright.
20712           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
20713           (all): reworked.  made this the default rule.
20714           (clean): also remove lib.a.
20715           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20716         * stub/Makefile.in: updated copyright.
20717           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
20718           (stub_lib): new macro.
20719           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
20720           RANLIB.
20721           (all): reworked.
20722           (clean, install): assume stub_dir exists.
20723           (Makefile): depend on configure.in.  call $(SHELL) rather than
20724           sh.  drop redundant ./
20725         * stub/configure.in (stublib): new macro, assign it, edit it into
20726           makefiles.
20727         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
20728           updated copyright.
20729           (all): reworked.
20730           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20731         * libc/Makefile.in (TARGETCRT0): removed.
20732           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
20733           TARGETCRT0.
20734           (SUBDIRS): drop TARGETDEP_DIRS.
20735           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
20736           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
20737           (force): new target to force rebuilds.
20738         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
20739           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
20740           removed.
20741           (clean): assume sys_dir always exists.
20742         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
20743           drop redundant ./
20744         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
20745           libc/locale/Makefile.in, libc/machine/Makefile.in,
20746           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
20747           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
20748           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
20749           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
20750           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
20751           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
20752           libc/signal/Makefile.in, libc/stdio/Makefile.in,
20753           libc/stdlib/Makefile.in, libc/string/Makefile.in,
20754           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
20755           libc/time/Makefile.in, libc/unix/Makefile.in,
20756           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
20757           (TARGETLIB): removed.
20758           (all): reworked.
20759           (clean): also remove lib.a.
20760           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20761         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
20762           new macros.
20763           (SUBDIRS): moved to follow frag inclusion, change stub to
20764           stub_dir.
20765           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
20766           are now set in the libc Makefile.
20767         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
20768           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
20769           TARGETCRT0.
20770           (force): new target to force rebuilds.
20771         * stub/configure.in: determine and set stub_lib for for Makefile.
20772
20773 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
20774
20775         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
20776         crt0.s renamed to crt0.S.
20777         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
20778
20779         * libc/machine/h8300/Makefile.in: Make `all' the default target.
20780         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
20781         h8300h.
20782         * libc/machine/h8300/defines.h: Add macros to handle pointers for
20783         h8300 (16 bits) and h8300h (32 bits).
20784         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
20785         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
20786
20787 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
20788
20789         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
20790         implementation of setjmp and longjmp for the m88k.
20791         * libc/include/machine/setjmp.h: Added __m88000__ case.
20792
20793 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
20794
20795         * configure.in: Recognize h8300h as variant of h8300.
20796
20797 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20798
20799         * libc/include/sys/unistd.h (read, write): get prototypes right.
20800         (sbrk): New prototype.
20801         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
20802         * libc/stdio/local.h: Include unistd.h.
20803         * libc/machine/h8300/syscalls.c: Names have changed.
20804
20805 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
20806
20807         * configure.in: add sys_dir assignment for m88k-bug.
20808
20809 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
20810
20811         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
20812         a.out or elf.
20813         * libc/sys/sparc64: all *.S files: Use new macros.
20814         * libc/sys/sparc64/isatty.c: New file.
20815         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
20816         functions beyond what newlib provides.
20817
20818 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
20819
20820         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
20821         svr4.
20822
20823 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20824
20825         * libc/include/machine/ieeefp.h: Add support for h8/300h.
20826
20827 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
20828
20829         * configure.in: add m88k.
20830         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
20831         sanity check so no one else need ever chase what I did to find
20832         this.
20833
20834         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
20835
20836 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20837
20838         * doc/makedoc.c: Include <ctype.h>.
20839
20840 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20841
20842         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20843         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20844         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20845
20846         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
20847
20848 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
20849
20850         * libc/include/errno.h (ENOSYS): Added.
20851
20852         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
20853
20854 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20855
20856         * libc/stdio/fflush.c (fflush): Check for reent struct
20857         initialization.
20858         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
20859
20860 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
20861
20862         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
20863         out of dtoa.c so it doesn't pollute the namespace.
20864         * libc/include/_syslist.h: new file -- mappings from _function to
20865         function, for systems where we can't win (by default, all of them,
20866         until we start updating system calls.)
20867         * libc/syscalls: new directory -- stubs for exporting _function
20868         names as unmodified function names.
20869         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
20870         _syslist.h on all platforms by default, but put hooks in for
20871         fake_sys_dir so we can include it when we've renamed the system
20872         calls.
20873         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
20874         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
20875         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
20876         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
20877         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
20878         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
20879         non ANSI functions to call _function.
20880
20881 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
20882
20883         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
20884         when base 16 is specified.  Don't accept non-digits if radix > 10.
20885
20886 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
20887
20888         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
20889
20890 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
20891
20892         * libc/include/sys/stat.h: Surround text after #endif with
20893         comments.
20894
20895 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
20896
20897         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
20898         _malloc_r, _realloc_r, and free_r call the corresponding
20899         non-reentrant functions.
20900
20901         * libm/math/modf.c (modf): We now take the address of ipart, so
20902         don't make it a register variable.
20903
20904 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
20905
20906         * libm/math/*: Rename all xxx_r fns to _xxx_r.
20907
20908 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
20909
20910         * libc/libc.texinfo and embedded docn throughout: formatting
20911         improvements, minor rephrasing for clarity, and improved
20912         reentrancy docn.
20913
20914 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20915
20916         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
20917
20918         * libc/stdio/cvt.c (_licvt): Print the right value on machines
20919         where sizeof(int) != sizeof(long).
20920
20921 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20922
20923         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
20924         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
20925         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
20926         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
20927         libm/math/matherr.c: changes for better docn formatting (info).
20928
20929         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
20930         libc/reent/reent.tex, libc/signal/signal.tex,
20931         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
20932         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
20933         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
20934         makeinfo node defaulting to get better Info file node structure.
20935         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
20936         Also include a few formerly missing sections (subroutines).
20937
20938         * doc/doc.str: delete fossil expansion for "func"
20939
20940         * default.menu, no-signal.menu: delete.
20941
20942         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
20943         method used to adjust doc for missing "signals" chapter when
20944         signal_dir is empty.
20945
20946 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20947
20948         * configure.in: added testsuite/libm.sac
20949
20950 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
20951
20952         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
20953         code model).
20954
20955 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20956
20957         * libm/Makefile.in: Use $(MAKE) rather than make, and define
20958         MAKEOVERRIDES to be empty.
20959
20960 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
20961
20962         * configure.in: Don't build mips-*-* with -msoft-float, since that
20963         makes it incompatible with hard floating point.
20964
20965 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20966
20967         * Makefile.in: added recursive 'make check'
20968
20969 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20970
20971         * configure.in: added ./testsuite ./testsuite/libm.paranoia
20972         * ./testsuite/Makefile.in: created
20973         * ./testsuite/libm.paranoia: paranoia tests added
20974
20975 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20976
20977         * configure.in: For mips-*-* set machine_dir to mips.
20978
20979         * libc/machine/mips: New directory.
20980         * libc/machine/mips/Makefile.in: New file.
20981         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
20982         setjmp and longjmp.
20983         * libc/include/machine/setjmp.h: Added __mips__ case.
20984
20985         * libc/machine/lmips: Removed unused and useless directory.
20986
20987 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
20988
20989         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
20990
20991 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
20992
20993         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
20994         start up).
20995
20996 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
20997
20998         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
20999         SETJMP_H.
21000
21001 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
21002
21003         * libm/test/convert.c: structure member errno -> errno_val.
21004         Must include <errno.h> to use errno, it's a macro now.
21005         * libm/test/math.c: Ditto.
21006         * libm/test/math2.c: Include errno.h.
21007         * libm/test/string.c: Ditto.
21008         * libm/test/test.h: structure member errno -> errno_val.
21009         Remove extern int errno decl.
21010
21011 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
21012
21013         * libc/stdio/Makefile.in: Added dependencies on local header
21014         files.
21015         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
21016         files.
21017
21018 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21019
21020         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
21021
21022 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21023
21024         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
21025         Initialize _data.
21026
21027         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
21028         * libc/stdio/local.h: Add prototype for _licvt.
21029
21030         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
21031         instead of malloc,reealloc.
21032
21033         * libc/stdlib/local.h: New file.
21034         * libc/stdlib/efgcvt.c: #include local.h.
21035         (gcvt): Fix call to _gcvt.
21036         * libc/stdlib/ecvtbuf.c: #include local.h.
21037
21038         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
21039         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
21040         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
21041
21042         * libc/stdlib/atexit.c: moved global data to struct _reent.
21043         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
21044
21045         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
21046
21047 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
21048
21049         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
21050         here from ../reent.h.
21051
21052 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
21053
21054         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
21055         should be provided in both libc.a and libm.a.
21056         (libc.a): Depend on targ-include and libm.a.  Copy
21057         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
21058         (libm.a): Depend on targ-include.
21059         * configure.in (subdirs): Removed libc/math.
21060
21061 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21062
21063         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
21064
21065 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
21066
21067         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
21068         sys/reent.h instead of reent.h.
21069         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
21070         headers moved to sys/reent.h.
21071         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
21072         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
21073         __need__MAX_SIGNALS defined.
21074         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21075         std{in,out,err} refer to new _std{in,out,err} members.
21076
21077 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21078
21079         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21080         case.
21081
21082 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21083
21084         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21085         rather than whatever macro seterrno() has.
21086
21087 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21088
21089         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21090         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21091
21092         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21093         __STDC__.
21094
21095         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21096         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21097         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21098
21099         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21100         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21101
21102         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21103         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21104         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21105         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21106         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21107         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21108         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21109         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21110         for ANSI.  structure members given leading "_" for ANSI.  Use
21111         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21112
21113         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21114         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21115         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21116         reent_struct renamed to struct _reent for ANSI.
21117         Structure members given leading "_" for ANSI.
21118         _CONST --> const in prototypes.
21119         Use _HAVE_STDC instead of __STDC__.
21120
21121         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21122         _xxx_r.
21123         struct reent_struct renamed to struct _reent for ANSI.
21124         Structure members given leading "_" for ANSI.
21125
21126         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21127         _xxx_r.
21128         struct reent_struct renamed to struct _reent for ANSI.
21129
21130         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21131         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21132         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21133         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21134         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21135
21136         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21137         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21138         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21139         #ifndef _STRICT_ANSI non-ANSI routines.
21140         Reentrant routines renamed from _r_xxx to _xxx_r.
21141         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21142         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21143         Clean up namespace (structure members have leading "_").
21144         struct reent_struct renamed to struct _reent for ANSI compliance.
21145         _CONST --> const in function prototypes.
21146
21147         * libc/include/string.h: Add NULL and size_t.
21148
21149         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21150         unlink, wait, wait4. Reentrant syscall routines close, fork,
21151         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21152         write.
21153         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21154         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21155         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21156         write.S}: Define reentrant versions.
21157         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21158         reentrant syscalls.
21159
21160         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21161
21162         * libc/include/stdlib.h (RAND_MAX): Fix value.
21163
21164 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21165
21166         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21167         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21168         VPATH support targets after all: target.
21169
21170         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21171         exceptionHandler, which is what mvme135-stub.c expects.
21172
21173 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21174
21175         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21176
21177         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21178         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21179         compliant).
21180
21181 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21182
21183         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21184         first.
21185         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21186         _r_write): Ditto.
21187         libc/reent/fstatr.c (_r_fstat): Ditto.
21188         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21189         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21190         libc/reent/statr.c (_r_stat): Ditto.
21191
21192         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21193         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21194         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21195         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21196         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21197         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21198         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21199         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21200         (__swrite): Ditto for _r_lseek, _r_write.
21201         (__sseek): Ditto for _r_lseek.
21202         (__close): Ditto for _r_close.
21203         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21204
21205         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21206         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21207
21208         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21209         to make reent_struct the first argument (and thus consistent with
21210         the rest of newlib).
21211
21212         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21213         reference to __STDC__.
21214
21215 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21216
21217         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21218         global __cleanup.
21219
21220 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21221
21222         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21223         first.
21224         libc/stdio/fclose.c (fclose): Ditto.
21225
21226 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21227
21228         * Run through indent and rename reentrant routines for ANSI.
21229         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21230         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21231         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21232         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21233         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21234         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21235         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21236         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21237         vsprintf.c wbuf.c wsetup.c local.h}
21238
21239         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21240
21241         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21242         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21243         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21244         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21245         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21246         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21247
21248         * Run through indent.
21249         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21250         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21251         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21252         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21253         strxfrm.c}
21254
21255         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21256         localtime.c mktime.c strftime.c time.c}:
21257         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21258
21259         * Reformatting + renaming (for ANSI, GNU style, consistency).
21260         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21261         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21262         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21263
21264 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21265
21266         * libc/include/stdio.h (stdin_r): Fix.
21267
21268 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21269
21270         * Makefile.in: Unexport some variables to keep GNU make from
21271         putting them in the environment and using up needed ARG_MAX space
21272         (a hack is used to let this work with older makes as well).
21273
21274 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21275
21276         * Makefile.in: Use $(MAKE) rather than make.
21277         (MAKEOVERRIDES): Define to be empty.
21278         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21279         (libc.a, libm.a): Depend on targ-include.
21280         * host/any (LD): Don't define.
21281         (INCLUDES): Use targ-include.
21282         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21283         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21284         * libc/Makefile.in: Use $(MAKE) rather than make.
21285         (MAKEOVERRIDES): Define to be empty.
21286         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21287         (all): Rewrote to be slightly smaller.
21288         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21289         Define to be empty.
21290         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21291         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21292
21293 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21294
21295         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21296         with errno/errno.c.
21297
21298 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21299
21300         * Changes for reentrancy.
21301         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21302         Use ptr->_errno, not errno.
21303         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
21304         libc/stdio/remove.c (remove_r): New function.
21305         libc/stdio/rename.c (rename_r): New function.
21306         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21307         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
21308         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
21309         reentrant versions of system calls.
21310         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
21311         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
21312         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
21313         libc/stdio/findfp.c: Include <string.h>.
21314         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
21315         "local.h".
21316         libc/stdio/wbuf.c: Include "fvwrite.h"
21317
21318         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
21319         <string.h>.
21320         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
21321         (NULL): Don't define if already defined.
21322         libc/stdlib/system.c: Call reentrant versions of system calls.
21323         (system_r): New function.
21324
21325         * Changes for reentrancy.
21326         libc/include/_ansi.h (_PARAMS): New macro.
21327         libc/include/errno.h: Define errno as a macro that calls __errno.
21328         (__errno_r): New macro for reentrant code.
21329         libc/include/math.h: Include reent.h.  Declare many reentrant
21330         functions.
21331         (signgam): Now a macro, not a variable.
21332         (struct exception): Added err field.
21333         libc/include/reent.h: Don't declare __sglue.  Added function
21334         declarations.
21335         (struct reent_struct): Moved errno to beginning.  Added _signgam.
21336         libc/include/stdio.h, libc/include/stdlib.h: Added function
21337         declarations.
21338
21339         * More reentrancy hacking.
21340         libc/errno/errno.c (__errno): New function.
21341         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
21342         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
21343         files.
21344
21345         * Added many new reentrant functions to libm/math/*.
21346         libm/math/error.c (__matherror): Added reent_struct pointer
21347         argument. Changed all callers.
21348         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
21349         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
21350         libm/math/tan.h: Removed obsolete unused header files.
21351
21352         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
21353
21354         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
21355
21356 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21357
21358         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
21359         delay slots.
21360
21361 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21362
21363         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
21364
21365 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21366
21367         * libc/reent/reent.tex:  New file.  (text from
21368         newlib/libc/libc.texinfo)
21369         * libc/stdio/tmpnam.c:  fixed doc typo
21370         * libc/stdlib/rand.c:   fixed doc typo
21371
21372 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21373
21374         * libc/reent/reent.tex:  New file.  (text from
21375         newlib/libc/libc.texinfo)
21376
21377 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21378
21379         support for reentrancy
21380         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
21381         new files
21382         * libc/errno/errno.c, libc/include/ieeefp.h,
21383         libc/include/locale.h, libc/include/reent.h,
21384         libc/include/signal.h, libc/include/stdio.h,
21385         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
21386         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
21387         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
21388         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
21389         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21390         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
21391         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
21392         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
21393         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
21394         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
21395         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
21396         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
21397         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
21398         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
21399         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
21400         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
21401         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
21402         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
21403         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
21404         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
21405         libc/time/strftime.c: modify to provide reentracy.
21406
21407         new routines:
21408         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
21409         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
21410         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
21411         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
21412         mstats_r, realloc_r, localeconv_r, setlocale_r
21413
21414 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
21415
21416         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
21417         libc/include/sys/config.h, libc/include/sys/signal.h,
21418         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
21419         provided macros (such as m68000), use the ansi version
21420         (__m68000__) so that the library can be used with code compiled
21421         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
21422         and sparc.
21423
21424 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21425
21426         * configure.in (sparc*): Don't set -fsoft-float for sparc
21427         configurations.  Do set -fsoft-float for sparclite configurations.
21428
21429 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21430
21431         * default.menu, no-signal.menu: alternate forms of libc main menu
21432           (in newlib rather than newlib/libc due to configuration restrictions)
21433
21434         * configure.in: select one of the two menus above, link to
21435         libc.menu
21436
21437         * libc/libc.texinfo: include menu from separate file
21438
21439 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
21440
21441         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
21442         (info): Split long shell command in half.
21443         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
21444         sub-makes, just CHEW and TARGETDOC.
21445         (targetdep.tex): Removed now special handling of sys and machine
21446         subdirectories, made obsolete some time ago.
21447         * libc/machine/Makefile.in (doc): Don't pass everything to
21448         sub-make, just CHEW and TARGETDOC.
21449         (Makefile): New target.
21450         * libc/sys/Makefile.in (Makefile): New target.
21451
21452 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
21453
21454         * Makefile.in (here and most subdirectories): Only pass down CHEW
21455         and TARGETDOC when making info, not for other targets.
21456
21457         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
21458         $(AR_FLAGS) rather than $(ARUPDATE).
21459
21460 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
21461
21462         * Try to reduce command line length:
21463         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
21464         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
21465         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
21466         (info): Pass CHEW to other subdirs.
21467
21468 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
21469
21470         * configure.in: add signal_dir, like unix_dir, but by default it
21471         is set to "signal" so that a29khif can turn it off (since a29khif
21472         has raise() as part of machine-specific signal.s.)
21473
21474 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21475
21476         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
21477         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
21478         correctly.
21479         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
21480         libc/stdio/vfprintf: type lint.
21481         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
21482         initialzation code.
21483         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
21484
21485 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
21486
21487         * stub/mvme135/mvme135-asm.S: new file.
21488         stub/mvme135mvme135-stub.c: moved all assembler routines into
21489         mvme135-asm.S.
21490         stub/mvme135/Makefile.in: build mvme135-stub.o.
21491
21492 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21493
21494         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
21495         sub-Makefiles instead, to try to avoid line length limitations.
21496
21497 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
21498
21499         * libc/include/unistd.h (read, write):  Use void* instead of
21500         char*.
21501
21502 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
21503
21504         * stub/go32/resetpc: sample script to send a reset packet to the
21505         stub
21506
21507         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
21508         DOS environment, which compiles with Turbo C.
21509
21510         * stub/go32/DSER32.LNK: new file, linker commands for serial
21511         remote stub.
21512
21513         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
21514         start up message to identify version; call set_debug_traps.
21515
21516         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
21517         keyboard interaction); call handle_exception() in go_til_stop,
21518         rather than return, so that the remote stub gets control.
21519
21520         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
21521         rename, rather than mv), set flags that work with current Turbo C,
21522         including using the /3 flag; also, add commands to build dser32.
21523
21524         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
21525         default Turbo C installation (\tc rather than \usr)
21526
21527         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
21528         "&..."
21529
21530 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21531
21532         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
21533
21534 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21535
21536         * libc/stdio/cvt.c (licvt): new function to convert ints when
21537         sizeof(int) != sizeof(long).
21538
21539         * libc/include/stdio.h: added prototype for iprintf.
21540         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
21541
21542 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21543
21544         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
21545         __REGISTER_PREFIX__.
21546
21547 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21548
21549         * libc/sys/m68kbare: moved into stub directory.
21550
21551 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
21552
21553         * configure.in, Makefile.in: created new directory stub, to hold
21554         sample code for specific targets.
21555
21556 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
21557
21558         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
21559         in the unified libc/include/sys/fcntl.h.
21560
21561 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
21562
21563         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
21564         printed .01, not 0.01.
21565
21566 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
21567
21568         * configure.in: compile with -m68000 for m68* targets.
21569
21570 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
21571
21572         * libm/math/remainder.c (remainder): document the svr4 and sunos
21573         references used to construct the function.
21574
21575 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
21576
21577         * libm/math/remainder.c (rint, remainder): fix old typos.
21578         * libm/math/Makefile.in: actually build remainder.c (functions
21579         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
21580         page.)
21581
21582 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
21583
21584         * libc/string/bcopy.c: BSD version works on overlapping strings,
21585         so ours should too.
21586
21587         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
21588         ("SHELL").
21589
21590 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
21591
21592         * Makefile.in (docs): new target.
21593
21594 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
21595
21596         * libc/include/sys/times.h: define clock_t as required by POSIX.
21597         libc/include/time.h: protect clock_t from multiple definitions.
21598
21599 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21600
21601         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
21602         does not need more than the original three iterations to get
21603         within 1 ulp. (Paranoia tests for rounding to better than that,
21604         but further iterations *don't* help, only more subtle changes
21605         can.)
21606
21607 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21608
21609         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
21610         were doing nothing useful.
21611
21612 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21613
21614         * configure.in: define MALLOC_PROVIDED for vxworks targets;
21615         removed sys_dir settings of vxworks68 and vxworks960.
21616         host/any: don't pass -nostdinc to gcc, since newlib no longer
21617         provides all required header files.
21618
21619         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
21620         is not defined; this provides a hook for VxWorks.
21621
21622 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21623
21624         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
21625         buffer if buf is NULL, don't do it here -- it is already being
21626         done by makebuf elsewhere in stdio.
21627
21628 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21629
21630         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
21631         that C programs can call functions without using initial
21632         underscores.
21633
21634 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
21635
21636         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
21637
21638 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
21639
21640         * configure.in: set TARGET_CFLAGS for certain CPU types to
21641         -msoft-float.
21642
21643 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21644
21645         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
21646
21647 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21648
21649         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
21650         m68k*-unknown-coff.
21651
21652 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
21653
21654         * libc/include/stdio.h: define __need___va_list before including
21655         <stdarg.h>, to avoid defining va_arg, et. al.
21656
21657 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
21658
21659         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
21660         (don't cd to the user's home directory).
21661
21662         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
21663         In general this is the wrong thing to do, but I can't get around
21664         GNU make's insistence on passing command line arguments any other
21665         way.
21666
21667 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21668
21669         * configure.in: always configure the libc/sys directory, since it
21670         now provides a required documentation file.
21671
21672         * Makefile.in: replaced all instances of $(MAKE) with make.  In
21673         general this is the wrong thing to do, but I can't get around GNU
21674         make's insistence on passing command line arguments any other way.
21675
21676 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
21677
21678         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
21679         terminated.
21680
21681         * libc/stdio/local.h: include <stdarg.h> to define va_list.
21682         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
21683
21684         * libc/include/float.h, libc/include/stdarg.h,
21685         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
21686         versions instead.
21687         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
21688         <stdarg.h>, not from <machine/types.h>.  Protect definition of
21689         NULL.
21690         libc/include/time.h: get size_t from stddef.h.  Protect definition
21691         of NULL.
21692         libc/include/machine/limits.h: override gcc <limits.h> by defining
21693         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
21694         get correct INT_MIN and LONG_LONG values.
21695         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
21696         size_t or va_list at all; they're now gotten from stddef.h
21697         instead.
21698         libc/include/machine/varargs.h: removed; use gcc version instead.
21699         libc/include/sys/types.h: explicitly include <machine/types.h>.
21700
21701         * libm/math/sqrt.h: using the fp-bit routines appears to require
21702         more iterations.
21703
21704         * Makefile.in, host/any: let system include files override machine
21705         include files.
21706
21707 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21708
21709         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
21710         override _*_T_ definitions defaulted here.
21711
21712 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
21713
21714         * Makefile.in (install): install the include files in
21715         $(tooldir)/include, not $(exec_prefix)/include.
21716
21717 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21718
21719         * Makefile.in (install): fixed typo, and changed install to not
21720         force rebuild of libc.a and libm.a.
21721
21722 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
21723
21724         * libc/sys/a29khif/*: Changed all .include's to include
21725         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
21726         that they will be installed for the user.
21727
21728         * Makefile.in (all): create targ-include, a directory holding the
21729         machine and system specific header files during the build.
21730         (install): fixed installation of machine and system specific
21731         header files.
21732
21733         * Makefile.in: fixed comment.
21734         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
21735         we can pass $(INCLUDES) to it.
21736
21737 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21738
21739         * libc/include/sys/param.h: new generic file, which may be
21740         overridden for specific systems.
21741
21742         * libc/include/sys/signal.h: define all ANSI signal names, and
21743         NSIG (which is not ANSI) for a29k.
21744
21745 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
21746
21747         * Makefile.in: don't pass down arguments the lower level makes
21748         will not need.
21749         * libc/Makefile.in: recurse directly, rather than using subdir_do,
21750         in hopes of avoiding argument length limits.
21751         * libm/Makefile.in: recurse directly, rather using subdir_do, in
21752         hopes of avoiding argument length limits.
21753
21754 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
21755
21756         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
21757         mode_t is defined.
21758
21759 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21760
21761         * Fixed make info and make install-info for newlib, changing most
21762         Makefile.in and several *.tex files.  Moved doc directory from
21763         libc to top level.
21764
21765         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
21766         Should be rewritten.
21767
21768         * libc/string/strings.tex: renamed node index to node index
21769         function, so that it does not conflict with the top level index
21770         node.
21771
21772         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
21773
21774 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21775
21776         * Overhauled general configuration for newlib.  Eliminated all
21777         target dependent Makefile fragments.  Create libraries in newlib
21778         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
21779         than CROSS_CC, et. al.  Broke make docs; will fix later.
21780
21781         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
21782         Should be rewritten.
21783
21784 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21785
21786         * libc/configure.in: cleaned up somewhat; switch on ${target}
21787         rather than ${target_alias}.
21788         * libm/configure.in: cleaned up somewhat; switch on ${target}
21789         rather than ${target_alias}.
21790
21791         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
21792         * libc/include/ctype.h: marked _ctype_ as _CONST.
21793
21794         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
21795         _CONST.
21796
21797         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
21798         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
21799         libc/stdio/gets.c (gets): removed non-ANSI warning message.
21800         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
21801
21802         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
21803         bigtens, tinytens): marked arrays _CONST.
21804         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
21805         rather than a static variable.
21806
21807         * libc/time/asctime.c (asctime), libc/time/localtime.c
21808         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
21809         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
21810         mname_len, mname): Marked static arrays _CONST.
21811
21812         * libm/math/gamma.h: made local variables non-static.
21813
21814         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
21815         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
21816         _CONST.
21817
21818         * libm/math/constants.c: removed file, because the constants it
21819         defined were never referenced.
21820         libm/math/Makefile.in: removed references to constants.c.
21821         libm/math/mathimpl.h: removed declarations of constants.
21822
21823 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21824
21825         * libc/include/machine/varargs.h: only call __builtin_saveregs if
21826         it is sensibly defined in libgcc2.  Checks preprocessor defines,
21827         which is not a good solution.
21828
21829         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
21830
21831         * libm/frexp.c: handle denormalized numbers as arguments.
21832
21833         * libm/math/Makefile.in: added some dependencies for .c files
21834         which include local .h files.
21835
21836 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
21837
21838         * libc/configure.in: set target_alias for OSE*.  Replace
21839         target_makefile_frag if it is blank.
21840
21841         * libc/Makefile.in: make sure everything is passed to subsidiary
21842         makes; create all directories when installing.
21843
21844         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
21845         CROSS_ARUPDATE instead of AR.
21846
21847         * libm/configure.in: set target_alias for OSE*.  Replace
21848         target_makefile_frag if it is blank.
21849
21850         * libm/Makefile.in: make sure everything is passed to subsidiary
21851         makes; create all directories when installing.
21852
21853 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
21854
21855         * add following change from libc copy.
21856
21857 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21858
21859         * libc/libc.texinfo: make copyright disclaimers appear on back of
21860         title page; make format of same slightly less ugly; avoid using
21861         underbars in section headings (avoids nasty texinfo bug in table
21862         of contents).
21863
21864         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
21865           comments only) avoid using underbars in section headings
21866
21867         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21868           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
21869           changes in comments only): shorten headings ieeefp/infinity.c,
21870           ieeefp/isnan.c: (doc, comments only) more informative headings
21871
21872         * libc/math/bessel.c: (doc, comments only) shorten heading
21873
21874         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
21875         (doc, comments only) shorten headings
21876
21877         * libc/time/localtime.c (doc, comments only): shorten headings
21878
21879         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21880           isnan
21881           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
21882           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
21883           headings
21884           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
21885           only) more informative headings
21886         * libm/math/bessel.c: (doc, comments only) shorten heading
21887
21888 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21889
21890         * .../Makefile.in: use CROSS_ARUPDATE consistently.
21891         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
21892         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
21893         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
21894         defined, the one from the .mt file will be correct.
21895         * libc/include/machine, libc/include/sys: created, and populated
21896         with common files from machine/*/machine. ifdefs were used for
21897         most, typically by handling exceptions first and then filling in
21898         defaults. Files with D.J. Delorie copyright #included rather than
21899         copied. Most files in include/sys really were the same in the
21900         original.
21901         * libc/include/...: cleaned up use of _EXFUN.
21902         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
21903         it with double quotes, not angles.
21904
21905 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
21906
21907         * libc/Makefile.in: always create installation directories.
21908
21909 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21910
21911         * libc/configure.in: handle host properly (using canonical
21912         triples), better error message for the case of target not found
21913
21914 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
21915
21916         * libc/Makefile.in (insincdir): Ensure this directory exists
21917         before attempting installation.
21918
21919 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21920
21921         * libc/stdlib/assert.c: now calls abort like it should
21922         * libc/sys/a29khif: many many patches for 29khif work
21923         * libc/machine/i386: gnulib2 expanded there.
21924
21925 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21926
21927         Added accurate fp conversion routines to stdlib, moved dcvt from
21928         stdio to stdlib and called it ecvtbuf:
21929         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
21930         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
21931         routines
21932         * libc/libc.texinfo: Modifed to include the copyright info from
21933         the mprec files
21934         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
21935         * libc/test/ : many vector which tested for the implementation
21936         defined returns of strange conversion requests have been updated
21937         to relflect the new implementation
21938
21939 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21940
21941         * libc/libc.texinfo: new chapter on variable arg lists
21942         (stdarg.h/varargs.h)
21943         * libc/libc.texinfo: new title
21944         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
21945         (doc only) shorter headings for better formatting.
21946
21947 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21948
21949         * libc/libc.texinfo: three more info menu entries
21950         * libc/locale/locale.tex: new chapter
21951         * libc/locale/locale.c: new doc for setlocale, localeconv
21952         * libc/locale/Makefile.in: use new locale doc
21953         * libc/signal/signal.tex: new chapter
21954         * libc/signal/raise.c, libc/signal/signal.c: new doc
21955         * libc/signal/Makefile.in: use new doc
21956         * libc/time/time.tex: new chapter
21957         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
21958         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
21959         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
21960         * libc/time/Makefile.in: use new doc
21961
21962 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21963
21964         * libm/math/log1p.c: split to use the new function way of float
21965         function definition. math/log1p.h deleted
21966         * libm/math/scalb.c: obsolete and deleted
21967         * libm/math/scalbn.c: created from part log1p.c
21968         * libm/math/Makefile.in: know about log1p and scalbn
21969
21970 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21971
21972         * libc/ctype/isupper.c: revise doc;
21973           libc/ctype/ctype.tex: use doc from isupper.c
21974
21975         * libc/string/bzero.c: new doc
21976
21977 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21978
21979         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
21980         new doc
21981         * libc/stdlib/Makefile.in: extract new doc
21982         * libc/stdlib/stdlib.tex: use new doc
21983
21984         * libc/string/strerror.c: expanded doc.
21985
21986         * libc/stdio/Makefile.in: extract doc from more files
21987         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
21988         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
21989         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
21990         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
21991         libc/stdio/vsprintf.c: new doc
21992         * libc/stdio/stdio.tex: use new doc
21993
21994 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21995
21996         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
21997         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
21998         finitef functions.
21999         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
22000         time ago.
22001
22002         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
22003         * libc/stdio/setbuf.c: added ansi style definition.
22004         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
22005         buffer if none provided.
22006         * libc/stdio/tmpfile.c: lint
22007         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
22008         rather than using static, also make sure file isn't already
22009         present.  Uses P_tmpdir. (tempnam): rewritten to use new
22010         subroutine, and uses P_tmpdir.
22011         * libc/stdio/siprintf.c: created
22012
22013 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22014
22015         Release 1.03 for NEC, major mods. Main differences from release
22016         1.02::
22017
22018         More tests in test/:
22019         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
22020         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
22021         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
22022         get/set mask, get/set sticky and get/set roundtoi.  Tests
22023         that setting the bits changes the way arithmetic is done.
22024         * string.c: added test to make sure memcmp does it with unsigned
22025         chars.
22026         * test.c: cleaned up and removed lint.
22027         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
22028         dvec.c: tests for string to value conversions,  sprintf, scanf,
22029         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
22030         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
22031         rounding in sprintf too.
22032         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
22033         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
22034         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
22035         and function form.
22036         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
22037         powf
22038
22039         In the library:
22040         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
22041         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
22042         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
22043         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
22044         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
22045         than sprintf.
22046         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
22047         * Method of producting float versions of double functions has
22048         changed, functions will be modified gradually. So far:
22049         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
22050         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
22051         altered
22052         * libc/string/memcmp.c: now uses unsigned chars
22053         * libc/string/bcmp.c, libc/string/strcpy.c,
22054         libc/stsring/strxfrm.c: fixed doc
22055         * libc/sys/sysvnecv70.tex: fix example of sbrk code
22056 \f
22057 Local Variables:
22058 version-control: never
22059 End: