OSDN Git Service

* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
[pf3gnuchains/pf3gnuchains3x.git] / newlib / ChangeLog
1 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
2
3         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
4         charset on Cygwin.
5
6 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
7
8         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
9         value encoding.
10         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
11         value decoding.
12
13 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
14
15         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
16         prefix.  Add some words to documentation.
17
18 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
19
20         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
21         characters to their corresponding Windows Unicode value.
22
23 2009-09-28  Michael Eager <eager@eagercon.com>
24
25         * configure.host: Add microblaze.
26         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
27         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
28         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
29         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
30         * libc/include/sys/types.h: Treat XMK like rtems, define
31         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
32         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
33         * libc/machine/configure.in: Add microblaze.
34         * libc/machine/configure: Add microblaze (not regenerated).
35         * libc/machine/microblaze/configure.in: NEW.
36         * libc/machine/microblaze/configure: Generate.
37         * libc/machine/microblaze/Makefile.am: NEW.
38         * libc/machine/microblaze/Makefile.in: Generate.
39         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
40         mallocr.c, longjmp.S, setjmp.S}: NEW.
41         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
42         mALLOc(): return malloc value.
43
44 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
45
46         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
47         (lc_message_charset): Ditto.
48         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
49         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
50         Cygwin.
51         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
52         Cygwin.
53
54 2009-09-26  Eric Blake  <ebb9@byu.net>
55
56         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
57         Add declarations.
58
59 2009-09-24  Eric Blake  <ebb9@byu.net>
60
61         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
62         Add declarations.
63
64 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
65
66         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
67         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
68
69 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
70
71         * libc/include/stdlib.h: Add posix_memalign.
72
73 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
74
75         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
76         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
77
78 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
79
80         * configure.host (m32c): Move setting -DABORT_PROVIDED to second 
81         "case $host".
82
83 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
84
85         * libc/include/sys/unistd.h: Declare getpagesize as returning
86         POSIX-mandated int.
87         * libc/sys/linux/sys/unistd.h: Ditto.
88
89 2009-08-31  Takaki Makino  <t@snowelm.com>
90
91         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
92         newer gcc versions.
93         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
94
95 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
96
97         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
98         numbers.
99         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
100         charsets.
101         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
102
103 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
104
105         * libc/locale/locale.c: Update documentation.
106         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
107
108 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
109
110         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
111         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
112         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
113
114 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
115
116         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
117         space" (U+00A0).
118         * libc/ctype/iswblank.c (iswblank): Likewise.
119
120 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
121
122         * libc/locale/locale.c (loadlocale): Throughout check charset string
123         case insensitive and store internal charset string uppercased.  Allow
124         "UTF8" additionally to "UTF-8".  Add this change to documentation.
125
126 2009-08-21  Eric Blake  <ebb9@byu.net>
127
128         * libc/include/iconv.h (iconv): Match POSIX prototype.
129         * libc/iconv/lib/iconv.c (iconv): Likewise.
130
131 2009-08-21  Craig Howland <howland@LGSInnovations.com>
132
133         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
134         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
135
136 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
137
138         * iconvdata/Makefile.am (all): Remove.
139         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
140         (all): ... this.
141         * libc/sys/arc/Makefile.am: Likewise.
142         * libc/sys/arm/Makefile.am: Likewise.
143         * libc/sys/d10v/Makefile.am: Likewise.
144         * libc/sys/decstation/Makefile.am: Likewise.
145         * libc/sys/h8300hms/Makefile.am: Likewise.
146         * libc/sys/h8500hms/Makefile.am: Likewise.
147         * libc/sys/linux/Makefile.am: Likewise.
148         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
149         * libc/sys/m88kbug/Makefile.am: Likewise.
150         * libc/sys/mmixware/Makefile.am: Likewise.
151         * libc/sys/netware/Makefile.am: Likewise.
152         * libc/sys/rdos/Makefile.am: Likewise.
153         * libc/sys/rtems/Makefile.am: Likewise.
154         * libc/sys/sh/Makefile.am: Likewise.
155         * libc/sys/sparc64/Makefile.am: Likewise.
156         * libc/sys/sun4/Makefile.am: Likewise.
157         * libc/sys/sysmec/Makefile.am: Likewise.
158         * libc/sys/sysnec810/Makefile.am: Likewise.
159         * libc/sys/sysnecv850/Makefile.am: Likewise.
160         * libc/sys/sysvi386/Makefile.am: Likewise.
161         * libc/sys/sysvnecv70/Makefile.am: Likewise.
162         * libc/sys/tic80/Makefile.am: Likewise.
163         * libc/sys/w65/Makefile.am: Likewise.
164         * libc/sys/z8ksim/Makefile.am: Likewise.
165         * iconvdata/Makefile.in: Regenerate.
166         * libc/sys/a29khif/Makefile.in: Likewise.
167         * libc/sys/arc/Makefile.in: Likewise.
168         * libc/sys/arm/Makefile.in: Likewise.
169         * libc/sys/d10v/Makefile.in: Likewise.
170         * libc/sys/decstation/Makefile.in: Likewise.
171         * libc/sys/h8300hms/Makefile.in: Likewise.
172         * libc/sys/h8500hms/Makefile.in: Likewise.
173         * libc/sys/linux/Makefile.in: Likewise.
174         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
175         * libc/sys/m88kbug/Makefile.in: Likewise.
176         * libc/sys/mmixware/Makefile.in: Likewise.
177         * libc/sys/netware/Makefile.in: Likewise.
178         * libc/sys/rdos/Makefile.in: Likewise.
179         * libc/sys/rtems/Makefile.in: Likewise.
180         * libc/sys/sh/Makefile.in: Likewise.
181         * libc/sys/sparc64/Makefile.in: Likewise.
182         * libc/sys/sun4/Makefile.in: Likewise.
183         * libc/sys/sysmec/Makefile.in: Likewise.
184         * libc/sys/sysnec810/Makefile.in: Likewise.
185         * libc/sys/sysnecv850/Makefile.in: Likewise.
186         * libc/sys/sysvi386/Makefile.in: Likewise.
187         * libc/sys/sysvnecv70/Makefile.in: Likewise.
188         * libc/sys/tic80/Makefile.in: Likewise.
189         * libc/sys/w65/Makefile.in: Likewise.
190         * libc/sys/z8ksim/Makefile.in: Likewise.
191
192         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
193         from newlib_ldbl_eq_dbl.
194         * configure: Regenerate.
195
196 2009-08-19  Eric Blake  <ebb9@byu.net>
197
198         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
199         * libc/libc.texinfo (Top): Add posix node to menu.
200
201 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
202
203         * newlib.hin: Add comment regarding file being manually edited.
204         * Makefile.am: Add no-op rule for newlib.hin.
205         * Makefile.in: Regenerated.
206
207 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
208
209         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
210
211 2009-08-18  Eric Blake  <ebb9@byu.net>
212
213         * libc/posix/popen.c (popen): Fix documented prototype.
214
215         Improve popen compatibility with glibc.
216         * libc/posix/popen.c (popen): The 2006-08-22 change to use
217         FD_CLOEXEC disagrees with other implementations; instead, use
218         pidlist to work even when fcntl is not available.  Meanwhile,
219         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
220         cygwin-specific code, now that cygwin has its own version.
221         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
222         * libc/posix/posix.tex: New file.
223
224 2009-08-17  Craig Howland <howland@LGSInnovations.com>
225
226         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
227         version of strncpy() (fixing two bugs).
228
229 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
230
231         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
232
233 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
234
235         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
236         HAVE_MKDIR is defined.
237
238 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
239
240         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
241         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
242         (CHEWOUT_FILES): Add mkdirr.def.
243         * libc/reent/Makefile.in: Regenerate.
244         * libc/reent/mkdirr.c: New file.
245
246 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
247
248         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
249         return type instead of int.
250
251 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
252
253         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
254         when a lower-case character is detected.
255
256 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
257
258         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
259         pair handling to be more bullet-proof even with incomplete UTF-8
260         sequences.  Add check for 4 byte sequences resulting in values
261         outside the valid Unicode range.  Add a comment to clarify checking
262         for invalid CESU-8 sequences.
263
264 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
265
266         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
267         of handling incomplete sequences.
268
269 2009-07-22  Eric Blake  <ebb9@byu.net>
270
271         Avoid a fault from locking a closed standard file.
272         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
273         been previously closed.
274
275 2009-07-09  Craig Howland <howland@LGSInnovations.com>
276
277         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
278         isnan() (C99 macro).
279         * libm/math/wf_log.c:  Ditto.
280         * libm/math/wf_j0.c:  Ditto.
281         * libm/math/wf_sqrt.c:  Ditto.
282         * libm/math/wf_pow.c:  Ditto.
283         * libm/math/wf_fmod.c:  Ditto.
284         * libm/math/wf_remainder.c:  Ditto.
285         * libm/math/wf_scalb.c:  Ditto.
286         * libm/math/wf_atanh.c:  Ditto.
287         * libm/math/wf_cosh.c:  Ditto.
288         * libm/math/wf_acos.c:  Ditto.
289         * libm/math/wf_acosh.c:  Ditto.
290         * libm/math/wf_jn.c:  Ditto.
291         * libm/math/wf_log10.c:  Ditto.
292         * libm/math/wf_asin.c:  Ditto.
293         * libm/math/wf_j1.c:  Ditto.
294         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
295         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
296         match that from s_isinf.c.
297         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
298         remove un-necessary extension use (in a similar manner to as was
299         recently done in math.h).
300         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
301         ieeefp.h).
302         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
303
304 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
305
306         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
307         for RTEMS.
308
309 2009-07-03  Eric Blake  <ebb9@byu.net>
310
311         Add mkdtemp, mkstemps.
312         * libc/stdio/mktemp.c: Fix documentation.
313         (_gettemp): Add domkdir and length parameters.  Check for
314         insufficient 'X' suffix.  Drop cygwin-specific code.
315         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
316         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
317         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
318         (mkstemps): Declare them.
319
320         Add fpurge.
321         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
322         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
323         Build it.
324         * libc/stdio/Makefile.in: Regenerated.
325         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
326         * libc/stdio/stdio.tex: Build documentation.
327
328 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
329
330         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
331         sf_fpclassify as these are now used for infinity testing.
332         * Makefile.in: Regenerated.
333
334 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
335
336         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
337         so it can point to an aligned structure or double.
338
339 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
340
341         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
342         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
343         documentation.
344
345 2009-06-17  Michael Eager <eager@eagercon.com>
346
347         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
348         PTHREAD_MUTEX_NORMAL.
349         * libc/include/sys/features.h: Same.
350         * libc/include/sys/types.h: Same.
351
352 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
353
354         * libc/include/locale.h (struct lconv): Add missing members required
355         by POSIX.1-2008.
356         * libc/locale/locale.c (lconv): Initialize new members to default
357         values in "C" locale.
358
359 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
360
361         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
362         radix char instead of assuming length 1.
363         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
364         (gethex): Allow multibyte decimal point.
365         Fix compiler warnings due to different signedness of pointer types.
366         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
367         (_strtod_r): Allow multibyte decimal point.
368         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
369         endptr position if the decimal point is a multibyte char.
370
371 2009-06-16  Craig Howland <howland@LGSInnovations.com>
372
373         * libc/ctype/local.h (__locale_charset): Add arguments to
374         prototype
375         * libc/stdlib/local.h (__locale_charset): Ditto.
376
377 2009-06-16  Craig Howland <howland@LGSInnovations.com>
378
379         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
380         macros to remove un-necessary extension use.  isinf and isnan also
381         changed to use fpclassify.  isfinite macro modified to run faster by
382         only calling fpclassify once instead of possibly twice.
383
384 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
385
386         * libc/ctype/tolower.c (tolower): Cast conversion result from
387         mbtowc/wctomb to unsigned char to avoid negative return values.
388         * libc/ctype/toupper.c (toupper): Ditto.
389
390 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
391
392         * libc/string/wcwidth.c: Optimize for speed.
393
394 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
395
396         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
397         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
398         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
399         (__locale_cjk_lang): New function.
400         * libc/string/local.h (__locale_cjk_lang): Declare.
401         * libc/string/wcwidth.c: Fix comments.
402         (__wcwidth): Handle CJK Ambiguous Width characters according
403         to setting returned by __locale_cjk_lang.
404
405 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
406
407         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
408         thumb2.
409
410 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
411
412         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
413         (__jp2uc): Change the scope to static function.
414         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
415         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
416
417 2009-05-27  Neal H. Walfield  <neal@gnu.org>
418
419         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
420         _JBTYPE and the size of sigset_t.
421
422 2009-05-15  Craig Howland <howland@LGSInnovations.com>
423
424         * configure.in:  Add configuration test for long double type existing
425         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
426         and _LDBL_EQ_DBL tests to not link so that will work with
427         cross-compilers.
428         * configure: Regenerated.
429         * Makefile.in: Ditto.
430         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
431         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
432         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
433         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
434         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
435         *libm/common/s_infconst.c:  Change definitions to use values from
436         float.h instead of non-so-portable integer forms.  Mark as being
437         deprecated (because now removed from math.h, are not used anywhere
438         in Newlib, itself).
439
440 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
441
442         * libc/string/local.h: New file.
443         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
444         characters to Unicode here.  Handle surrogate pairs for UTF-16
445         systems.  Call __wcwidth rather than wcwidth.
446         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
447         wcwidth implementation for Unicode.
448         (bisearch): New static function.
449         (__wcwidth): New function.  Take wint_t rather than wchar_t as
450         parameter to allow full Unicode handling on UTF-16 systems.
451         Move old wcwidth implementation here for non-multibyte aware
452         systems.
453         (wcwidth): Convert japanese wide characters to Unicode here.
454         Call __wcwidth rather than using iswprint/iswcntrl.
455
456 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
457
458         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
459         to jp2uc.c.
460         (__jp2uc): Remove declaration.
461         (_jp2uc): Declare.
462         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
463         (__jp2uc): Remove Cygwin special case.
464         (_jp2uc): New function.  On Cygwin, just return c.
465         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
466         * libc/ctype/iswblank.c (iswblank): Ditto.
467         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
468         * libc/ctype/iswprint.c (iswprint): Ditto.
469         * libc/ctype/iswpunct.c (iswpunt): Ditto.
470         * libc/ctype/iswspace.c (iswspace): Ditto.
471         * libc/ctype/towlower.c (towlower): Ditto.
472         * libc/ctype/towupper.c (towupper): Ditto.
473
474 2009-05-13  Paul Brook  <paul@codesourcery.com>
475
476         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
477         IP before saving.  Likewise when restoring.
478
479 2009-05-13  Paul Brook  <paul@codesourcery.com>
480
481         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
482
483 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
484
485         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
486
487 2009-05-11  Craig Howland <howland@LGSInnovations.com>
488
489         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
490         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
491
492 2009-05-08  Nick Clifton  <nickc@redhat.com>
493
494         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
495         the write-after-approval list.
496
497 2009-04-30  Anthony Green  <green@moxielogic.com>
498
499         * MAINTAINERS: Add myself as moxie maintainer and to the
500         write-after-approval list.
501
502 2009-04-30  Eric Blake  <ebb9@byu.net>
503
504         Allow gcc warning for toupper even with extended charsets.
505         * libc/include/ctype.h (toupper, tolower)
506         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
507         'char' even when we must call the function for correct behavior.
508         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
509
510 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
511
512         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
513         file lock and released before the file lock to avoid a deadlock
514         scenario.
515         * libc/stdio/fgets.c: Ditto.
516         * libc/stdio/fgetwc.c: Ditto.
517         * libc/stdio/fgetws.c: Ditto.
518         * libc/stdio/fread.c: Ditto.
519         * libc/stdio/fseek.c: Ditto.
520         * libc/stdio/getc.c: Ditto.
521         * libc/stdio/getdelim.c: Ditto.
522         * libc/stdio/gets.c: Ditto.
523
524 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
525
526         * configure.in: Add configuration test for long double equals dbl
527         and set flag _LDBL_EQ_DBL if true.
528         * configure: Regenerated.
529         * newlib.hin: Add _LDBL_EQ_DBL flag.
530         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
531         _HAVE_LDBL_MATH.
532         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
533         _HAVE_LDBL_STDLIB.
534         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
535         * libc/stdlib/local.h: Ditto.
536
537 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
538
539         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
540         if __UINTPTR_MAX__ defined.
541
542 2009-04-24  Eric Blake  <ebb9@byu.net>
543
544         Be namespace clean in ctype.h.
545         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
546         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
547         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
548         (isascii, toascii): Don't use 'c' as macro parameter name.
549
550         Trigger gcc warning if isFoo macros are called with plain char.
551         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
552         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
553         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
554         warn when user calls macro with a char argument.
555
556 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
557
558         * libc/string/strcasecmp.c: Optimized rewrite.
559         * libc/string/strncasecmp.c: Fix description.
560         * libc/string/strlwr.c: Avoid passing signed char to tolower.
561         * libc/string/strupr.c: Avoid passing signed char to tolower.
562
563 2009-04-23  Paul Brook  <paul@codesourcery.com>
564             Kazu Hirata  <kazu@codesourcery.com>
565
566         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
567         to malloc.  Allocate dynamically only if it is present.
568         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
569         reference to free.  Call free only if it is present.
570
571 2009-04-22 Anthony Green <green@moxielogic.com>
572
573         * configure.host: Add moxie support.
574         * libc/machine/configure.in: Add moxie support.
575         * libc/machine/configure: Rebuilt.
576         * libc/machine/moxie/aclocal.m4: New file.
577         * libc/machine/moxie/configure: New file.
578         * libc/machine/moxie/configure.in: New file.
579         * libc/machine/moxie/Makefile.am: New file.
580         * libc/machine/moxie/Makefile.in: New file.
581         * libc/machine/moxie/setjmp.S: New file.
582         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
583         * libc/include/machine/ieeefp.h: Add moxie support.
584
585 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
586
587         * libc/stdio/local.h (__chclass, __state_table, __action_table):
588         Add extern to the declarations.
589         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
590
591 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
592
593         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
594         _CTYPE_DATA_128_256.
595         * libc/ctype/ctype_cp.h: Split off all character class values for
596         character 255 from the rest of the definitions.
597         (__ctype_cp): Use the new definitions.  Make sure that the table
598         always contains 0 for EOF (-1).
599         * libc/ctype/ctype_iso.h: Ditto.
600
601 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
602
603         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
604         (__sf_fake_stderr): Declare locally with weak attribute.
605
606 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
607
608         * libc/include/_ansi.h: Move C++ defines to top of file.
609         (_NOTHROW): New macro.
610         (_EXFUN_NOTHROW): Likewise.
611         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
612         (free): Likewise.
613         (malloc): Likewise.
614         (realloc): Likewise.
615         (_malloc_r): Likewise.
616         (_callor_r): Likewise.
617         (_free_r): Likewise.
618         (_realloc_r): Likewise.
619
620 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
621
622         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
623         be _HAVE_LDBL_MATH.
624         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
625         be _HAVE_LDBL_STDLIB.
626
627 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
628
629         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
630         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
631         * libc/stdlib/strtold.c: Include local.h.
632         * libc/stdlib/wcstold.c: Likewise.
633         * libm/common/atanl.c: Likewise.
634         * libm/common/cosl.c: Likewise.
635         * libm/common/sinl.c: Likewise.
636         * libm/common/modfl.c: Likewise.
637         * libm/common/frexpl.c: Likewise.
638         * libm/common/tanhl.c: Likewise.
639         * libm/common/tanl.c: Likewise.
640         * libm/common/expm1l.c: Likewise.
641         * libm/common/log1pl.c: Likewise.
642         * libm/common/ceill.c: Likewise.
643         * libm/common/fabsl.c: Likewise.
644         * libm/common/floorl.c: Likewise.
645         * libm/common/acosl.c: Likewise.
646         * libm/common/asinl.c: Likewise.
647         * libm/common/atan2l.c: Likewise.
648         * libm/common/coshl.c: Likewise.
649         * libm/common/expl.c: Likewise.
650         * libm/common/fmodl.c: Likewise.
651         * libm/common/hypotl.c: Likewise.
652         * libm/common/ldexpl.c: Likewise.
653         * libm/common/log10l.c: Likewise.
654         * libm/common/logl.c: Likewise.
655         * libm/common/powl.c: Likewise.
656         * libm/common/sqrtl.c: Likewise.
657         * libm/common/copysignl.c: Likewise.
658         * libm/common/ilogbl.c: Likewise.
659         * libm/common/nanl.c: Likewise.
660         * libm/common/cbrtl.c: Likewise.
661         * libm/common/asinhl.c: Likewise.
662         * libm/common/nextafterl.c: Likewise.
663         * libm/common/rintl.c: Likewise.
664         * libm/common/scalbnl.c: Likewise.
665         * libm/common/exp2l.c: Likewise.
666         * libm/common/fdiml.c: Likewise.
667         * libm/common/fmal.c: Likewise.
668         * libm/common/fmaxl.c: Likewise.
669         * libm/common/fminl.c: Likewise.
670         * libm/common/lrintl.c: Likewise.
671         * libm/common/lroundl.c: Likewise.
672         * libm/common/nearbyintl.c: Likewise.
673         * libm/common/remquol.c: Likewise.
674         * libm/common/roundl.c: Likewise.
675         * libm/common/scalblnl.c: Likewise.
676         * libm/common/truncl.c: Likewise.
677         * libm/common/acoshl.c: Likewise.
678         * libm/common/atanhl.c: Likewise.
679         * libm/common/erfcl.c: Likewise.
680         * libm/common/erfl.c: Likewise.
681         * libm/common/lgammal.c: Likewise.
682         * libm/common/remainderl.c: Likewise.
683         * libm/common/tgammal.c: Likewise.
684         * libm/common/sinhl.c: Likewise.
685         * libm/common/llroundl.c: Likewise.
686         * libm/common/llrintl.c: Likewise.
687         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
688
689 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
690
691         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
692         * libc/include/math.h (llrintl): Declare.
693         * libm/common/llrintl.c: New File.
694         * libm/common/Makefile.am: New File added.
695         * libm/common/Makefile.in: Regenerate.
696
697 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
698
699         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
700         avoid executable test.
701         * libc/configure: Regenerate.
702
703 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
704
705         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
706         * configure: Regenerated.
707         * Makefile.in: Regenerated.
708         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
709         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
710         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
711         avoid executable test.
712         * libm/configure: Regenerated.
713
714 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
715
716         * libc/misc/init.c (__libc_fini_array): Process fini_array in
717         reverse order as compliant with the ELF specification.
718
719 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
720
721         * libc/machine/spu/Makefile.am: Add new File.
722         * libc/machine/spu/Makefile.in: Regenerate.
723         * libc/machine/spu/fdopen.c: New file.
724
725 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
726
727         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
728
729 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
730
731         * libm/libm.texinfo: Add long double function support chapter.
732         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
733         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
734         (strtold, wcstold): Declare.
735         * libc/stdlib/strtold.c: New File.
736         * libc/stdlib/wcstold.c: Likewise.
737         * libc/configure.in: Add long double check.
738         * libc/configure: Regenerate.
739         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
740         * libc/stdlib/Makefile.in: Regenerate.
741         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
742         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
743         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
744         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
745         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
746         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
747         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
748         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
749         * libm/common/atanl.c: New File.
750         * libm/common/cosl.c: Likewise.
751         * libm/common/sinl.c: Likewise.
752         * libm/common/modfl.c: Likewise.
753         * libm/common/frexpl.c: Likewise.
754         * libm/common/tanhl.c: Likewise.
755         * libm/common/tanl.c: Likewise.
756         * libm/common/expm1l.c: Likewise.
757         * libm/common/log1pl.c: Likewise.
758         * libm/common/ceill.c: Likewise.
759         * libm/common/fabsl.c: Likewise.
760         * libm/common/floorl.c: Likewise.
761         * libm/common/acosl.c: Likewise.
762         * libm/common/asinl.c: Likewise.
763         * libm/common/atan2l.c: Likewise.
764         * libm/common/coshl.c: Likewise.
765         * libm/common/expl.c: Likewise.
766         * libm/common/fmodl.c: Likewise.
767         * libm/common/hypotl.c: Likewise.
768         * libm/common/ldexpl.c: Likewise.
769         * libm/common/log10l.c: Likewise.
770         * libm/common/logl.c: Likewise.
771         * libm/common/powl.c: Likewise.
772         * libm/common/sqrtl.c: Likewise.
773         * libm/common/copysignl.c: Likewise.
774         * libm/common/ilogbl.c: Likewise.
775         * libm/common/nanl.c: Likewise.
776         * libm/common/cbrtl.c: Likewise.
777         * libm/common/asinhl.c: Likewise.
778         * libm/common/nextafterl.c: Likewise.
779         * libm/common/rintl.c: Likewise.
780         * libm/common/scalbnl.c: Likewise.
781         * libm/common/exp2l.c: Likewise.
782         * libm/common/fdiml.c: Likewise.
783         * libm/common/fmal.c: Likewise.
784         * libm/common/fmaxl.c: Likewise.
785         * libm/common/fminl.c: Likewise.
786         * libm/common/lrintl.c: Likewise.
787         * libm/common/lroundl.c: Likewise.
788         * libm/common/nearbyintl.c: Likewise.
789         * libm/common/remquol.c: Likewise.
790         * libm/common/roundl.c: Likewise.
791         * libm/common/scalblnl.c: Likewise.
792         * libm/common/truncl.c: Likewise.
793         * libm/common/acoshl.c: Likewise.
794         * libm/common/atanhl.c: Likewise.
795         * libm/common/erfcl.c: Likewise.
796         * libm/common/erfl.c: Likewise.
797         * libm/common/lgammal.c: Likewise.
798         * libm/common/remainderl.c: Likewise.
799         * libm/common/tgammal.c: Likewise.
800         * libm/common/sinhl.c: Likewise.
801         * libm/common/llroundl.c: Likewise.
802         * libm/configure.in: Add long double check.
803         * libm/configure: Regenerate.
804         * libm/common/Makefile.am: Add new files.
805         * libm/common/Makefile.in: Regenerate.
806
807 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
808
809         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
810         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
811         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
812         class mappings.
813         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
814         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
815         * libc/ctype/isblank.c (isblank): Special case TAB.
816         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
817         in (_U|_L).
818         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
819         * libc/include/ctype.h (islower): Same in macro.
820         (isupper): Ditto.
821         (isblank): Special case TAB.  Redefine macro for GCC only.
822
823 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
824
825         * libc/stdlib/local.h (__mbtowc): Declare extern.
826         (__wctomb): Ditto.
827
828 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
829
830         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
831         recognizes 0x8e and 0x8f lead bytes.
832         (_iseucjp2): Rename from _iseucjp.
833         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
834         triplebyte sequences as well.
835         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
836         triplebyte sequences as well.
837
838 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
839
840         * configure.in: Add square brackets for the array aliasing conftest.
841         * configure: Regenerate.
842
843 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
844
845         * libc/string/strncasecmp.c: Optimized rewrite.
846
847 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
848
849         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
850         * libc/include/machine/time.h (nanosleep): Declare.
851
852 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
853
854         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
855
856 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
857
858         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
859
860 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
861
862         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
863         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
864
865 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
866
867         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
868         to avoid a warning with -Wmissing-prototypes.
869
870 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
871
872         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
873
874 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
875
876         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
877         (linux_getpid, linux_gettid): Declare.
878
879 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
880
881         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
882         profiling.
883
884 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
885
886         * libc/include/math.h: Remove duplicate copysign prototype.
887         Fix __math_68881 define typo.  Guard functions of the rint family.
888
889 2009-04-03  Craig Howland <howland@LGSInnovations.com>
890
891         * libm/common/s_llrint.c: New file, implementing llrint().
892         * libm/common/sf_llrint.c: New file, implementing llrintf().
893         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
894         * libm/common/Makefile.in:  Regenerate.
895
896 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
897
898         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
899         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
900         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
901         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
902         (__set_ctype): Set __ctype_ptr__ pointer according to definition
903         of ALLOW_NEGATIVE_CTYPE_INDEX.
904         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
905
906 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
907
908         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
909         source files.  Add a dependency rule for ctype_o to note
910         changes in ctype_iso.h and ctype_cp.h.
911         * libc/ctype/Makefile.in: Regenerate.
912         * libc/ctype/_tolower.c: Remove file.
913         * libc/ctype/_toupper.c: Remove file.
914         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
915         is always defined on Cygwin.
916         (_ctype_b): Don't make `static const' on Cygwin.
917         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
918         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
919         (__ctype_ptr): Drop definition.
920         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
921         (_ctype_): Add Cygwin-specifc asm define.
922         (__set_ctype): New function to set __ctype_ptr__ according to
923         current charset.
924         * libc/ctype/ctype_cp.h: New file containing Windows codepage
925         specific character class tables.
926         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
927         specific character class tables.
928         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
929         charset if one of the extended charsets is enabled.
930         * libc/ctype/toupper.c (toupper): Ditto.
931         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
932         (_toupper): Ditto.
933         (__ctype_ptr__): De-constify.
934         (toupper): Disable macro on systems supporting extended charsets.
935         (tolower): Ditto.
936         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
937         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
938         (__set_ctype): Declare unconditionally.
939         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
940
941 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
942
943         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
944         of "GB2312".  Fix documentation accordingly.
945
946 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
947
948         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
949         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
950         marker in ctype array.
951         * libc/include/ctype.h (isblank): Add macro.
952
953 2009-03-25  Craig Howland <howland@LGSInnovations.com>
954
955         * libc/include/math.h:  (llround, llroundf): Declare.
956         * libm/common/s_llround.c: New file, implementing llround().
957         * libm/common/sf_llround.c: New file, implementing llroundf().
958         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
959         version of function.
960         * libm/common/sf_lrint.c: Ditto.
961         * libm/common/sf_logb.c:  Corrected return for subnormal argument
962         by replacing existing function with a version created from sf_ilogb.c.
963         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
964         added documentation for logb() and logbf().
965         * libm/common/s_signbit.c:  Add signbit() documentation.
966         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
967         since log2 uses log(); add note about being derived instead of direct.
968         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
969         as well as comments pointing out problems with the implementation.
970         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
971         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
972         corrected by discarding existing function and replacing with Sun
973         verion, with some enhancements.
974         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
975         documentation.
976         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
977         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
978         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
979         documentation.
980         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
981         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
982         * libm/common/s_rint.c: Add rint() and rintf() documentation.
983         * libm/common/s_round.c: Add round() and roundf() documentation.
984         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
985         * libm/common/s_infinity.c: Add infinity() and infinityf()
986         documentation.
987         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
988         llroundf() documentation.
989         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
990         documentation.
991         * libm/common/isgreater.c: New file for documenting math.h function-like
992         macros isgreater(), isgreaterequal(), isless(), islessequal(),
993         islessgreater(), and isunordered().
994         * libm/common/s_isnan.c: Add documentation for function-like macros
995         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
996         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
997         documentation.
998         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
999         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1000         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1001         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1002         isgreater.def (chobj);
1003         re-name all existing chew files (chobj) to match source file base
1004         names (put in underscores), delete all special targets for chew files
1005         (leaving all to be generated by rule).
1006         * libm/common/Makefile.in: regenerate.
1007         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1008         delete TRAD_SYNOPSIS).
1009         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1010         with some history behind the function names.
1011         * libm/math/math.tex: Add includes for newly-added documentation (see
1012         .def additions to common/Makefile.am and math/Makefile.am in this
1013         ChangeLog list), adjusted existing .def file names to match source file
1014         base names (added underscores); add mention of HUGE_VALF; rename
1015         "Version of library" section to "Error Handling" and add some text
1016         about floating-point exception; added section "Standards Compliance And
1017         Portability".
1018         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1019         re-name all existing chew files (chobj) to match source file base
1020         names, delete all special targets for chew files (leaving all to be
1021         generated by rule).
1022         * libm/math/Makefile.in: regenerated
1023         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1024         to a failure when reading macro file for commands < 4 characters;
1025         add -v (verbose) option for printing some debugging information;
1026         get rid of spurious translation of "@*" to "*" (no source files used @*,
1027         so no existing doc pages were affected); clean up some compiler
1028         warnings.
1029         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1030         which has them); Remove ITEM command (redundant with makedoc built-in
1031         "o", not used in any present source file so nothing is lost, anyway).
1032         * HOWTO: New file to hold information for maintainers regarding how
1033         to do things.  Initial sections on documentation and ELIX levels.
1034
1035 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1036
1037         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1038         detect the nul-byte in a big-endian string.
1039
1040 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1041
1042         * libc/string/wcsdup.c: Fix documentation error.
1043         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1044         wcsdup.def rather than wcsdup.
1045         * libc/string/Makefile.in: Regenerated.
1046
1047 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1048
1049         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1050         pointers if category is LC_CTYPE.
1051
1052 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1053
1054         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1055         "GB2312".  Fix documentation accordingly.
1056
1057 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1058
1059         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1060         "eucKR".  Fix documentation accordingly.
1061
1062 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1063
1064         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1065         for "eucJP" charset support.
1066
1067 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1068
1069         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1070         it is used in libc/search.
1071
1072 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1073
1074         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1075         _MB_CAPABLE systems.
1076         * libc/ctype/iswblank.c: Ditto.
1077         * libc/ctype/iswcntrl.c: Ditto.
1078         * libc/ctype/iswprint.c: Ditto.
1079         * libc/ctype/iswpunct.c: Ditto.
1080         * libc/ctype/iswspace.c: Ditto.
1081         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1082         Explain why.
1083         * libc/ctype/towlower.c: Ditto.
1084         * libc/ctype/towupper.c: Ditto.
1085         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1086         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1087         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1088         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1089         and _current_locale as unused.
1090         * libc/locale/locale.c: Add new charset support to documentation.
1091         Include ../stdio/local.h from here.
1092         (lc_ctype_charset): Set to "ASCII" by default.
1093         (lc_message_charset): Ditto.
1094         (_setlocale_r): Don't set _current_category and _current_locale.
1095         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1096         systems, set __mbtowc and __wctomb function pointers to function
1097         corresponding with current charset.  Don't allow non-existant
1098         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1099         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1100         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1101         _current_category and _current_locale.
1102         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1103         * libc/stdlib/Makefile.in: Regenerate.
1104         * libc/stdlib/local.h: Add prototype for __locale_charset.
1105         Add prototypes for __mbtowc and __wctomb pointers.
1106         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1107         functions.
1108         Declare tables and functions from sb_charsets.c.
1109         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1110         by default.
1111         (_mbtowc_r): Just call __mbtowc from here.
1112         (__ascii_mbtowc): New function.
1113         (__iso_mbtowc): New function.
1114         (__cp_mbtowc): New function.
1115         (__utf8_mbtowc): New function.
1116         (__sjis_mbtowc): New function.  Disable on Cygwin.
1117         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1118         (__jis_mbtowc): New function.  Disable on Cygwin.
1119         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1120         conversion tables for all ISO and CP charsets.
1121         (__iso_8859_index): New function.
1122         (__cp_index): New function.
1123         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1124         by default.
1125         (_wctomb_r): Just call __wctomb from here.
1126         (__ascii_wctomb): New function.
1127         (__utf8_wctomb): New function.
1128         (__sjis_wctomb): New function.  Disable on Cygwin.
1129         (__eucjp_wctomb): New function.  Disable on Cygwin.
1130         (__jis_wctomb): New function.  Disable on Cygwin.
1131         (__iso_wctomb): New function.
1132         (__cp_wctomb): New function.
1133
1134 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1135
1136         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1137
1138 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1139
1140         * libc/locale/locale.c (loadlocale): Fix typo in language and
1141         territory evaluation.
1142
1143 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1144
1145         * libc/include/sys/errno.h: Protect various non-standard errnos
1146         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1147         * libc/include/sys/config.h[__CYGWIN__]: Define
1148         __LINUX_ERRNO_EXTENSIONS__.
1149
1150 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1151
1152         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1153         invalid character sequence.
1154
1155         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1156         missing declaration of __locale_charset.
1157         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1158
1159 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1160
1161         * libm/common/s_log2.c: New file.
1162         * libm/common/sf_log2.c: Ditto.
1163         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1164         * libm/common/Makefile.in: Regenerated.
1165         * libc/include/math.h: Add log2 and log2f function prototypes.
1166
1167 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1168
1169         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1170         string correctly.
1171
1172 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1173
1174         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1175
1176 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1177
1178         * libc/machine/arm/strlen.c (strlen): Correctly detect
1179         end-of-string.
1180         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1181         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1182
1183 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1184
1185         * libc/include/sys/errno.h (ESTRPIPE): Define.
1186         * libc/string/strerror.c (strerror): Decode it.
1187
1188 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1189
1190         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1191         * libc/string/Makefile.am: Add wcsdup.c.
1192         * libc/string/Makefile.in: Regenerate.
1193         * libc/string/strings.tex: Add wcsdup documentation reference.
1194         * libc/string/wcsdup.c: New file.
1195
1196 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1197
1198         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1199         !_REENT_ONLY section.
1200
1201 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1202
1203         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1204         to stdlib.h.
1205         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1206         * libc/stdio/mktemp.c: Explain the security risk when using
1207         mktemp.
1208
1209 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1210
1211         * libc/time/time.tex (wcsftime.def):  Include.
1212         * libc/time/wcsftime.c:  Clean up documentation a little.
1213
1214 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1215
1216         * libc/stdio/swscanf.c:  Some documentation corrections.
1217
1218 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1219
1220         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1221         correct how terminating L'\0' is added;
1222         change return to match standard for when output does not fit;
1223         some corrections and enhancements to the docs.
1224         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1225         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1226         enhancements to comments.  (No code changes.)
1227         * libc/time/strftime.c:  Correct some problems that made wcsftime()
1228         not work correctly:  work properly with swprintf returns that are
1229         different from snprintf returns, correct test vector lengths for
1230         when sizeof(wchar_t) > 1.
1231         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
1232         enhancements to match those done to swprintf.c.
1233
1234 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1235
1236         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
1237         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
1238         * libc/stdio/Makefile.in: Regenerate.
1239         * libc/string/strings.tex: Add new documentation references.
1240         * libc/string/wcscasecmp.c: New file.
1241         * libc/string/wcsncasecmp.c: New file.
1242
1243 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1244
1245         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
1246         wscanf): Declare.
1247         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
1248         _wscanf_r): Declare.
1249         * libc/stdio/Makefile.am: Add new wscanf files.
1250         * libc/stdio/Makefile.in: Regenerate.
1251         * libc/stdio/fwscanf.c: New file.
1252         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
1253         __ssvfiwscanf_r): Declare.
1254         * libc/stdio/stdio.tex: Add new documentation references.
1255         * libc/stdio/swscanf.c: New file.
1256         * libc/stdio/vfwscanf.c: New file.
1257         * libc/stdio/vswscanf.c: New file.
1258         * libc/stdio/vwscanf.c: New file.
1259         * libc/stdio/wscanf.c: New file.
1260
1261         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
1262         define if INTEGER_ONLY is defined.  Declare otherwise.
1263         (__ssrefill_r): Ditto.
1264         (_sfread_r): Ditto.
1265
1266         Remove static eofread/eofread1 functions and use __seofread
1267         function instead, throughout.
1268         * libc/stdio/local.h (__seofread): Declare.
1269         * libc/stdio/stdio.c (__seofread): Define.
1270
1271         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
1272         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
1273         * libc/stdio/fread.c (_fread_r): Ditto.
1274         * libc/stdio/vfprintf.c: Ditto.
1275         * libc/stdio/vswprintf.c: Ditto.
1276
1277 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
1278
1279         * libc/machine/arm/arm_asm.h: Fix typo.
1280
1281 2009-03-09  Craig Howland <howland@LGSInnovations.com>
1282
1283         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
1284         defines strftime(), but can also define wcsftime(); add optional
1285         test package; speed up %Y handling.
1286         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
1287         indirectly by including strftime.c) and its documentation.
1288         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
1289         description to match modified description in strftime.c
1290         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
1291         so that wcsftime.o gets rebuilt when strftime changes.
1292         * libc/time/Makefile.in:  Regenerate.
1293         * libc/include/wchar.h (wcsftime): Declare.
1294
1295 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
1296             Corinna Vinschen  <corinna@vinschen.de>
1297
1298         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
1299         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
1300         dereferencing it.
1301         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
1302
1303 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
1304
1305         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
1306         * libc/include/wchar.h: Include stdarg.h.
1307         (__VALIST): Define conditionally.
1308         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
1309         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
1310          _wprintf_r): Declare.
1311         * libc/stdio/Makefile.am: Add new files.
1312         * libc/stdio/Makefile.in: Regenerate.
1313         * libc/stdio/fwprintf.c: New file.
1314         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
1315         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
1316         and move to the __ namespace.
1317         (__chclass, __state_table, __action_table): Declare.
1318         * libc/stdio/stdio.tex: Add new documentation references.
1319         * libc/stdio/swprintf.c: New file.
1320         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
1321         __sprint_r function according to compilation unit.  Use throughout.
1322         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
1323         Make externaly available.  Only define if INTEGER_ONLY is defined.
1324         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
1325         is defined.  Handle stream orientation.
1326         (__sbprintf): Copy FILE's _flags2 member as well.
1327         (__chclass, __state_table, __action_table): Prepend __ to name and
1328         make externally available.
1329         * libc/stdio/vfwprintf.c: New file.
1330         * libc/stdio/vswprintf.c: New file.
1331         * libc/stdio/vwprintf.c: New file.
1332         * libc/stdio/wprintf.c: New file.
1333
1334 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
1335
1336         * libc/locale/locale.c (_setlocale_r): New implementation based on
1337         FreeBSD's setlocale.
1338         (currentlocale): New helper function.
1339         (loadlocale): Ditto.
1340         (__locale_charset): New function.
1341         (__locale_msgcharset): Rename from __locale_charset.
1342         * libc/ctype/local.h (__lc_ctype): Remove declaration.
1343         (__locale_charset): Declare.
1344         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
1345         using __lc_ctype directly.  Only compare against the charset alone.
1346         * libc/ctype/iswblank.c (iswblank): Ditto.
1347         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1348         * libc/ctype/iswprint.c (iswprint): Ditto.
1349         * libc/ctype/iswpunct.c (iswpunct): Ditto.
1350         * libc/ctype/iswspace.c (iswspace): Ditto.
1351         * libc/ctype/towlower.c (towlower): Ditto.
1352         * libc/ctype/towupper.c (towupper): Ditto.
1353         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
1354         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1355         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
1356         __locale_msgcharset instead of __locale_charset.
1357
1358 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1359
1360         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
1361         charset, cast wchar to size_t in case wchar_t is signed.
1362         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
1363
1364 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
1365
1366         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
1367         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
1368         value in case of using a singlebyte charset.
1369
1370 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
1371
1372         * libc/machine/arm/strcpy.c: Add missing comma.
1373
1374 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
1375
1376         * libc/machine/lm32/configure.in: Let
1377         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
1378         * libs/machine/lm32/configure: Regenerate.
1379
1380 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
1381
1382         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
1383           mbsnrtowcs.def, wcsnrtombs.def.
1384         * libc/stdlib/Makefile.in: Regenerate.
1385         * libc/stdlib/stdlib.tex (@menu): Use correct section
1386           names for mbsrtowcs, wcsrtombs.
1387         * libc/stdlib/wcstod.c: Remove stray character in
1388           documentation.
1389
1390 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
1391
1392         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
1393         byte UTF-8 sequences since they are invalid in the Unicode standard.
1394         Handle surrogate pairs in case of wchar_t == UTF-16.
1395         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
1396         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
1397         pairs in case of wchar_t == UTF-16.
1398
1399 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
1400
1401         * libc/stdio/open_memstream.c (stdint.h): Include.
1402
1403 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
1404
1405         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
1406         coupling ttyname_r() and ttyname() due to the latter's large buffer).
1407         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
1408         ttyname.c.
1409         * libc/unix/ttyname.h:  New file (common size definition for the 2
1410         ttyname*c files that are now split).
1411         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
1412         * libc/unix/Makefile.in:  Regenerate.
1413
1414 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
1415
1416         * libc/include/wchar.h (mbsnrtowcs): Declare.
1417         (_mbsnrtowcs_r): Declare.
1418         (wcsnrtombs): Declare.
1419         (_wcsnrtombs_r): Declare.
1420         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
1421         and wcsnrtombs.c.
1422         * libc/stdlib/Makefile.in: Regenerate.
1423         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
1424         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
1425         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
1426         (mbsrtowcs): Ditto.
1427         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
1428         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
1429         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
1430         (wcsrtombs): Ditto.
1431         * libc/stdlib/stdlib.tex: Accommodate new documentation.
1432
1433 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
1434
1435         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
1436         buffer size to be in wchar_t units if wide == 1 is passed in.  In
1437         this case, also initialize the first character of the buffer to be
1438         wide char null.
1439         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
1440         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
1441         incrementing the size_t value n to first check that n is not already
1442         size_t -1.  Fix some compiler warnings.
1443         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
1444
1445 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
1446
1447         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
1448         (struct memstream): Add wide element.
1449         Change saved to a union to take char and wchar_t values.
1450         (memwriter): Accommodate wide-oriented oeprations.
1451         (memseeker): Ditto.
1452         (memseeker64): Ditto.
1453         (memcloser): Ditto.
1454         (internal_open_memstream_r): New static function.  Take functionality
1455         from former _open_memstream_r and handle additional "wide" parameter.
1456         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
1457         from here.
1458         (_open_wmemstream_r): New function.
1459         (open_wmemstream): Ditto.
1460         * libc/include/wchar.h (open_wmemstream): Declare.
1461         (_open_wmemstream_r): Declare.
1462
1463 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
1464
1465         * libc/stdio/fputwc.c: Fix typo in man page info.
1466
1467 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
1468
1469         * libc/include/wchar.h (_wcstod_r): Declare.
1470         (_wcstof_r): Declare.
1471         (wcstod): Declare.
1472         (wcstof): Declare.
1473         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
1474         (CHEWOUT_FILES): Add wcstod.def.
1475         * libc/stdlib/Makefile.in: Regenerate.
1476         * libc/stdlib/stdlib.tex: Add wcstod.
1477         * libc/stdlib/wcstod.c: New file.
1478
1479 2009-02-05  Neal H. Walfield  <neal@gnu.org>
1480
1481         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
1482
1483 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
1484
1485         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
1486         inf and nan processing to not proceed if we have already collected
1487         zeroes.
1488
1489 2009-01-26  DJ Delorie  <dj@redhat.com>
1490
1491         * configure.host (m32c-*-*): Add long long I/O support by default.
1492
1493 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
1494
1495         * libc/machine/arm/arm_asm.h: New file.
1496         * libc/machine/arm/strlen.c: New file.
1497         * libc/machine/arm/strcpy.c: New file.
1498         * libc/machine/arm/strcmp.c: New file.
1499         * libc/machine/arm/Makefile.am: Add new string routines.
1500
1501 2009-01-19  Neal H. Walfield  <neal@gnu.org>
1502
1503         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
1504         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
1505         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
1506         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
1507         not ll.
1508
1509 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
1510
1511         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
1512
1513 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1514
1515         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
1516         each fp.  Let the function being called lock the fp, if necessary.
1517
1518 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
1519
1520         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
1521
1522 2009-01-05  Craig Howland <howland@LGSInnovations.com>
1523
1524         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
1525
1526 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1527
1528         * NEWS: Update with 1.17.0 info.
1529         * README: Ditto.
1530         * acinclude.m4: Change version number to 1.17.0.
1531         * aclocal.m4: Regenerated.
1532         * configure: Ditto.
1533         * doc/aclocal.m4: Ditto.
1534         * doc/configure: Ditto.
1535         * libc/*/aclocal.m4: Ditto.
1536         * libc/*/configure: Ditto.
1537         * libc/libc.texinfo: Ditto.
1538         * libm/*/aclocal.m4: Ditto.
1539         * libm/*/configure: Ditto.
1540         * libm/libm.texinfo: Ditto.
1541         * libc/sys/linux/shared.ld: Add VERS_1.17
1542
1543 2008-12-17  Jon Beniston <jon@beniston.com>
1544
1545         * configure.host: Set syscall_dir for lm32 target.
1546
1547 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
1548
1549         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
1550         are included as part of fputwc and fgetwc, respectively.
1551
1552 2008-12-12  Craig Howland <howland@LGSInnovations.com>
1553
1554         * libc/include/wchar.h:  Added wcstok() declaration.
1555         * libc/string/wcstok.c: New file, implementing wcstok.
1556         * libc/string/Makefile.am: Add wcstok support.
1557         * libc/string/wcstrings.tex: Ditto.
1558         * libc/string/Makefile.in: Regenerated.
1559
1560 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1561
1562         * libc/stdio/fputws.c: Fix documentation.
1563         * libc/stdio/getwchar.c: Ditto.
1564         * libc/stdio/putwchar.c: Ditto.
1565
1566 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1567
1568         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
1569         200112L (SUSv3 compliance).
1570         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
1571
1572 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1573
1574         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
1575         _execve(), _exit().
1576
1577 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1578
1579         * configure.host: Let *rtems* default to c99-formats.
1580
1581 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
1582
1583         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
1584         * libc/stdio/fseek.c:  Ditto.
1585         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
1586
1587 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
1588
1589         * libc/include/sys/time.h (gettimeofday): Change prototype so
1590         2nd parameter is void *, matching SUSV2.
1591         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
1592
1593 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
1594
1595         * configure.host: Add lm32
1596         * libc/include/machine/ieeefp.h: Add __lm32__
1597         * libc/include/machine/setjmp.h: Add __lm32__
1598         * libc/machine/configure.in: Add lm32
1599         * libc/machine/configure: Regenerated.
1600         * libc/machine/lm32/aclocal.m4: New file.
1601         * libc/machine/lm32/configure.in: Ditto.
1602         * libc/machine/lm32/configure: Ditto.
1603         * libc/machine/lm32/Makefile.am: Ditto.
1604         * libc/machine/lm32/Makefile.in: Ditto.
1605         * libc/machine/lm32/setjmp.s: Ditto.
1606
1607 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
1608
1609         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
1610         effect" warnings from gcc.
1611         * libc/include/sys/stdio.h:  Ditto.
1612         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
1613         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
1614         * libc/stdlib/__ten_mu.c:  Ditto.
1615         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
1616         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
1617         already others in file without _ansi method, so did not bother.)
1618         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
1619         definitions.
1620         * libc/time/mktime.c:  Ditto.
1621         * libc/misc/__dprintf.c:  Ditto.
1622         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
1623         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
1624         _funopen_r, and _fopencookie_r.
1625         * libc/include/reent.h:  Add function prototype for _stat64_r, align
1626         _execve_r prototype with POSIX definition for execve.
1627         * libc/reent/execr.c:  Align function prototype with POSIX definition.
1628         * libc/stdio/asniprintf.c:  Add #include "local.h".
1629         * libc/stdio/vasniprintf.c:  Ditto.
1630         * libc/stdio/fread.c:  Remove unused variable newcount.
1631         * libc/stdio/local.h:  Add function prototype for __sccl.
1632         * libc/stdio/open_memstream.c:  Remove unused variable flags.
1633         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
1634         for __sccl since now in local.h.
1635         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
1636         traditional synopsis), remove extraneous stddef.h and limits.h.
1637         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
1638         * libc/syscalls/sysfork.c:  Ditto.
1639         * libc/syscalls/sysgetpid.c:  Ditto.
1640         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
1641         prototype with POSIX definition.
1642         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
1643         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
1644         * libc/syscalls/syskill.c:  Add #include <signal.h>.
1645         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
1646         * libc/syscalls/sysunlink.c:  Ditto.
1647         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
1648         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
1649
1650 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
1651
1652         Implement basic wide char stdio functionality, based on FreeBSD.
1653         * libc/include/stdio.h (__SORD): Define.
1654         (__SWID): Define.
1655         * libc/include/wchar.h: Add declarations for new wide char functions.
1656         (getwc): Define as macro.
1657         (getwchar): Ditto.
1658         (putwc): Ditto.
1659         (putwchar): Ditto.
1660         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
1661         (struct __sFILE64): Ditto.
1662         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
1663         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
1664         and ungetwc.c.
1665         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
1666         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
1667         ungetwc.def.
1668         Add header dependency rules for the new files.
1669         * libc/stdio/Makefile.in: Regenerate.
1670         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
1671         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
1672         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
1673         (__sfmoreglue): Ditto.
1674         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
1675         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
1676         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
1677         * libc/stdio/fread.c (_fread_r): Set stream orientation.
1678         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
1679         _mbstate.
1680         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
1681         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
1682         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
1683         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
1684         * libc/stdio/getwchar.c: New file, implementing getwchar and
1685         _getwchar_r.
1686         * libc/stdio/local.h (ORIENT): New macro.
1687         * libc/stdio/puts.c (_puts_r): Set stream orientation.
1688         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
1689         * libc/stdio/putwchar.c: New file, implementing putwchar and
1690         _putwchar_r.
1691         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
1692         * libc/stdio/stdio.tex: Add documentation for new functions.
1693         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
1694         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
1695         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
1696         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
1697
1698 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
1699
1700         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
1701         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
1702         constants with "long" types where appropriate.
1703         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
1704         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
1705         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
1706         Correct to match logic for defining corresponding types.
1707         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
1708         (SIZE_MAX): Define using __SIZE_MAX__ if available.
1709         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
1710         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
1711         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
1712         (UINT8_C, UINT16_C): Define to give signed values if corresponding
1713         types would promote to int.
1714
1715 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
1716
1717         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
1718         (_POSIX_V6_LP64_OFF64): Ditto.
1719         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
1720
1721 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
1722
1723         * libc/sys/linux/inode.c: Include <dirent.h> instead of
1724         <linux/dirent.h>.
1725         * libc/sys/linux/io64.c: Add weak alias for _stat64.
1726
1727 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1728
1729         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
1730         to fix GCC warning.
1731
1732 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
1733
1734         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
1735         * libc/machine/spu/Makefile.in: Regenerated.
1736         * libc/machine/spu/spu-gmon.c: New file.
1737         * libc/machine/spu/spu-mcount.S: New file.
1738
1739 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
1740
1741         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
1742
1743 2008-11-27  Craig Howland <howland@LGSInnovations.com>
1744
1745         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
1746         prototypes.
1747         * libc/argz/argz_append.c: Ditto.
1748         * libc/argz/argz_count.c: Ditto.
1749         * libc/argz/argz_create.c: Ditto.
1750         * libc/argz/argz_create_sep.c: Ditto.
1751         * libc/argz/argz_delete.c: Ditto.
1752         * libc/argz/argz_next.c: Ditto.
1753         * libc/argz/argz_stringify.c: Ditto
1754         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
1755         prototypes.
1756         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
1757         prototypes, corrected traditional usage comment.
1758         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
1759
1760 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
1761
1762         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
1763         * libm/machine/spu/headers/asind2.h: Likewise.
1764         * libm/machine/spu/headers/asinhf4.h: Likewise.
1765         * libm/machine/spu/headers/divd2.h: Likewise.
1766         * libm/machine/spu/headers/erf_utils.h: Likewise.
1767         * libm/machine/spu/headers/erfcd2.h: Likewise.
1768         * libm/machine/spu/headers/erfcf4.h: Likewise.
1769         * libm/machine/spu/headers/erfd2.h: Likewise.
1770         * libm/machine/spu/headers/recipd2.h: Likewise.
1771
1772 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
1773
1774         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
1775         __sgetc_r instead of _getchar_r.
1776
1777 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
1778
1779         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
1780         include wchar.h for prototype, remove extraneous includes, use
1781         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
1782         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
1783         base value check noted above), remove extraneous includes.
1784         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
1785         prototype for _svfprintf_r().
1786         * libc/stdio/vasnprintf.c:  Ditto.
1787         * libc/stdio/local.h:  Add function prototype for __submore().
1788         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
1789         _ftello_r.
1790         * libc/posix/namespace.h:  Commented out define for write to
1791         eliminate write() prototype being missing for collate.c (which is
1792         the only file that presently includes namespace.h).
1793         * libc/include/reent.h:  Added _rename_r.
1794         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
1795         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
1796
1797 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1798
1799         * libc/search/hash_func.c: Comment out unused static hash functions.
1800         * libc/reent/stat64r.c: New file.
1801         * libc/reent/Makefile.am: Add stat64r.c support.
1802         * libc/reent/Makefile.in: Regenerated.
1803
1804 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1805
1806         * libc/posix/scandir.c: Fix memory leaks.
1807
1808 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1809
1810         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
1811         * libc/posix/Makefile.in: Regenerated.
1812
1813 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
1814
1815         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
1816         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
1817         * libc/stdio/findfp.c (std): Initialize _flags2.
1818         (__sfp): Ditto.
1819         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
1820         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
1821         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
1822         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1823
1824 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1825
1826         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
1827         be in sync with current kernels.
1828
1829 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1830             Patrick Mansfield  <patmans@us.ibm.com>
1831             Joel Schopp   <jschopp@austin.ibm.com>
1832
1833         * libc/machine/spu/configure.in: Add __ea detection.
1834         * libc/machine/spu/Makefile.am: Add new files.
1835         * libc/machine/spu/include/ea.h: New file.
1836         * libc/machine/spu/ea_internal.h: Likewise.
1837         * libc/machine/spu/sys/mman.h: Likewise.
1838         * libc/machine/spu/mmap_ea.c: Likewise.
1839         * libc/machine/spu/munmap_ea.c: Likewise.
1840         * libc/machine/spu/mremap_ea.c: Likewise.
1841         * libc/machine/spu/msync_ea.c: Likewise.
1842         * libc/machine/spu/memchr_ea.c: Likewise.
1843         * libc/machine/spu/memcmp_ea.c: Likewise.
1844         * libc/machine/spu/memcpy_ea.c: Likewise.
1845         * libc/machine/spu/memmove_ea.c: Likewise.
1846         * libc/machine/spu/memset_ea.c: Likewise.
1847         * libc/machine/spu/malloc_ea.c: Likewise.
1848         * libc/machine/spu/realloc_ea.c: Likewise.
1849         * libc/machine/spu/calloc_ea.c: Likewise.
1850         * libc/machine/spu/free_ea.c: Likewise.
1851         * libc/machine/spu/posix_memalign_ea.c: Likewise.
1852         * libc/machine/spu/strcat_ea.c: Likewise.
1853         * libc/machine/spu/strchr_ea.c: Likewise.
1854         * libc/machine/spu/strcmp_ea.c: Likewise.
1855         * libc/machine/spu/strcpy_ea.c: Likewise.
1856         * libc/machine/spu/strcspn_ea.c: Likewise.
1857         * libc/machine/spu/strlen_ea.c: Likewise.
1858         * libc/machine/spu/strncat_ea.c: Likewise.
1859         * libc/machine/spu/strncmp_ea.c: Likewise.
1860         * libc/machine/spu/strncpy_ea.c: Likewise.
1861         * libc/machine/spu/strpbrk_ea.c: Likewise.
1862         * libc/machine/spu/strrchr_ea.c: Likewise.
1863         * libc/machine/spu/strspn_ea.c: Likewise.
1864         * libc/machine/spu/strstr_ea.c: Likewise.
1865         * libc/machine/spu/read_ea.c: Likewise.
1866         * libc/machine/spu/pread_ea.c: Likewise.
1867         * libc/machine/spu/readv_ea.c: Likewise.
1868         * libc/machine/spu/write_ea.c: Likewise.
1869         * libc/machine/spu/pwrite_ea.c: Likewise.
1870         * libc/machine/spu/writev_ea.c: Likewise.
1871
1872 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1873
1874         * libc/include/sys/config.h[__mips__]: Don't bother
1875         setting __ATTRIBUTE_IMPURE_PTR__ here.
1876         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
1877         macro anymore.
1878
1879 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
1880
1881         * libc/sys/linux/bits/dirent.h: New header file.
1882         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
1883         <linux/dirent.h>.
1884         * libc/posix/Makefile.am: Remove reallocf.
1885         * libc/posix/Makefile.in: Regenerated.
1886         * libc/posix/reallocf.c: Moved to...
1887         * libc/stdlib/reallocf.c: Here
1888         * libc/stdlib/malloc.c: Add reallocf documentation.
1889         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
1890         * libc/stdlib/Makefile.am: Add reallocf.
1891         * libc/stdlib/Makefile.in: Regenerated.
1892         * libc/posix/_isatty.c: Set errno.
1893
1894 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
1895
1896         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
1897         strdup() and strlen() calls, also getting rid of a compiler warning.
1898
1899 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
1900
1901         * libc/include/sys/config.h: Don't put
1902         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
1903
1904 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
1905
1906         * libc/posix/runetype.h: Add include of stddef.h and remove
1907         defining standard types: size_t and wchar_t.
1908
1909 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
1910
1911         * libc/include/pthread.h: Remove prototypes for
1912         pthread_attr_getcputime and pthread_attr_setcputime which
1913         were proposed but never approved by the POSIX standard.
1914
1915 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
1916
1917         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
1918
1919 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
1920
1921         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
1922         ignored if desired by a platform.
1923         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
1924         * libc/unix/getcwd.c: Ditto.
1925         * libc/unix/getlogin.c: Ditto.
1926         * libc/unix/getpass.c: Ditto.
1927         * libc/unix/getpwent.c: Ditto.
1928         * libc/unix/getut.c: Ditto.
1929         * libc/unix/pread.c: Ditto.
1930         * libc/unix/pwrite.c: Ditto.
1931         * libc/unix/sigset.c: Ditto.
1932
1933 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
1934
1935         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
1936         ttyname_r.
1937
1938 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
1939
1940         * configure.host: RTEMS now uses posix subdirectory.
1941
1942 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
1943
1944         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
1945         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
1946
1947 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
1948
1949         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
1950         libhover docs generate properly.
1951         * libc/stdio/dprintf.c: Ditto.
1952         * libc/stdio/fflush.c: Ditto.
1953         * libc/stdio/fopencookie.c: Ditto.
1954         * libc/stdio/fread.c: Ditto.
1955         * libc/stdio/fsetpos.c: Ditto.
1956         * libc/stdio/getc_u.c: Ditto.
1957         * libc/stdio/getchar_u.c: Ditto.
1958         * libc/stdio/putc_u.c: Ditto.
1959         * libc/stdio/putchar_u.c: Ditto.
1960         * libc/stdio/remove.c: Ditto.
1961         * libc/stdio/siprintf.c: Ditto.
1962         * libc/stdio/siscanf.c: Ditto.
1963         * libc/stdio/sprintf.c: Ditto.
1964         * libc/stdio/sscanf.c: Ditto.
1965         * libc/stdio/vfprintf.c: Ditto.
1966         * libc/stdio/vfscanf.c: Ditto.
1967         * libc/stdio/viprintf.c: Ditto.
1968         * libc/stdio/viscanf.c: Ditto.
1969         * libc/stdlib/calloc.c: Ditto.
1970         * libc/stdlib/efgcvt.c: Ditto.
1971         * libc/stdlib/envlock.c: Ditto.
1972         * libc/time/asctime.c: Ditto.
1973         * libc/time/ctime.c: Ditto.
1974         * libc/time/gmtime.c: Ditto.
1975         * libc/time/lcltime.c: Ditto.
1976         * libc/time/tzset.c: Ditto.
1977         * libc/stdlib/envlock.h: Moved to libc/include.
1978
1979 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
1980
1981         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
1982         * libc/include/envlock.h: New file.
1983         * libc/include/fnmatch.h: Ditto.
1984         * libc/include/glob.h: Ditto.
1985         * libc/include/regex.h: Ditto.
1986         * libc/include/wordexp.h: Ditto.
1987         * libc/posix/Makefile.am: Add new files moved from
1988         libc/sys/linux/stdlib.
1989         * libc/posix/Makefile.in: Regenerated.
1990         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
1991         * libc/posix/cclass.h: Ditto.
1992         * libc/posix/cname.h: Ditto.
1993         * libc/posix/collate.c: Ditto.
1994         * libc/posix/collate.h: Ditto.
1995         * libc/posix/collcmp.c: Ditto.
1996         * libc/posix/engine.c: Ditto.
1997         * libc/posix/fnmatch.3: Ditto.
1998         * libc/posix/glob.3: Ditto.
1999         * libc/posix/fnmatch.c: Ditto.
2000         * libc/posix/glob.c: Ditto.
2001         * libc/posix/namespace.h: Ditto.
2002         * libc/posix/reallocf.c: Ditto.
2003         * libc/posix/regcomp.c: Ditto.
2004         * libc/posix/regerror.c: Ditto.
2005         * libc/posix/regex.3: Ditto.
2006         * libc/posix/regex2.h: Ditto.
2007         * libc/posix/regexec.c: Ditto.
2008         * libc/posix/regfree.c: Ditto.
2009         * libc/posix/rune.h: Ditto.
2010         * libc/posix/runetype.h: Ditto.
2011         * libc/posix/scandir.c: Remove advertising clause which is not in
2012         effect.
2013         * libc/posix/sysexits.h: Ditto.
2014         * libc/posix/un-namespace.h: Ditto.
2015         * libc/posix/utils.h: Ditto.
2016         * libc/posix/wordexp.c: Ditto.
2017         * libc/posix/wordfree.c: Ditto.
2018         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2019         * libc/posix/execle.c: Ditto.
2020         * libc/posix/execlp.c: Ditto.
2021         * libc/posix/execv.c: Ditto.
2022         * libc/posix/execve.c: Ditto.
2023         * libc/posix/execvp.c: Ditto.
2024         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2025         * libc/sys/linux/configure: Regenerated.
2026         * libc/sys/linux/configure.in: Remove stdlib.
2027         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2028         * libc/sys/linux/stdlib/Makefile.am: Removed.
2029         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2030         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2031         * libc/sys/linux/stdlib/cclass.h: Ditto.
2032         * libc/sys/linux/stdlib/cname.h: Ditto.
2033         * libc/sys/linux/stdlib/collate.c: Ditto.
2034         * libc/sys/linux/stdlib/collate.h: Ditto.
2035         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2036         * libc/sys/linux/stdlib/engine.c: Ditto.
2037         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2038         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2039         * libc/sys/linux/stdlib/glob.3: Ditto.
2040         * libc/sys/linux/stdlib/glob.c: Ditto.
2041         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2042         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2043         * libc/sys/linux/stdlib/regerror.c: Ditto.
2044         * libc/sys/linux/stdlib/regex.3: Ditto.
2045         * libc/sys/linux/stdlib/regex2.h: Ditto.
2046         * libc/sys/linux/stdlib/regexec.c: Ditto.
2047         * libc/sys/linux/stdlib/regfree.c: Ditto.
2048         * libc/sys/linux/stdlib/utils.h: Ditto.
2049         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2050         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2051
2052 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2053
2054         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2055
2056 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2057
2058         * libc/include/time.h: Add CLOCK_MONOTONIC.
2059         * libc/include/sys/features.h: Define
2060         _POSIX_MONOTONIC_CLOCK for RTEMS.
2061
2062 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2063
2064         * newlib.hin: Restore to previous 1.14 version which has no
2065         PACKAGE_ macros.
2066
2067 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2068
2069         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2070
2071 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2072
2073         * libc/include/ctype.h (isblank):  isblank is C99.
2074         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2075         have a macro version (as was claimed in the description).
2076
2077 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2078
2079         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2080         %S conversions when the EL/IX level is 1.
2081
2082 2008-10-06  Eric Blake  <ebb9@byu.net>
2083
2084         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2085         is 0.5 or 0.75.
2086
2087 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2088
2089         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2090         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2091
2092 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2093
2094         * libc/string/str-two-way.h (critical_factorization): Cast the index
2095         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2096
2097 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2098
2099         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2100         be size of size_t, not int.
2101         (SIZE_MIN): Remove.
2102         * libc/sys/linux/sys/stdint.h: Ditto.
2103
2104 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2105
2106         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2107         initialization of _rand_next to 1.
2108
2109 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2110             Steve Ellcey  <sje@cup.hp.com>
2111
2112         * configure: Regenerate for new libtool.
2113         * aclocal.m4: Ditto.
2114         * Makefile.in: Ditto.
2115         * newlib.hin: Ditto.
2116         * doc/Makefile.in: Ditto.
2117         * doc/configure: Ditto.
2118         * iconvdata/Makefile.in: Ditto.
2119         * iconvdata/aclocal.m4: Ditto.
2120         * iconvdata/configure: Ditto.
2121         * libc/Makefile.in: Ditto.
2122         * libc/aclocal.m4: Ditto.
2123         * libc/configure: Ditto.
2124         * libc/argz/Makefile.in: Ditto.
2125         * libc/ctype/Makefile.in: Ditto.
2126         * libc/errno/Makefile.in: Ditto.
2127         * libc/iconv/Makefile.in: Ditto.
2128         * libc/iconv/ccs/Makefile.in: Ditto.
2129         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2130         * libc/iconv/ces/Makefile.in: Ditto.
2131         * libc/iconv/lib/Makefile.in: Ditto.
2132         * libc/locale/Makefile.in: Ditto.
2133         * libc/machine/Makefile.in: Ditto.
2134         * libc/machine/aclocal.m4: Ditto.
2135         * libc/machine/configure: Ditto.
2136         * libc/machine/a29k/Makefile.in: Ditto.
2137         * libc/machine/a29k/configure: Ditto.
2138         * libc/machine/arm/Makefile.in: Ditto.
2139         * libc/machine/arm/configure: Ditto.
2140         * libc/machine/bfin/Makefile.in: Ditto.
2141         * libc/machine/bfin/configure: Ditto.
2142         * libc/machine/cris/Makefile.in: Ditto.
2143         * libc/machine/cris/configure: Ditto.
2144         * libc/machine/crx/Makefile.in: Ditto.
2145         * libc/machine/crx/configure: Ditto.
2146         * libc/machine/d10v/Makefile.in: Ditto.
2147         * libc/machine/d10v/configure: Ditto.
2148         * libc/machine/d30v/Makefile.in: Ditto.
2149         * libc/machine/d30v/configure: Ditto.
2150         * libc/machine/fr30/Makefile.in: Ditto.
2151         * libc/machine/fr30/configure: Ditto.
2152         * libc/machine/frv/Makefile.in: Ditto.
2153         * libc/machine/frv/configure: Ditto.
2154         * libc/machine/h8300/Makefile.in: Ditto.
2155         * libc/machine/h8300/configure: Ditto.
2156         * libc/machine/h8500/Makefile.in: Ditto.
2157         * libc/machine/h8500/configure: Ditto.
2158         * libc/machine/hppa/Makefile.in: Ditto.
2159         * libc/machine/hppa/configure: Ditto.
2160         * libc/machine/i386/Makefile.in: Ditto.
2161         * libc/machine/i386/aclocal.m4: Ditto.
2162         * libc/machine/i386/configure: Ditto.
2163         * libc/machine/i960/Makefile.in: Ditto.
2164         * libc/machine/i960/configure: Ditto.
2165         * libc/machine/iq2000/Makefile.in: Ditto.
2166         * libc/machine/iq2000/configure: Ditto.
2167         * libc/machine/m32c/Makefile.in: Ditto.
2168         * libc/machine/m32c/configure: Ditto.
2169         * libc/machine/m32r/Makefile.in: Ditto.
2170         * libc/machine/m32r/configure: Ditto.
2171         * libc/machine/m68hc11/Makefile.in: Ditto.
2172         * libc/machine/m68hc11/configure: Ditto.
2173         * libc/machine/m68k/Makefile.in: Ditto.
2174         * libc/machine/m68k/configure: Ditto.
2175         * libc/machine/m88k/Makefile.in: Ditto.
2176         * libc/machine/m88k/configure: Ditto.
2177         * libc/machine/mep/Makefile.in: Ditto.
2178         * libc/machine/mep/configure: Ditto.
2179         * libc/machine/mips/Makefile.in: Ditto.
2180         * libc/machine/mips/configure: Ditto.
2181         * libc/machine/mn10200/Makefile.in: Ditto.
2182         * libc/machine/mn10200/configure: Ditto.
2183         * libc/machine/mn10300/Makefile.in: Ditto.
2184         * libc/machine/mn10300/configure: Ditto.
2185         * libc/machine/mt/Makefile.in: Ditto.
2186         * libc/machine/mt/configure: Ditto.
2187         * libc/machine/necv70/Makefile.in: Ditto.
2188         * libc/machine/necv70/configure: Ditto.
2189         * libc/machine/powerpc/Makefile.in: Ditto.
2190         * libc/machine/powerpc/configure: Ditto.
2191         * libc/machine/sh/Makefile.in: Ditto.
2192         * libc/machine/sh/configure: Ditto.
2193         * libc/machine/sparc/Makefile.in: Ditto.
2194         * libc/machine/sparc/configure: Ditto.
2195         * libc/machine/spu/Makefile.in: Ditto.
2196         * libc/machine/spu/configure: Ditto.
2197         * libc/machine/tic4x/Makefile.in: Ditto.
2198         * libc/machine/tic4x/configure: Ditto.
2199         * libc/machine/tic80/Makefile.in: Ditto.
2200         * libc/machine/tic80/configure: Ditto.
2201         * libc/machine/v850/Makefile.in: Ditto.
2202         * libc/machine/v850/configure: Ditto.
2203         * libc/machine/w65/Makefile.in: Ditto.
2204         * libc/machine/w65/configure: Ditto.
2205         * libc/machine/x86_64/Makefile.in: Ditto.
2206         * libc/machine/x86_64/configure: Ditto.
2207         * libc/machine/xscale/Makefile.in: Ditto.
2208         * libc/machine/xscale/configure: Ditto.
2209         * libc/machine/xstormy16/Makefile.in: Ditto.
2210         * libc/machine/xstormy16/configure: Ditto.
2211         * libc/machine/z8k/Makefile.in: Ditto.
2212         * libc/machine/z8k/configure: Ditto.
2213         * libc/misc/Makefile.in: Ditto.
2214         * libc/posix/Makefile.in: Ditto.
2215         * libc/reent/Makefile.in: Ditto.
2216         * libc/search/Makefile.in: Ditto.
2217         * libc/signal/Makefile.in: Ditto.
2218         * libc/stdio/Makefile.in: Ditto.
2219         * libc/stdio64/Makefile.in: Ditto.
2220         * libc/stdlib/Makefile.in: Ditto.
2221         * libc/string/Makefile.in: Ditto.
2222         * libc/sys/Makefile.in: Ditto.
2223         * libc/sys/aclocal.m4: Ditto.
2224         * libc/sys/configure: Ditto.
2225         * libc/sys/a29khif/Makefile.in: Ditto.
2226         * libc/sys/a29khif/configure: Ditto.
2227         * libc/sys/arc/Makefile.in: Ditto.
2228         * libc/sys/arc/configure: Ditto.
2229         * libc/sys/arm/Makefile.in: Ditto.
2230         * libc/sys/arm/configure: Ditto.
2231         * libc/sys/d10v/Makefile.in: Ditto.
2232         * libc/sys/d10v/configure: Ditto.
2233         * libc/sys/decstation/Makefile.in: Ditto.
2234         * libc/sys/decstation/configure: Ditto.
2235         * libc/sys/h8300hms/Makefile.in: Ditto.
2236         * libc/sys/h8300hms/configure: Ditto.
2237         * libc/sys/h8500hms/Makefile.in: Ditto.
2238         * libc/sys/h8500hms/configure: Ditto.
2239         * libc/sys/linux/Makefile.in: Ditto.
2240         * libc/sys/linux/aclocal.m4: Ditto.
2241         * libc/sys/linux/configure: Ditto.
2242         * libc/sys/linux/argp/Makefile.in: Ditto.
2243         * libc/sys/linux/cmath/Makefile.in: Ditto.
2244         * libc/sys/linux/dl/Makefile.in: Ditto.
2245         * libc/sys/linux/iconv/Makefile.in: Ditto.
2246         * libc/sys/linux/intl/Makefile.in: Ditto.
2247         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
2248         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
2249         * libc/sys/linux/linuxthreads/configure: Ditto.
2250         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
2251         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
2252         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
2253         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
2254         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
2255         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
2256         * libc/sys/linux/machine/Makefile.in: Ditto.
2257         * libc/sys/linux/machine/aclocal.m4: Ditto.
2258         * libc/sys/linux/machine/configure: Ditto.
2259         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2260         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2261         * libc/sys/linux/machine/i386/configure: Ditto.
2262         * libc/sys/linux/net/Makefile.in: Ditto.
2263         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2264         * libc/sys/m88kbug/Makefile.in: Ditto.
2265         * libc/sys/m88kbug/configure: Ditto.
2266         * libc/sys/mmixware/Makefile.in: Ditto.
2267         * libc/sys/mmixware/configure: Ditto.
2268         * libc/sys/netware/Makefile.in: Ditto.
2269         * libc/sys/netware/configure: Ditto.
2270         * libc/sys/rdos/Makefile.in: Ditto.
2271         * libc/sys/rdos/configure: Ditto.
2272         * libc/sys/rtems/Makefile.in: Ditto.
2273         * libc/sys/rtems/configure: Ditto.
2274         * libc/sys/sh/Makefile.in: Ditto.
2275         * libc/sys/sh/configure: Ditto.
2276         * libc/sys/sparc64/Makefile.in: Ditto.
2277         * libc/sys/sparc64/configure: Ditto.
2278         * libc/sys/sun4/Makefile.in: Ditto.
2279         * libc/sys/sun4/configure: Ditto.
2280         * libc/sys/sysmec/Makefile.in: Ditto.
2281         * libc/sys/sysmec/configure: Ditto.
2282         * libc/sys/sysnec810/Makefile.in: Ditto.
2283         * libc/sys/sysnec810/configure: Ditto.
2284         * libc/sys/sysnecv850/Makefile.in: Ditto.
2285         * libc/sys/sysnecv850/configure: Ditto.
2286         * libc/sys/sysvi386/Makefile.in: Ditto.
2287         * libc/sys/sysvi386/configure: Ditto.
2288         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2289         * libc/sys/sysvnecv70/configure: Ditto.
2290         * libc/sys/tic80/Makefile.in: Ditto.
2291         * libc/sys/tic80/configure: Ditto.
2292         * libc/sys/w65/Makefile.in: Ditto.
2293         * libc/sys/w65/configure: Ditto.
2294         * libc/sys/z8ksim/Makefile.in: Ditto.
2295         * libc/sys/z8ksim/configure: Ditto.
2296         * libc/syscalls/Makefile.in: Ditto.
2297         * libc/time/Makefile.in: Ditto.
2298         * libc/unix/Makefile.in: Ditto.
2299         * libm/Makefile.in: Ditto.
2300         * libm/aclocal.m4: Ditto.
2301         * libm/configure: Ditto.
2302         * libm/common/Makefile.in: Ditto.
2303         * libm/machine/Makefile.in: Ditto.
2304         * libm/machine/aclocal.m4: Ditto.
2305         * libm/machine/configure: Ditto.
2306         * libm/machine/i386/Makefile.in: Ditto.
2307         * libm/machine/i386/aclocal.m4: Ditto.
2308         * libm/machine/i386/configure: Ditto.
2309         * libm/machine/spu/Makefile.in: Ditto.
2310         * libm/machine/spu/configure: Ditto.
2311         * libm/math/Makefile.in: Ditto.
2312         * libm/mathfp/Makefile.in: Ditto.
2313
2314 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
2315
2316         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
2317         contains an equal sign.
2318
2319 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
2320
2321         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2322         new pthread_mutexattr_gettype and pthread_mutexattr_settype
2323         prototypes.
2324         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2325         new mutex type values.
2326         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
2327         field.
2328
2329 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2330
2331         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
2332         name is NULL, empty, or contains equal sign.
2333
2334 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
2335
2336         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
2337         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
2338         return types.
2339         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
2340         names that contain equal chars.
2341         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
2342         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
2343         EINVAL if name contains an equal sign.  Do not remove any equal signs
2344         from the value.
2345         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
2346         if name contains equal sign.  Return -1 if no variable(s) were found
2347         and return 0 otherwise.
2348
2349 2008-09-19  Eric Blake  <ebb9@byu.net>
2350
2351         Supply missing POSIX errno values.
2352         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
2353         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2354
2355 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
2356
2357         * libc/machine/spu/strcpy.h: Add missing header.
2358         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
2359         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
2360
2361 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
2362
2363         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
2364         statement to use "m" instead of "0".
2365         (atomic_add): Ditto.
2366         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
2367         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
2368         * libc/sys/linux/stdlib/glob.c: Ditto.
2369
2370 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2371
2372         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
2373         * libm/machine/spu/headers/acosf4.h: Likewise.
2374         * libm/machine/spu/headers/acoshd2.h: Likewise.
2375         * libm/machine/spu/headers/acoshf4.h: Likewise.
2376         * libm/machine/spu/headers/asind2.h: Likewise.
2377         * libm/machine/spu/headers/asinf4.h: Likewise.
2378         * libm/machine/spu/headers/asinhd2.h: Likewise.
2379         * libm/machine/spu/headers/asinhf4.h: Likewise.
2380         * libm/machine/spu/headers/atan2d2.h: Likewise.
2381         * libm/machine/spu/headers/atan2f4.h: Likewise.
2382         * libm/machine/spu/headers/atand2.h: Likewise.
2383         * libm/machine/spu/headers/atanf4.h: Likewise.
2384         * libm/machine/spu/headers/atanhd2.h: Likewise.
2385         * libm/machine/spu/headers/atanhf4.h: Likewise.
2386         * libm/machine/spu/headers/cos_sin.h: Likewise.
2387         * libm/machine/spu/headers/cosd2.h: Likewise.
2388         * libm/machine/spu/headers/cosf4.h: Likewise.
2389         * libm/machine/spu/headers/coshd2.h: Likewise.
2390         * libm/machine/spu/headers/coshf4.h: Likewise.
2391         * libm/machine/spu/headers/divd2.h: Likewise.
2392         * libm/machine/spu/headers/divf4.h: Likewise.
2393         * libm/machine/spu/headers/erf_utils.h: Likewise.
2394         * libm/machine/spu/headers/erfcd2.h: Likewise.
2395         * libm/machine/spu/headers/erfcf4.h: Likewise.
2396         * libm/machine/spu/headers/erfd2.h: Likewise.
2397         * libm/machine/spu/headers/erff4.h: Likewise.
2398         * libm/machine/spu/headers/exp2d2.h: Likewise.
2399         * libm/machine/spu/headers/exp2f4.h: Likewise.
2400         * libm/machine/spu/headers/expd2.h: Likewise.
2401         * libm/machine/spu/headers/expf4.h: Likewise.
2402         * libm/machine/spu/headers/expm1d2.h: Likewise.
2403         * libm/machine/spu/headers/expm1f4.h: Likewise.
2404         * libm/machine/spu/headers/floord2.h: Likewise.
2405         * libm/machine/spu/headers/floorf4.h: Likewise.
2406         * libm/machine/spu/headers/hypotd2.h: Likewise.
2407         * libm/machine/spu/headers/hypotf4.h: Likewise.
2408         * libm/machine/spu/headers/isnand2.h: Likewise.
2409         * libm/machine/spu/headers/isnanf4.h: Likewise.
2410         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2411         * libm/machine/spu/headers/ldexpf4.h: Likewise.
2412         * libm/machine/spu/headers/lgammad2.h: Likewise.
2413         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2414         * libm/machine/spu/headers/log10d2.h: Likewise.
2415         * libm/machine/spu/headers/log1pd2.h: Likewise.
2416         * libm/machine/spu/headers/log1pf4.h: Likewise.
2417         * libm/machine/spu/headers/log2d2.h: Likewise.
2418         * libm/machine/spu/headers/log2f4.h: Likewise.
2419         * libm/machine/spu/headers/logbf4.h: Likewise.
2420         * libm/machine/spu/headers/logd2.h: Likewise.
2421         * libm/machine/spu/headers/logf4.h: Likewise.
2422         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
2423         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2424         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2425         * libm/machine/spu/headers/powd2.h: Likewise.
2426         * libm/machine/spu/headers/powf4.h: Likewise.
2427         * libm/machine/spu/headers/recipd2.h: Likewise.
2428         * libm/machine/spu/headers/recipf4.h: Likewise.
2429         * libm/machine/spu/headers/rintf4.h: Likewise.
2430         * libm/machine/spu/headers/scalbnf4.h: Likewise.
2431         * libm/machine/spu/headers/signbitd2.h: Likewise.
2432         * libm/machine/spu/headers/sincosd2.h: Likewise.
2433         * libm/machine/spu/headers/sincosf4.h: Likewise.
2434         * libm/machine/spu/headers/sind2.h: Likewise.
2435         * libm/machine/spu/headers/sinf4.h: Likewise.
2436         * libm/machine/spu/headers/sinhd2.h: Likewise.
2437         * libm/machine/spu/headers/sinhf4.h: Likewise.
2438         * libm/machine/spu/headers/sqrtd2.h: Likewise.
2439         * libm/machine/spu/headers/sqrtf4.h: Likewise.
2440         * libm/machine/spu/headers/tand2.h: Likewise.
2441         * libm/machine/spu/headers/tanf4.h: Likewise.
2442         * libm/machine/spu/headers/tanhd2.h: Likewise.
2443         * libm/machine/spu/headers/tanhf4.h: Likewise.
2444         * libm/machine/spu/headers/tgammad2.h: Likewise.
2445         * libm/machine/spu/headers/tgammaf4.h: Likewise.
2446         * libm/machine/spu/headers/truncd2.h: Likewise.
2447         * libm/machine/spu/headers/truncf4.h: Likewise.
2448         * libm/machine/spu/headers/simdmath.h: Likewise.
2449
2450 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2451
2452         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
2453         * libm/machine/spu/headers/asinhd2.h: Likewise.
2454         * libm/machine/spu/headers/atanhd2.h: Likewise.
2455         * libm/machine/spu/headers/atanhf4.h: Likewise.
2456         * libm/machine/spu/headers/erff4.h: Likewise.
2457         * libm/machine/spu/headers/expd2.h: Likewise.
2458         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2459         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2460         * libm/machine/spu/headers/logbf4.h: Likewise.
2461         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2462         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2463         * libm/machine/spu/headers/recipd2.h: Likewise.
2464         * libm/machine/spu/headers/simdmath.h: Likewise.
2465         * libm/machine/spu/headers/acoshd2.: Likewise.
2466
2467 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2468
2469         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
2470         * libm/machine/spu/headers/cbrtf.h: Likewise.
2471
2472 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
2473
2474         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
2475         * libc/machine/spu/spu_timebase.c: New file.
2476         * libc/machine/spu/Makefile.am: Add new file.
2477         * libc/machine/spu/Makefile.in: Regenerated.
2478
2479 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
2480
2481         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
2482         any positive value from user (per std) rather than depending
2483         upon 1).
2484
2485 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
2486
2487         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
2488         for accepting a converted character.
2489
2490 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2491
2492         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
2493         from building pdfs.
2494         * libm/libm.texinfo: Likewise.
2495
2496 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
2497
2498         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
2499         accepting a converted character and continuing the loop.
2500
2501 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2502
2503         * libc/include/ctype.h (_ctype_): Restore for C++ backward
2504         compatability only.
2505
2506 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
2507
2508         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
2509         less than the old __ctype_ptr.
2510         * libc/ctype/isalnum.c: Use __ctype_ptr__.
2511         * libc/ctype/isalpha.c: Ditto.
2512         * libc/ctype/iscntrl.c: Ditto.
2513         * libc/ctype/isdigit.c: Ditto.
2514         * libc/ctype/islower.c: Ditto.
2515         * libc/ctype/isprint.c: Ditto.
2516         * libc/ctype/ispunct.c: Ditto.
2517         * libc/ctype/isspace.c: Ditto.
2518         * libc/ctype/isupper.c: Ditto.
2519         * libc/ctype/isxdigit.c: Ditto.
2520         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
2521         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
2522         from here even though they can still work.
2523
2524 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
2525
2526         * libc/machine/spu/strcpy.h: Fix error in previous patch.
2527
2528 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
2529
2530         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
2531         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2532
2533 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
2534
2535         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2536
2537 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
2538
2539         * libc/machine/mn10300/memset.S: Fix bug where return value is
2540         incorrectly set if number of bytes set is a multiple of 4.
2541
2542 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
2543
2544         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
2545         (strncpy): Cast src to uintptr_t before checking alignment with "&".
2546
2547 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2548
2549         * libc/argz/argz_count.c: Include stddef.h to get size_t.
2550         * libc/argz/argz_extract.c: Ditto.
2551         * libc/argz/argz_stringify.c: Ditto.
2552         * libc/search/hash.h: Ditto.
2553         * libc/sys/linux/include/sched.h: Ditto.
2554         * libc/sys/linux/sys/types.h: Ditto.
2555
2556 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2557
2558         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
2559         source data is taken care of before loop unrolling.
2560
2561 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2562
2563         Fix strict-aliasing issues with _strtod_r and Storeinc.
2564         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
2565         rv, rv0 from double to type U.  Use accessor macros dval, dword0
2566         and dword1 for all accesses except for the ULtod call, where rv.i
2567         replaces the pointer cast.
2568         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
2569         of access macros.  Tweak comment.
2570         Remove #ifdef'd YES_ALIAS code.
2571         (dword0, dword1, dval): Define in terms of uncast union member
2572         access.  Ditto for _DOUBLE_IS_32BITS variants.
2573         (Storeinc): Replace aliasing-flawed microoptimized definition with
2574         alternative suggested in comment.  Remove now stale comment.
2575
2576 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
2577
2578         * libc/include/machine/setjmp.h (_longjmp): Define as function on
2579         Cygwin.
2580         (_setjmp): Ditto.
2581
2582 2008-06-18  Eric Blake  <ebb9@byu.net>
2583
2584         Per Posix, strsignal returns non-const char*.
2585         * libc/include/string.h (strsignal): Fix return type.
2586
2587 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
2588
2589         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
2590         support.
2591
2592 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2593
2594         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
2595         * libc/machine/spu/sys/sched.h: Likewise.
2596         * libc/machine/spu/sys/syscall.h: Likewise.
2597
2598 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2599
2600         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
2601         in generated assembler files.
2602         * libc/machine/spu/fprintf.S: Regenerate.
2603         * libc/machine/spu/fscanf.S: Regenerate.
2604         * libc/machine/spu/printf.S: Regenerate.
2605         * libc/machine/spu/scanf.S: Regenerate.
2606         * libc/machine/spu/snprintf.S: Regenerate.
2607         * libc/machine/spu/sprintf.S: Regenerate.
2608         * libc/machine/spu/sscanf.S: Regenerate.
2609         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
2610         and .size directives.
2611         * libc/machine/spu/setjmp.S (setjmp): Likewise.
2612         (longjmp): Likewise.
2613
2614 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2615
2616         * libc/include/machine/_default_types.h: Fix GNUC check to
2617         handle 4.0 and greater.
2618
2619 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2620
2621         * libc/machine/spu/Makefile.am: Add new files.
2622         * libc/machine/spu/Makefile.in: Likewise.
2623         * libc/machine/spu/include/spu_timer.h: New file to add timer support
2624         using interrupts.
2625         * libc/machine/spu/spu_clock_stop.c: Likewise.
2626         * libc/machine/spu/spu_clock_svcs.c: Likewise.
2627         * libc/machine/spu/spu_timer_flih.S: Likewise.
2628         * libc/machine/spu/spu_timer_free.c: Likewise.
2629         * libc/machine/spu/spu_timer_internal.h: Likewise.
2630         * libc/machine/spu/spu_timer_slih.c: Likewise.
2631         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
2632         * libc/machine/spu/spu_timer_stop.c: Likewise.
2633         * libc/machine/spu/spu_timer_svcs.c: Likewise.
2634
2635 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2636
2637         * libc/machine/spu/strcat.c: Return value fixed.
2638         * libc/machine/spu/strncat.c: Likewise.
2639
2640 2008-05-28  Eric Blake  <ebb9@byu.net>
2641
2642         Fix bug in previous patch.
2643         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
2644
2645 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2646
2647         * libc/string/memset.c: Fix documented prototype to remove
2648         erroneous const attribute on first parameter.
2649
2650 2008-05-26  Eric Blake  <ebb9@byu.net>
2651
2652         Optimize the generic and x86 memchr.
2653         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
2654         Pre-align pointer so unaligned searches aren't penalized.
2655         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
2656         operations are faster than repnz byte searches.
2657
2658 2008-05-26  Eric Blake  <ebb9@byu.net>
2659
2660         Optimize the generic and x86 memset.
2661         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
2662         Pre-align pointer so unaligned stores aren't penalized.
2663         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
2664         Pre-align pointer so unaligned stores aren't penalized.  Prefer
2665         8-byte over 4-byte alignment.  Reduce register pressure.
2666
2667 2008-05-26  Eric Blake  <ebb9@byu.net>
2668
2669         Optimize the generic and x86 strlen.
2670         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
2671         data so unaligned searches aren't penalized.
2672         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
2673         Word operations are faster than repnz byte searches.
2674
2675 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
2676
2677         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2678
2679 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2680
2681         * libc/include/sys/reent.h: Add _h_errno field.
2682         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
2683         now used in net directory.
2684         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
2685         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
2686         in net directory.
2687         * libc/sys/linux/include/netdb.h: Ditto.
2688         * libc/sys/linux/include/resolv.h: Ditto.
2689         * libc/sys/linux/include/stdint.h: Ditto.
2690         * libc/sys/linux/include/arpa/nameser.h: Ditto.
2691         * libc/sys/linux/include/net/ethernet.h: Ditto.
2692         * libc/sys/linux/include/net/if_ppp.h: Ditto.
2693         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
2694         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
2695         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
2696         flags to avoid duplicate definition.
2697         * libc/sys/linux/machine/i386/include/param.h: Ditto.
2698         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
2699         added files.
2700         * libc/sys/linux/net/Makefile.in: Regenerated.
2701         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
2702         * libc/sys/linux/net/getaddrinfo.c: Ditto.
2703         * libc/sys/linux/net/getnameinfo.c: Ditto.
2704         * libc/sys/linux/net/getproto.c: Ditto.
2705         * libc/sys/linux/net/getservent.c: Ditto.
2706         * libc/sys/linux/net/inet_netof.c: Ditto.
2707         * libc/sys/linux/net/inet_lnaof.c: Ditto.
2708         * libc/sys/linux/net/ns_name.c: Ditto.
2709         * libc/sys/linux/net/ns_netint.c: Ditto.
2710         * libc/sys/linux/net/inet_ntoa.c: Ditto.
2711         * libc/sys/linux/net/ns_parse.c: Ditto.
2712         * libc/sys/linux/net/ns_print.c: Ditto.
2713         * libc/sys/linux/net/ns_ttl.c: Ditto.
2714         * libc/sys/linux/net/nsap_addr.c: Ditto.
2715         * libc/sys/linux/net/rcmd.c: Ditto.
2716         * libc/sys/linux/net/res_comp.c: Ditto.
2717         * libc/sys/linux/net/res_data.c: Ditto.
2718         * libc/sys/linux/net/res_debug.c: Ditto.
2719         * libc/sys/linux/net/res_init.c: Ditto.
2720         * libc/sys/linux/net/res_mkquery.c: Ditto.
2721         * libc/sys/linux/net/res_query.c: Ditto.
2722         * libc/sys/linux/net/res_send.c: Ditto.
2723         * libc/sys/linux/net/send.c: Ditto.
2724         * libc/sys/linux/stdlib/collate.c: Ditto.
2725         * libc/sys/linux/sys/ioctl.h: Ditto.
2726         * libc/sys/linux/sys/socket.h: Ditto.
2727         * libc/sys/linux/sys/unistd.h: Ditto.
2728         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
2729         used or because licensing includes advertising clause that cannot be
2730         ignored.
2731         * libc/sys/linux/iconv/strtab.c: Ditto.
2732         * libc/sys/linux/include/libc_private.h: Ditto.
2733         * libc/sys/linux/include/nsswitch.h: Ditto.
2734         * libc/sys/linux/include/net/if_atm.h: Ditto.
2735         * libc/sys/linux/include/net/if_media.h: Ditto.
2736         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
2737         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
2738         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
2739         * libc/sys/linux/intl/locale.alias: Ditto.
2740         * libc/sys/linux/net/addr2ascii.3: Ditto.
2741         * libc/sys/linux/net/bindresvport.c: Ditto.
2742         * libc/sys/linux/net/byteorder.3: Ditto.
2743         * libc/sys/linux/net/res_config.h: Ditto.
2744         * libc/sys/linux/net/ether_addr.c: Ditto.
2745         * libc/sys/linux/net/ethers.3: Ditto.
2746         * libc/sys/linux/net/getaddrinfo.3: Ditto.
2747         * libc/sys/linux/net/gethostbydns.c: Ditto.
2748         * libc/sys/linux/net/gethostbyht.c: Ditto.
2749         * libc/sys/linux/net/gethostbyname.3: Ditto.
2750         * libc/sys/linux/net/gethostbynis.c: Ditto.
2751         * libc/sys/linux/net/gethostnamadr.c: Ditto.
2752         * libc/sys/linux/net/getifaddrs.3: Ditto.
2753         * libc/sys/linux/net/getifaddrs.c: Ditto.
2754         * libc/sys/linux/net/getipnodebyname.3: Ditto.
2755         * libc/sys/linux/net/getnameinfo.3: Ditto.
2756         * libc/sys/linux/net/getnetbydns.c: Ditto.
2757         * libc/sys/linux/net/getnetbyht.c: Ditto.
2758         * libc/sys/linux/net/getnetbynis.c: Ditto.
2759         * libc/sys/linux/net/getnetent.3: Ditto.
2760         * libc/sys/linux/net/getnetnamadr.c: Ditto.
2761         * libc/sys/linux/net/getprotoent.3: Ditto.
2762         * libc/sys/linux/net/getprotoent.c: Ditto.
2763         * libc/sys/linux/net/getprotoname.c: Ditto.
2764         * libc/sys/linux/net/getservbyname.c: Ditto.
2765         * libc/sys/linux/net/getservbyport.c: Ditto.
2766         * libc/sys/linux/net/getservent.3: Ditto.
2767         * libc/sys/linux/net/herror.c: Ditto.
2768         * libc/sys/linux/net/hesiod.3: Ditto.
2769         * libc/sys/linux/net/hesiod.c: Ditto.
2770         * libc/sys/linux/net/if_indextoname.3: Ditto.
2771         * libc/sys/linux/net/inet.3: Ditto.
2772         * libc/sys/linux/net/inet6_option_space.3: Ditto.
2773         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
2774         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
2775         * libc/sys/linux/net/inet_net.3: Ditto.
2776         * libc/sys/linux/net/inet_network.c: Ditto.
2777         * libc/sys/linux/net/innetgr-stub.c: Ditto.
2778         * libc/sys/linux/net/ip6opt.c: Ditto.
2779         * libc/sys/linux/net/iso_addr.3: Ditto.
2780         * libc/sys/linux/net/iso_addr.c: Ditto.
2781         * libc/sys/linux/net/linkaddr.3: Ditto.
2782         * libc/sys/linux/net/linkaddr.c: Ditto.
2783         * libc/sys/linux/net/map_v4v6.c: Ditto.
2784         * libc/sys/linux/net/name6.c: Ditto.
2785         * libc/sys/linux/net/namespace.h: Ditto.
2786         * libc/sys/linux/net/ns.3: Ditto.
2787         * libc/sys/linux/net/ns_addr.c: Ditto.
2788         * libc/sys/linux/net/ns_ntoa.c: Ditto.
2789         * libc/sys/linux/net/nsdispatch.3: Ditto.
2790         * libc/sys/linux/net/nsdispatch.c: Ditto.
2791         * libc/sys/linux/net/nslexer.c: Ditto.
2792         * libc/sys/linux/net/nslexer.l: Ditto.
2793         * libc/sys/linux/net/nsparser.c: Ditto.
2794         * libc/sys/linux/net/nsparser.h: Ditto.
2795         * libc/sys/linux/net/nsparser.y: Ditto.
2796         * libc/sys/linux/net/rcmd.3: Ditto.
2797         * libc/sys/linux/net/rcmdsh.3: Ditto.
2798         * libc/sys/linux/net/res_mkupdate.c: Ditto.
2799         * libc/sys/linux/net/res_update.c: Ditto.
2800         * libc/sys/linux/net/resolver.3: Ditto.
2801         * libc/sys/linux/net/rthdr.c: Ditto.
2802         * libc/sys/linux/net/vars.c: Ditto.
2803         * libc/sys/linux/shlib-compat.h: New file.
2804         * libc/sys/linux/machine/i386/atomic.h: Ditto.
2805         * libc/sys/linux/net/XXX-lookup.c: Ditto.
2806         * libc/sys/linux/net/alias-lookup.c: Ditto.
2807         * libc/sys/linux/net/res_libc.c: Ditto.
2808         * libc/sys/linux/net/aliases.h: Ditto.
2809         * libc/sys/linux/net/check_pf.c: Ditto.
2810         * libc/sys/linux/net/databases.def: Ditto.
2811         * libc/sys/linux/net/digits_dots.c: Ditto.
2812         * libc/sys/linux/net/ether_aton.c: Ditto.
2813         * libc/sys/linux/net/ether_aton_r.c: Ditto.
2814         * libc/sys/linux/net/ether_hton.c: Ditto.
2815         * libc/sys/linux/net/ether_line.c: Ditto.
2816         * libc/sys/linux/net/ether_ntoa.c: Ditto.
2817         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
2818         * libc/sys/linux/net/ether_ntoh.c: Ditto.
2819         * libc/sys/linux/net/etherent.h: Ditto.
2820         * libc/sys/linux/net/ethers-lookup.c: Ditto.
2821         * libc/sys/linux/net/function.def: Ditto.
2822         * libc/sys/linux/net/getXXbyYY.c: Ditto.
2823         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
2824         * libc/sys/linux/net/getXXent.c: Ditto.
2825         * libc/sys/linux/net/getXXent_r.c: Ditto.
2826         * libc/sys/linux/net/getaliasent.c: Ditto.
2827         * libc/sys/linux/net/getaliasent_r.c: Ditto.
2828         * libc/sys/linux/net/getaliasname.c: Ditto.
2829         * libc/sys/linux/net/getaliasname_r.c: Ditto.
2830         * libc/sys/linux/net/gethstbyad.c: Ditto.
2831         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
2832         * libc/sys/linux/net/gethstbynm.c: Ditto.
2833         * libc/sys/linux/net/gethstbynm2.c: Ditto.
2834         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
2835         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
2836         * libc/sys/linux/net/gethstent.c: Ditto.
2837         * libc/sys/linux/net/gethstent_r.c: Ditto.
2838         * libc/sys/linux/net/getnetbyad.c: Ditto.
2839         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
2840         * libc/sys/linux/net/getnetbynm.c: Ditto.
2841         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
2842         * libc/sys/linux/net/getnetent.c: Ditto.
2843         * libc/sys/linux/net/getnetent_r.c: Ditto.
2844         * libc/sys/linux/net/getnetgrent.c: Ditto.
2845         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
2846         * libc/sys/linux/net/getnssent.c: Ditto.
2847         * libc/sys/linux/net/getnssent_r.c: Ditto.
2848         * libc/sys/linux/net/getproto_r.c: Ditto.
2849         * libc/sys/linux/net/getprtent.c: Ditto.
2850         * libc/sys/linux/net/getprtent_r.c: Ditto.
2851         * libc/sys/linux/net/getprtname.c: Ditto.
2852         * libc/sys/linux/net/getprtname_r.c: Ditto.
2853         * libc/sys/linux/net/getrpcbyname.c: Ditto.
2854         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
2855         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
2856         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
2857         * libc/sys/linux/net/getrpcent.c: Ditto.
2858         * libc/sys/linux/net/getrpcent_r.c: Ditto.
2859         * libc/sys/linux/net/getservent_r.c: Ditto.
2860         * libc/sys/linux/net/getsrvbynm.c: Ditto.
2861         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
2862         * libc/sys/linux/net/getsrvbypt.c: Ditto.
2863         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
2864         * libc/sys/linux/net/grp-lookup.c: Ditto.
2865         * libc/sys/linux/net/herrno.c: Ditto.
2866         * libc/sys/linux/net/hosts-lookup.c: Ditto.
2867         * libc/sys/linux/net/ifaddrs.h: Ditto.
2868         * libc/sys/linux/net/ifreq.c: Ditto.
2869         * libc/sys/linux/net/ifreq.h: Ditto.
2870         * libc/sys/linux/net/in6_addr.c: Ditto.
2871         * libc/sys/linux/net/inet6_option.c: Ditto.
2872         * libc/sys/linux/net/inet_mkadr.c: Ditto.
2873         * libc/sys/linux/net/inet_net.c: Ditto.
2874         * libc/sys/linux/net/key-lookup.c: Ditto.
2875         * libc/sys/linux/net/local.h: Ditto.
2876         * libc/sys/linux/net/netgroup.h: Ditto.
2877         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
2878         * libc/sys/linux/net/network-lookup.c: Ditto.
2879         * libc/sys/linux/net/not-cancel.h: Ditto.
2880         * libc/sys/linux/net/ns_samedomain.c: Ditto.
2881         * libc/sys/linux/net/nscd-types.h: Ditto.
2882         * libc/sys/linux/net/nss.h: Ditto.
2883         * libc/sys/linux/net/nsswitch.c: Ditto.
2884         * libc/sys/linux/net/nsswitch.h: Ditto.
2885         * libc/sys/linux/net/opensock.c: Ditto.
2886         * libc/sys/linux/net/proto-lookup.c: Ditto.
2887         * libc/sys/linux/net/pwd-lookup.c: Ditto.
2888         * libc/sys/linux/net/res_debug.h: Ditto.
2889         * libc/sys/linux/net/res_hconf.c: Ditto.
2890         * libc/sys/linux/net/res_hconf.h: Ditto.
2891         * libc/sys/linux/net/rexec.c: Ditto.
2892         * libc/sys/linux/net/rpc-lookup.c: Ditto.
2893         * libc/sys/linux/net/ruserpass.c: Ditto.
2894         * libc/sys/linux/net/service-lookup.c: Ditto.
2895         * libc/sys/linux/net/spwd-lookup.c: Ditto.
2896         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
2897         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
2898
2899 2008-05-21  Eric Blake  <ebb9@byu.net>
2900
2901         Optimize the generic strchr.
2902         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
2903         data so unaligned searches aren't penalized.  Special-case
2904         searching for 0.
2905
2906         Optimize strchr for x86.
2907         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
2908         Pre-align data so unaligned searches aren't penalized.
2909         Special-case searching for 0.
2910
2911 2008-05-20  Nick Clifton  <nickc@redhat.com>
2912
2913         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
2914
2915 2008-05-20  DJ Delorie  <dj@redhat.com>
2916
2917         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
2918
2919 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
2920
2921         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
2922         access macro parameter with parentheses around it.
2923
2924 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
2925
2926         * libc/include/stdint.h (SIZE_MIN): Remove.
2927         (SIZE_MAX): Define.
2928         * testsuite/newlib.stdlib/stdlib.exp: New.
2929         * testsuite/newlib.stdlib/size_max.c: Likewise.
2930
2931 2008-04-29  Eric Blake  <ebb9@byu.net>
2932
2933         Fix 2008-04-14 regression in asprintf(ptr,"").
2934         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
2935         baggage.
2936         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
2937         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
2938         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
2939         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
2940         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
2941         an initial buffer for asprintf.
2942
2943 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
2944
2945         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
2946         (fstatat): Fix type of third parameter.
2947
2948 2008-04-25  Nick Clifton  <nickc@redhat.com>
2949
2950         * libc/machine/arm/setjmp.S: Fix thumb2 support.
2951
2952 2008-04-24  Nick Clifton  <nickc@redhat.com>
2953
2954         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
2955         should be _DOUBLE_IS_32BITS.
2956
2957 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
2958
2959         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
2960         (UTIME_OMIT): Ditto.
2961         (utimensat): Declare for Cygwin.
2962         (futimens): Ditto.
2963
2964 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
2965
2966         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
2967         * libc/include/math.h: Likewise.
2968
2969 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
2970
2971         * libc/include/stdio.h (renameat): Declare for Cygwin.
2972         (symlinkat): Ditto.
2973         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
2974         (faccessat): Declare for Cygwin.
2975         (fchownat): Ditto.
2976         (linkat): Ditto.
2977         (readlinkat): Ditto.
2978         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
2979         (AT_EACCESS): Ditto.
2980         (AT_SYMLINK_NOFOLLOW): Ditto.
2981         (AT_SYMLINK_FOLLOW): Ditto.
2982         (AT_REMOVEDIR): Ditto.
2983         (futimesat): Declare for Cygwin.
2984         (openat): Ditto.
2985         (unlinkat): Ditto.
2986         * libc/include/sys/stat.h (fchmodat): Ditto.
2987         (fstatat): Ditto.
2988         (mkdirat): Ditto.
2989         (mkfifoat): Ditto.
2990         (mknodat): Ditto.
2991
2992 2008-04-22  Nick Clifton  <nickc@redhat.com>
2993
2994         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
2995         register load/store instructions.
2996
2997 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
2998
2999         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3000
3001 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3002
3003         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3004
3005 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3006
3007         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3008         * libc/machine/spu/Makefile.am: Add new file impure.c.
3009         * libc/machine/spu/Makefile.in: Regenerate.
3010         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3011
3012 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3013
3014         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3015         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3016         to build special versions for sprintf/sscanf family functions.
3017         * libc/stdio/Makefile.in: Regenerated.
3018         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3019         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3020         family of functions (i.e. no I/O) and does not support floating-point.
3021         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3022         _svfprintf_r which is optimized to work with sprintf family of
3023         functions and not use I/O.
3024         [STRING_ONLY](__sprint_r): New string only version of static function.
3025         designed to work with sprintf family of functions.
3026         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3027         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3028         family of functions (i.e. no I/O) and no float-point support.
3029         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3030         __ssvfscanf_r which is optimized to work with sscanf family of
3031         functions and does not require I/O functions.
3032         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3033         * libc/stdio/snprintf.c: Ditto.
3034         * libc/stdio/sprintf.c: Ditto.
3035         * libc/stdio/vasnprintf.c: Ditto.
3036         * libc/stdio/vasprintf.c: Ditto.
3037         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3038         * libc/stdio/sniprintf.c: Ditto.
3039         * libc/stdio/vasiprintf.c: Ditto.
3040         * libc/stdio/vsiprintf.c: Ditto.
3041         * libc/stdio/vsniprintf.c: Ditto.
3042         * libc/stdio/vsprintf.c: Ditto.
3043         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3044         _ssvfscanf_r, and _ssvfiscanf_r.
3045         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3046         * libc/stdio/vsscanf.c: Ditto.
3047         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3048         * libc/stdio/vsiscanf.c: Ditto.
3049
3050 2008-04-04  DJ Delorie  <dj@redhat.com>
3051
3052         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3053         * libc/sys/configure: Regenerate with autoconf 2.61.
3054         * libc/machine/configure: Regenerate with autoconf 2.61.
3055
3056 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3057
3058         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3059         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3060         * libc/machine/spu/Makefile.am: Add memcmp.c.
3061         * libc/machine/spu/Makefile.in: Rebuild.
3062         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3063
3064 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3065
3066         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3067           -DMISSING_SYSCALL_NAMES.
3068
3069 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3070
3071         * libc/machine/spu/Makefile.am: Add assert.c.
3072         * libc/machine/spu/Makefile.in: Regenerate.
3073         * libc/machine/spu/assert.c: New file.
3074
3075 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3076
3077         * libc/include/reent.h: Define _func_r functions in this file to
3078         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3079         defined.
3080
3081 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3082
3083         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3084         constants when building for Cygwin.
3085
3086 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3087
3088         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3089         stdin gets resolved properly before refilling.
3090
3091 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3092
3093         * libc/include/getopt.h: Hide newlib extensions under
3094         the __need_getopt_newlib flag.
3095         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3096         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3097         with their own getopt implementation.
3098         * configure.host: Specify HAVE_GETOPT for x86-linux.
3099
3100 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3101
3102         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3103         this macro completely instead of referring to CHECK_STD_INIT which
3104         is only found in libc/stdio/local.h.
3105         * libc/stdio/dprintf.c: Add include of local.h.
3106         * libc/stdio/vdprintf.c: Ditto.
3107         * libc/stdio/vdiprintf.c: Ditto.
3108
3109 2008-03-04  Eric Blake  <ebb9@byu.net>
3110
3111         Fix strtod("nan()", ptr).
3112         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3113         n-char-sequence is omitted, still parse the ().
3114
3115 2008-03-03  Eric Blake  <ebb9@byu.net>
3116
3117         Fix ftell bug after ungetc.
3118         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3119         ftell.
3120         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3121         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3122         repositioning underlying fd offset.
3123
3124 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3125
3126         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3127         (required_argument, optional_argument): Ditto.
3128
3129 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3130
3131         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3132         data area so as to support reentrant calls.  Change all callers
3133         to fill in data area with global values and restore any changes
3134         to the global values after call.
3135         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3136         to support reentrancy that add a data area argument.
3137         * libc/include/getopt.h: Add new _r routines and provide macros
3138         so they can be called with using double-underscores.
3139
3140 2008-02-21  Eric Blake  <ebb9@byu.net>
3141
3142         Fix strtod("-0x", NULL).
3143         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3144         fails.
3145
3146 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3147
3148         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3149         for user specifying --disable-newlib-io-long-long on configure.
3150         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3151         reentrant pointer passed in rather than _REENT.
3152
3153 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3154
3155         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3156         arguments better for long options and short options not
3157         appearing as the first option in a sequence.
3158
3159 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3160
3161         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3162         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3163         * libc/machine/spu/strcpy.c: Use _strcpy.
3164         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3165         str[n]cpy and str[n]cat.
3166         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3167         * libc/machine/spu/strncpy.c: Use _strcpy.
3168
3169 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3170
3171         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3172         calculation of its value.
3173
3174 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3175
3176         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3177         Make ISO C.
3178
3179 2008-01-21  DJ Delorie  <dj@redhat.com>
3180
3181         * libc/sys/sh/syscalls.c (_isatty): New.
3182
3183 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3184
3185         * Makefile.am (crt1.o): Use correct source.
3186         * Makefile.in: Regenerated.
3187
3188 2008-01-15  Eric Blake  <ebb9@byu.net>
3189
3190         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3191         * libc/string/Makefile: Regenerate.
3192
3193 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3194
3195         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3196         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3197         (sigsetjmp): Use __SIGMASK_FUNC.
3198         (siglongjmp): Ditto.
3199         (_setjmp): Define as macro.
3200         (_longjmp): Ditto.
3201
3202 2008-01-11  Eric Blake  <ebb9@byu.net>
3203
3204         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3205         * libc/string/str-two-way.h: New file.
3206         * libc/string/memmem.c (memmem): New file.
3207         * libc/include/string.h (memmem): Declare for all platforms.
3208         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3209         not optimizing for space.
3210         * libc/string/strcasestr.c (strcasestr): Likewise.
3211         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3212         (ELIX_2_SOURCES): ...this.
3213         (ELIX_4_SOURCES): New category, for memmem.
3214         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3215         (CHEWOUT_FILES): Build documentation for memmem.
3216         * libc/string/strings.tex: Include new docs.
3217
3218 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3219
3220         * libc/machine/m68k/memcpy.S: Remove % from register references
3221         as this is already handled by m68kasm.h.
3222         * libc/machine/m68k/memset.S: Ditto.
3223
3224 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3225
3226         * libc/machine/m68k/m68kasm.h: New file.
3227         * libc/machine/m68k/setjmp.S: Remove common definitions and
3228         place in m68kasm.h.  Include "m68kasm.h".
3229         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
3230         SYM() macro when referencing function name.
3231         * libc/machine/m68k/memset.S: Ditto.
3232
3233 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
3234
3235         Make isatty syscall handling consistent with other newlib syscalls.
3236
3237         * libc/include/_syslist.h: Add _isatty.
3238         * libc/include/reent.h: Add _isatty_r.
3239         * libc/include/sys/unistd.h: Add _isatty.
3240         * libc/posix/Makefile.am: Add new _isatty.c file.
3241         * libc/posix/Makefile.in: Regenerated.
3242         * libc/posix/_isatty.c: New file.
3243         * libc/posix/isatty.c: Changed to call _isatty().
3244         * libc/reent/Makefile.am: Add new isattyr.c file.
3245         * libc/reent/Makefile.in: Regenerated.
3246         * libc/reent/isattyr.c: New file.
3247         * libc/stdio/freopen.c: Changed to call _isatty_r().
3248         * libc/stdio/makebuf.c: Ditto.
3249         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
3250         * libc/sys/arc/isatty.c: Ditto.
3251         * libc/sys/arm/syscalls.c: Ditto.
3252         * libc/sys/d10v/syscalls.c: Ditto.
3253         * libc/sys/h8300hms/syscalls.c: Ditto.
3254         * libc/sys/h8500hms/syscalls.c: Ditto.
3255         * libc/sys/linux/Makefile.am: Add new isatty.c file.
3256         * libc/sys/linux/Makefile.in: Regenerated.
3257         * libc/sys/linux/isatty.c: New file.
3258         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
3259         * libc/syscalls/Makefile.in: Regenerated.
3260         * libc/syscalls/sysisatty.c: New file.
3261
3262 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
3263
3264         * libc/syscalls/sysclose.c: Always call reentrant version of the
3265         underlying syscall since one is guaranteed to exist in libc/reent.
3266         * libc/syscalls/sysexecve.c: Ditto.
3267         * libc/syscalls/sysfcntl.c: Ditto.
3268         * libc/syscalls/sysfork.c: Ditto.
3269         * libc/syscalls/sysfstat.c: Ditto.
3270         * libc/syscalls/sysgetpid.c: Ditto.
3271         * libc/syscalls/sysgettod.c: Ditto.
3272         * libc/syscalls/syskill.c: Ditto.
3273         * libc/syscalls/syslink.c: Ditto.
3274         * libc/syscalls/syslseek.c: Ditto.
3275         * libc/syscalls/sysopen.c: Ditto.
3276         * libc/syscalls/sysread.c: Ditto.
3277         * libc/syscalls/syssbrk.c: Ditto.
3278         * libc/syscalls/sysstat.c: Ditto.
3279         * libc/syscalls/systimes.c: Ditto.
3280         * libc/syscalls/sysunlink.c: Ditto.
3281         * libc/syscalls/syswait.c: Ditto.
3282         * libc/syscalls/syswrite.c: Ditto.
3283
3284 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3285
3286         * NEWS: Update with 1.16.0 info.
3287         * README: Ditto.
3288         * acinclude.m4: Change version number to 1.16.0.
3289         * aclocal.m4: Regenerated.
3290         * configure: Ditto.
3291         * doc/aclocal.m4: Ditto.
3292         * doc/configure: Ditto.
3293         * libc/*/aclocal.m4: Ditto.
3294         * libc/*/configure: Ditto.
3295         * libc/libc.texinfo: Ditto.
3296         * libm/*/aclocal.m4: Ditto.
3297         * libm/*/configure: Ditto.
3298         * libm/libm.texinfo: Ditto.
3299         * libc/sys/linux/shared.ld: Add VERS_1.16.
3300
3301 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3302
3303         * libc/string/strcasestr.c: Remove id macro.
3304         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
3305         field reference to be __sched_priority.
3306         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
3307         * libc/sys/linux/linuxthreads/manager.c: Ditto.
3308         * libc/sys/linux/stdlib/collate.c: Remove id macro.
3309         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3310         * libc/sys/linux/stdlib/engine.c: Ditto.
3311         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3312         * libc/sys/linux/stdlib/glob.c: Ditto.
3313         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3314         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3315         * libc/sys/linux/stdlib/regerror.c: Ditto.
3316         * libc/sys/linux/stdlib/regexec.c: Ditto.
3317         * libc/sys/linux/stdlib/regfree.c: Ditto.
3318         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
3319         * libc/sys/linux/include/argp.h: Ditto.
3320         * libc/sys/linux/sys/libc-lock.h: New file.
3321         * libc/sys/linux/sys/stdint.h: Ditto.
3322         * libc/sys/linux/include/sched.h: New file.
3323
3324 2007-12-19  Dave Korn  <dave.korn@artimi.com>
3325             Jeff Johnston  <jjohnstn@redhhat.com>
3326
3327         * libc/include/_ansi.h: Add _LONG_LONG definition.
3328         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
3329         prototypes.
3330         * libc/machine/i386/machine/fastmath.h: Add support for new i386
3331         fast math versions of rint, lrint, and llrint family functions.
3332         * libm/machine/i386/Makefile.am: Add new files.
3333         * libm/machine/i386/Makefile.in: Regenerated.
3334         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
3335         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
3336         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
3337         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
3338         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
3339
3340 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3341
3342         * libc/include/sys/features.h: Add checks for C90 compilers using
3343         -ansi.
3344
3345 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3346
3347         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
3348         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
3349         wcpncpy.c.
3350         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
3351         * libc/string/Makefile.in: Regenerate.
3352         * libc/string/wcpcpy.c: New file.
3353         * libc/string/wcpncpy.c: New file.
3354         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
3355
3356 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3357
3358         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
3359         _wcsrtombs_r.
3360
3361 2007-11-19  Nick Clifton  <nickc@redhat.com>
3362
3363         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
3364         * libc/machine/mn10300/Makefile.in: Regenerate.
3365         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
3366         .debug_frame section.
3367         * libc/machine/mn10300/memcmp.S: Likewise.
3368         * libc/machine/mn10300/memcpy.S: Likewise.
3369         * libc/machine/mn10300/memset.S: Likewise.
3370         * libc/machine/mn10300/strchr.S: Likewise.
3371         * libc/machine/mn10300/strcmp.S: Likewise.
3372         * libc/machine/mn10300/strcpy.S: Likewise.
3373         * libc/machine/mn10300/strlen.S: Likewise.
3374
3375 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
3376
3377         * libc/include/sys/_default_fcntl.h: New header file that
3378         is the default version of sys/fcntl.h.
3379         * libc/include/sys/fcntl.h: Changed to simply include
3380         sys/_default_fcntl.h.
3381         * libc/sys/arm/sys/fcntl.h: New file that includes
3382         sys/_default_fcntl.h and defines O_BINARY.
3383
3384 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
3385
3386         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
3387
3388 2007-11-07  Dave Brolley  <brolley@redhat.com>
3389
3390         * libc/machine/configure: Regenerated to pick up mep-elf changes.
3391
3392         * Contribute mep-elf from Red Hat
3393         2006-10-27  DJ Delorie  <dj@redhat.com>
3394
3395         * libc/include/machine/setjmp.h: Add MeP support.
3396
3397         2003-04-17  DJ Delorie  <dj@redhat.com>
3398
3399         * configure.host (mep-*-*): Support "long long" type.
3400
3401         2001-06-06  DJ Delorie  <dj@redhat.com>
3402
3403         * libc/include/machine/ieeefp.h (mep): Support little endian too.
3404
3405         2001-05-14  DJ Delorie  <dj@redhat.com>
3406
3407         * configure.host: Add mep's machine_dir.
3408         * libc/include/setjmp.h: Add mep support.
3409         * libc/machine/mep: New.
3410         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
3411
3412         2001-05-04  DJ Delorie  <dj@redhat.com>
3413
3414         * configure.host: Add mep.
3415         * libc/include/machine/ieeefp.h: Ditto.
3416
3417 2007-10-31  DJ Delorie  <dj@redhat.com>
3418
3419         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
3420         signal table, just use a default, in case initialization cause
3421         recursion.
3422
3423 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3424
3425         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
3426         size if output buffer is NULL.
3427
3428 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3429
3430         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
3431         fix when handling negative input values.  Make function
3432         consistent with math directory and glibc version such that
3433         inf and nan values return inf and nan respectively with no
3434         errno setting.
3435         * libm/mathfp/sf_logarithm.c: Ditto.
3436         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
3437         * libm/math/wf_log.c: Ditto.
3438         * libm/math/w_log10.c: Ditto.
3439         * libm/math/wf_log10.c: Ditto.
3440
3441 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3442
3443         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
3444         return -inf.
3445         * libm/mathfp/sf_logarithm.c: Ditto.
3446
3447 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3448
3449         * libc/machine/i386/machine/fastmath.h: New file.
3450
3451 2007-10-13  Eric Blake  <ebb9@byu.net>
3452
3453         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
3454         Correctly nest else within conditionals.
3455         Reported by Artur Lipowski.
3456
3457 2007-10-09  Nick Clifton  <nickc@redhat.com>
3458
3459         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
3460         the STT_COMMON type.
3461
3462 2007-10-09  Ben Elliston  <bje@au.ibm.com>
3463
3464         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
3465         before simdmath.h to get a definition for `vector'.
3466         * libm/machine/spu/headers/asind2.h: Likewise.
3467
3468 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3469
3470         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
3471         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
3472         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
3473         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
3474         * libm/machine/spu/headers/acos.h: Add domain check.
3475         * libm/machine/spu/headers/acosf.h: Ditto.
3476         * libm/machine/spu/headers/acosh.h: Ditto.
3477         * libm/machine/spu/headers/acoshf.h: Ditto.
3478         * libm/machine/spu/headers/asin.h: Ditto.
3479         * libm/machine/spu/headers/asinf.h: Ditto.
3480         * libm/machine/spu/headers/atanh.h: Ditto.
3481         * libm/machine/spu/headers/atanhf.h: Ditto.
3482         * libm/machine/spu/headers/fmod.h: Ditto.
3483         * libm/machine/spu/headers/fmodf.h: Ditto.
3484         * libm/machine/spu/headers/log.h: Ditto.
3485         * libm/machine/spu/headers/log10.h: Ditto.
3486         * libm/machine/spu/headers/log1p.h: Ditto.
3487         * libm/machine/spu/headers/log1pf.h: Ditto.
3488         * libm/machine/spu/headers/log2.h: Ditto.
3489         * libm/machine/spu/headers/log2f.h: Ditto.
3490         * libm/machine/spu/headers/sqrt.h: Ditto.
3491         * libm/machine/spu/headers/sqrtf.h: Ditto.
3492         * libm/machine/spu/headers/tgamma.h: Ditto.
3493         * libm/machine/spu/headers/tgammaf.h: Ditto.
3494
3495 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3496
3497         * libm/machine/spu/Makefile.am: Add new C files.
3498         * libm/machine/spu/Makefile.in: Regenerate.
3499         * libm/machine/spu/headers/acos.h: New file.
3500         * libm/machine/spu/headers/acosd2.h: Ditto.
3501         * libm/machine/spu/headers/acosf.h: Ditto.
3502         * libm/machine/spu/headers/acosf4.h: Ditto.
3503         * libm/machine/spu/headers/acosh.h: Ditto.
3504         * libm/machine/spu/headers/acoshd2.h: Ditto.
3505         * libm/machine/spu/headers/acoshf.h: Ditto.
3506         * libm/machine/spu/headers/acoshf4.h: Ditto.
3507         * libm/machine/spu/headers/asin.h: Ditto.
3508         * libm/machine/spu/headers/asind2.h: Ditto.
3509         * libm/machine/spu/headers/asinf.h: Ditto.
3510         * libm/machine/spu/headers/asinf4.h: Ditto.
3511         * libm/machine/spu/headers/asinh.h: Ditto.
3512         * libm/machine/spu/headers/asinhd2.h: Ditto.
3513         * libm/machine/spu/headers/asinhf.h: Ditto.
3514         * libm/machine/spu/headers/asinhf4.h: Ditto.
3515         * libm/machine/spu/headers/atan.h: Ditto.
3516         * libm/machine/spu/headers/atan2.h: Ditto.
3517         * libm/machine/spu/headers/atan2d2.h: Ditto.
3518         * libm/machine/spu/headers/atan2f.h: Ditto.
3519         * libm/machine/spu/headers/atan2f4.h: Ditto.
3520         * libm/machine/spu/headers/atand2.h: Ditto.
3521         * libm/machine/spu/headers/atanf4.h: Ditto.
3522         * libm/machine/spu/headers/atanh.h: Ditto.
3523         * libm/machine/spu/headers/atanhd2.h: Ditto.
3524         * libm/machine/spu/headers/atanhf.h: Ditto.
3525         * libm/machine/spu/headers/atanhf4.h: Ditto.
3526         * libm/machine/spu/headers/cos.h: Ditto.
3527         * libm/machine/spu/headers/cos_sin.h: Ditto.
3528         * libm/machine/spu/headers/cosd2.h: Ditto.
3529         * libm/machine/spu/headers/cosf.h: Ditto.
3530         * libm/machine/spu/headers/cosf4.h: Ditto.
3531         * libm/machine/spu/headers/cosh.h: Ditto.
3532         * libm/machine/spu/headers/coshd2.h: Ditto.
3533         * libm/machine/spu/headers/coshf.h: Ditto.
3534         * libm/machine/spu/headers/coshf4.h: Ditto.
3535         * libm/machine/spu/headers/divd2.h: Ditto.
3536         * libm/machine/spu/headers/divf4.h: Ditto.
3537         * libm/machine/spu/headers/erf.h: Ditto.
3538         * libm/machine/spu/headers/erf_utils.h: Ditto.
3539         * libm/machine/spu/headers/erfc.h: Ditto.
3540         * libm/machine/spu/headers/erfcd2.h: Ditto.
3541         * libm/machine/spu/headers/erfcf.h: Ditto.
3542         * libm/machine/spu/headers/erfcf4.h: Ditto.
3543         * libm/machine/spu/headers/erfd2.h: Ditto.
3544         * libm/machine/spu/headers/erff.h: Ditto.
3545         * libm/machine/spu/headers/erff4.h: Ditto.
3546         * libm/machine/spu/headers/exp.h: Ditto.
3547         * libm/machine/spu/headers/exp2.h: Ditto.
3548         * libm/machine/spu/headers/exp2d2.h: Ditto.
3549         * libm/machine/spu/headers/exp2f4.h: Ditto.
3550         * libm/machine/spu/headers/expd2.h: Ditto.
3551         * libm/machine/spu/headers/expf4.h: Ditto.
3552         * libm/machine/spu/headers/expm1.h: Ditto.
3553         * libm/machine/spu/headers/expm1d2.h: Ditto.
3554         * libm/machine/spu/headers/expm1f.h: Ditto.
3555         * libm/machine/spu/headers/expm1f4.h: Ditto.
3556         * libm/machine/spu/headers/floord2.h: Ditto.
3557         * libm/machine/spu/headers/floorf4.h: Ditto.
3558         * libm/machine/spu/headers/hypot.h: Ditto.
3559         * libm/machine/spu/headers/hypotd2.h: Ditto.
3560         * libm/machine/spu/headers/hypotf.h: Ditto.
3561         * libm/machine/spu/headers/hypotf4.h: Ditto.
3562         * libm/machine/spu/headers/isnan.h: Ditto.
3563         * libm/machine/spu/headers/isnand2.h: Ditto.
3564         * libm/machine/spu/headers/isnanf.h: Ditto.
3565         * libm/machine/spu/headers/isnanf4.h: Ditto.
3566         * libm/machine/spu/headers/ldexpd2.h: Ditto.
3567         * libm/machine/spu/headers/ldexpf4.h: Ditto.
3568         * libm/machine/spu/headers/lgamma.h: Ditto.
3569         * libm/machine/spu/headers/lgammad2.h: Ditto.
3570         * libm/machine/spu/headers/lgammaf.h: Ditto.
3571         * libm/machine/spu/headers/lgammaf4.h: Ditto.
3572         * libm/machine/spu/headers/log.h: Ditto.
3573         * libm/machine/spu/headers/log10.h: Ditto.
3574         * libm/machine/spu/headers/log10d2.h: Ditto.
3575         * libm/machine/spu/headers/log1p.h: Ditto.
3576         * libm/machine/spu/headers/log1pd2.h: Ditto.
3577         * libm/machine/spu/headers/log1pf.h: Ditto.
3578         * libm/machine/spu/headers/log1pf4.h: Ditto.
3579         * libm/machine/spu/headers/log2.h: Ditto.
3580         * libm/machine/spu/headers/log2d2.h: Ditto.
3581         * libm/machine/spu/headers/log2f4.h: Ditto.
3582         * libm/machine/spu/headers/logbf.h: Ditto.
3583         * libm/machine/spu/headers/logbf4.h: Ditto.
3584         * libm/machine/spu/headers/logd2.h: Ditto.
3585         * libm/machine/spu/headers/logf4.h: Ditto.
3586         * libm/machine/spu/headers/nearbyintf.h: Ditto.
3587         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
3588         * libm/machine/spu/headers/nextafter.h: Ditto.
3589         * libm/machine/spu/headers/nextafterd2.h: Ditto.
3590         * libm/machine/spu/headers/nextafterf.h: Ditto.
3591         * libm/machine/spu/headers/nextafterf4.h: Ditto.
3592         * libm/machine/spu/headers/pow.h: Ditto.
3593         * libm/machine/spu/headers/powd2.h: Ditto.
3594         * libm/machine/spu/headers/powf.h: Ditto.
3595         * libm/machine/spu/headers/powf4.h: Ditto.
3596         * libm/machine/spu/headers/recipd2.h: Ditto.
3597         * libm/machine/spu/headers/recipf4.h: Ditto.
3598         * libm/machine/spu/headers/rintf.h: Ditto.
3599         * libm/machine/spu/headers/rintf4.h: Ditto.
3600         * libm/machine/spu/headers/scalbnf4.h: Ditto.
3601         * libm/machine/spu/headers/signbit.h: Ditto.
3602         * libm/machine/spu/headers/signbitd2.h: Ditto.
3603         * libm/machine/spu/headers/simdmath.h: Ditto.
3604         * libm/machine/spu/headers/sin.h: Ditto.
3605         * libm/machine/spu/headers/sincos.h: Ditto.
3606         * libm/machine/spu/headers/sincosd2.h: Ditto.
3607         * libm/machine/spu/headers/sincosf.h: Ditto.
3608         * libm/machine/spu/headers/sincosf4.h: Ditto.
3609         * libm/machine/spu/headers/sind2.h: Ditto.
3610         * libm/machine/spu/headers/sinf.h: Ditto.
3611         * libm/machine/spu/headers/sinf4.h: Ditto.
3612         * libm/machine/spu/headers/sinh.h: Ditto.
3613         * libm/machine/spu/headers/sinhd2.h: Ditto.
3614         * libm/machine/spu/headers/sinhf.h: Ditto.
3615         * libm/machine/spu/headers/sinhf4.h: Ditto.
3616         * libm/machine/spu/headers/sqrtd2.h: Ditto.
3617         * libm/machine/spu/headers/sqrtf.h: Ditto.
3618         * libm/machine/spu/headers/sqrtf4.h: Ditto.
3619         * libm/machine/spu/headers/tan.h: Ditto.
3620         * libm/machine/spu/headers/tand2.h: Ditto.
3621         * libm/machine/spu/headers/tanf.h: Ditto.
3622         * libm/machine/spu/headers/tanf4.h: Ditto.
3623         * libm/machine/spu/headers/tanh.h: Ditto.
3624         * libm/machine/spu/headers/tanhd2.h: Ditto.
3625         * libm/machine/spu/headers/tanhf.h: Ditto.
3626         * libm/machine/spu/headers/tanhf4.h: Ditto.
3627         * libm/machine/spu/headers/tgamma.h: Ditto.
3628         * libm/machine/spu/headers/tgammad2.h: Ditto.
3629         * libm/machine/spu/headers/tgammaf.h: Ditto.
3630         * libm/machine/spu/headers/tgammaf4.h: Ditto.
3631         * libm/machine/spu/headers/truncd2.h: Ditto.
3632         * libm/machine/spu/headers/truncf4.h: Ditto.
3633         * libm/machine/spu/log2.c: Ditto.
3634         * libm/machine/spu/s_asinh.c: Ditto.
3635         * libm/machine/spu/s_atan.c: Ditto.
3636         * libm/machine/spu/s_cos.c: Ditto.
3637         * libm/machine/spu/s_erf.c: Ditto.
3638         * libm/machine/spu/s_expm1.c: Ditto.
3639         * libm/machine/spu/s_isnan.c: Ditto.
3640         * libm/machine/spu/s_log1p.c: Ditto.
3641         * libm/machine/spu/s_nextafter.c: Ditto.
3642         * libm/machine/spu/s_sin.c: Ditto.
3643         * libm/machine/spu/s_tan.c: Ditto.
3644         * libm/machine/spu/s_tanh.c: Ditto.
3645         * libm/machine/spu/sf_asinh.c: Ditto.
3646         * libm/machine/spu/sf_cos.c: Ditto.
3647         * libm/machine/spu/sf_erf.c: Ditto.
3648         * libm/machine/spu/sf_expm1.c: Ditto.
3649         * libm/machine/spu/sf_log1p.c: Ditto.
3650         * libm/machine/spu/sf_logb.c: Ditto.
3651         * libm/machine/spu/sf_nearbyint.c: Ditto.
3652         * libm/machine/spu/sf_nextafter.c: Ditto.
3653         * libm/machine/spu/sf_rint.c: Ditto.
3654         * libm/machine/spu/sf_sin.c: Ditto.
3655         * libm/machine/spu/sf_tan.c: Ditto.
3656         * libm/machine/spu/sf_tanh.c: Ditto.
3657         * libm/machine/spu/w_acos.c: Ditto.
3658         * libm/machine/spu/w_acosh.c: Ditto.
3659         * libm/machine/spu/w_asin.c: Ditto.
3660         * libm/machine/spu/w_atan2.c: Ditto.
3661         * libm/machine/spu/w_atanh.c: Ditto.
3662         * libm/machine/spu/w_cosh.c: Ditto.
3663         * libm/machine/spu/w_exp.c: Ditto.
3664         * libm/machine/spu/w_exp2.c: Ditto.
3665         * libm/machine/spu/w_hypot.c: Ditto.
3666         * libm/machine/spu/w_lgamma.c: Ditto.
3667         * libm/machine/spu/w_log.c: Ditto.
3668         * libm/machine/spu/w_log10.c: Ditto.
3669         * libm/machine/spu/w_pow.c: Ditto.
3670         * libm/machine/spu/w_sincos.c: Ditto.
3671         * libm/machine/spu/w_sinh.c: Ditto.
3672         * libm/machine/spu/w_tgamma.c: Ditto.
3673         * libm/machine/spu/wf_acos.c: Ditto.
3674         * libm/machine/spu/wf_acosh.c: Ditto.
3675         * libm/machine/spu/wf_asin.c: Ditto.
3676         * libm/machine/spu/wf_atan2.c: Ditto.
3677         * libm/machine/spu/wf_atanh.c: Ditto.
3678         * libm/machine/spu/wf_cosh.c: Ditto.
3679         * libm/machine/spu/wf_hypot.c: Ditto.
3680         * libm/machine/spu/wf_lgamma.c: Ditto.
3681         * libm/machine/spu/wf_pow.c: Ditto.
3682         * libm/machine/spu/wf_sincos.c: Ditto.
3683         * libm/machine/spu/wf_sinh.c: Ditto.
3684         * libm/machine/spu/wf_sqrt.c: Ditto.
3685         * libm/machine/spu/wf_tgamma.c: Ditto.
3686
3687 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3688
3689         * configure.host: Define _POSIX_MODE to match the existing vector
3690         math code, as we don't support the matherr callout.
3691         * libm/machine/spu/Makefile.am: New file.
3692         * libm/machine/spu/Makefile.in: Auto-generated.
3693         * libm/machine/spu/headers/atanf.h: New file.
3694         * libm/machine/spu/headers/cbrt.h: Ditto.
3695         * libm/machine/spu/headers/cbrtf.h: Ditto.
3696         * libm/machine/spu/headers/ceil.h: Ditto.
3697         * libm/machine/spu/headers/ceilf.h: Ditto.
3698         * libm/machine/spu/headers/copysign.h: Ditto.
3699         * libm/machine/spu/headers/copysignf.h: Ditto.
3700         * libm/machine/spu/headers/exp2f.h: Ditto.
3701         * libm/machine/spu/headers/expf.h: Ditto.
3702         * libm/machine/spu/headers/fabs.h: Ditto.
3703         * libm/machine/spu/headers/fabsf.h: Ditto.
3704         * libm/machine/spu/headers/fdim.h: Ditto.
3705         * libm/machine/spu/headers/fdimf.h: Ditto.
3706         * libm/machine/spu/headers/floor.h: Ditto.
3707         * libm/machine/spu/headers/floorf.h: Ditto.
3708         * libm/machine/spu/headers/fma.h: Ditto.
3709         * libm/machine/spu/headers/fmaf.h: Ditto.
3710         * libm/machine/spu/headers/fmax.h: Ditto.
3711         * libm/machine/spu/headers/fmaxf.h: Ditto.
3712         * libm/machine/spu/headers/fmin.h: Ditto.
3713         * libm/machine/spu/headers/fminf.h: Ditto.
3714         * libm/machine/spu/headers/fmod.h: Ditto.
3715         * libm/machine/spu/headers/fmodf.h: Ditto.
3716         * libm/machine/spu/headers/frexp.h: Ditto.
3717         * libm/machine/spu/headers/frexpf.h: Ditto.
3718         * libm/machine/spu/headers/ilogb.h: Ditto.
3719         * libm/machine/spu/headers/ilogbf.h: Ditto.
3720         * libm/machine/spu/headers/ldexp.h: Ditto.
3721         * libm/machine/spu/headers/ldexpf.h: Ditto.
3722         * libm/machine/spu/headers/llrint.h: Ditto.
3723         * libm/machine/spu/headers/llrintf.h: Ditto.
3724         * libm/machine/spu/headers/llround.h: Ditto.
3725         * libm/machine/spu/headers/llroundf.h: Ditto.
3726         * libm/machine/spu/headers/log10f.h: Ditto.
3727         * libm/machine/spu/headers/log2f.h: Ditto.
3728         * libm/machine/spu/headers/logf.h: Ditto.
3729         * libm/machine/spu/headers/lrint.h: Ditto.
3730         * libm/machine/spu/headers/lrintf.h: Ditto.
3731         * libm/machine/spu/headers/lround.h: Ditto.
3732         * libm/machine/spu/headers/lroundf.h: Ditto.
3733         * libm/machine/spu/headers/nearbyint.h: Ditto.
3734         * libm/machine/spu/headers/remainder.h: Ditto.
3735         * libm/machine/spu/headers/remainderf.h: Ditto.
3736         * libm/machine/spu/headers/remquo.h: Ditto.
3737         * libm/machine/spu/headers/remquof.h: Ditto.
3738         * libm/machine/spu/headers/rint.h: Ditto.
3739         * libm/machine/spu/headers/round.h: Ditto.
3740         * libm/machine/spu/headers/roundf.h: Ditto.
3741         * libm/machine/spu/headers/scalbn.h: Ditto.
3742         * libm/machine/spu/headers/scalbnf.h: Ditto.
3743         * libm/machine/spu/headers/sqrt.h: Ditto.
3744         * libm/machine/spu/headers/trunc.h: Ditto.
3745         * libm/machine/spu/headers/truncf.h: Ditto.
3746         * libm/machine/spu/headers/vec_literal.h: Ditto.
3747         * libm/machine/spu/llrint.c: Ditto.
3748         * libm/machine/spu/llrintf.c: Ditto.
3749         * libm/machine/spu/llround.c: Ditto.
3750         * libm/machine/spu/llroundf.c: Ditto.
3751         * libm/machine/spu/log2f.c: Ditto.
3752         * libm/machine/spu/s_cbrt.c: Ditto.
3753         * libm/machine/spu/s_ceil.c: Ditto.
3754         * libm/machine/spu/s_copysign.c: Ditto.
3755         * libm/machine/spu/s_fabs.c: Ditto.
3756         * libm/machine/spu/s_fdim.c: Ditto.
3757         * libm/machine/spu/s_floor.c: Ditto.
3758         * libm/machine/spu/s_fma.c: Ditto.
3759         * libm/machine/spu/s_fmax.c: Ditto.
3760         * libm/machine/spu/s_fmin.c: Ditto.
3761         * libm/machine/spu/s_frexp.c: Ditto.
3762         * libm/machine/spu/s_ilogb.c: Ditto.
3763         * libm/machine/spu/s_ldexp.c: Ditto.
3764         * libm/machine/spu/s_lrint.c: Ditto.
3765         * libm/machine/spu/s_lround.c: Ditto.
3766         * libm/machine/spu/s_nearbyint.c: Ditto.
3767         * libm/machine/spu/s_remquo.c: Ditto.
3768         * libm/machine/spu/s_rint.c: Ditto.
3769         * libm/machine/spu/s_round.c: Ditto.
3770         * libm/machine/spu/s_scalbn.c: Ditto.
3771         * libm/machine/spu/s_trunc.c: Ditto.
3772         * libm/machine/spu/sf_atan.c: Ditto.
3773         * libm/machine/spu/sf_cbrt.c: Ditto.
3774         * libm/machine/spu/sf_ceil.c: Ditto.
3775         * libm/machine/spu/sf_copysign.c: Ditto.
3776         * libm/machine/spu/sf_fabs.c: Ditto.
3777         * libm/machine/spu/sf_fdim.c: Ditto.
3778         * libm/machine/spu/sf_floor.c: Ditto.
3779         * libm/machine/spu/sf_fma.c: Ditto.
3780         * libm/machine/spu/sf_fmax.c: Ditto.
3781         * libm/machine/spu/sf_fmin.c: Ditto.
3782         * libm/machine/spu/sf_frexp.c: Ditto.
3783         * libm/machine/spu/sf_ilogb.c: Ditto.
3784         * libm/machine/spu/sf_ldexp.c: Ditto.
3785         * libm/machine/spu/sf_lrint.c: Ditto.
3786         * libm/machine/spu/sf_lround.c: Ditto.
3787         * libm/machine/spu/sf_remquo.c: Ditto.
3788         * libm/machine/spu/sf_round.c: Ditto.
3789         * libm/machine/spu/sf_scalbn.c: Ditto.
3790         * libm/machine/spu/sf_trunc.c: Ditto.
3791         * libm/machine/spu/w_fmod.c: Ditto.
3792         * libm/machine/spu/w_remainder.c: Ditto.
3793         * libm/machine/spu/w_sqrt.c: Ditto.
3794         * libm/machine/spu/wf_exp.c: Ditto.
3795         * libm/machine/spu/wf_exp2.c: Ditto.
3796         * libm/machine/spu/wf_fmod.c: Ditto.
3797         * libm/machine/spu/wf_log.c: Ditto.
3798         * libm/machine/spu/wf_log10.c: Ditto.
3799         * libm/machine/spu/wf_remainder.c: Ditto.
3800
3801 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3802
3803         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
3804
3805 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3806
3807         * libc/include/sched.h: New file, just include sys/sched.h.
3808         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
3809         prototype.
3810         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
3811         struct utimbuf definition.
3812
3813 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3814
3815         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
3816         specific struct and typedef.
3817
3818 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
3819
3820         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
3821         typedef dev_t, gid_t, and uid_t.
3822         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
3823         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
3824         Change to lower case for all __foo_t_defined names.
3825         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
3826         __uid_t, and __gid_t making them all four bytes. Change to lower case
3827         for all __foo_t_defined names.
3828
3829 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
3830
3831         * libc/reent/renamer.c: New file.
3832         * libc/reent/Makefile.am: Add new file.
3833         * libc/reent/Makefile.in: Regenerated.
3834         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
3835         and add check for rename syscall.
3836
3837 2007-09-17  Eric Blake  <ebb9@byu.net>
3838
3839         Obey POSIX on printf("%.s", (char*)NULL).
3840         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
3841         for %s on NULL.  Skip NULL check when optimizing for size.
3842
3843 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3844
3845         * libc/include/sys/_types.h: Protect all types with flag
3846         checks to allow definition in machine/_types.h.
3847
3848 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3849
3850         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
3851         definitions in light of the previous change.
3852
3853 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
3854
3855         * libc/include/machine/_default_types.h: New file, contains what
3856         was previously in libc/include/machine/_types.h.
3857         * libc/include/machine/_types.h: Now only includes
3858         machine/_default_types.h.
3859         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
3860         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
3861         with conditional declarations.
3862         * libc/machine/spu/machine/_types.h: New file, add SPU specific
3863         typedefs for _fpos_t and _fpos64_t.
3864
3865 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3866
3867         * libc/include/math.h (_M_LOG2E): Replace with..
3868         (_M_LOG2_E): New macro.
3869         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
3870
3871 2007-09-06  Brian Dessent  <brian@dessent.net>
3872
3873         * libc/reent/getreent.c: Allow for case where __getreent is
3874         defined as a macro.
3875
3876 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
3877
3878         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
3879         (log2): Use _M_LOG2E instead of M_LOG2E.
3880         (log2f): Ditto.
3881         (M_LOG2E): Define to be _M_LOG2E.
3882
3883 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
3884
3885         * libm/math/wf_tgamma.c: Add missing include.
3886
3887 2007-08-31  Antony King  <antony.king@st.com>
3888
3889         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
3890         bits and redefine associated dword0 macro (rvalue issue).
3891         * libc/stdio/vfieeefp.h: Ditto.
3892         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
3893         to prevent setting dword1 which is an rvalue only.
3894
3895 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
3896
3897         * configure.host: Added support for x86_64.
3898         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
3899         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
3900         * libc/machine/x86_64/aclocal.m4: Generated.
3901         * libc/machine/x86_64/configure.in: New.
3902         * libc/machine/x86_64/configure: Generated.
3903         * libc/machine/x86_64/Makefile.am: New.
3904         * libc/machine/x86_64/Makefile.in: Generated.
3905         * libc/machine/x86_64/setjmp.S: New.
3906         * libc/machine/x86_64/memcpy.S: New.
3907         * libc/machine/x86_64/memset.S: New.
3908         * libc/machine/configure.in: Added support for x86_64.
3909         * libc/machine/configure: Regenerated.
3910
3911 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
3912
3913         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
3914         to int before comparing it to a signed int value.
3915
3916 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
3917
3918         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
3919         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
3920         Define.
3921
3922 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
3923
3924         Reduce the memory consumption of variable argument functions
3925         for SPU (cell):
3926         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
3927           to assembler sources.
3928         * libc/machine/spu/Makefile.in: Regenerated.
3929         * libc/machine/spu/stdio.c: Add __check_init function wrapping
3930           CHECK_INIT macro to use from assembler routines.
3931         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
3932         * libc/machine/spu/fiprintf.S: New file.
3933         * libc/machine/spu/fiscanf.S: Ditto.
3934         * libc/machine/spu/fprintf.S: Ditto.
3935         * libc/machine/spu/fscanf.S: Ditto.
3936         * libc/machine/spu/iprintf.S: Ditto.
3937         * libc/machine/spu/iscanf.S: Ditto.
3938         * libc/machine/spu/printf.S: Ditto.
3939         * libc/machine/spu/scanf.S: Ditto.
3940         * libc/machine/spu/siprintf.S: Ditto.
3941         * libc/machine/spu/siscanf.S: Ditto.
3942         * libc/machine/spu/sniprintf.S: Ditto.
3943         * libc/machine/spu/snprintf.S: Ditto.
3944         * libc/machine/spu/sprintf.S: Ditto.
3945         * libc/machine/spu/sscanf.S: Ditto.
3946         * libc/machine/spu/stack_reg_va.S: Ditto.
3947         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
3948         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
3949         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
3950         * libc/machine/spu/fiscanf.c: Ditto.
3951         * libc/machine/spu/fprintf.c: Ditto.
3952         * libc/machine/spu/fscanf.c: Ditto.
3953         * libc/machine/spu/iprintf.c: Ditto.
3954         * libc/machine/spu/iscanf.c: Ditto.
3955         * libc/machine/spu/printf.c: Ditto.
3956         * libc/machine/spu/scanf.c: Ditto.
3957         * libc/machine/spu/siprintf.c: Ditto.
3958         * libc/machine/spu/siscanf.c: Ditto.
3959         * libc/machine/spu/sniprintf.c: Ditto.
3960         * libc/machine/spu/snprintf.c: Ditto.
3961         * libc/machine/spu/sprintf.c: Ditto.
3962         * libc/machine/spu/sscanf.c: Ditto.
3963
3964 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
3965
3966         * libc/include/tar.h: New.
3967
3968 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
3969
3970         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
3971         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
3972         * libc/sys/linux/intl/Makefile.in: Regenerated.
3973         * libc/sys/linux/intl/stpcpy.c: Renamed to...
3974         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
3975
3976 2007-08-02  Eric Blake  <ebb9@byu.net>
3977
3978         Implement fmemopen and open_memstream.
3979         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
3980         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
3981         New file.
3982         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
3983         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
3984         functions together.
3985         (fmemopen, open_memstream): Declare new functions.
3986         * libc/stdio/stdio.tex: Document them.
3987         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
3988         fmemopen and open_memstream.
3989         * libc/stdio/Makefile.in: Regenerate.
3990
3991 2007-07-31  Eric Blake  <ebb9@byu.net>
3992
3993         More POSIX stream corner cases.
3994         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
3995         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
3996         requested.
3997         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
3998
3999 2007-07-18  Eric Blake  <ebb9@byu.net>
4000
4001         Fix 'make info'.
4002         * libc/stdio/stdio.tex: Add missing include.
4003         * libc/stdio/vfprintf.c: Use expected node name.
4004         * libc/stdio/vfscanf.c: Likewise.
4005         * libc/stdio/sscanf.c: Likewise.
4006         * libc/stdio/sprintf.c: Likewise.
4007         * libc/stdio/siscanf.c: Likewise.
4008         * libc/stdio/siprintf.c: Likewise.
4009         * libc/stdio/fopencookie.c: Quote raw {}.
4010         Reported by DJ Delorie.
4011
4012 2007-07-13  Eric Blake  <ebb9@byu.net>
4013
4014         Fix fflush issues.
4015         * libc/stdio/fflush.c (_fflush_r): New function.
4016         (fflush): Fix reentrancy and large offset behavior.
4017         * libc/include/stdio.h (_fflush_r): Add prototype.
4018         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4019         * libc/stdio/freopen.c (_freopen_r): Likewise.
4020         * libc/stdio/fseek.c (_fseek_r): Likewise.
4021         * libc/stdio/ftell.c (_ftell_r): Likewise.
4022         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4023         * libc/stdio/refill.c (__srefill_r): Likewise.
4024         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4025         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4026         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4027         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4028         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4029         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4030         32-bit version if not large file.
4031         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4032         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4033
4034         Documentation updates.
4035         * libc/stdio/ungetc.c: Document ungetc.
4036         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4037         of files with documentation.
4038         * libc/stdio/Makefile.in: Regenerate.
4039         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4040
4041 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4042
4043         * libc/include/math.h: Fix so C99 functions/macros are accessible
4044         when -std=c99 is used when compiling and not when using C89.
4045
4046 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4047
4048         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4049         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4050         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4051         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4052         wcstoull_r.c.
4053         (CHEWOUT_FILES): Add .def files accordingly.
4054         * libc/stdlib/Makefile.in: Regenerate.
4055         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4056         * libc/stdlib/strtoll.c: Fix portability note.
4057         * libc/stdlib/strtoull.c: Ditto.
4058         * libc/stdlib/wcstol.c: New file.
4059         * libc/stdlib/wcstoll.c: New file.
4060         * libc/stdlib/wcstoll_r.c: New file.
4061         * libc/stdlib/wcstoul.c: New file.
4062         * libc/stdlib/wcstoull.c: New file.
4063         * libc/stdlib/wcstoull_r.c: New file.
4064
4065 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4066
4067         * libc/include/sys/time.h (gettimeofday): Change to proper
4068         prototype where second parameter is void *.
4069         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4070         accordingly.
4071         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4072         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4073         * libc/sys/rdos/gettod.c: Ditto.
4074         * libc/sys/sh/syscalls.c: Ditto.
4075         * libc/time/time.c (time): Change call to _gettimeofday_r
4076         to pass NULL as 2nd argument.
4077
4078 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4079
4080         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4081         * libc/sys/linux/intl/l10nflist.c: Ditto.
4082
4083 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4084
4085         * libc/include/wchar.h: Add prototype for wcsxfrm.
4086         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4087         (CHEWOUT_FILES): Add wcsxfrm.def.
4088         * libc/string/Makefile.in: Regenerate.
4089         * libc/string/wcsxfrm.c: New file.
4090         * libc/string/wcstrings.tex: Add wcsxfrm.
4091
4092 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4093
4094         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4095         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4096         stpncpy.c.
4097         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4098         * libc/string/Makefile.in: Regenerate.
4099         * libc/string/stpcpy.c: New file.
4100         * libc/string/stpncpy.c: New file.
4101         * libc/string/strings.tex: Add stpcpy and stpncpy.
4102
4103 2007-06-27  Eric Blake  <ebb9@byu.net>
4104
4105         Support __func__ in assert, as required by C99.
4106         * libc/stdlib/assert.c (__assert_func): New function.
4107         (__assert): Use __assert_func.
4108         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4109         possible.
4110
4111 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4112
4113         * libc/machine/spu/perror.c: Pass errno as the second argument to
4114         the assist call.
4115
4116 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4117
4118         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4119         defines; expose ftruncate, truncate and sync prototypes.
4120
4121 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4122
4123         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4124         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4125         visible.
4126
4127 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4128
4129         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4130         from a dropped patch.
4131         * libc/machine/spu/Makefile.in: Regenerate.
4132
4133 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4134
4135         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4136         it just calls open with appropriate arguments.
4137         * libc/machine/spu/Makefile.am: Add creat.c.
4138         * libc/machine/spu/Makefile.in: Regenerate.
4139
4140 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4141
4142         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4143         I accidentally dropped.
4144         * libc/machine/spu/Makefile.in: Regenerated.
4145
4146 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4147
4148         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4149         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4150         form and move outside of OS flag checks.
4151         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4152         * libc/machine/spu/Makefile.in: Regenerate.
4153         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4154         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4155
4156 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4157
4158         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4159         Define confstr constants for Cygwin.  Add comment.
4160
4161 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4162
4163         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4164         file-handle and a direct syscall, just use _open.
4165         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4166         file-handle.
4167
4168         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4169         passing on the exit value.
4170
4171 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4172
4173         * libc/string/strcasestr.c: New file.
4174         * libc/include/string.h: Add strcasestr.
4175         * libc/string/strings.tex: Add strcasestr.
4176         * libc/string/Makefile.am: Ditto.
4177         * libc/string/Makefile.in: Regenerated.
4178
4179 2007-06-06  Christian Groessler  <chris@groessler.org>
4180
4181         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4182         rnd is done after the last local variable declaration.
4183
4184 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4185
4186         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4187
4188 2007-06-05  Christian Groessler  <chris@groessler.org>
4189
4190         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4191         declaration to top of function in keeping with C89 standard.
4192
4193 2007-06-04  Eric Blake  <ebb9@byu.net>
4194
4195         Implement funopen, fopencookie.
4196         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4197         Switch to reentrant callbacks.
4198         * libc/include/stdio.h (funopen): Fix declaration.
4199         (fopencookie): Declare.
4200         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4201         (__sseek64, __swrite64): Fix prototypes.
4202         [__SCLE]: Pull in setmode declaration.
4203         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4204         reentrancy.
4205         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4206         (__sseek64, __swrite64): Fix reentrancy.
4207         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4208         reentrancy.
4209         * libc/stdio/ftell.c (_ftell_r): Likewise.
4210         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4211         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4212         * libc/stdio/freopen.c (_freopen_r): Likewise.
4213         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4214         * libc/stdio/refill.c (__srefill_r): Likewise.
4215         * libc/stdio/siscanf.c (eofread): Likewise.
4216         * libc/stdio/sscanf.c (eofread): Likewise.
4217         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4218         * libc/stdio/vsscanf.c (eofread1): Likewise.
4219         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4220         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4221         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4222         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4223         could be fixed.
4224         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4225         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4226         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4227         new files.
4228         * libc/stdio/Makefile.in: Regenerate.
4229
4230 2007-05-29  Eric Blake  <ebb9@byu.net>
4231
4232         Avoid more compiler warnings.
4233         * libc/stdlib/btowc.c: Add missing header.
4234         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
4235         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
4236         * libc/stdlib/wctob.c: Add missing header.
4237         * libc/string/strcpy.c (strcpy): Avoid warnings.
4238         * libc/string/strrchr.c (strrchr): Likewise.
4239
4240 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
4241
4242         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
4243         argument.
4244         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
4245         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
4246         on empty input strings.
4247         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
4248         looping through argz.
4249         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
4250
4251 2007-05-27  Brian Dessent  <brian@dessent.net>
4252
4253         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
4254         handling %p.
4255
4256 2007-05-25  Eric Blake  <ebb9@byu.net>
4257
4258         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
4259
4260 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
4261             Charles Wilson  <libtool@cwilson.fastmail.fm>
4262
4263         * libtool.m4: removed
4264         * configure.in: invoke _LD_DECL_SED before conditionally initializing
4265         libtool.  Move AC_PROG_AWK outside conditional.
4266         * libc/sys/linux/configure.in: Ditto.
4267         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4268         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4269         * libc/sys/linux/machine/i386/configure.in: Ditto.
4270
4271         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
4272         initializing libtool.
4273         * libc/configure.in: Ditto.
4274         * libc/machine/configure.in: Ditto.
4275         * libc/machine/i386/configure.in: Ditto.
4276         * libc/sys/configure.in: Ditto.
4277         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4278         * libc/sys/linux/machine/configure.in: Ditto.
4279         * libm/configure.in: Ditto.
4280         * libm/machine/configure.in: Ditto.
4281
4282         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
4283         * doc/Makefile.am: Ditto.
4284         * iconvdata/Makefile.am: Ditto.
4285         * libc/Makefile.am: Ditto.
4286         * libc/machine/Makefile.am: Ditto.
4287         * libc/machine/a29k/Makefile.am: Ditto.
4288         * libc/machine/arm/Makefile.am: Ditto.
4289         * libc/machine/bfin/Makefile.am: Ditto.
4290         * libc/machine/cris/Makefile.am: Ditto.
4291         * libc/machine/crx/Makefile.am: Ditto.
4292         * libc/machine/d10v/Makefile.am: Ditto.
4293         * libc/machine/d30v/Makefile.am: Ditto.
4294         * libc/machine/fr30/Makefile.am: Ditto.
4295         * libc/machine/frv/Makefile.am: Ditto.
4296         * libc/machine/h8300/Makefile.am: Ditto.
4297         * libc/machine/h8500/Makefile.am: Ditto.
4298         * libc/machine/hppa/Makefile.am: Ditto.
4299         * libc/machine/i386/Makefile.am: Ditto.
4300         * libc/machine/i960/Makefile.am: Ditto.
4301         * libc/machine/iq2000/Makefile.am: Ditto.
4302         * libc/machine/m32c/Makefile.am: Ditto.
4303         * libc/machine/m32r/Makefile.am: Ditto.
4304         * libc/machine/m68hc11/Makefile.am: Ditto.
4305         * libc/machine/m68k/Makefile.am: Ditto.
4306         * libc/machine/m88k/Makefile.am: Ditto.
4307         * libc/machine/mips/Makefile.am: Ditto.
4308         * libc/machine/mn10200/Makefile.am: Ditto.
4309         * libc/machine/mn10300/Makefile.am: Ditto.
4310         * libc/machine/mt/Makefile.am: Ditto.
4311         * libc/machine/necv70/Makefile.am: Ditto.
4312         * libc/machine/powerpc/Makefile.am: Ditto.
4313         * libc/machine/sh/Makefile.am: Ditto.
4314         * libc/machine/sparc/Makefile.am: Ditto.
4315         * libc/machine/spu/Makefile.am: Ditto.
4316         * libc/machine/tic4x/Makefile.am: Ditto.
4317         * libc/machine/tic80/Makefile.am: Ditto.
4318         * libc/machine/v850/Makefile.am: Ditto.
4319         * libc/machine/w65/Makefile.am: Ditto.
4320         * libc/machine/xscale/Makefile.am: Ditto.
4321         * libc/machine/xstormy16/Makefile.am: Ditto.
4322         * libc/machine/z8k/Makefile.am: Ditto.
4323         * libc/sys/Makefile.am: Ditto.
4324         * libc/sys/a29khif/Makefile.am: Ditto.
4325         * libc/sys/arc/Makefile.am: Ditto.
4326         * libc/sys/arm/Makefile.am: Ditto.
4327         * libc/sys/d10v/Makefile.am: Ditto.
4328         * libc/sys/decstation/Makefile.am: Ditto.
4329         * libc/sys/h8300hms/Makefile.am: Ditto.
4330         * libc/sys/h8500hms/Makefile.am: Ditto.
4331         * libc/sys/linux/Makefile.am: Ditto.
4332         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4333         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4334         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4335         * libc/sys/linux/machine/Makefile.am: Ditto.
4336         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4337         * libc/sys/m88kbug/Makefile.am: Ditto.
4338         * libc/sys/mmixware/Makefile.am: Ditto.
4339         * libc/sys/netware/Makefile.am: Ditto.
4340         * libc/sys/rdos/Makefile.am: Ditto.
4341         * libc/sys/rtems/Makefile.am: Ditto.
4342         * libc/sys/sh/Makefile.am: Ditto.
4343         * libc/sys/sparc64/Makefile.am: Ditto.
4344         * libc/sys/sun4/Makefile.am: Ditto.
4345         * libc/sys/sysmec/Makefile.am: Ditto.
4346         * libc/sys/sysnec810/Makefile.am: Ditto.
4347         * libc/sys/sysnecv850/Makefile.am: Ditto.
4348         * libc/sys/sysvi386/Makefile.am: Ditto.
4349         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4350         * libc/sys/tic80/Makefile.am: Ditto.
4351         * libc/sys/w65/Makefile.am: Ditto.
4352         * libc/sys/z8ksim/Makefile.am: Ditto.
4353         * libm/Makefile.am: Ditto.
4354         * libm/machine/Makefile.am: Ditto.
4355         * libm/machine/i386/Makefile.am: Ditto.
4356         * libm/machine/spu/Makefile.am: Ditto.
4357
4358         * aclocal.m4: Regenerate.
4359         * iconvdata/aclocal.m4: Regenerate.
4360         * libc/aclocal.m4: Regenerate.
4361         * libc/machine/aclocal.m4: Regenerate.
4362         * libc/machine/i386/aclocal.m4: Regenerate.
4363         * libc/sys/aclocal.m4: Regenerate.
4364         * libc/sys/linux/aclocal.m4: Regenerate.
4365         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
4366         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
4367         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
4368         * libc/sys/linux/machine/aclocal.m4: Regenerate.
4369         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
4370         * libm/aclocal.m4: Regenerate.
4371         * libm/machine/aclocal.m4: Regenerate.
4372         * libm/machine/i386/aclocal.m4: Regenerate.
4373
4374         * Makefile.in: Regenerate.
4375         * doc/Makefile.in: Regenerate.
4376         * iconvdata/Makefile.in: Regenerate.
4377         * libc/Makefile.in: Regenerate.
4378         * libc/argz/Makefile.in: Regenerate.
4379         * libc/ctype/Makefile.in: Regenerate.
4380         * libc/errno/Makefile.in: Regenerate.
4381         * libc/iconv/Makefile.in: Regenerate.
4382         * libc/iconv/ccs/Makefile.in: Regenerate.
4383         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
4384         * libc/iconv/ces/Makefile.in: Regenerate.
4385         * libc/iconv/lib/Makefile.in: Regenerate.
4386         * libc/locale/Makefile.in: Regenerate.
4387         * libc/machine/Makefile.in: Regenerate.
4388         * libc/machine/a29k/Makefile.in: Regenerate.
4389         * libc/machine/arm/Makefile.in: Regenerate.
4390         * libc/machine/bfin/Makefile.in: Regenerate.
4391         * libc/machine/cris/Makefile.in: Regenerate.
4392         * libc/machine/crx/Makefile.in: Regenerate.
4393         * libc/machine/d10v/Makefile.in: Regenerate.
4394         * libc/machine/d30v/Makefile.in: Regenerate.
4395         * libc/machine/fr30/Makefile.in: Regenerate.
4396         * libc/machine/frv/Makefile.in: Regenerate.
4397         * libc/machine/h8300/Makefile.in: Regenerate.
4398         * libc/machine/h8500/Makefile.in: Regenerate.
4399         * libc/machine/hppa/Makefile.in: Regenerate.
4400         * libc/machine/i386/Makefile.in: Regenerate.
4401         * libc/machine/i960/Makefile.in: Regenerate.
4402         * libc/machine/iq2000/Makefile.in: Regenerate.
4403         * libc/machine/m32c/Makefile.in: Regenerate.
4404         * libc/machine/m32r/Makefile.in: Regenerate.
4405         * libc/machine/m68hc11/Makefile.in: Regenerate.
4406         * libc/machine/m68k/Makefile.in: Regenerate.
4407         * libc/machine/m88k/Makefile.in: Regenerate.
4408         * libc/machine/mips/Makefile.in: Regenerate.
4409         * libc/machine/mn10200/Makefile.in: Regenerate.
4410         * libc/machine/mn10300/Makefile.in: Regenerate.
4411         * libc/machine/mt/Makefile.in: Regenerate.
4412         * libc/machine/necv70/Makefile.in: Regenerate.
4413         * libc/machine/powerpc/Makefile.in: Regenerate.
4414         * libc/machine/sh/Makefile.in: Regenerate.
4415         * libc/machine/sparc/Makefile.in: Regenerate.
4416         * libc/machine/spu/Makefile.in: Regenerate.
4417         * libc/machine/tic4x/Makefile.in: Regenerate.
4418         * libc/machine/tic80/Makefile.in: Regenerate.
4419         * libc/machine/v850/Makefile.in: Regenerate.
4420         * libc/machine/w65/Makefile.in: Regenerate.
4421         * libc/machine/xscale/Makefile.in: Regenerate.
4422         * libc/machine/xstormy16/Makefile.in: Regenerate.
4423         * libc/machine/z8k/Makefile.in: Regenerate.
4424         * libc/misc/Makefile.in: Regenerate.
4425         * libc/posix/Makefile.in: Regenerate.
4426         * libc/reent/Makefile.in: Regenerate.
4427         * libc/search/Makefile.in: Regenerate.
4428         * libc/signal/Makefile.in: Regenerate.
4429         * libc/stdio/Makefile.in: Regenerate.
4430         * libc/stdio64/Makefile.in: Regenerate.
4431         * libc/stdlib/Makefile.in: Regenerate.
4432         * libc/string/Makefile.in: Regenerate.
4433         * libc/sys/Makefile.in: Regenerate.
4434         * libc/sys/a29khif/Makefile.in: Regenerate.
4435         * libc/sys/arc/Makefile.in: Regenerate.
4436         * libc/sys/arm/Makefile.in: Regenerate.
4437         * libc/sys/d10v/Makefile.in: Regenerate.
4438         * libc/sys/decstation/Makefile.in: Regenerate.
4439         * libc/sys/h8300hms/Makefile.in: Regenerate.
4440         * libc/sys/h8500hms/Makefile.in: Regenerate.
4441         * libc/sys/linux/Makefile.in: Regenerate.
4442         * libc/sys/linux/argp/Makefile.in: Regenerate.
4443         * libc/sys/linux/cmath/Makefile.in: Regenerate.
4444         * libc/sys/linux/dl/Makefile.in: Regenerate.
4445         * libc/sys/linux/iconv/Makefile.in: Regenerate.
4446         * libc/sys/linux/intl/Makefile.in: Regenerate.
4447         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
4448         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
4449         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
4450         * libc/sys/linux/machine/Makefile.in: Regenerate.
4451         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
4452         * libc/sys/linux/net/Makefile.in: Regenerate.
4453         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
4454         * libc/sys/m88kbug/Makefile.in: Regenerate.
4455         * libc/sys/mmixware/Makefile.in: Regenerate.
4456         * libc/sys/netware/Makefile.in: Regenerate.
4457         * libc/sys/rdos/Makefile.in: Regenerate.
4458         * libc/sys/rtems/Makefile.in: Regenerate.
4459         * libc/sys/sh/Makefile.in: Regenerate.
4460         * libc/sys/sparc64/Makefile.in: Regenerate.
4461         * libc/sys/sun4/Makefile.in: Regenerate.
4462         * libc/sys/sysmec/Makefile.in: Regenerate.
4463         * libc/sys/sysnec810/Makefile.in: Regenerate.
4464         * libc/sys/sysnecv850/Makefile.in: Regenerate.
4465         * libc/sys/sysvi386/Makefile.in: Regenerate.
4466         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
4467         * libc/sys/tic80/Makefile.in: Regenerate.
4468         * libc/sys/w65/Makefile.in: Regenerate.
4469         * libc/sys/z8ksim/Makefile.in: Regenerate.
4470         * libc/syscalls/Makefile.in: Regenerate.
4471         * libc/time/Makefile.in: Regenerate.
4472         * libc/unix/Makefile.in: Regenerate.
4473         * libm/Makefile.in: Regenerate.
4474         * libm/common/Makefile.in: Regenerate.
4475         * libm/machine/Makefile.in: Regenerate.
4476         * libm/machine/i386/Makefile.in: Regenerate.
4477         * libm/machine/spu/Makefile.in: Regenerate.
4478         * libm/math/Makefile.in: Regenerate.
4479         * libm/mathfp/Makefile.in: Regenerate.
4480
4481         * configure: Regenerate.
4482         * iconvdata/configure: Regenerate.
4483         * libc/configure: Regenerate.
4484         * libc/machine/configure: Regenerate.
4485         * libc/machine/i386/configure: Regenerate.
4486         * libc/sys/configure: Regenerate.
4487         * libc/sys/linux/configure: Regenerate.
4488         * libc/sys/linux/linuxthreads/configure: Regenerate.
4489         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
4490         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
4491         * libc/sys/linux/machine/configure: Regenerate.
4492         * libc/sys/linux/machine/i386/configure: Regenerate.
4493         * libm/configure: Regenerate.
4494         * libm/machine/configure: Regenerate.
4495         * libm/machine/i386/configure: Regenerate.
4496
4497 2007-05-23  Eric Blake  <ebb9@byu.net>
4498
4499         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
4500         sizeof(void*) is 8 but sizeof(long) is 4.
4501         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
4502         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
4503         to fix reentrancy and bug on encoding error in multibyte locales.
4504         Always return EOF on read error.
4505
4506 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
4507
4508         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
4509         prototype.
4510         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
4511         instead of the slot 0 value, remove any now unused variables, and
4512         for some cases, now store the result in an int vs int*.
4513         * libc/machine/spu/feof.c: Ditto.
4514         * libc/machine/spu/ferror.c: Ditto.
4515         * libc/machine/spu/fflush.c: Ditto.
4516         * libc/machine/spu/fgetc.c: Ditto.
4517         * libc/machine/spu/fgetpos.c: Ditto.
4518         * libc/machine/spu/fgets.c: Ditto.
4519         * libc/machine/spu/fileno.c: Ditto.
4520         * libc/machine/spu/fopen.c: Ditto.
4521         * libc/machine/spu/fprintf.c: Ditto.
4522         * libc/machine/spu/fputc.c: Ditto.
4523         * libc/machine/spu/fputs.c: Ditto.
4524         * libc/machine/spu/fread.c: Ditto.
4525         * libc/machine/spu/freopen.c: Ditto.
4526         * libc/machine/spu/fscanf.c: Ditto.
4527         * libc/machine/spu/fseek.c: Ditto.
4528         * libc/machine/spu/fsetpos.c: Ditto.
4529         * libc/machine/spu/ftell.c: Ditto.
4530         * libc/machine/spu/fwrite.c: Ditto.
4531         * libc/machine/spu/getc.c: Ditto.
4532         * libc/machine/spu/getchar.c: Ditto.
4533         * libc/machine/spu/gets.c: Ditto.
4534         * libc/machine/spu/printf.c: Ditto.
4535         * libc/machine/spu/putc.c: Ditto.
4536         * libc/machine/spu/putchar.c: Ditto.
4537         * libc/machine/spu/puts.c: Ditto.
4538         * libc/machine/spu/remove.c: Ditto.
4539         * libc/machine/spu/rename.c: Ditto.
4540         * libc/machine/spu/scanf.c: Ditto.
4541         * libc/machine/spu/setvbuf.c: Ditto.
4542         * libc/machine/spu/snprintf.c: Ditto.
4543         * libc/machine/spu/sprintf.c: Ditto.
4544         * libc/machine/spu/sscanf.c: Ditto.
4545         * libc/machine/spu/tmpfile.c: Ditto.
4546         * libc/machine/spu/tmpnam.c: Ditto.
4547         * libc/machine/spu/ungetc.c: Ditto.
4548         * libc/machine/spu/vfprintf.c: Ditto.
4549         * libc/machine/spu/vfscanf.c: Ditto.
4550         * libc/machine/spu/vprintf.c: Ditto.
4551         * libc/machine/spu/vscanf.c: Ditto.
4552         * libc/machine/spu/vsnprintf.c: Ditto.
4553         * libc/machine/spu/vsprintf.c: Ditto.
4554         * libc/machine/spu/vsscanf.c: Ditto.
4555
4556 2007-05-23  Eric Blake  <ebb9@byu.net>
4557
4558         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
4559         Avoid warning when !FLOATING_POINT.
4560         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
4561         slightly.
4562
4563 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
4564
4565         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
4566         to zero.
4567         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
4568         use with C++.
4569
4570 2007-05-18  Eric Blake  <ebb9@byu.net>
4571
4572         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
4573         compilers.
4574         * libc/stdio/vfscanf.c: Likewise.
4575
4576 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
4577
4578         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
4579         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
4580         * libm/math/wf_atan2.c: Ditto.
4581
4582 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
4583
4584         * libm/common/Makefile.am: Add support for exp10, exp10f,
4585         pow10, and pow10f functions.
4586         * libm/common/Makefile.in: Regenerated.
4587         * libm/common/s_pow10.c: New file.
4588         * libm/common/sf_pow10.c: Ditto.
4589         * libm/common/s_exp10.c: Ditto.
4590         * libm/common/sf_exp10.c: Ditto.
4591         * libc/include/math.h [!pow10]: New pow10 prototype.
4592         [!pow10f]: New pow10f prototype.
4593         [!exp10]: New exp10 prototype.
4594         [!exp10f]: New exp10f prototype.
4595
4596 2007-05-17  Charles Wilson  <cygwin@...>
4597
4598         * stdio/tmpfile.c: Include <sys/stat.h>.
4599         * stdio64/tmpfile64.c: Ditto.
4600
4601 2007-05-16  Eric Blake  <ebb9@byu.net>
4602
4603         Close security hole in tmpfile.
4604         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
4605         generation and opening the fd.
4606         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
4607
4608         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
4609         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
4610         required by POSIX.
4611         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
4612         avoid clash with <math.h>.
4613
4614         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
4615         * libc/search/hash.c (__hash_open): Likewise.
4616
4617 2007-05-14 Eric Blake <ebb9@byu.net>
4618
4619         Reduce stack size of *printf.
4620         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
4621         in %f.  Avoid malloc when possible for %S.
4622         (BUF): Improve stack locality by using smaller size.
4623         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
4624         (exponent): Use smaller stack size.
4625
4626 2007-05-11  Eric Blake  <ebb9@byu.net>
4627
4628         Minimize printf/scanf size on platforms that don't need C99.
4629         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
4630         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
4631         * configure.in (newlib-io-c99-formats): New configure option.
4632         (_WANT_IO_C99_FORMATS): Define appropriately.
4633         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
4634         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
4635         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
4636         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
4637         Likewise.
4638         * configure: Regenerate.
4639
4640         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
4641         (get_arg): Support '%a' and '%A'.
4642
4643 2007-05-09  Eric Blake  <ebb9@byu.net>
4644
4645         Allow zero size with non-null buf in *asnprintf.
4646         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
4647         user's buf.
4648         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
4649         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4650         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
4651
4652 2007-05-07  Charles Wilson  <cygwin@...>
4653
4654         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
4655
4656 2007-05-03  Eric Blake  <ebb9@byu.net>
4657
4658         Add support for asnprintf, and improve *printf documentation.
4659         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
4660         (ELIX_2_SOURCES): ...to this.
4661         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
4662         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
4663         (CHEWOUT_FILES): Include diprintf in documentation.
4664         * libc/stdio/Makefile.in: Regenerate.
4665         * libc/stdio/diprintf.c: Improve documentation.
4666         * libc/stdio/dprintf.c: Likewise.
4667         * libc/stdio/siprintf.c: Likewise.
4668         * libc/stdio/sprintf.c: Likewise.
4669         * libc/stdio/vfprintf.c: Likewise.
4670         * libc/stdio/viprintf.c: Likewise.
4671         * libc/stdio/vsniprintf.c: Consolidate documentation.
4672         * libc/stdio/asiprintf.c: Refer to documentation.
4673         * libc/stdio/asprintf.c: Likewise.
4674         * libc/stdio/fiprintf.c: Likewise.
4675         * libc/stdio/fprintf.c: Likewise.
4676         * libc/stdio/iprintf.c: Likewise.
4677         * libc/stdio/printf.c: Likewise.
4678         * libc/stdio/sniprintf.c: Likewise.
4679         * libc/stdio/vdiprintf.c: Likewise.
4680         * libc/stdio/vdprintf.c: Likewise.
4681         * libc/stdio/vsiprintf.c: Likewise.
4682         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
4683         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
4684         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
4685         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
4686         file.
4687         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
4688         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
4689         typical case.
4690         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
4691         * libc/include/stdio.h: Add prototypes for new functions; sort
4692         existing functions.
4693
4694 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
4695
4696         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4697         and memset.S.
4698         * libc/machine/m68k/Makefile.in: Regenerate.
4699         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
4700         * libc/machine/m68k/memset.S: Likewise.
4701
4702 2007-05-01  Eric Blake  <ebb9@byu.net>
4703
4704         * libc/stdio64/local64.h: Delete, move contents to...
4705         * libc/stdio/local.h: ...here.
4706         * libc/stdio64/fdopen64.c: Update includes.
4707         * libc/stdio64/fopen64.c: Likewise.
4708         * libc/stdio64/freopen64.c: Likewise.
4709         * libc/stdio64/fseeko64.c: Likewise.
4710         * libc/stdio64/ftello64.c: Likewise.
4711         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
4712         and stderr with 64-bit offset.
4713         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
4714         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
4715         * libc/stdio/mktemp.c (_gettemp): Likewise.
4716
4717 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
4718
4719         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
4720         to treatment of NaN and +-inf arguments.
4721         * libm/math/ef_pow.c: Ditto.
4722         * libm/math/w_pow.c: Ditto.
4723         * libm/math/wf_pow.c: Ditto.
4724         * libm/math/w_acos.c: Fix domain errors to return NaN.
4725         * libm/math/w_asin.c: Ditto.
4726         * libm/math/wf_acos.c: Ditto.
4727         * libm/math/wf_asin.c: Ditto.
4728         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
4729         * libm/math/wf_log.c: Ditto.
4730         * libm/math/wf_log10.c: Ditto.
4731         * libm/math/w_log10.c: Ditto.
4732
4733 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
4734
4735         * libc/machine/m68k/Makefile.am: Temporarily remove
4736         memcpy.S and memset.S until logic can be confirmed for
4737         !(__mcoldfile__) case.
4738         * libc/machine/m68k/Makefile.in: Regenerated.
4739
4740 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
4741
4742         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4743         and memset.S.
4744         * libc/machine/m68k/Makefile.in: Regenerate.
4745         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
4746
4747 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
4748
4749         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
4750         overridden via machine/ieeefp.h.
4751         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
4752         macros for isnan and related macros.
4753         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
4754         overridden via machine/ieeefp.h.
4755         * libm/machine/spu/Makefile.am: Add new files.
4756         * libm/machine/spu/Makefile.in: Autogenerate with new files.
4757         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
4758         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
4759         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
4760         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
4761         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
4762         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
4763         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
4764
4765 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
4766
4767         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
4768         * libm/common/sf_fpclassify.c: ...here.  New file.
4769         * libm/common/Makefile.am: Add sf_fpclassify.c.
4770         * libm/common/Makefile.in: Regenerated.
4771
4772 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4773
4774         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
4775         ppu linux values. This file is a copy of the cris/sys/errno.h plus
4776         a few changes (see spu errno.h comments).
4777
4778 2007-04-25  Eric Blake  <ebb9@byu.net>
4779
4780         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
4781         that promote to int.
4782
4783 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4784
4785         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
4786         we clear the proper bits in the fpscr, and don't set some random ones.
4787
4788 2007-04-24  Eric Blake  <ebb9@byu.net>
4789
4790         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
4791         or NaN with %05f.
4792
4793         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
4794         _MB_CAPABLE.
4795
4796         * libc/include/limits.h (NL_ARGMAX): Define a default value.
4797         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
4798         NL_ARGMAX, if present.
4799
4800 2007-04-23  Brian Dessent  <brian@dessent.net>
4801
4802         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
4803         has been specified with types 'f', 'F', 'g', or 'G', ensure the
4804         trailing decimal is printed.
4805
4806 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
4807
4808         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
4809         file.  Override Autoconf-2.59's version of these macros with
4810         fixed handling of multiple adjacent whitespace in arguments.
4811         * aclocal.m4: Regenerated forcefully.
4812         * configure: Ditto.
4813         * Makefile.in: Ditto.
4814         * libc/*Makefile.in: Ditto.
4815         * libc/*aclocal.m4: Ditto.
4816         * libc/*configure: Ditto.
4817         * libm/*Makefile.in: Ditto.
4818         * libm/*aclocal.m4: Ditto.
4819         * libm/*configure: Ditto.
4820
4821 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
4822
4823         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
4824         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
4825         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
4826         * libc/sys/arc/Makefile.in: Regenerated.
4827
4828 2007-04-17  Brian Dessent  <brian@dessent.net>
4829
4830         * libc/stdio/sscanf.c: Update documentation comments.
4831         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
4832
4833 2007-04-12  Eric Blake  <ebb9@byu.net>
4834
4835         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
4836         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
4837         (get_arg): Handle %1$F, %1$n.
4838
4839 2007-04-10  Eric Blake  <ebb9@byu.net>
4840
4841         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
4842         CFLAGS=-O0.
4843
4844 2007-04-09  Eric Blake  <ebb9@byu.net>
4845
4846         * libc/include/stdio.h: Add gcc format attributes to printf and
4847         scanf families.
4848
4849 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
4850
4851         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
4852         even if the passed in length n is shorter than the source string.
4853         This matches both the non-spu specific and the glibc strxfrm
4854         behaviour.
4855
4856 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
4857
4858         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
4859         functions registering additional atexit functions.
4860
4861         * testsuite/lib/flags.exp (newlib_include_flags): Drop
4862         -I${newlib_dir}.
4863
4864 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
4865
4866         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
4867         prototype.
4868         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
4869         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
4870         * libc/machine/spu/fclose.c: Ditto.
4871         * libc/machine/spu/feof.c: Ditto.
4872         * libc/machine/spu/ferror.c: Ditto.
4873         * libc/machine/spu/fflush.c: Ditto.
4874         * libc/machine/spu/fgetc.c: Ditto.
4875         * libc/machine/spu/fgetpos.c: Ditto.
4876         * libc/machine/spu/fgets.c: Ditto.
4877         * libc/machine/spu/fileno.c: Ditto.
4878         * libc/machine/spu/fopen.c: Ditto.
4879         * libc/machine/spu/fprintf.c: Ditto.
4880         * libc/machine/spu/fputc.c: Ditto.
4881         * libc/machine/spu/fputs.c: Ditto.
4882         * libc/machine/spu/fread.c: Ditto.
4883         * libc/machine/spu/freopen.c: Ditto.
4884         * libc/machine/spu/fscanf.c: Ditto.
4885         * libc/machine/spu/fseek.c: Ditto.
4886         * libc/machine/spu/fsetpos.c: Ditto.
4887         * libc/machine/spu/ftell.c: Ditto.
4888         * libc/machine/spu/fwrite.c: Ditto.
4889         * libc/machine/spu/getc.c: Ditto.
4890         * libc/machine/spu/getchar.c: Ditto.
4891         * libc/machine/spu/gets.c: Ditto.
4892         * libc/machine/spu/perror.c: Ditto.
4893         * libc/machine/spu/printf.c: Ditto.
4894         * libc/machine/spu/putc.c: Ditto.
4895         * libc/machine/spu/putchar.c: Ditto.
4896         * libc/machine/spu/puts.c: Ditto.
4897         * libc/machine/spu/remove.c: Ditto.
4898         * libc/machine/spu/rename.c: Ditto.
4899         * libc/machine/spu/rewind.c: Ditto.
4900         * libc/machine/spu/scanf.c: Ditto.
4901         * libc/machine/spu/setbuf.c: Ditto.
4902         * libc/machine/spu/setvbuf.c: Ditto.
4903         * libc/machine/spu/snprintf.c: Ditto.
4904         * libc/machine/spu/sprintf.c: Ditto.
4905         * libc/machine/spu/sscanf.c: Ditto.
4906         * libc/machine/spu/tmpfile.c: Ditto.
4907         * libc/machine/spu/tmpnam.c: Ditto.
4908         * libc/machine/spu/ungetc.c: Ditto.
4909         * libc/machine/spu/vfprintf.c: Ditto.
4910         * libc/machine/spu/vfscanf.c: Ditto.
4911         * libc/machine/spu/vprintf.c: Ditto.
4912         * libc/machine/spu/vscanf.c: Ditto.
4913         * libc/machine/spu/vsnprintf.c: Ditto.
4914         * libc/machine/spu/vsprintf.c: Ditto.
4915         * libc/machine/spu/vsscanf.c: Ditto.
4916
4917 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
4918
4919         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
4920
4921 2007-04-04  Eric Blake  <ebb9@byu.net>
4922
4923         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
4924         (asiprintf): Avoid overhead.
4925         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
4926         (asprintf): Avoid overhead.
4927         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
4928         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
4929         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
4930         (fiprintf): Avoid overhead.
4931         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
4932         (fprintf): Avoid overhead.
4933         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
4934         (iprintf): Avoid overhead.
4935         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
4936         (printf): Avoid overhead.
4937         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
4938         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
4939         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
4940         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
4941         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
4942         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
4943         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
4944         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
4945         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
4946         vdiprintf.c.
4947         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
4948         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
4949
4950 2007-03-30  Dave Korn  <dave.korn@artimi.com>
4951
4952         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
4953         conflicting inline semantics between C99 and GNU89.
4954         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
4955         compatible with -fkeep-inline-functions usage.
4956         (__sputc_r):  Likewise for consistency even though disabled.
4957
4958 2007-03-29  Nick Clifton  <nickc@redhat.com>
4959
4960         Reflect changes made to generic vfprintf.c:
4961         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
4962         and add a "struct reent *" argument.
4963         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
4964         argument and call _VFPRINTF_R instead of VFPRINTF.
4965         (_VFPRINTF_R): Add data pointer to call to cantwrite().
4966         Fix uses of __sprint() and __sbprintf.
4967
4968 2007-03-20  Nick Clifton  <nickc@redhat.com>
4969
4970         Reflect changes made to generic vfprintf.c:
4971         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
4972         and add a "struct reent *" argument.
4973         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
4974         argument and call _VFPRINTF_R instead of VFPRINTF.
4975         (_VFPRINTF_R): Add data pointer to call to cantwrite().
4976         Fix uses of __sprint() and __sbprintf.
4977
4978 2007-03-16  Charles Wilson  <cygwin@...>
4979
4980         * libc/argz/argz_insert.c: "before" pointer is
4981         invalid after *argz realloc.  Compute offset
4982         between "before" and *argz, and use it after
4983         reallocation instead.
4984
4985 2007-03-16  Eric Blake  <ebb9@byu.net>
4986
4987         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
4988         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
4989
4990 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
4991
4992         * configure.in: Add new --enable-newlib-reent-small option.
4993         * configure: Regenerated.
4994         * acconfig.h: Add _WANT_REENT_SMALL.
4995         * newlib.hin: Regenerated minus PACKAGE macros to add
4996         _WANT_REENT_SMALL macro.
4997         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
4998         if not already set.
4999         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5000         there is no buffer.
5001         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5002         use reentrant pointer passed in when resetting the file
5003         pointer to one of the std streams.
5004
5005 2007-03-15  Eric Blake  <ebb9@byu.net>
5006
5007         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5008         (__smakebuf): Rename...
5009         (__smakebuf_r): to this.
5010         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5011         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5012         allocation, then rename...
5013         (__smakebuf_r): ...to this and fix reentrancy.
5014         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5015         allocation, then rename...
5016         (__swsetup_r): ...to this and fix reentrancy.
5017         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5018         * libc/stdio/refill.c (__srefill_r): Likewise.
5019         * libc/stdio/fclose.c (_fclose_r): Likewise.
5020         * libc/stdio/fread.c (_fread_r): Likewise.
5021         * libc/stdio/freopen.c (_freopen_r): Likewise.
5022         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5023         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5024         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5025         failed asprintf allocation, and fix reentrancy.
5026         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5027         as required by POSIX.
5028         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5029         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5030         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5031
5032 2007-03-12  Eric Blake  <ebb9@byu.net>
5033
5034         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5035         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5036         allocation to caller.
5037         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5038         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5039         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5040
5041 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5042
5043         * libm/math/w_pow.c: Fix typo in documentation comment.
5044
5045 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5046
5047         * libc/reent/timer.c: Removed (split into two new files).
5048         * libc/reent/timesr.c: New file for _times_r.
5049         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5050         * reent/Makefile.in: Remove timer.c, add timesr.c and
5051         gettimeofdayr.c.
5052         * libc/reent/Makefile.am: Regenerate.
5053
5054 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5055
5056         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5057
5058 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5059
5060         * libc/machine/spu/Makefile.am: Add new objects.
5061         * libc/machine/spu/Makefile.in: Regenerated.
5062         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5063         integer-only version.
5064         * libc/machine/spu/fiscanf.c: Ditto.
5065         * libc/machine/spu/iprintf.c: Ditto.
5066         * libc/machine/spu/iscanf.c: Ditto.
5067         * libc/machine/spu/siprintf.c: Ditto.
5068         * libc/machine/spu/siscanf.c: Ditto.
5069         * libc/machine/spu/sniprintf.c: Ditto.
5070         * libc/machine/spu/vfiprintf.c: Ditto.
5071         * libc/machine/spu/vfiscanf.c: Ditto.
5072         * libc/machine/spu/viprintf.c: Ditto.
5073         * libc/machine/spu/viscanf.c: Ditto.
5074         * libc/machine/spu/vsiprintf.c: Ditto.
5075         * libc/machine/spu/vsiscanf.c: Ditto.
5076         * libc/machine/spu/vsniprintf.c: Ditto.
5077         * libc/machine/spu/fprintf.c: Add support for integer-only
5078         version.
5079         * libc/machine/spu/fscanf.c: Ditto.
5080         * libc/machine/spu/printf.c: Ditto.
5081         * libc/machine/spu/scanf.c: Ditto.
5082         * libc/machine/spu/snprintf.c: Ditto.
5083         * libc/machine/spu/sprintf.c: Ditto.
5084         * libc/machine/spu/sscanf.c: Ditto.
5085         * libc/machine/spu/vfprintf.c: Ditto.
5086         * libc/machine/spu/vfscanf.c: Ditto.
5087         * libc/machine/spu/vprintf.c: Ditto.
5088         * libc/machine/spu/vscanf.c: Ditto.
5089         * libc/machine/spu/vsnprintf.c: Ditto.
5090         * libc/machine/spu/vsprintf.c: Ditto.
5091         * libc/machine/spu/vsscanf.c: Ditto.
5092
5093 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5094
5095         * libc/include/stdio.h: Add declaration for vsiprintf.
5096
5097 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5098
5099         Add a floating point environment for SPU (cell):
5100
5101         * configure.host: add libm_machine_dir=spu.
5102         * libm/machine/configure: Add spu.
5103         * libm/machine/configure.in: regenerated with spu added.
5104         * libc/machine/spu/include/fenv.h: New file.
5105         * libc/machine/spu/sys/fenv.h: Ditto.
5106         * libm/machine/spu/Makefile.am: Ditto.
5107         * libm/machine/spu/Makefile.in: Ditto.
5108         * libm/machine/spu/aclocal.m4: Ditto.
5109         * libm/machine/spu/configure: Ditto.
5110         * libm/machine/spu/configure.in: Ditto.
5111         * libm/machine/spu/fe_dfl_env.c: Ditto.
5112         * libm/machine/spu/feclearexcept.c: Ditto.
5113         * libm/machine/spu/fegetenv.c: Ditto.
5114         * libm/machine/spu/fegetexceptflag.c: Ditto.
5115         * libm/machine/spu/fegetround.c: Ditto.
5116         * libm/machine/spu/feholdexcept.c: Ditto.
5117         * libm/machine/spu/feraiseexcept.c: Ditto.
5118         * libm/machine/spu/fesetenv.c: Ditto.
5119         * libm/machine/spu/fesetexceptflag.c: Ditto.
5120         * libm/machine/spu/fesetround.c: Ditto.
5121         * libm/machine/spu/fetestexcept.c: Ditto.
5122         * libm/machine/spu/feupdateenv.c: Ditto.
5123         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5124         * libm/machine/spu/headers/fefpscr.h: Ditto.
5125         * libm/machine/spu/headers/fegetenv.h: Ditto.
5126         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5127         * libm/machine/spu/headers/fegetround.h: Ditto.
5128         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5129         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5130         * libm/machine/spu/headers/fesetenv.h: Ditto.
5131         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5132         * libm/machine/spu/headers/fesetround.h: Ditto.
5133         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5134         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5135
5136 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5137
5138         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5139         Cygwin.
5140
5141 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5142
5143         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5144         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5145
5146 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5147
5148         * libc/include/sys/features.h: Add definition of all supported
5149         _POSIX_xxx values for Cygwin.
5150         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5151         on Cygwin.
5152         (pthread_rwlockattr_t): Ditto.
5153         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5154         required by SUSv3.  Unify formatting.
5155
5156 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5157
5158         * libc/include/sys/errno.h: Add ECANCELED.
5159
5160 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5161             Kazunori Asayama <asayama@sm.sony.co.jp>
5162
5163         * libc/machine/spu/Makefile.am: Add objects.
5164         * libc/machine/spu/Makefile.in: Regenerated.
5165         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5166         implementation.
5167         * libc/machine/spu/snprintf.c: Ditto.
5168         * libc/machine/spu/sprintf.c: Ditto.
5169         * libc/machine/spu/sscanf.c: Ditto.
5170         * libc/machine/spu/remove.c: Ditto.
5171         * libc/machine/spu/rename.c: Ditto.
5172         * libc/machine/spu/tmpnam.c: Ditto.
5173         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5174         stdio stuffs.
5175         * libc/machine/spu/vsprintf.c: Ditto.
5176
5177 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5178             Kazunori Asayama <asayama@sm.sony.co.jp>
5179
5180         * configure.host: Enable SPU specific stdio directory.
5181         * libc/machine/spu/Makefile.am: Add objects.
5182         * libc/machine/spu/Makefile.in: Regenerated.
5183         * libc/machine/spu/c99ppe.h: Add macros and function
5184         declarations to initialize SPU specific stdio stuffs.
5185         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5186         specific FILE structures.
5187         * libc/machine/spu/perror.c: Add initialization routine of
5188         stdio stuffs.
5189         * libc/machine/spu/printf.c: Ditto.
5190         * libc/machine/spu/putchar.c: Ditto.
5191         * libc/machine/spu/puts.c: Ditto.
5192         * libc/machine/spu/vprintf.c: Ditto.
5193         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5194         implementation.
5195         * libc/machine/spu/feof.c: Ditto.
5196         * libc/machine/spu/ferror.c: Ditto.
5197         * libc/machine/spu/fileno.c: Ditto.
5198         * libc/machine/spu/fopen.c: Ditto.
5199         * libc/machine/spu/fclose.c: Ditto.
5200         * libc/machine/spu/freopen.c: Ditto.
5201         * libc/machine/spu/fflush.c: Ditto.
5202         * libc/machine/spu/fseek.c: Ditto.
5203         * libc/machine/spu/ftell.c: Ditto.
5204         * libc/machine/spu/rewind.c: Ditto.
5205         * libc/machine/spu/fgetpos.c: Ditto.
5206         * libc/machine/spu/fsetpos.c: Ditto.
5207         * libc/machine/spu/fread.c: Ditto.
5208         * libc/machine/spu/fwrite.c: Ditto.
5209         * libc/machine/spu/getc.c: Ditto.
5210         * libc/machine/spu/getchar.c: Ditto.
5211         * libc/machine/spu/gets.c: Ditto.
5212         * libc/machine/spu/fgetc.c: Ditto.
5213         * libc/machine/spu/fgets.c: Ditto.
5214         * libc/machine/spu/ungetc.c: Ditto.
5215         * libc/machine/spu/putc.c: Ditto.
5216         * libc/machine/spu/fputc.c: Ditto.
5217         * libc/machine/spu/fputs.c: Ditto.
5218         * libc/machine/spu/vfprintf.c: Ditto.
5219         * libc/machine/spu/vfscanf.c: Ditto.
5220         * libc/machine/spu/fprintf.c: Ditto.
5221         * libc/machine/spu/fscanf.c: Ditto.
5222         * libc/machine/spu/scanf.c: Ditto.
5223         * libc/machine/spu/vscanf.c: Ditto.
5224         * libc/machine/spu/setbuf.c: Ditto.
5225         * libc/machine/spu/setvbuf.c: Ditto.
5226         * libc/machine/spu/tmpfile.c: Ditto.
5227
5228 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
5229
5230         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
5231         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
5232         around stdio macros that manipulate fields in the normal file
5233         structure.
5234         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
5235         <sys/custom_file.h> to define custom FILE structure.
5236         * libc/include/sys/custom_file.h: New default header file
5237         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
5238         * libc/machine/spu/sys/custom_file.h: New file.
5239
5240 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
5241
5242         * configure.host: Define stdio directory as a variable.
5243         * libc/Makefile.am: Define stdio related names
5244         as macros.
5245         * libc/configure.in: Add detection routine of stdio directory.
5246         * libc/Makefile.in: Regenerated.
5247         * libc/configure: Ditto.
5248         * libc/argz/Makefile.in: Ditto.
5249         * libc/ctype/Makefile.in: Ditto.
5250         * libc/errno/Makefile.in: Ditto.
5251         * libc/iconv/Makefile.in: Ditto.
5252         * libc/iconv/ccs/Makefile.in: Ditto.
5253         * libc/iconv/ccs/binary/Makefile.in: Ditto.
5254         * libc/iconv/ces/Makefile.in: Ditto.
5255         * libc/iconv/lib/Makefile.in: Ditto.
5256         * libc/locale/Makefile.in: Ditto.
5257         * libc/misc/Makefile.in: Ditto.
5258         * libc/posix/Makefile.in: Ditto.
5259         * libc/reent/Makefile.in: Ditto.
5260         * libc/search/Makefile.in: Ditto.
5261         * libc/signal/Makefile.in: Ditto.
5262         * libc/stdio/Makefile.in: Ditto.
5263         * libc/stdio64/Makefile.in: Ditto.
5264         * libc/stdlib/Makefile.in: Ditto.
5265         * libc/string/Makefile.in: Ditto.
5266         * libc/syscalls/Makefile.in: Ditto.
5267         * libc/time/Makefile.in: Ditto.
5268         * libc/unix/Makefile.in: Ditto.
5269
5270 2007-01-30  Ben Elliston  <bje@au.ibm.com>
5271
5272         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
5273         fmt member.
5274         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
5275         (printf): Pass fmt to va_start to suppress a warning.
5276
5277         * libc/search/hash.c (init_hash): Make `info' parameter const.
5278
5279 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
5280
5281         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
5282         * libc/machine/spu/vec_literal.h: Ditto.
5283         * libc/machine/spu/strncmp.c: Ditto.
5284
5285 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
5286             Kazu Hirata  <kazu@codesourcery.com>
5287
5288         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
5289         for E500V1 and E500V2.
5290
5291 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
5292
5293         * libm/configure.in: Always configure machine directory.
5294         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
5295         unconditionally.
5296         * libm/configure: Regenerated.
5297         * libm/Makefile.in: Ditto.
5298         * libm/*/Makefile.in: Ditto.
5299
5300 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
5301
5302         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
5303
5304 2007-01-02  Ben Elliston  <bje@au.ibm.com>
5305
5306         * doc/makedoc.c: Include <stdlib.h>.
5307         (malloc, realloc): Remove extern declarations.
5308
5309 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5310
5311         * NEWS: Update with 1.15.0 info.
5312         * README: Ditto.
5313         * acinclude.m4: Change version number to 1.15.0.
5314         * aclocal.m4: Regenerated.
5315         * configure: Ditto.
5316         * doc/aclocal.m4: Ditto.
5317         * doc/configure: Ditto.
5318         * libc/*/aclocal.m4: Ditto.
5319         * libc/*/configure: Ditto.
5320         * libc/libc.texinfo: Ditto.
5321         * libm/*/aclocal.m4: Ditto.
5322         * libm/*/configure: Ditto.
5323         * libm/libm.texinfo: Ditto.
5324         * libc/sys/linux/shared.ld: Add VERS_1.15.
5325
5326 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
5327
5328         Merge from newlib-csl-20060320-branch:
5329         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5330                     Kazu Hirata  <kazu@codesourcery.com>
5331
5332         * configure.host: Recognize fido.
5333
5334 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
5335
5336         * libc/machine/spu/c99ppe.h: New file
5337         * libc/machine/spu/perror.c: New file to override libc/stdio version.
5338         * libc/machine/spu/printf.c: New file
5339         * libc/machine/spu/putchar.c: New file
5340         * libc/machine/spu/puts.c: New file
5341         * libc/machine/spu/vprintf.c: New file
5342         * libc/machine/spu/vsnprintf.c: New file
5343         * libc/machine/spu/vsprintf.c: New file
5344         * libc/machine/spu/Makefile.am: Add new targets.
5345         * libc/machine/spu/Makefile.in: Regenerated.
5346
5347 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5348
5349         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
5350         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
5351
5352 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5353
5354         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
5355         2.6.5 version of Doug Lea's malloc which is the basis of
5356         this code.
5357
5358 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
5359
5360         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
5361
5362 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
5363             Eric Blake  <ebb9@byu.net>
5364
5365         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5366         read but unused data.
5367         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
5368         even read streams may have side effects that must happen.
5369
5370 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5371
5372         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
5373         correctly.
5374
5375 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5376
5377         * libc/include/alloca.h: Add undef alloca to work with xlc.
5378
5379 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
5380
5381         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
5382         cell spu.
5383
5384 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5385
5386         * libc/machine/spu/strncpy.c: Add padding.
5387
5388 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5389
5390         * testsuite/newlib.string/tstring.c:
5391
5392 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
5393
5394         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
5395         * libc/machine/spu/strrchr.c: Ditto.
5396
5397 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
5398
5399         * libc/include/math.h: Allow C99 functions/macros to be
5400         defined for C++ even when __STRICT_ANSI__.
5401
5402 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
5403
5404         * libc/stdio/makebuf.c (__smakebuf): If dealing with
5405         an asprintf-family buffer, make the default initial size 64.
5406
5407 2006-11-29  Eric Blake  <ebb9@byu.net>
5408
5409         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
5410         asprintf, as well as quadratic realloc behavior.
5411
5412 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
5413
5414         * libc/machine/spu/memset.c: Fix type of explicit cast.
5415         * libc/machine/spu/strncmp.c: Add explicit cast.
5416         * libc/machine/spu/strrchr.c: Ditto.
5417         * libc/machine/spu/strspn.c: Ditto.
5418
5419 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
5420
5421         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
5422         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
5423         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
5424         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
5425         * libc/machine/spu/strncat.c: Explicit cast.
5426         * libc/machine/spu/strncmp.c: Use spu_splats.
5427         * libc/machine/spu/strncpy.c: Explicit cast.
5428         * libc/machine/spu/strrchr.c: Use spu_splats.
5429         * libc/machine/spu/strspn.c: Use spu_splats.
5430
5431 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
5432
5433         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
5434
5435 2006-11-14  Eric Blake  <ebb9@byu.net>
5436
5437         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
5438         (chclass): ' is a flag.  j, t, and z are modifiers.
5439
5440 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
5441
5442         * configure.host: Add support for bfin.
5443         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
5444         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
5445         * libc/machine/bfin/aclocal.m4: Generate.
5446         * libc/machine/bfin/configure.in: New.
5447         * libc/machine/bfin/configure: Generate.
5448         * libc/machine/bfin/Makefile.am: New.
5449         * libc/machine/bfin/Makefile.in: Generate.
5450         * libc/machine/bfin/setjmp.S: New.
5451         * libc/machine/bfin/longjmp.S: New.
5452         * libc/machine/configure.in: Add bfin support.
5453         * libc/machine/configure: Generate.
5454
5455 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
5456
5457         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
5458         (_PC_FILESIZEBITS): Add definition.
5459         (_PC_2_SYMLINKS): Ditto.
5460         (_PC_SYMLINK_MAX): Ditto.
5461
5462 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
5463
5464         * libc/machine/spu/memcpy.c: Override generic function with vectorized
5465         version optimized for the cell spu.
5466         * libc/machine/spu/memmove.c: Ditto.
5467         * libc/machine/spu/memset.c: Ditto.
5468         * libc/machine/spu/strcat.c: Ditto.
5469         * libc/machine/spu/strchr.c: Ditto.
5470         * libc/machine/spu/strcmp.c: Ditto.
5471         * libc/machine/spu/strcpy.c: Ditto.
5472         * libc/machine/spu/strcspn.c: Ditto.
5473         * libc/machine/spu/strlen.c: Ditto.
5474         * libc/machine/spu/strncat.c: Ditto.
5475         * libc/machine/spu/strncmp.c: Ditto.
5476         * libc/machine/spu/strncpy.c: Ditto.
5477         * libc/machine/spu/strpbrk.c: Ditto.
5478         * libc/machine/spu/strrchr.c: Ditto.
5479         * libc/machine/spu/strspn.c: Ditto.
5480         * libc/machine/spu/strxfrm.c: Ditto.
5481         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
5482         removing altivec style initializers.
5483         * libc/machine/spu/Makefile.am: Add new files to list so they build
5484         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
5485
5486 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
5487
5488         * README: Add a brief section on how to regenerate
5489         configuration files in newlib.
5490
5491 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
5492
5493         * libc/include/math.h: (exception): Add a comment
5494         telling fixincludes that we handle C vs. C++ issue.
5495
5496 2006-10-11  Yang Tse  <yangsita@gmail.com>
5497
5498         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
5499         braced-groups.
5500
5501 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
5502
5503         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
5504
5505 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
5506
5507         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
5508         for clearerr, feof, or fileno.
5509         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
5510         the dummy std stream scheme to use pointers to const external
5511         fake files, one for each standard stream.
5512         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
5513         argument.  For _REENT_SMALL, reset the file pointer if it
5514         matches one of the fake std stream pointers.
5515         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
5516         argument.
5517         * libc/stdio/fclose.c: Ditto.
5518         * libc/stdio/feof.c: Ditto.
5519         * libc/stdio/ferror.c: Ditto.
5520         * libc/stdio/fflush.c: Ditto.
5521         * libc/stdio/fgetc.c: Ditto.
5522         * libc/stdio/fgets.c: Ditto.
5523         * libc/stdio/fileno.c: Ditto.
5524         * libc/stdio/findfp.c: Ditto.
5525         * libc/stdio/fputc.c: Ditto.
5526         * libc/stdio/fputs.c: Ditto.
5527         * libc/stdio/fread.c: Ditto.
5528         * libc/stdio/freopen.c: Ditto.
5529         * libc/stdio/fseek.c: Ditto.
5530         * libc/stdio/ftell.c: Ditto.
5531         * libc/stdio/fwrite.c: Ditto.
5532         * libc/stdio/getc.c: Ditto.
5533         * libc/stdio/getdelim.c: Ditto.
5534         * libc/stdio/putc.c: Ditto.
5535         * libc/stdio/refill.c: Ditto.
5536         * libc/stdio/setvbuf.c: Ditto.
5537         * libc/stdio/ungetc.c: Ditto.
5538         * libc/stdio/vfprintf.c: Ditto.
5539         * libc/stdio/vfscanf.c: Ditto.
5540         * libc/stdio/wbuf.c: Ditto.: Ditto.
5541         * libc/stdio/wsetup.c: Ditto.
5542         * libc/stdio64/freopen64.c: Ditto.
5543         * libc/stdio64/fseeko64.c: Ditto.
5544         * libc/stdio64/ftello64.c: Ditto.
5545         * libc/machine/powerpc/vfprintf.c: Ditto.
5546         * libc/machine/powerpc/vfscanf.c: Ditto.
5547
5548 2006-09-22  Paul Brook  <paul@codesourcery.com>
5549
5550         * libc/include/sys/reent.h: Define and use __reent_assert.
5551
5552 2006-09-13  Joel Sherrill <joel@oarcorp.com>
5553
5554         * libc/include/pthread.h: Add pthread barriers,
5555         rwlocks, and spinlocks.  Change const to
5556         _CONST and prefix parameter names with
5557         an underscore.
5558         * libc/include/sys/types.h: Add id and attribute
5559         types for barriers, wrlocks, and spinlocks.
5560         * libc/include/sys/features.h: Enable barriers,
5561         wrlocks, and spinlocks for RTEMS.
5562
5563 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
5564
5565         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
5566         supposed to be writable.
5567         * libm/common/s_lib_ver.c: Ditto.
5568
5569 2006-09-12  Paul Brook  <paul@codesourcery.com>
5570
5571         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
5572
5573 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
5574
5575
5576         * libc/machine/xstormy16/Makefile.am:
5577         Add $(lpfx) prefix to LIBADD objects.
5578         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
5579         * libc/machine/xstormy16/Makefile.in: Regenerated.
5580
5581 2006-09-06  Eric Blake  <ebb9@byu.net>
5582
5583         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
5584         't', and 'z' modifiers.
5585
5586 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
5587
5588         Merge from newlib-csl-20060320-branch:
5589         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
5590
5591         * configure.host: Tell it we have _rename and _system when
5592         building m68k-unknown-elf.
5593
5594 2006-08-29  Paul Brook  <paul@codesourcery.com>
5595
5596         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
5597
5598 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
5599
5600         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
5601         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
5602         This is needed to build all AVR and H8300 RTEMS multilib variants.
5603
5604 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
5605
5606         * libc/machine/configure.in: Add configuration for SPU.
5607         * libc/machine/configure: Regenerated.
5608         * libc/machine/spu/memcpy.c: Include string.h.
5609
5610 2006-08-22  Eric Blake  <ebb9@byu.net>
5611
5612         * libc/posix/popen.c (popen): Don't close output end of pipe in
5613         child if stdout was closed on entry.
5614         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
5615
5616 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
5617
5618         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
5619         line.
5620
5621 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
5622
5623         * libc/time/gmtime.c: Correct man page; clock is not a
5624         local time and no conversion occurs.
5625
5626 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5627
5628         * configure.host (newlib_cflags) [spu]: Add special compiler
5629         options to reduce size.
5630
5631 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5632
5633         * configure.host: Add spu support.
5634         * libc/include/stdint.h: Ditto.
5635         * libc/include/machine/ieeefp.h: Ditto.
5636         * libc/include/machine/setjmp.h: Ditto.
5637         * libc/include/sys/config.h: Ditto.
5638         * libc/include/sys/types.h: Ditto.
5639         * libc/machine/spu/Makefile.am: New file.
5640         * libc/machine/spu/Makefile.in: Ditto.
5641         * libc/machine/spu/aclocal.m4: Ditto.
5642         * libc/machine/spu/configure: Ditto.
5643         * libc/machine/spu/configure.in: Ditto.
5644         * libc/machine/spu/memcpy.c: Ditto.
5645         * libc/machine/spu/setjmp.S: Ditto.
5646
5647 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5648
5649         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
5650         properly.
5651
5652 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
5653
5654         * libc/Makefile.am: Add libc_TEXINFOS dependency on
5655         generated .texi files.
5656         * libm/Makefile.am: Add libm_TEXINFOS dependency on
5657         generated .texi files.
5658         * libc/Makefile.in: Regenerated.
5659         * libm/Makefile.in: Ditto.
5660
5661 2006-08-01  Thiemo Seufer  <ths@mips.com>
5662             Nigel Stephens  <nigel@mips.com>
5663
5664         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
5665         define this to force _impure_ptr to live in the .sdata section.
5666
5667 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5668
5669         * acinclude.m4: Check for readelf tool.
5670         * configure.in: Use ${READELF} instead of hard-coding.
5671         * Regenerate all aclocal.m4, Makefile.in, and configure files.
5672
5673 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5674
5675         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
5676         to avoid conflict with newer glibc's revision of mremap.
5677
5678 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
5679
5680         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
5681         floating-point format support.  Also redefine
5682         dword0 and dword1 macros.
5683         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5684         to prevent setting dword1 which is an rvalue only.
5685
5686 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5687
5688         * libc/stdlib/Makefile.am: Add new gdtoa routines.
5689         * libc/stdlib/Makefile.in: Regenerated.
5690         * libc/stdlib/gd_qnan.h: New file.
5691         * libc/stdlib/gdtoa-gethex.c: Ditto.
5692         * libc/stdlib/gdtoa-hexnan.c: Ditto.
5693         * libc/stdlib/gdtoa.h: Ditto.
5694         * libc/stdlib/mprec.c: Add new helper routines needed by
5695         the new gdtoa code.
5696         * libc/stdlib/mprec.h: Integrate some defines and prototypes
5697         used by gdtoa routines here.
5698         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
5699         which adds C99 support such as nan, inf, and hexadecimal input
5700         format.
5701
5702 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
5703
5704         * libc/include/stdio.h (__sgetc_r): Fix typo.
5705         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
5706         * libc/stdio/rget.c (__srbuf): Reinstantiate.
5707         * libc/stdio/wbuf.c (__swbuf): Ditto.
5708
5709 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
5710
5711         * libc/include/stdio.h: Add new reentrant I/O prototypes for
5712         read/write functions.  Change getc/putc macros to have reentrant underlying
5713         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
5714         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
5715         new reentrant I/O functions/macros for reading/writing.
5716         * libc/stdio/fgets.c: Ditto.
5717         * libc/stdio/fputc.c: Ditto.
5718         * libc/stdio/fputs.c: Ditto.
5719         * libc/stdio/fread.c: Ditto.
5720         * libc/stdio/fseek.c: Ditto.
5721         * libc/stdio64/fseeko64.c: Ditto.
5722         * libc/stdio/fwrite.c: Ditto.
5723         * libc/stdio/getc.c: Ditto.
5724         * libc/stdio/getc_u.c: Ditto.
5725         * libc/stdio/getchar.c: Ditto.
5726         * libc/stdio/getchar_u.c: Ditto.
5727         * libc/stdio/putc.c: Ditto.
5728         * libc/stdio/putc_u.c: Ditto.
5729         * libc/stdio/putchar.c: Ditto.
5730         * libc/stdio/puts.c: Ditto.
5731         * libc/stdio/vfprintf.c: Ditto.
5732         * libc/stdio/vfscanf.c: Ditto.
5733         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
5734         Change all previous callers of __sfvwrite.  Set errno to EBADF and
5735         set error flag on if attempt is made to write to file that does not
5736         allow writing.
5737         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
5738         * libc/stdio/local.h: Ditto.
5739         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
5740         Set errno to EBADF and the error flag on if attempt is made to
5741         read unreadable file.  Change all previous callers of __srefill.
5742         * libc/stdio/rget.c
5743         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
5744         all previous callers of __swbuf.
5745         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
5746         huge value macros are already defined correctly for i386 by <math.h>.
5747
5748 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
5749
5750         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
5751         Make them do something useful in the ARM_RDI_MONITOR case.
5752
5753 2006-06-07  Fred Fish  <fnf@specifix.com>
5754
5755         * libc/search/hash_bigkey.c (MIN,MAX): Remove
5756         defines that are already supplied by <sys/param.h>.
5757
5758 2006-06-07  Fred Fish  <fnf@specifix.com>
5759
5760         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
5761
5762 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5763
5764         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
5765         usleep.c.
5766         * libc/posix/Makefile.in: Regenerate.
5767         * libc/posix/sleep.c: New file.
5768         * libc/posix/usleep.c: Ditto.
5769
5770 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5771
5772         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
5773         -DABORT_PROVIDED flag.
5774         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
5775         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
5776
5777 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
5778
5779         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
5780         * Makefile.in: Regenerated.
5781         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
5782         extraneous CFLAGS reference now that CCASFLAGS are being extended
5783         properly via multilib.
5784         * libc/machine/sh/Makefile.in: Regenerated.
5785
5786 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
5787
5788         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
5789         sigismember.
5790
5791 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5792
5793         * libc/misc/dprintf.c: Removed.
5794         * libc/misc/__dprintf.c: Renamed from dprintf.c.
5795         * libc/misc/Makefile.am: Changed appropriately for rename.
5796         * libc/misc/Makefile.in: Regenerated.
5797
5798 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5799
5800         * libc/include/stdio.h: Protect dprintf prototype
5801         with #ifndef dprintf so as to not interfere with
5802         historical code defining their own dprintf macro.
5803
5804 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
5805
5806         * libc/include/stdio.h: Add prototypes for fiscanf,
5807         iscanf, and siscanf.
5808
5809 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
5810
5811         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
5812         (DEF_NEWLIB_VERSION).
5813         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
5814         * configure: Regenerate.
5815
5816 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
5817
5818         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
5819         lib_a_SOURCES.
5820         * libc/ctype/Makefile.in: Regenerated.
5821
5822 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
5823
5824         * libc/machine/arm/Makefile.am: Fix a typo.
5825         * libc/machine/arm/Makefile.in: Regenerated.
5826
5827 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
5828
5829         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5830         * libc/machine/sh/Makefile.in: Regenerate.
5831
5832 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
5833
5834         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5835         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
5836
5837 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
5838
5839         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
5840         .s.
5841         * libc/sys/sysnec810/Makefile.in: Regenerated.
5842         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
5843         * libc/sys/sysnec810/io.S: Ditto.
5844         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
5845         * libc/sys/sysnec810/io.s: Ditto.
5846
5847 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
5848
5849         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
5850         be specified instead of object, do so.
5851         * libc/ctype/Makefile.am: Ditto.
5852         * libc/iconv/ccs/Makefile.am: Ditto.
5853         * libc/iconv/ces/Makefile.am: Ditto.
5854         * libc/iconv/lib/Makefile.am: Ditto.
5855         * libc/locale/Makefile.am: Ditto.
5856         * libc/posix/Makefile.am: Ditto.
5857         * libc/reent/Makefile.am: Ditto.
5858         * libc/search/Makefile.am: Ditto.
5859         * libc/stdio/Makefile.am: Ditto.
5860         * libc/stdio64/Makefile.am: Ditto.
5861         * libc/stdlib/Makefile.am: Ditto.
5862         * libc/string/Makefile.am: Ditto.
5863         * libc/syscalls/Makefile.am: Ditto.
5864         * libc/unix/Makefile.am: Ditto.
5865         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
5866         prefix added automatically.  Any specified rules must use $(lpfx) for
5867         object file names.
5868         * libc/machine/arm/Makefile.am: Ditto.
5869         * libc/machine/cris/Makefile.am: Ditto.
5870         * libc/machine/crx/Makefile.am: Ditto.
5871         * libc/machine/d10v/Makefile.am: Ditto.
5872         * libc/machine/d30v/Makefile.am: Ditto.
5873         * libc/machine/fr30/Makefile.am: Ditto.
5874         * libc/machine/frv/Makefile.am: Ditto.
5875         * libc/machine/h8300/Makefile.am: Ditto.
5876         * libc/machine/h8500/Makefile.am: Ditto.
5877         * libc/machine/hppa/Makefile.am: Ditto.
5878         * libc/machine/i386/Makefile.am: Ditto.
5879         * libc/machine/i960/Makefile.am: Ditto.
5880         * libc/machine/iq2000/Makefile.am: Ditto.
5881         * libc/machine/m32c/Makefile.am: Ditto.
5882         * libc/machine/m32r/Makefile.am: Ditto.
5883         * libc/machine/m68hc11/Makefile.am: Ditto.
5884         * libc/machine/m68k/Makefile.am: Ditto.
5885         * libc/machine/m88k/Makefile.am: Ditto.
5886         * libc/machine/mips/Makefile.am: Ditto.
5887         * libc/machine/mn10200/Makefile.am: Ditto.
5888         * libc/machine/mn10300/Makefile.am: Ditto.
5889         * libc/machine/mt/Makefile.am: Ditto.
5890         * libc/machine/necv70/Makefile.am: Ditto.
5891         * libc/machine/powerpc/Makefile.am: Ditto.
5892         * libc/machine/sh/Makefile.am: Ditto.
5893         * libc/machine/sh/Makefile.in: Ditto.
5894         * libc/machine/sparc/Makefile.am: Ditto.
5895         * libc/machine/tic4x/Makefile.am: Ditto.
5896         * libc/machine/tic80/Makefile.am: Ditto.
5897         * libc/machine/v850/Makefile.am: Ditto.
5898         * libc/machine/w65/Makefile.am: Ditto.
5899         * libc/machine/xscale/Makefile.am: Ditto.
5900         * libc/machine/xstormy16/Makefile.am: Ditto.
5901         * libc/machine/z8k/Makefile.am: Ditto.
5902         * libc/sys/a29khif/Makefile.am: Ditto.
5903         * libc/sys/arm/Makefile.am: Ditto.
5904         * libc/sys/d10v/Makefile.am: Ditto.
5905         * libc/sys/h8300hms/Makefile.am: Ditto.
5906         * libc/sys/h8500hms/Makefile.am: Ditto.
5907         * libc/sys/linux/Makefile.am: Ditto.
5908         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5909         * libc/sys/linux/net/Makefile.am: Ditto.
5910         * libc/sys/linux/stdlib/Makefile.am: Ditto.
5911         * libc/sys/m88kbug/Makefile.am: Ditto.
5912         * libc/sys/mmixware/Makefile.am: Ditto.
5913         * libc/sys/rdos/Makefile.am: Ditto.
5914         * libc/sys/rtems/Makefile.am: Ditto.
5915         * libc/sys/sh/Makefile.am: Ditto.
5916         * libc/sys/sun4/Makefile.am: Ditto.
5917         * libc/sys/sysmec/Makefile.am: Ditto.
5918         * libc/sys/sysnec810/Makefile.am: Ditto.
5919         * libc/sys/sysnecv850/Makefile.am: Ditto.
5920         * libc/sys/sysvi386/Makefile.am: Ditto.
5921         * libc/sys/sysvnecv70/Makefile.am: Ditto.
5922         * libc/sys/tic80/Makefile.am: Ditto.
5923         * libc/sys/w65/Makefile.am: Ditto.
5924         * libc/sys/z8ksim/Makefile.am: Ditto.
5925         * libc/machine/necv70/fastmath.S: Renamed from .s file.
5926         * libc/machine/necv70/setjmp.S: Ditto.
5927         * libc/machine/necv70/fastmath.s: Removed.
5928         * libc/machine/necv70/setjmp.s: Ditto.
5929         * libc/machine/w65/*.S: New files renamed from .s files.
5930         * libc/machine/w65/*.s: Renamed and removed.
5931         * libc/sys/a29khif/*.S: New files renamed from .s files.
5932         * libc/sys/a29khif/*.s: Renamed and removed.
5933         * libc/sys/sysvi386/*.S: New files renamed from .s files.
5934         * libc/sys/sysvi386/*.s: Renamed and removed.
5935         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
5936         * libc/sys/sysvnecv70/*.s: Renamed and removed.
5937         * libc/*Makefile.in: Regenerated as appropriate.
5938
5939 2006-04-24  DJ Delorie  <dj@redhat.com>
5940
5941         * libc/machine/sh/configure.in: Avoid link tests.
5942         * libc/machine/sh/configure: Regenerate.
5943
5944 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
5945
5946         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
5947         (sigaddset, sigemptyset): Add return code.
5948
5949 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
5950
5951         * acinclude.m4: New _NEWLIB_VERSION.
5952         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
5953         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
5954         Use new form of AC_INIT_AUTOMAKE.
5955         * configure.in: AC_PREREQ(2.59).
5956         Use autoconf-2.5.x version of AC_INIT.
5957         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
5958         autoconf-2.13's AC_OUTPUT.
5959         * libm/configure.in: Ditto.
5960         * libm/machine/configure.in: Ditto.
5961         * libm/machine/i386/configure.in: Ditto.
5962         * libc/configure.in: Ditto.
5963         * libc/machine/a29k/configure.in: Ditto.
5964         * libc/machine/arm/configure.in: Ditto.
5965         * libc/machine/configure.in: Ditto.
5966         * libc/machine/mn10300/configure.in: Ditto.
5967         * libc/machine/powerpc/configure.in: Ditto.
5968         * libc/machine/z8k/configure.in: Ditto.
5969         * libc/machine/h8300/configure.in: Ditto.
5970         * libc/machine/mips/configure.in: Ditto.
5971         * libc/machine/crx/configure.in: Ditto.
5972         * libc/machine/m68hc11/configure.in: Ditto.
5973         * libc/machine/h8500/configure.in: Ditto.
5974         * libc/machine/xscale/configure.in: Ditto.
5975         * libc/machine/d10v/configure.in: Ditto.
5976         * libc/machine/fr30/configure.in: Ditto.
5977         * libc/machine/sh/configure.in: Ditto.
5978         * libc/machine/tic80/configure.in: Ditto.
5979         * libc/machine/m32r/configure.in: Ditto.
5980         * libc/machine/xstormy16/configure.in: Ditto.
5981         * libc/machine/i386/configure.in: Ditto.
5982         * libc/machine/d30v/configure.in: Ditto.
5983         * libc/machine/mn10200/configure.in: Ditto.
5984         * libc/machine/frv/configure.in: Ditto.
5985         * libc/machine/mt/configure.in: Ditto.
5986         * libc/machine/i960/configure.in: Ditto.
5987         * libc/machine/v850/configure.in: Ditto.
5988         * libc/machine/necv70/configure.in: Ditto.
5989         * libc/machine/tic4x/configure.in: Ditto.
5990         * libc/machine/cris/configure.in: Ditto.
5991         * libc/machine/m68k/configure.in: Ditto.
5992         * libc/machine/m32c/configure.in: Ditto.
5993         * libc/machine/hppa/configure.in: Ditto.
5994         * libc/machine/w65/configure.in: Ditto.
5995         * libc/machine/iq2000/configure.in: Ditto.
5996         * libc/machine/sparc/configure.in: Ditto.
5997         * libc/machine/m88k/configure.in: Ditto.
5998         * libc/sys/linux/configure.in: Ditto.
5999         * libc/sys/linux/machine/configure.in: Ditto.
6000         * libc/sys/linux/machine/i386/configure.in: Ditto.
6001         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6002         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6003         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6004         * libc/sys/arm/configure.in: Ditto.
6005         * libc/sys/configure.in: Ditto.
6006         * libc/sys/decstation/configure.in: Ditto.
6007         * libc/sys/a29khif/configure.in: Ditto.
6008         * libc/sys/sysnecv850/configure.in: Ditto.
6009         * libc/sys/d10v/configure.in: Ditto.
6010         * libc/sys/netware/configure.in: Ditto.
6011         * libc/sys/mmixware/configure.in: Ditto.
6012         * libc/sys/h8500hms/configure.in: Ditto.
6013         * libc/sys/sh/configure.in: Ditto.
6014         * libc/sys/tic80/configure.in: Ditto.
6015         * libc/sys/rdos/configure.in: Ditto.
6016         * libc/sys/sysmec/configure.in: Ditto.
6017         * libc/sys/sysvi386/configure.in: Ditto.
6018         * libc/sys/h8300hms/configure.in: Ditto.
6019         * libc/sys/sparc64/configure.in: Ditto.
6020         * libc/sys/arc/configure.in: Ditto.
6021         * libc/sys/sysnec810/configure.in: Ditto.
6022         * libc/sys/m88kbug/configure.in: Ditto.
6023         * libc/sys/sysvnecv70/configure.in: Ditto.
6024         * libc/sys/z8ksim/configure.in: Ditto.
6025         * libc/sys/rtems/configure.in: Ditto.
6026         * libc/sys/w65/configure.in: Ditto.
6027         * libc/sys/sun4/configure.in: Ditto.
6028         * doc/configure.in: Ditto.
6029         * iconvdata/configure.in: Ditto.
6030         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6031
6032 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6033
6034         * acinclude.m4: Properly add square brackets for
6035         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6036         macros no longer available.  Add LIB_AM_PROG_AS to
6037         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6038         macro.  Substitute lpfx (library object prefix).
6039         * configure.host: Set lpfx depending on whether
6040         libtool is used or not.
6041         * configure.in: Individually specify libc and libm
6042         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6043         necessary.
6044         * Makefile.am: Use $(lpfx) to get object names for
6045         math-library functions that should also be in libc.
6046         * libc/machine/configure.in: Use case statement to determine
6047         AC_CONFIG_SUBDIRS statement.
6048         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6049         * libc/sys/linux/machine/configure.in: Ditto.
6050         * libc/sys/configure.in: Ditto.
6051         * libm/machine/configure.in: Ditto.
6052         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6053         * libm/configure.in: Add AM_CONDITIONAL statement
6054         for HAVE_LIBM_MACHINE_DIR.
6055         * libc/machine/a29k/Makefile.am: Modified to work with
6056         latest automake.  Change includes setting AM_CCASFLAGS
6057         so building .S files will properly pick up flags used
6058         to build C files.
6059         * libc/machine/arm/Makefile.am: Ditto.
6060         * libc/machine/crx/Makefile.am: Ditto.
6061         * libc/machine/d10v/Makefile.am: Ditto.
6062         * libc/machine/d30v/Makefile.am: Ditto.
6063         * libc/machine/fr30/Makefile.am: Ditto.
6064         * libc/machine/frv/Makefile.am: Ditto.
6065         * libc/machine/h8300/Makefile.am: Ditto.
6066         * libc/machine/h8500/Makefile.am: Ditto.
6067         * libc/machine/hppa/Makefile.am: Ditto.
6068         * libc/machine/i386/Makefile.am: Ditto.
6069         * libc/machine/iq2000/Makefile.am: Ditto.
6070         * libc/machine/m32c/Makefile.am: Ditto.
6071         * libc/machine/m32r/Makefile.am: Ditto.
6072         * libc/machine/m68hc11/Makefile.am: Ditto.
6073         * libc/machine/m68k/Makefile.am: Ditto.
6074         * libc/machine/m88k/Makefile.am: Ditto.
6075         * libc/machine/mips/Makefile.am: Ditto.
6076         * libc/machine/mn10200/Makefile.am: Ditto.
6077         * libc/machine/mn10300/Makefile.am: Ditto.
6078         * libc/machine/mt/Makefile.am: Ditto.
6079         * libc/machine/necv70/Makefile.am: Ditto.
6080         * libc/machine/powerpc/Makefile.am: Ditto.
6081         * libc/machine/sh/Makefile.am: Ditto.
6082         * libc/machine/sparc/Makefile.am: Ditto.
6083         * libc/machine/tic4x/Makefile.am: Ditto.
6084         * libc/machine/tic80/Makefile.am: Ditto.
6085         * libc/machine/v850/Makefile.am: Ditto.
6086         * libc/machine/w65/Makefile.am: Ditto.
6087         * libc/machine/xscale/Makefile.am: Ditto.
6088         * libc/machine/xstormy16/Makefile.am: Ditto.
6089         * libc/machine/z8k/Makefile.am: Ditto.
6090         * libc/sys/a29khif/Makefile.am: Ditto.
6091         * libc/sys/arc/Makefile.am: Ditto.
6092         * libc/sys/arm/Makefile.am: Ditto.
6093         * libc/sys/d10v/Makefile.am: Ditto.
6094         * libc/sys/decstation/Makefile.am: Ditto.
6095         * libc/sys/h8300hms/Makefile.am: Ditto.
6096         * libc/sys/h8500hms/Makefile.am: Ditto.
6097         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6098         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6099         * libc/sys/m88kbug/Makefile.am: Ditto.
6100         * libc/sys/mmixware/Makefile.am: Ditto.
6101         * libc/sys/netware/Makefile.am: Ditto.
6102         * libc/sys/rdos/Makefile.am: Ditto.
6103         * libc/sys/rtems/Makefile.am: Ditto.
6104         * libc/sys/sh/Makefile.am: Ditto.
6105         * libc/sys/sparc64/Makefile.am: Ditto.
6106         * libc/sys/sysmec/Makefile.am: Ditto.
6107         * libc/sys/sysnec810/Makefile.am: Ditto.
6108         * libc/sys/sysnecv850/Makefile.am: Ditto.
6109         * libc/sys/sysvi386/Makefile.am: Ditto.
6110         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6111         * libc/sys/tic80/Makefile.am: Ditto.
6112         * libc/sys/w65/Makefile.am: Ditto.
6113         * libc/sys/z8ksim/Makefile.am: Ditto.
6114         * libm/machine/i386/Makefile.am: Ditto.
6115         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6116         trap.S so that automake will generate a .S.o suffix rule.
6117         * libc/argz/Makefile.am: Modified to work with
6118         latest automake.  Change includes adding lib_a_CFLAGS
6119         so automake doesn't complain about libtool and non-libtool
6120         libraries sharing objects.
6121         * libc/ctype/Makefile.am: Ditto.
6122         * libc/errno/Makefile.am: Ditto.
6123         * libc/iconv/ccs/Makefile.am: Ditto.
6124         * libc/iconv/ces/Makefile.am: Ditto.
6125         * libc/iconv/lib/Makefile.am: Ditto.
6126         * libc/locale/Makefile.am: Ditto.
6127         * libc/misc/Makefile.am: Ditto.
6128         * libc/posix/Makefile.am: Ditto.
6129         * libc/reent/Makefile.am: Ditto.
6130         * libc/search/Makefile.am: Ditto.
6131         * libc/signal/Makefile.am: Ditto.
6132         * libc/stdio/Makefile.am: Ditto.
6133         * libc/stdio64/Makefile.am: Ditto.
6134         * libc/stdlib/Makefile.am: Ditto.
6135         * libc/string/Makefile.am: Ditto.
6136         * libc/sys/linux/Makefile.am: Ditto.
6137         * libc/sys/linux/argp/Makefile.am: Ditto.
6138         * libc/sys/linux/cmath/Makefile.am: Ditto.
6139         * libc/sys/linux/dl/Makefile.am: Ditto.
6140         * libc/sys/linux/iconv/Makefile.am: Ditto.
6141         * libc/sys/linux/intl/Makefile.am: Ditto.
6142         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6143         * libc/sys/linux/net/Makefile.am: Ditto.
6144         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6145         * libc/syscalls/Makefile.am: Ditto.
6146         * libc/time/Makefile.am: Ditto.
6147         * libc/unix/Makefile.am: Ditto.
6148         * libm/Makefile.am: Ditto.
6149         * libm/common/Makefile.am: Ditto.
6150         * libm/math/Makefile.am: Ditto.
6151         * libm/mathfp/Makefile.am: Ditto.
6152         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6153
6154 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6155
6156         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6157         anymore.  Assume there is a gettimeofday syscall.
6158
6159 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6160
6161         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6162         for the declaration of n_long.
6163
6164 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6165
6166         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6167         struct sockaddr.
6168         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6169         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6170         (IFF_NOTRAILERS): New define.
6171         (struct ifreq): Add ifru_netmask.
6172         (ifr_netmask): New define.
6173
6174 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6175
6176         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6177         match sys/ioctl.h.
6178
6179 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6180
6181         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6182         linux-newlib libc implementations.
6183
6184 2006-03-29  Eric Blake  <ebb9@byu.net>
6185
6186         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6187         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6188
6189 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6190
6191         * libc/sys/linux/io.c (__mknod): Fix declaration of
6192         syscall to pass a dev_t as third argument rather than
6193         a pointer to dev_t.
6194
6195 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6196
6197         * libc/sys/linux/net/name6.c: Fix struct references.
6198
6199 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6200
6201         * configure.host: Allow hosts to set the default
6202         newlib_atexit_dynamic_alloc value.
6203         * configure.in: Likewise.
6204         * configure: Regenerated.
6205
6206 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6207
6208         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6209         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6210         option.
6211         * configure: Regenerated.
6212         * newlib.hin: Regenerated.
6213         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6214         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6215         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6216         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6217
6218 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6219
6220         * libc/sys/linux/linuxthreads/config.h: Remove definition
6221         of UINT32_C.
6222
6223 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6224
6225         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6226         for a string I/O file that isn't using the asprintf family.
6227
6228 2006-03-07  Eric Blake  <ebb9@byu.net>
6229
6230         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
6231         filename, allow read-only or write-only FILE atop O_RDWR file
6232         descriptor.
6233         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
6234
6235 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
6236
6237         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
6238         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
6239
6240 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
6241
6242         * libm/math/math.tex: Fix reference to sisnan.def which
6243         is now in common subdirectory.
6244         * libm/mathfp/mathfp.tex: Ditto.
6245
6246 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
6247
6248         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
6249         s_isnand, and sf_isnanf object files.
6250         * Makefile.in: Regenerated.
6251         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
6252         conflict if <math.h> has previously been included.
6253         * libc/include/math.h
6254         * libc/include/math.h: Make isnan and isinf macros to
6255         conform to C99.
6256         (__isinfd, __isinff, __isnand, __isnanf): New functions.
6257         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
6258         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
6259         sf_isinf files which have been moved from math/mathfp directories.
6260         * libm/common/Makefile.in: Regenerated.
6261         * libm/common/s_isinfd.c: New file.
6262         * libm/common/s_isnand.c: Ditto.
6263         * libm/common/sf_isinff.c: Ditto.
6264         * libm/common/sf_isnanf.c: Ditto.
6265         * libm/common/s_isinf.c: Moved from libm/math directory.
6266         * libm/common/s_isnan.c: Ditto.
6267         * libm/common/sf_isinf.c: Ditto.
6268         * libm/common/sf_isnan.c: Ditto.
6269         * libm/math/Makefile.am: Remove isinf and isnan family functions
6270         which have been moved into common directory.
6271         * libm/mathfp/Makefile.am: Ditto.
6272         * libm/math/Makefile.in: Regenerated.
6273         * libm/mathfp/Makefile.in: Ditto.
6274         * libm/math/s_isinf.c: Removed.
6275         * libm/math/s_isnan.c: Ditto.
6276         * libm/math/sf_isinf.c: Ditto.
6277         * libm/math/sf_isnan.c: Ditto.
6278         * libm/mathfp/s_isinf.c: Ditto.
6279         * libm/mathfp/s_isnan.c: Ditto.
6280         * libm/mathfp/sf_isinf.c: Ditto.
6281         * libm/mathfp/sf_isnan.c: Ditto.
6282
6283 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
6284
6285         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
6286         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
6287         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
6288         seek, turn off the __SNPT no-optimization flag.
6289
6290 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
6291
6292         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
6293         will be defined.
6294         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
6295         <features.h> to preset special flags.
6296
6297 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
6298
6299         * libc/include/sys/time.h (struct timeval): Change member types
6300         according to SUSv3.
6301         * libc/include/sys/types.h (useconds_t): Change to unsigned
6302         according to SUSv3.
6303         (suseconds_t): Define type.
6304
6305 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
6306             David Carne  <davidcarne@gmail.com>
6307
6308         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
6309         instead of strlen to determine number of bytes to copy.
6310         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
6311         before looking at storage location.
6312
6313 2006-02-07  Paul Brook  <paul@codesourcery.com>
6314
6315         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
6316         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
6317         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
6318         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
6319         * libc/sys/arm/trap.S: Disable for Thumb-2.
6320
6321 2006-01-31  Leif Ekblad  <leif@rdos.net>
6322
6323         * configure.host: RDOS support added
6324         * libc/include/sys/config.h: Ditto.
6325         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
6326         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
6327         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
6328         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
6329         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
6330         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
6331         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
6332         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
6333         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
6334         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
6335         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
6336         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
6337         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
6338         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
6339         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
6340         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
6341         * libc/sys/rdos/write.c: Ditto.
6342
6343 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
6346         so as not to define PACKAGE and VERSION in newlib.h.
6347         * aclocal.m4: Regenerated.
6348         * configure: Ditto.
6349         * newlib.hin: Ditto.
6350
6351 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
6352
6353         * acconfig.h: New file to generate newlib.hin from.
6354         * newlib.hin: Regenerated.
6355         * stamp-h.in: Regenerated.
6356         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
6357         called automatically.
6358         * Makefile.in: Regenerated.
6359         * acinclude.m4: Add proper comment for hack in previous change.
6360         * aclocal.m4 */aclocal.m4: Regenerated.
6361         * configure */configure: Regenerated.
6362
6363 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6364
6365         * acinclude.m4: Add hack to prevent INSTALL in subdirs
6366         from being set to "../".
6367         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
6368         * aclocal.m4: Regenerated.
6369         * configure: Ditto.
6370         * Makefile.in: Ditto.
6371         * doc/aclocal.m4: Ditto.
6372         * doc/configure: Ditto.
6373         * iconvdata/aclocal.m4: Ditto.
6374         * iconvdata/configure: Ditto.
6375         * libc/*/aclocal.m4: Ditto.
6376         * libc/*/configure: Ditto.
6377         * libc/libc.texinfo: Ditto.
6378         * libm/*/aclocal.m4: Ditto.
6379         * libm/*/configure: Ditto.
6380
6381 2006-01-10  Eric Blake  <ebb9@byu.net>
6382
6383         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
6384         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6385
6386 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
6387
6388         * libm/mathfp/s_frexp.c: Check for special values on
6389         the original input, not the manipulated output value.
6390         * libm/mathfp/sf_frexp.c: Ditto.
6391         * libm/mathfp/s_atangent.c: Don't use local value branch
6392         when checking for quadrant.
6393         * libm/mathfp/sf_atangent.c: Ditto.
6394
6395 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
6396
6397         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
6398         * libc/stdio64/freopen64.c: Ditto.
6399
6400 2006-01-09  Eric Blake  <ebb9@byu.net>
6401
6402         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
6403         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6404
6405 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6406
6407         * libc/sys/linux/include/getopt.h: Add macros needed by
6408         new version of getopt.c in libc/stdlib.
6409
6410 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
6411
6412         * libc/stdlib/getopt.c: Replaced with version
6413         that adds getopt_long and getopt_long_only support.
6414         * libc/include/getopt.h: New file.
6415
6416 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6417
6418         * NEWS: Update with 1.14.0 info.
6419         * README: Ditto.
6420         * acinclude.m4: Change version number to 1.14.0.
6421         * aclocal.m4: Regenerated.
6422         * configure: Ditto.
6423         * doc/aclocal.m4: Ditto.
6424         * doc/configure: Ditto.
6425         * libc/*/aclocal.m4: Ditto.
6426         * libc/*/configure: Ditto.
6427         * libc/libc.texinfo: Ditto.
6428         * libm/*/aclocal.m4: Ditto.
6429         * libm/*/configure: Ditto.
6430         * libm/libm.texinfo: Ditto.
6431         * libc/sys/linux/shared.ld: Add VERS_1.14.
6432
6433 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6434
6435         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
6436         take a pointer to struct stat64 rather than struct stat.
6437
6438 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
6439
6440         * libc/include/stdint.h: Prefer long over int for int32_t.
6441         Use __have_long32 to set up int32_t.
6442         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
6443         (Sync with stdint.h).
6444
6445 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
6446
6447         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
6448         typo in O_NDELAY comment.
6449
6450 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
6451
6452         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
6453         * libc/include/machine/setjmp.h (__mt__): Likewise.
6454         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
6455         * libc/machine/configure.in: Ditto.
6456
6457 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
6458
6459         * configure.host: Replace ms1 arch with mt arch.
6460         * libc/machine/mt: Renamed from ms1 dir.
6461
6462 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
6463
6464         * libc/include/sys/types.h: Remove the ifdef armour around
6465         standard POSIX types.
6466
6467 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6468
6469         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
6470         rtems_gxx_key_delete, rtems_gxx_getspecific,
6471         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
6472         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
6473         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
6474
6475 2005-12-05  Christopher Faylor  <cgf@timesys.com>
6476
6477         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
6478         file.  Declare unsetenv and _unsetenv_r when not cygwin.
6479
6480 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
6481
6482         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
6483         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
6484
6485 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6486
6487         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
6488
6489 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6490
6491         * include/time.h: Remove more cygwin-specific stuff.
6492
6493 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6494
6495         * include/time.h: Move cygwin declarations to cygwin-specific header.
6496         * include/sys/time.h: Rename cygwin include to "sys_time.h".
6497
6498 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
6499
6500         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
6501         in libc/sys/linux/include.
6502         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
6503         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
6504         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
6505         in libc/sys/linux/dl.
6506
6507 2005-11-11  Christopher Faylor  <cgf@timesys.com>
6508
6509         * libc/include/sys/time.h: For cygwin, use general header rather than
6510         specific "sys/select.h".
6511
6512 2005-11-08  Tom Walsh  <tom@openhardware.net>
6513
6514         * libc/time/tzvars.c: New file.
6515         * libc/time/tzset_r.c: Moved globals into tzvars.c
6516         so other time functions needn't link in __tzset_r and its
6517         dependencies.
6518         * libc/time/Makefile.am: Add the new file.
6519         * libc/time/Makefile.in: Regenerated.
6520
6521 2005-11-08  Christopher Faylor  <cgf@timesys.com>
6522
6523         * libc/include/string.h: Add cygwin-specific function declaration.
6524
6525 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
6526
6527         * libc/include/ieeefp.h: Add C++ guards.
6528
6529 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
6530
6531         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
6532         * libc/unix/getlogin.c: Ditto.
6533         * libc/unix/getpass.c: Ditto.
6534         * libc/unix/getut.c: Ditto.
6535         * libc/unix/ttyname.c: Ditto.
6536
6537 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
6538
6539         * libc/include/sys/unistd.h (readlink, symlink): Provide these
6540         prototypes by default.
6541         * libc/sys/linux/include/unistd.h (readlink): Remove this
6542         prototype.
6543         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
6544         prototypes.
6545
6546 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
6547
6548         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
6549
6550 2005-10-31  Darin Johnson  <darin@usa.net>
6551
6552         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
6553         correct for constants.
6554
6555 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6556
6557         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
6558         * libc/stdio/siscanf.c: Likewise.
6559         * libc/stdio/sprintf.c: Likewise.
6560         * libc/stdio/sscanf.c: Likewise.
6561         * libc/stdio/vfprintf.c: Likewise.
6562         * libc/stdio/vfscanf.c: Likewise.
6563         * libc/stdio/viprintf.c: Likewise.
6564         * libc/stdio/viscanf.c: Likewise.
6565
6566 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6567
6568         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
6569         example to use "_end" symbol instead of "end".  Change write  example
6570         to use "outbyte" instead of "writechar".
6571
6572 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6573
6574         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
6575         * libc/ctype/islower.c: Likewise.
6576         * libc/ctype/isupper.c: Likewise.
6577         * libc/ctype/iswalnum.c: Likewise.
6578         * libc/ctype/iswalpha.c: Likewise.
6579         * libc/ctype/iswblank.c: Likewise.
6580         * libc/ctype/iswcntrl.c: Likewise.
6581         * libc/ctype/iswdigit.c: Likewise.
6582         * libc/ctype/iswgraph.c: Likewise.
6583         * libc/ctype/iswlower.c: Likewise.
6584         * libc/ctype/iswprint.c: Likewise.
6585         * libc/ctype/iswpunct.c: Likewise.
6586         * libc/ctype/iswspace.c: Likewise.
6587         * libc/ctype/iswupper.c: Likewise.
6588         * libc/ctype/iswxdigit.c: Likewise.
6589         * libc/ctype/tolower.c: Likewise.
6590         * libc/ctype/toupper.c: Likewise.
6591         * libc/ctype/towctrans.c: Likewise.
6592         * libc/ctype/towlower.c: Likewise.
6593         * libc/ctype/towupper.c: Likewise.
6594         * libc/string/strcasecmp.c: Likewise.
6595         * libc/string/strcoll.c: Likewise.
6596         * libc/string/strings.tex: Likewise.
6597         * libc/string/strlwr.c: Likewise.
6598         * libc/string/strncasecmp.c: Likewise.
6599         * libc/string/strupr.c: Likewise.
6600         * libc/string/wcscoll.c: Likewise.
6601         * libc/string/wcslcat.c: Likewise.
6602         * libc/string/wcslcpy.c: Likewise.
6603         * libc/string/wcsnlen.c: Likewise.
6604         * libc/string/wcsstr.c: Likewise.
6605         * libc/string/wcstrings.tex: Likewise.
6606         * libc/string/wmemchr.c: Likewise.
6607         * libc/string/wmemcmp.c: Likewise.
6608         * libc/string/wmemcpy.c: Likewise.
6609         * libc/string/wmemmove.c: Likewise.
6610         * libc/string/wmemset.c: Likewise.
6611
6612 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6613
6614         * libc/misc/unctrl.c: Replace FUNCTION description.
6615         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
6616         * libc/stdio/getdelim.c: Fix spelling errors.
6617         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
6618         * libc/stdio/putw.c: Likewise.
6619         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
6620         documentation.
6621         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
6622         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
6623         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
6624         * libc/stdlib/mlock.c: Likewise.
6625         * libc/stdlib/mstats.c: Likewise.
6626         * libc/time/tzlock.c: Likewise.
6627         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
6628         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
6629         and hyphenate "pseudo-random".
6630         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
6631         * libc/string/strncat.c: Likewise.
6632         * libc/string/memchr.c: Remove extra ">" character in  documentation.
6633         * libc/string/strcspn.c: Use "characters" instead of "chars".
6634         * libc/string/strpbrk.c: Likewise.
6635         * libc/string/strerror_r.c: Capitalize "GNU".
6636         * libc/string/strnlen.c: Likewise.
6637         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
6638         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
6639         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
6640         * libc/string/wcschr.c: Likewise.
6641         * libc/string/wcscmp.c: Likewise.
6642         * libc/string/wcscpy.c: Likewise.
6643         * libc/string/wcscspn.c: Likewise.
6644         * libc/string/wcslen.c: Likewise.
6645         * libc/string/wcsncat.c: Likewise.
6646         * libc/string/wcsncmp.c: Likewise.
6647         * libc/string/wcsncpy.c: Likewise.
6648         * libc/string/wcsnlen.c: Likewise.
6649         * libc/string/wcspbrk.c: Likewise.
6650         * libc/string/wcsrchr.c: Likewise.
6651         * libc/string/wcsspn.c: Likewise.
6652         * libc/string/wmemchr.c: Likewise.
6653         * libc/string/wmemcmp.c: Likewise.
6654         * libc/string/wmemcpy.c: Likewise.
6655         * libc/string/wmemset.c: Likewise.
6656         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
6657         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
6658         * libc/string/wcwidth.c: Likewise.
6659         * libm/common/s_modf.c: Remove extra period from documentation.
6660         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
6661         documentation.
6662         * libm/mathfp/s_isnan.c: Likewise.
6663         * libm/math/s_ldexp.c: Fix punctuation.
6664         * libm/mathfp/s_ldexp.c: Likewise.
6665         * libm/math/w_log.c: Likewise.
6666         * libm/mathfp/s_logarithm.c: Likewise.
6667         * libm/math/w_j0.c: Add spaces to FUNCTION description.
6668         * libm/mathfp/w_jn.c: Likewise.
6669
6670 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
6671
6672         * libc/posix/scandir.c (scandir): Update the function
6673         prototype to match the header.
6674         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
6675         extraneous #endif.
6676         * libc/sys/linux/sys/lock.h: Do not include
6677         machine/weakalias.h, since it's not used by this file.
6678
6679 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
6680
6681         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
6682         directories can override properly.
6683
6684 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
6685
6686         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
6687         gcc is 3.3 or greater, use special gcc builtins.
6688
6689 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
6690
6691         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
6692
6693 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
6694
6695         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
6696
6697 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6698
6699         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
6700         * libm/common/Makefile.am: Add s_infconst.c support.
6701         * libm/common/Makefile.in: Regenerated.
6702         * libm/common/s_infconst.c: New file with float and
6703         long double infinity support added.
6704         * libm/math/Makefile.am: Remove s_infconst.c support.
6705         * libm/math/Makefile.in: Regenerated.
6706         * libm/math/s_infconst.c: Moved to common directory.
6707         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
6708         * libm/mathfp/Makefile.in: Regenerated.
6709         * libm/mathfp/s_infconst.c: Moved to common directory.
6710
6711 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6712
6713         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
6714         dbgprintf to prevent conflict with new dprintf function.
6715
6716 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6717
6718         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
6719         "nan" processing for systems that have long double support.
6720
6721 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6722
6723         * libc/sys/linux/sys/types.h (int8_t): Add type.
6724
6725 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6726
6727         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
6728         * libm/common/Makefile.in: Regenerate.
6729         * libm/common/common.tex: Delete file.
6730         * libm/math/math.tex: Include .def files from common/.
6731         * libm/mathfp/mathfp.tex: Likewise.
6732
6733 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6734
6735         * libc/libc.texinfo (Top): Surround this node with @ifnottex
6736         instead of @ifinfo.  Update menu to add Introduction and match
6737         SUBDIRS order.
6738         (Introduction): New section.
6739
6740 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6741
6742         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
6743         with "Red Hat newlib C Library".
6744         * libc/sys.tex (Stubs): Likewise.
6745         * libm/math/math.tex (Math): Likewise.
6746         * libm/mathfp/mathfp.tex (Math): Likewise.
6747
6748 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
6749
6750         * libc/include/stdio.h (dprintf): New declaration.
6751         (vdprintf): Ditto.
6752         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
6753         and vdprintf.c.
6754         * libc/stdio/Makefile.in: Regenerate.
6755         * libc/stdio/dprintf.c: New file.
6756         * libc/stdio/vdprintf.c: New file.
6757         * libc/stdio/stdio.tex (dprintf): New entry.
6758
6759 2005-10-11  David Weatherford  <weath@tensilica.com>
6760
6761         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
6762         Print "inf" and "nan" in lowercase for e/f/g formats and in
6763         uppercase for E/F/G formats.
6764
6765 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
6766
6767         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
6768         to ENOMEM on failure.
6769
6770 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6771
6772         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
6773
6774 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
6775
6776         * libc/include/stdint.h: Move magic to set __have_long* to the
6777         beginning.  Use #if __have* instead of #if defined(__have*).
6778         Minor typo fixes.
6779
6780 2005-10-04  James E Wilson  <wilson@specifix.com>
6781
6782         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
6783         #error.
6784
6785 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
6786
6787         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
6788         incorporate Ralf's change below.
6789
6790 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
6791
6792         * libc/include/stdint.h:
6793         Use __INTMAX_TYPE__ to derive intmax_t.
6794         Use __UINTMAX_TYPE__ to derive uintmax_t.
6795         Fix minor typo.
6796
6797 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
6798
6799         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
6800         handling GCC >= 4.
6801
6802 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6803
6804         * libc/sys/linux/include/stdint.h: Update to match functionality
6805         of generic newlib stdint.h.
6806
6807 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6808
6809         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
6810         and do not #undef the macro after it is used.  Fix typos.
6811         Also change 64-bit constants to use the __have_long64 and
6812         __have_longlong64 flags to determine if long or long long
6813         constants should be used.
6814         * libc/include/inttypes.h: Include stddef.h to get wchar_t
6815         type defined.
6816
6817 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
6818
6819         * libc/include/stdint.h: Fix typo in names of
6820         LEAST macros.
6821
6822 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6823
6824         * libc/sys/rtems/include/inttypes.h: Moved to...
6825         * libc/include/inttypes.h: ...here.
6826
6827 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
6828
6829         * libc/sys/rtems/include/stdint.h: Moved to...
6830         * libc/include/stdint.h: ...here.
6831
6832 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
6833
6834         * Makefile.am: Add include files under bits sub-directory.
6835         * Makefile.in: Regenerated.
6836         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
6837         actual value of 1 to be compatible with newer glibc headers.
6838         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
6839         glibc headers.
6840         * libc/sys/linux/sys/dirent.h: Ditto.
6841         * libc/sys/linux/argp/argp-xinl.c: Ditto.
6842         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
6843         profile_fixup routines are marked used so they won't be
6844         optimized away.
6845         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
6846         to mark functions as weak.
6847         * libc/sys/linux/dl/dl-open.c: Ditto.
6848         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
6849         rules about lvalues.
6850         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
6851         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
6852         weak_extern macro to mark functions as weak.  Instead always
6853         use #pragma weak.
6854         * iconvdata/jis0208.h: Fix to work with gcc4.
6855         * libc/sys/linux/dl/dl-load.c: Ditto.
6856         * libc/sys/linux/dl/dl-reloc.c: Ditto.
6857         * libc/sys/linux/dl/do-rel.h: Ditto.
6858         * libc/sys/linux/dl/dynamic-link.h: Ditto.
6859         * libc/sys/linux/include/ltdl.h: Ditto.
6860         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
6861         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
6862         * libc/sys/linux/net/ns_ntoa.c: Ditto.
6863         * libc/sys/linux/bits/initspin.h: New file.
6864         * libc/sys/linux/bits/libc-lock.h: Ditto.
6865         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
6866         * libc/sys/linux/bits/typesizes.h: Ditto.
6867
6868 2005-09-08  Eric Blake  <ebb9@byu.net>
6869
6870         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
6871         before is NULL.
6872
6873 2005-09-08  Brian Dessent  <brian@dessent.net>
6874
6875         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
6876         mantissa.
6877         * s_lrint.c: Ditto.
6878
6879 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
6880
6881         * libc/include/stdio.h: Add prototype for viprintf.
6882
6883 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
6884
6885         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
6886         any positive power results in 0.
6887         * libm/mathfp/sf_pow.c (powf): Ditto.
6888
6889 2005-08-31  Paul Brook  <paul@codesourcery.com>
6890
6891         * configure.host: Set have_crt0 to no for Arm targts when not
6892         providing syscalls.  Set sys_dir=arm unconditionally.
6893         Default have_crt0 based on sys_dir.
6894         * configure.in: Use have_crt0.
6895         * libc/configure.in: Ditto.
6896         * libc/sys/configure.in: Ditto.
6897         * configure: Regenerate.
6898         * libc/configure: Regenerate.
6899         * libc/sys/configure: Regenerate.
6900         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
6901         Only build other files when providing syscalls.
6902         * libc/sys/arm/Makefile.in: Regenerate.
6903         * libc/sys/arm/aeabi_atexit.c: New file.
6904
6905 2005-08-26  Christopher Faylor  <cgf@timesys.com>
6906
6907         * libc/include/string.h: Revert previous change.
6908
6909 2005-08-25  Christopher Faylor  <cgf@timesys.com>
6910
6911         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
6912
6913 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
6914
6915         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
6916         define _opendir as opendir, _readdir as readdir, and
6917         _closedir as closedir so that the implementations in
6918         libc/posix will be used.
6919
6920 2005-08-10  DJ Delorie  <dj@redhat.com>
6921
6922         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
6923
6924 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
6925
6926         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
6927         * libm/common/s_max.c: Ditto.
6928         * libm/common/sf_fmin.c: Ditto.
6929         * libm/common/s_min.c: Ditto.
6930
6931 2005-08-10  DJ Delorie  <dj@redhat.com>
6932
6933         * configure.host: Add m32c support.
6934         * libc/include/machine/ieeefp.h: Likewise.
6935         * libc/include/machine/setjmp.h: Likewise.
6936         * libc/include/sys/config.h: Likewise.
6937         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
6938         * libc/machine/m32c/aclocal.m4: New file.
6939         * libc/machine/m32c/configure: Ditto.
6940         * libc/machine/m32c/configure.in: Ditto.
6941         * libc/machine/m32c/Makefile.am: Ditto.
6942         * libc/machine/m32c/Makefile.in: Ditto.
6943         * libc/machine/m32c/setjmp.S: Ditto.
6944
6945 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
6946
6947         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
6948         to the value for 2^126.
6949
6950 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
6951
6952         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
6953         used.
6954
6955 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
6956            Darin Petkov <darin@tensilica.com>
6957
6958        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
6959
6960 2005-07-19  Paul Brook  <paul@codesourcery.com>
6961
6962         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
6963
6964 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
6965
6966         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
6967         names after PASS and FAIL which do not depend on source directory
6968         name or on whether test passed or failed.
6969         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
6970
6971 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
6972
6973         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
6974
6975 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
6976
6977         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
6978         twice for the same directory. _closedir calls free, and freeing
6979         the same pointer twice may cause a crash.
6980
6981 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
6982
6983         * configure.host: Added entry for ms1*.
6984         * libc/include/machine/ieeefp.h: Handle ms1.
6985         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
6986         * libc/machine/ms1/aclocal.m4: New.
6987         * libc/machine/ms1/configure: New.
6988         * libc/machine/ms1/configure.in: New.
6989         * libc/machine/ms1/Makefile.am: New.
6990         * libc/machine/ms1/Makefile.in: New.
6991         * libc/machine/ms1/setjmp.S: New.
6992
6993 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
6994
6995         * Makefile.am (site.exp): Set tmpdir.
6996         * Makefile.in: Regenerated.
6997         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
6998         executables in $tmpdir.
6999         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7000         libgloss version if not running in the build directory.
7001         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7002         $tmpdir.
7003         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7004         in $tmpdir.
7005
7006 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7007
7008         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7009         and miscalculation caused by fp representation of zero.
7010         * libm/common/sf_lrint.c (lrintf):  Likewise.
7011
7012 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7013
7014         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7015         determine characteristics of long double.  Use a union instead.
7016         * ldtoa.c (_ldtoa_r): Ditto.
7017         (_ldcheck): Ditto.
7018         (_strtold): Ditto.
7019         (union uconv): New union.
7020
7021 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7022
7023         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7024         instead of memcpy.
7025
7026 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7027
7028         * configure.host (mn10300-*): Add long long I/O support by default.
7029
7030 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7031
7032         * libc/sys/linux/getpwuid.c: Removed.
7033         * libc/sys/linux/getpwnam.c: Removed.
7034         * libc/sys/linux/getpwent.c: New file containing logic
7035         from files removed above.  This allows overriding of file
7036         in libc/unix.
7037         * libc/sys/linux/Makefile.am: Support changes above.
7038         * libc/sys/linux/Makefile.in: Regenerated.
7039
7040 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7041
7042         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7043         when checking for multiple flags.
7044
7045 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7046
7047         * configure.host <cris-*-* | crisv32-*-*>: Set
7048         default_newlib_io_long_long="yes".
7049
7050 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7051
7052         * libc/include/libgen.h: New file.
7053
7054 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7055
7056         * libc/unix/Makefile.am: Add support for basename and dirname.
7057         * libc/unix/Makefile.in: Regenerated.
7058         * libc/unix/basename.c: New file.
7059         * libc/unix/dirname.c: New file.
7060
7061 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7062
7063         * libc/sys/linux/inode.c (lchown): New function.
7064
7065 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7066
7067         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7068         ELIX level is defined.
7069         * libc/unix/Makefile.in: Regenerated.
7070
7071 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7072
7073         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7074         something that looks like a "NaN", put back the characters processed.
7075
7076 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7077
7078         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7079
7080 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7081
7082         * configure.host: For cygwin, redefine CC with cygwin include directory
7083         first to mimic the behavior of the top-level configury.  Move include
7084         directory out of newlib_cflags.
7085
7086 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7087
7088         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7089         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7090         than errno.
7091
7092 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7093
7094         * libc/include/machine/_types.h: Make trivial change to comment to
7095         avoid a spurious warning from gcc.
7096
7097 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7098
7099         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7100         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7101         reent.h include.
7102
7103 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7104             Corinna Vinschen  <corinna@vinschen.de>
7105
7106         * libc/include/ctype.h: Remove invalid +1 offset from
7107         ctype macro references to __ctype_ptr.
7108         (_ctype_): Move declaration outside #ifndef __cplusplus.
7109
7110 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7111
7112         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7113         evaluate first parameter only once.
7114         (siglongjmp): Ditto.
7115
7116 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7117
7118         * configure.in: Add new check to see if compiler supports
7119         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7120         * configure: Regenerated.
7121         * Makefile.in: Ditto.
7122         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7123         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7124         aliasing the _ctype_ array to _ctype_b.
7125         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7126         _ctype_ as deprecated.
7127
7128 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7129
7130         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7131         -DCOMPACT_CTYPE.
7132
7133 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7134
7135         * libc/sys/rtems/include/inttypes.h: New file.
7136         * libc/sys/rtems/include/stdint.h: Ditto.
7137
7138 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7139
7140         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7141
7142 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7143
7144         * libc/include/machine/_types.h: New file.
7145         * libc/include/sys/types.h: Do not check for __rtems__
7146         when including <machine/_types.h>.  Remove some redundant
7147         declarations now that <machine/_types.h> is included.
7148         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7149         shared header file.
7150
7151 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7152
7153         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7154         L qualifier for these long constants.
7155
7156 2005-02-25  Eric Blake  <ebb9@byu.net>
7157
7158         * libc/include/time.h (__tzrule_struct): Make offset long, since
7159         a 16-bit int overflows on a 12-hour offset.
7160         * libc/sys/linux/include/time.h: Ditto.
7161         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7162         * libc/time/mktm_r.c: Ditto.
7163         * libc/time/gettzinfo.c: Ditto.
7164         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7165         years.  Fix '%z' to use long, not int.
7166
7167 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7168
7169         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7170         manipulate float values in integer form.
7171         * libm/common/sf_round.c: Ditto.
7172
7173 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7174
7175         * libc/include/sys/types.h [__rtems__]: Include new
7176         header file machine/_types.h.
7177         * libc/include/machine/types.h: Ditto.
7178         * libc/sys/rtems/machine/_types.h: New file.
7179
7180 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7181
7182         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7183         (timezone): Drop cast from definition.
7184
7185 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7186
7187         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7188         (__tzrule_type, __tzinfo_type): New types.
7189         (__gettzinfo): New function.
7190         * libc/sys/linux/include/time.h: Ditto.
7191         * libc/time/Makefile.am: Add gettzinfo.c.
7192         * libc/time/Makefile.in: Regenerated.
7193         * libc/time/local.h: Moved __tzrule_type to time.h.
7194         * libc/time/mktime.c: Call __gettzinfo to reference
7195         __tznorth, __tzyear, and __tzrule array.
7196         * libc/time/mktm_r.c: Ditto.
7197         * libc/time/strftime.c: Ditto.
7198         * libc/time/tzset_r.c: Ditto.  Also remove definition
7199         of __tzrule which is now in gettzinfo.c.  Change _timezone
7200         references to not cast to time_t.
7201         * libc/time/gettzinfo.c: New file.
7202
7203 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7204
7205         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7206
7207 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7208
7209         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7210
7211 2005-02-16  Eric Blake  <ebb9@byu.net>
7212
7213         * libc/time/time.tex: Improve the documentation.
7214         * libc/time/strftime.c: Improve the documentation.
7215         (iso_year_adjust): New helper function.
7216         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7217         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7218         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7219         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7220         Avoid core dumps on valid inputs (maxsize == 0, or
7221         tim_p->tm_isdst > 1).
7222
7223 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7224
7225         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7226         members to uid_t and gid_t according to SUSv3.
7227         * libc/include/sys/time.h (utimes):  Change second parameter
7228         to const according to SUSv3.
7229
7230 2005-02-07  Antony King  <antony.king@st.com>
7231
7232         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
7233         called before _flockfile to prevent lock object use before
7234         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
7235         take a struct _reent * instead of a FILE *.
7236         * libc/stdio/fclose.c (_fclose_r): Ditto.
7237         * libc/stdio/feof.c (feof): Ditto.
7238         * libc/stdio/ferror.c (ferror): Ditto.
7239         * libc/stdio/fflush.c (fflush): Ditto.
7240         * libc/stdio/fgetc.c (fgetc): Ditto.
7241         * libc/stdio/fgets.c (fgets): Ditto.
7242         * libc/stdio/fileno.c (fileno): Ditto.
7243         * libc/stdio/fputc.c (fputc): Ditto.
7244         * libc/stdio/fputs.c (fputs): Ditto.
7245         * libc/stdio/fread.c (fread): Ditto.
7246         * libc/stdio/freopen.c (_freopen_r): Ditto.
7247         * libc/stdio/fseek.c (_fseek_r): Ditto.
7248         * libc/stdio/ftell.c (_ftell_r): Ditto.
7249         * libc/stdio/fwrite.c (fwrite): Ditto.
7250         * libc/stdio/getc.c (getc): Ditto.
7251         * libc/stdio/getdelim.c (__getdelim): Ditto.
7252         * libc/stdio/putc.c (putc): Ditto.
7253         * libc/stdio/setvbuf.c (setvbuf): Ditto.
7254         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
7255         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
7256         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7257         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
7258         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
7259         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
7260         _reent * instead of a FILE * and so replace incorrect use of
7261         _REENT with argument.
7262         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
7263         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
7264         CHECK_INIT() take a struct _reent * instead of a FILE *.
7265         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
7266         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
7267         * libc/stdio/perror.c (perror): Ditto.
7268         * libc/stdio/printf.c (printf, _printf_r): Ditto.
7269         * libc/stdio/putchar.c (putchar): Ditto.
7270         * libc/stdio/puts.c (puts): Ditto.
7271         * libc/stdio/refill.c (__srefill): Ditto.
7272         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
7273         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
7274         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
7275         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
7276         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
7277         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
7278         * libc/stdio/wbuf.c (__swbuf): Ditto.
7279         * libc/stdio/wsetup.c (__swsetup): Ditto.
7280         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
7281         * libc/stdlib/mstats.c (_mstats_r): Ditto.
7282         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
7283         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
7284         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
7285         to _flockfile and _funlockfile; rely on locking in _ftell_r.
7286         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
7287         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
7288         initialision of _data field in FILE structure.
7289         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
7290
7291 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7292
7293         * libc/stdio/findfp.c (__sinit): Protect with new lock.
7294         (__sinit_lock): New lock.
7295         (__sinit_lock_acquire, __sinit_lock_release): New functions.
7296         * libc/stdio/local.h: Add reference to new __sinit locking
7297         functions.
7298
7299 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7300
7301         * libc/include/math.h (isfinite, isnormal, isunordered): Change
7302         input variable names to avoid mixups with nesting macros.
7303
7304 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7305
7306         * configure.host: Add support for cris-*-* and crisv32-*-*.
7307         * libc/include/machine/ieeefp.h: Ditto.
7308         * libc/include/machine/setjmp.h: Ditto.
7309         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
7310         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
7311         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
7312         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
7313         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
7314         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
7315         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
7316         files.
7317
7318 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7319
7320         * testsuite/newlib.string/memmove1.c: New test.
7321
7322 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7323
7324         * testsuite/include/check.h: Include stdlib.h.
7325
7326 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7327
7328         * Makefile.am (stmp-targ-include): Support include header files
7329         from machine directories.
7330         (install-data-local): Ditto.
7331         * Makefile.in: Regenerate.
7332
7333 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7334
7335         * libc/include/string.h: Remove Linux-specific declaration of
7336         strsignal and add #include <sys/string.h>.
7337         * libc/include/sys/string.h: New file.
7338         * libc/include/sys/linux/sys/string.h: New file with strsignal
7339         declaration deleted above.
7340
7341 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7342
7343         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
7344         to POSIX standard for "C" locale.  Allow %E and %O modifiers
7345         to be ignored as long as they precede valid specifiers according
7346         to POSIX.
7347
7348 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7349
7350         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7351         environment variable is set.
7352
7353 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7354
7355         * tzset_r.c (_tzname): Add a comma.
7356
7357 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
7358
7359         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
7360         _VFPRINTF_R.
7361
7362 2005-01-07  Paul Brook  <paul@codesourcery.com>
7363
7364         * configure.in: Add test for .init_array.
7365         * configure: Regenerate.
7366         * newlib.hin: Add HAVE_INITFINI_ARRAY.
7367         * libc/misc/Makefile.am: Add init.c
7368         * libc/misc/Makefile.in: Regenerate.
7369         * libc/misc/init.c: New file.
7370         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
7371         _init/_fini if they exist.
7372
7373 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7374
7375         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
7376         * (strtof): Ditto.
7377         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
7378         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
7379         functions for use by strtod and strtof.
7380         * Makefile.in: Regenerated.
7381
7382 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7383
7384         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
7385         bit-test in combination with NULL test.
7386
7387 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7388
7389         * README: Fix typo of LGPL.  Change "license" to "copyright".
7390
7391 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
7392
7393         * NEWS: Update with 1.13.0 info.
7394         * README: Ditto.
7395         * acinclude.m4: Change version number to 1.13.0.
7396         * aclocal.m4: Regenerated.
7397         * configure: Ditto.
7398         * doc/aclocal.m4: Ditto.
7399         * doc/configure: Ditto.
7400         * libc/*/aclocal.m4: Ditto.
7401         * libc/*/configure: Ditto.
7402         * libc/libc.texinfo: Ditto.
7403         * libm/*/aclocal.m4: Ditto.
7404         * libm/*/configure: Ditto.
7405         * libm/libm.texinfo: Ditto.
7406         * libc/sys/linux/shared.ld: Add VERS_1.13.
7407
7408 2004-12-17  Christian Groessler  <chris@groessler.org>
7409
7410         * libc/machine/z8k/memcmp.S: New file.
7411         * libc/machine/z8k/memcpy.S: Ditto.
7412         * libc/machine/z8k/memmove.S: Ditto.
7413         * libc/machine/z8k/memset.S: Ditto.
7414         * libc/machine/z8k/Makefile.am: Add new files.
7415         * libc/machine/z8k/Makefile.in: Regenerated.
7416         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
7417         part.  Implement Z8002 stdcall version.
7418
7419 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
7420
7421         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
7422         a low-level read if we don't get the full amount of bytes so
7423         EOF or error flags will be set.
7424
7425 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
7426
7427         * libc/time/tzset_r (_tzset_r): Properly skip over
7428         '/' when it is detected.
7429
7430 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7431
7432         * libc/time/tzset_r (_tzset_r): Fix loop.
7433
7434 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7435
7436         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
7437         m_day.
7438         (__tzcalc_limits): Fix reference to month array to be zero-based.
7439
7440 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
7441
7442         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
7443         and usleep.
7444
7445 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
7446
7447         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
7448         libgcc dependencies.
7449         (libm_la_LDFLAGS): Ditto.
7450         * Makefile.in: Regenerated.
7451
7452 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
7453
7454         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
7455         our link to use readlink so as to preserve any relative link created
7456         by install-toollibLIBRARIES.
7457         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
7458
7459 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
7460
7461         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
7462         time_t before including sys/stat.h, which uses it.
7463         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
7464         <linux/time.h> just prior to definition of __KERNEL__ so as to
7465         allow building on Debian Linux where otherwise, mktime would
7466         be redefined.
7467
7468 2004-11-26  Paul Brook  <paul@codesourcery.com>
7469
7470         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
7471
7472 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7473
7474         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
7475         const for value string parameter to match Single Unix and glibc.
7476         * libc/stdlib/putenv.c: Ditto.
7477         * libc/stdlib/putenv_r.c: Ditto.
7478
7479 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7480
7481         * libc/stdio/Makefile.am: Fix missing vfscanf.
7482         * libc/stdio/Makefile.in: Regenerated.
7483
7484 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
7485
7486         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
7487         do some reordering.
7488         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
7489         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
7490         family functions.
7491         * libc/stdio/Makefile.in: Regenerated.
7492         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
7493         * libc/stdio/iprintf.c: Ditto.
7494         * libc/stdio/local.h (__svfiscanf_r): New prototype.
7495         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
7496         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
7497         * libc/stdio/stdio.tex: Add new functions.
7498         * libc/stdio/vfscanf.c: Split out __sccl function to separate
7499         file and add special name defines so this file can be used
7500         to build vfiscanf.o.
7501         * libc/stdio/asiprintf.c: New file.
7502         * libc/stdio/fiscanf.c: Ditto.
7503         * libc/stdio/iscanf.c: Ditto.
7504         * libc/stdio/sccl.c: Ditto.
7505         * libc/stdio/siscanf.c: Ditto.
7506         * libc/stdio/vasiprintf.c: Ditto.
7507         * libc/stdio/viprintf.c: Ditto.
7508         * libc/stdio/viscanf.c: Ditto.
7509         * libc/stdio/vsiprintf.c: Ditto.
7510         * libc/stdio/vsiscanf.c: Ditto.
7511         * libc/stdio/vsniprintf.c: Ditto.
7512
7513 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
7514
7515         * libc/include/stdio.h: Add sniprintf.
7516         * libc/stdio/Makefile.am: Add sniprintf.c.
7517         * libc/stdio/Makefile.in: Regenerated.
7518         * libc/stdio/sniprintf.c: New file.
7519         * libc/stdio/stdio.tex: Add sniprintf.
7520
7521 2004-11-17  Christopher Faylor  <cgf@timesys.com>
7522
7523         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
7524         EOF flag if successful.
7525
7526 2004-10-28  Christopher Faylor  <cgf@timesys.com>
7527
7528         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
7529         so that all relevant definitions have been performed for use in the
7530         include.
7531
7532 2004-10-26  Jason Tishler  <jason@tishler.net>
7533
7534         * libc/stdio/fread.c (fread): Fix return value for unbuffered
7535         fread.
7536
7537 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7538
7539         * libc/include/machine/setjmp.h: Add AVR support.
7540         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
7541
7542 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
7543
7544         * libc/include/sys/signal.h: If <signal.h> didn't include
7545         this header file, include <signal.h> to account for
7546         applications that take advantage that the two header
7547         files are the same in glibc.
7548
7549 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
7550
7551         * configure.host: Add support for crx.
7552         * libc/include/machine/ieeefp.h: Ditto.
7553         * libc/include/machine/setjmp.h: Ditto.
7554         * libc/machine/crx/Makefile.am: New file.
7555         * libc/machine/crx/configure.in: Ditto.
7556         * libc/machine/crx/setjmp.S: Ditto.
7557         * libc/machine/crx/getenv.c: Ditto.
7558         * libc/machine/crx/aclocal.m4: Generate.
7559         * libc/machine/crx/configure: Ditto.
7560         * libc/machine/crx/Makefile.in: Ditto.
7561         * libc/machine/crx/sys/asm.h: New file.
7562         * libc/machine/crx/sys/libh.h: Ditto.
7563         * libc/machine/crx/sys/syscall.h: Ditto.
7564
7565 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
7566
7567         * Makefile.am (stmp-targ-include): Support sys header files
7568         from machine directories.
7569         * Makefile.in: Regenerated.
7570
7571 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
7572
7573         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
7574         count skipped zero characters as part of the nread count for %n.
7575         * libc/machine/powerpc/vfscanf.c: Ditto.
7576
7577 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
7578
7579         * libc/stdio/local.h: Include <stdlib.h>.
7580
7581 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
7582
7583         * libc/stdio/fread.c (fread): Include <malloc.h>.
7584
7585 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
7586
7587         * libc/stdio/fread.c (fread):  For non-space-optimized case,
7588         add special code for unbuffered files to use user buffer and
7589         only require one low-level system read.
7590
7591 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
7592
7593         * libc/machine/xscale/setjmp.S: New file, copied from
7594         libc/machine/arm/setjmp.S.
7595         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
7596         * libc/machine/xscale/Makefile.in: Regenerate.
7597
7598 2004-09-16  Antony King  <antony.king@st.com>
7599
7600         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
7601         with locking API.
7602         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
7603         check for__SSTR in _flags and if set, skip lock request.
7604         (_funlockfile)[!SINGLE_THREAD]: Ditto.
7605         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
7606         not NULL.
7607         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
7608         initialisation of _file to -1 in local FILE.
7609         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
7610         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
7611         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
7612         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7613         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
7614         _flags in local FILE to prevent locking.
7615         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7616
7617 2004-09-16  Antony King  <antony.king@st.com>
7618
7619         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
7620         and only walk the reentrancy parameter.
7621         (_fwalk_reent): Ditto.
7622         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
7623
7624 2004-09-16  Antony King  <antony.king@st.com>
7625
7626         * libc/stdio64/freopen64.c: Remove casting of fp lock to
7627         _LOCK_RECURSIVE_T.
7628
7629 2004-09-16  Antony King  <antony.king@st.com>
7630
7631         * libc/time/tzlock.c: Add default stubs that use generic
7632         locking code.
7633
7634 2004-09-16  Antony King  <antony.king@st.com>
7635
7636         * libc/ctype/ctype.tex: Added missing documentation.
7637         * libc/stdio/stdio.tex Ditto.
7638         * libc/stdlib/stdlib.tex Ditto.
7639         * libc/string/strings.tex Ditto.
7640         * libc/time/time.tex: Ditto.
7641         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
7642
7643 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
7644
7645         * libc/reent/impure.c (reent_data): Define as alias to impure_data
7646         when building for Cygwin.
7647         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
7648         _global_impure_ptr.
7649
7650 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
7651
7652         * configure.host: Reverting 2004-09-14 change as fix has occurred on
7653         Cygwin side.
7654         * configure.in: Ditto.
7655         * libc/configure.in: Ditto.
7656         * libc/sys/configure.in: Ditto.
7657         * configure: Ditto.
7658         * libc/configure: Ditto.
7659         * libc/sys/configure: Ditto.
7660         * libc/include/sys/reent.h: Ditto.
7661         * libc/stdlib/__atexit.c: Ditto.
7662         * libc/stdlib/__call_atexit.c: Ditto.
7663         * libc/stdlib/cxa_atexit.c: Ditto.
7664         * libc/stdlib/cxa_finalize.c: Ditto.
7665         * libc/sys/cygwin/Makefile.am: Removed again.
7666         * libc/sys/cygwin/Makefile.in: Ditto.
7667         * libc/sys/cygwin/aclocal.m4: Ditto.
7668         * libc/sys/cygwin/configure: Ditto.
7669         * libc/sys/cygwin/configure.in: Ditto.
7670         * libc/sys/cygwin/dummy.c: Ditto.
7671         * libc/sys/cygwin/sys/reent.h: Ditto.
7672
7673 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
7674
7675         * configure.host: Add Cygwin sys directory.
7676         * configure.in: Do not set CRT0 for cygwin.
7677         * libc/configure.in: Ditto.
7678         * libc/sys/configure.in: Ditto.
7679         * configure: Regenerated.
7680         * libc/configure: Ditto.
7681         * libc/sys/configure: Ditto.
7682         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
7683         * libc/stdlib/__atexit.c: Keep cxa support protected by new
7684         __REENT_HAS_CXA_SUPPORT flag.
7685         * libc/stdlib/__call_atexit.c: Ditto.
7686         * libc/stdlib/cxa_atexit.c: Ditto.
7687         * libc/stdlib/cxa_finalize.c: Ditto.
7688         * libc/sys/cygwin/Makefile.am: New file.
7689         * libc/sys/cygwin/Makefile.in: Ditto.
7690         * libc/sys/cygwin/aclocal.m4: Ditto.
7691         * libc/sys/cygwin/configure: Ditto.
7692         * libc/sys/cygwin/configure.in: Ditto.
7693         * libc/sys/cygwin/dummy.c: Ditto.
7694         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
7695         version of reent.h.
7696
7697 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7698
7699         * libc/iconv/iconv.tex: Updated with new content.
7700         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
7701         instead of NLS_DEFAULT_NLSPATH.
7702         * libc/iconv/lib/iconvnls.h: Fix typo.
7703         * libc/include/sys/iconvnls.h: New file.
7704
7705 2004-09-09  Paul Brook  <paul@codesourcery.com>
7706
7707         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
7708         and _is_cxa.
7709         (struct _atexit): Add _next when _REENT_SMALL.
7710         (struct _reent): Add _atexit0 when _REENT_SMALL.
7711         (_REENT_INIT_PTR): Adjust.
7712         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
7713         __call_exit.c.
7714         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
7715         * libc/stdlib/Makefile.in: Regenerate.
7716         * libc/stdlib/__atexit.c: New file.
7717         * libc/stdlib/__call_atexit.c: New file.
7718         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
7719         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
7720         * libc/stdlib/cxa_atexit.c: New file.
7721         * libc/stdlib/cxa_finalize.c: New file.
7722         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
7723         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
7724         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
7725         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
7726         _on_exit_args_ptr.
7727
7728 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
7729
7730         * libc/include/sys/unistd.h (getpass): Change prototype to use
7731         const instead of __const.
7732
7733 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7734
7735         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
7736         #if.
7737
7738 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
7739
7740         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
7741         on linux systems with glibc 2.3.3 installed.
7742         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
7743         profile_fixup so newlib can build on fc3 system.
7744
7745 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
7746
7747         Introduce SH2a support.
7748         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
7749         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
7750         __SH2A_SINGLE_ONLY__, too.
7751         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
7752         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
7753         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
7754         2004-02-10  DJ Delorie  <dj@redhat.com>
7755         * libc/sys/sh/crt0.S (start_l): Support sh2a.
7756
7757 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
7758
7759         * libc/time/strptime.c: Correct full-name of "March" typo.
7760
7761 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
7762
7763         * configure.host (h8300*-*-*): Default long long printing support.
7764
7765 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
7766
7767         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
7768         calls, if realloc fails, free up buffer as it is no longer
7769         used.
7770
7771 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7772
7773         * libc/iconv/iconv.tex: Updated to represent recent changes.
7774         * libc/iconv/lib/iconv.c: Documentation updated.
7775
7776 2004-07-07  Nick Clifton  <nickc@redhat.com>
7777
7778         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
7779         for xStormy16.
7780
7781 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
7782
7783         * configure.host (mips*-*-elf*): Default long long printing
7784         support.
7785
7786 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
7787
7788         * libc/Makefile.am (libc.dvi): Add target and specify
7789         same dependencies as libc.info.
7790         * libc/Makefile.in: Regenerated.
7791         * libm/Makefile.am (libm.dvi): Add target and specify
7792         same dependencies as libm.info.
7793         * libm/Makefile.in: Regenerated.
7794
7795 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7796
7797         * acinclude.m4: Move --enable-newlib-iconv option back here.
7798         * configure.in: Remove --enable-newlib-iconv option.  Don't
7799         tie iconv support to --enable-newlib-mb.
7800         * aclocal.m4: Regenerated.
7801         * configure: Ditto.
7802         * doc/aclocal.m4, doc/configure: Ditto.
7803         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
7804         * libm/*/aclocal.m4: Ditto.
7805         * libm/*/configure: Ditto.
7806         * libc/*/aclocal.m4: Ditto.
7807         * libc/*/configure: Ditto.
7808
7809 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7810
7811         * acinclude.m4: Move iconv options into configure.in.
7812         * aclocal.m4: Regenerated.
7813         * configure: Ditto.
7814         * configure.in: Add iconv options.
7815         * newlib.hin: Add new iconv encodings and remove deleted ones.
7816         * doc/aclocal.m4: Regenerated.
7817         * doc/configure: Ditto.
7818         * iconvdata/aclocal.m4: Ditto.
7819         * iconvdata/configure: Ditto.
7820         * libc/iconv: Design change.  New size-optimized ccs format.
7821         * libc/iconv/AUTHORS: Removed.
7822         * libc/iconv/COPYING: Ditto.
7823         * libc/iconv/README.ORIGINAL: Ditto.
7824         * libc/iconv/README.TODO: Ditto.
7825         * libc/iconv/charset.aliases: Ditto.
7826         * libc/iconv/encoding.aliases: New file.
7827         * libc/iconv/Makefile.am: Updated.
7828         * libc/iconv/Makefile.in: Regenerated.
7829         * libc/iconv/iconv.tex: Updated.
7830         * libc/iconv/ccs/Makefile.am: Ditto.
7831         * libc/iconv/ccs/Makefile.in: Regenerated.
7832         * libc/iconv/ccs/big5.c: Updated.
7833         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
7834         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
7835         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
7836         * libc/iconv/ccs/cp775.c: Ditto.
7837         * libc/iconv/ccs/cp850.c: Ditto.
7838         * libc/iconv/ccs/cp852.c: Ditto.
7839         * libc/iconv/ccs/cp855.c: Ditto.
7840         * libc/iconv/ccs/cp866.c: Ditto.
7841         * libc/iconv/ccs/iso_8859_1.c: Ditto.
7842         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
7843         * libc/iconv/ccs/gb_2312_80.c: Ditto.
7844         * libc/iconv/ccs/iconv_mktbl: Ditto.
7845         * libc/iconv/ccs/jis_x0201.c: Ditto.
7846         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
7847         * libc/iconv/ccs/shift_jis.c: Ditto.
7848         * libc/iconv/ccs/us_ascii.c: Ditto.
7849         * libc/iconv/ccs/ccs.h: New file.
7850         * libc/iconv/ccs/ccsbi.c: Ditto.
7851         * libc/iconv/ccs/ccsbi.h: Ditto.
7852         * libc/iconv/ccs/ccsnames.h: Ditto.
7853         * libc/iconv/ccs/iso_8859_10.c: Ditto.
7854         * libc/iconv/ccs/iso_8859_11.c: Ditto.
7855         * libc/iconv/ccs/iso_8859_13.c: Ditto.
7856         * libc/iconv/ccs/iso_8859_14.c: Ditto.
7857         * libc/iconv/ccs/iso_8859_3.c: Ditto.
7858         * libc/iconv/ccs/iso_8859_6.c: Ditto.
7859         * libc/iconv/ccs/iso_8859_7.c: Ditto.
7860         * libc/iconv/ccs/iso_8859_8.c: Ditto.
7861         * libc/iconv/ccs/iso_8859_9.c: Ditto.
7862         * libc/iconv/ccs/iso_ir_111.c: Ditto.
7863         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
7864         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
7865         * libc/iconv/ccs/koi8_ru.c: Ditto.
7866         * libc/iconv/ccs/koi8_uni.c: Ditto.
7867         * libc/iconv/ccs/mktbl.pl: Ditto.
7868         * libc/iconv/ccs/win_1250.c: Ditto.
7869         * libc/iconv/ccs/win_1251.c: Ditto.
7870         * libc/iconv/ccs/win_1252.c: Ditto.
7871         * libc/iconv/ccs/win_1253.c: Ditto.
7872         * libc/iconv/ccs/win_1254.c: Ditto.
7873         * libc/iconv/ccs/win_1255.c: Ditto.
7874         * libc/iconv/ccs/win_1256.c: Ditto.
7875         * libc/iconv/ccs/win_1257.c: Ditto.
7876         * libc/iconv/ccs/win_1258.c: Ditto.
7877         * libc/iconv/ccs/iso_8859_15.c: Updated.
7878         * libc/iconv/ccs/iso_8859_2.c: Ditto.
7879         * libc/iconv/ccs/iso_8859_4.c: Ditto.
7880         * libc/iconv/ccs/iso_8859_5.c: Ditto.
7881         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
7882         * libc/iconv/ccs/koi8_r.c: Ditto.
7883         * libc/iconv/ccs/koi8_u.c: Ditto.
7884         * libc/iconv/ccs/ksx1001.c: Ditto.
7885         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
7886         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
7887         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
7888         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
7889         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
7890         * libc/iconv/ccs/binary/Makefile.am: Updated.
7891         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
7892         * libc/iconv/ccs/binary/big5.cct: Updated.
7893         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
7894         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
7895         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
7896         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
7897         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
7898         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
7899         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
7900         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
7901         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
7902         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
7903         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
7904         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
7905         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
7906         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
7907         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
7908         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
7909         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
7910         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
7911         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
7912         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
7913         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
7914         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
7915         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
7916         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
7917         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
7918         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
7919         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
7920         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
7921         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
7922         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
7923         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
7924         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
7925         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
7926         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
7927         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
7928         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
7929         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
7930         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
7931         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
7932         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
7933         * libc/iconv/ces/Makefile.am: Updated.
7934         * libc/iconv/ces/Makefile.in: Regenerated.
7935         * libc/iconv/ces/ucs-2-internal.c: Updated.
7936         * libc/iconv/ces/ucs-4-internal.c: Ditto.
7937         * libc/iconv/ces/utf-16.c: Ditto.
7938         * libc/iconv/ces/utf-8.c: Ditto.
7939         * libc/iconv/ces/cesbi.c: New file.
7940         * libc/iconv/ces/cesbi.h: Ditto.
7941         * libc/iconv/ces/cesdeps.h: Ditto.
7942         * libc/iconv/ces/euc.c: Ditto.
7943         * libc/iconv/ces/mkdeps.pl: Ditto.
7944         * libc/iconv/ces/table-pcs.c: Ditto.
7945         * libc/iconv/ces/table.c: Ditto.
7946         * libc/iconv/ces/ucs-2.c: Ditto.
7947         * libc/iconv/ces/ucs-4.c: Ditto.
7948         * libc/iconv/ces/us-ascii.c: Ditto.
7949         * libc/iconv/ces/euc-jp.c: Removed.
7950         * libc/iconv/ces/euc-kr.c: Ditto.
7951         * libc/iconv/ces/euc-tw.c: Ditto.
7952         * libc/iconv/ces/gb2312.c: Ditto.
7953         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
7954         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
7955         * libc/iconv/lib/Makefile.am: Updated.
7956         * libc/iconv/lib/Makefile.in: Regenerated.
7957         * libc/iconv/lib/endian.h: Updated.
7958         * libc/iconv/lib/iconv.c: Ditto.
7959         * libc/iconv/lib/local.h: Ditto.
7960         * libc/iconv/lib/aliases.c: Removed.
7961         * libc/iconv/lib/bialiasesi.c: Ditto.
7962         * libc/iconv/lib/biccs.c: Ditto.
7963         * libc/iconv/lib/bices.c: Ditto.
7964         * libc/iconv/lib/ccs.c: Ditto.
7965         * libc/iconv/lib/ces.c: Ditto.
7966         * libc/iconv/lib/ces_euc.c: Ditto.
7967         * libc/iconv/lib/ces_iso2022.c: Ditto.
7968         * libc/iconv/lib/ces_table.c: Ditto.
7969         * libc/iconv/lib/converter.c: Ditto.
7970         * libc/iconv/lib/deps.h: Ditto.
7971         * libc/iconv/lib/loaddata.c: Ditto.
7972         * libc/iconv/lib/aliasesbi.c: New file.
7973         * libc/iconv/lib/aliasesi.c: Ditto.
7974         * libc/iconv/lib/conv.h: Ditto.
7975         * libc/iconv/lib/encnames.h: Ditto.
7976         * libc/iconv/lib/encoding.deps: Ditto.
7977         * libc/iconv/lib/iconvnls.c: Ditto.
7978         * libc/iconv/lib/iconvnls.h: Ditto.
7979         * libc/iconv/lib/nullconv.c: Ditto.
7980         * libc/iconv/lib/ucsconv.c: Ditto.
7981         * libc/iconv/lib/ucsconv.h: Ditto.
7982         * libc/include/iconv.h: Update copyright.
7983         * libc/*/aclocal.m4: Regenerated.
7984         * libc/*/configure: Ditto.
7985         * libm/*/aclocal.m4: Ditto.
7986         * libm/*/configure: Ditto.
7987
7988 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
7989
7990         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
7991         instead of typedefing jmp_buf.
7992
7993         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
7994         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
7995         * libc/machine/h8300/defines.h (LEN): New macro.
7996         * libc/machine/h8300/memcpy.S: Add h8sx version.
7997         * libc/machine/h8300/memset.S: Likewise.
7998         * libc/machine/h8300/strcmp.S: Likewise.
7999         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8000         * libc/machine/h8300/h8sx_strcpy.S: New file.
8001         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8002         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8003         __H8300SX__.
8004         * libc/include/machine/setjmp.h: Likewise.
8005         * libc/include/sys/config.h: Likewise.
8006         * libc/machine/h8300/defines.h: Likewise.
8007         * libc/machine/h8300/setjmp.S: Likewise.
8008         * libc/machine/h8300/strcmp.S: Likewise.
8009         * libc/sys/h8300hms/close.S: Likewise.
8010         * libc/sys/h8300hms/fstat.S: Likewise.
8011         * libc/sys/h8300hms/lseek.S: Likewise.
8012         * libc/sys/h8300hms/read.S: Likewise.
8013         * libc/sys/h8300hms/write.S: Likewise.
8014         * libc/sys/h8300hms/crt0.S: Likewise.
8015         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8016         __H8300SX__ is defined.
8017         * libc/sys/h8300hms/setarch.h: Likewise.
8018
8019 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8020
8021         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8022         out change which set _GLOBAL_REENT to _global_impure_ptr until
8023         we understand why Cygwin breaks because of it.
8024
8025 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8026
8027         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8028         __syscall_return macro for systems with vsyscall.
8029
8030 2004-06-11  Antony King  <antony.king@st.com>
8031
8032         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8033         _flock_t to be of type _LOCK_RECURSIVE_T.
8034         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8035         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8036         (_global_impure_ptr): New declaration.
8037         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8038         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8039         <sys/reent.h>.
8040         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8041         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8042         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8043         * libc/stdio/fclose.c: Remove casting of fp lock to
8044         _LOCK_RECURSIVE_T.
8045         * libc/stdio/findfp.c: Ditto.
8046         * libc/stdio/fopen.c: Ditto.
8047         * libc/stdio/freopen.c: Ditto.
8048         * libc/stdio/vfprintf.c: Ditto.
8049         * libc/stdio64/fopen64.c: Ditto.
8050         * libc/stdlib/envlock.c: Add default stubs that use generic
8051         locking code.
8052         * libc/stdlib/mlock.c: Ditto.
8053
8054         Jeff Johnston  <jjohnstn@redhat.com>
8055         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8056         (_flock_t): Change to be a struct containing a single member
8057         named mutex which is of type __flock_mutex_t.
8058
8059 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8060
8061         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8062         from /usr/include/asm/signal.h instead of kernel sources.  Also
8063         default max to 32 if not found in header file.
8064         * libc/sys/linux/Makefile.in: Regenerated.
8065         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8066         systems where __syscall_return is not defined.
8067         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8068         systems to use syscall() function instead of assembler interrupt.
8069
8070 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8071
8072         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8073         files from libc/sys/arm to libc/machine/arm.
8074         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8075         library build support for files moved from libc/sys/arm.
8076         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8077         references to access and setjmp.
8078         * configure.host: Add checks for newlib_may_supply_syscalls to
8079         determine whether or not to use sys/arm directory and use
8080         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8081
8082 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8083
8084         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8085         reset digit flags appropriately after we have discovered "0x".
8086         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8087
8088 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8089
8090         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8091         from here ...
8092         (_VFPRINTF_R): ... to here so all I/O printf routines
8093         are covered.
8094
8095 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8096
8097         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8098         redefinition.
8099         * libc/search/hash.c: Ditto.
8100
8101 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8102
8103         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8104         (_WANT_IO_LONG_LONG): Ditto.
8105         (_WANT_IO_LONG_DOUBLE): Ditto.
8106         * configure.in: Add new configuration options
8107         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8108         which tie to new defines in newlib.hin.
8109         * configure: Regenerated.
8110         * configure.host: Add checks for new configuration options.  Also
8111         fix up check for --enable-newlib-io-pos-args so configuration
8112         option will override any default for a given platform.
8113         Remove defining compiler flags for the _WANT_IO* options.
8114         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8115         instead of looking for old compiler flags.
8116         * libc/stdio/vfscanf.c: Ditto.
8117         * libc/stdio/vfieeefp.h: Ditto.
8118         * libc/machine/powerpc/vfprintf.c: Ditto.
8119         * libc/machine/powerpc/vfscanf.c: Ditto.
8120
8121 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8122
8123         * testsuite/include/check.h: Add include of <stdio.h>.
8124
8125 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8126
8127         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8128
8129 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8130
8131         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8132         of free.
8133
8134 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8135
8136         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8137         list for reentrant pointer.  Call _vfiprintf_r.
8138         * libc/stdio/siprintf.c (_siprintf_r): New function.
8139         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8140         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8141         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8142         prototypes.
8143
8144 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8145
8146         * libc/include/sys/param.h: Remove endian info and include
8147         <machine/endian.h> instead.
8148         * libc/include/machine/endian.h: New file.
8149         * libc/include/machine/param.h: Ditto.
8150         * libc/machine/arm/machine/endian.h: Ditto.
8151         * libc/machine/arm/machine/param.h: Ditto.
8152         * libc/sys/arm/sys/param.h: Removed.
8153         * libc/sys/sysvi386/sys/param.h: Ditto.
8154         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8155
8156 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8157
8158         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8159         multibyte functions return failure for %C, %S, %lc, and %ls
8160         format specifiers.
8161
8162 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8163
8164         * testsuite/include/check.h (CHECK): Add flush of stdout.
8165
8166 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8167
8168         * libc/include/stdio.h (_ungetc_r): New prototype.
8169         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8170         (__submore): Add reentrant struct pointer argument.
8171         (ungetc): Change to call _ungetc_r.
8172
8173 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8174
8175         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8176         function pointer argument.
8177         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8178         to specify function pointer arguments.
8179         (__fwalk, __fwalk_reent): Ditto.
8180
8181 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8182
8183         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8184         CT_INT case.
8185
8186 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8187
8188         * configure.in: Define _MB_CAPABLE if mb supported.
8189         * configure: Regenerated.
8190         * configure.host: Remove manual setting of MB_CAPABLE compiler
8191         flag.
8192         * newlib.hin: Add _MB_CAPABLE flag.
8193         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8194         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8195         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8196         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8197         * libc/ctype/jp2uc.c: Ditto.
8198         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8199         * libc/locale/locale.c: Ditto
8200         * libc/machine/powerpc/vfscanf.c: Ditto
8201         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8202         * libc/stdlib/mblen.c: Ditto
8203         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8204         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8205         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8206         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8207         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8208         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8209         * libc/sys/linux/intl/explodename.c: Ditto
8210         * libc/sys/linux/intl/finddomain.c: Ditto
8211         * libc/sys/linux/intl/l10nflist.c: Ditto
8212         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8213         * libc/sys/linux/intl/localealias.c: Ditto
8214
8215 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8216
8217         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8218         (__svfscanf_r): In integer conversions, leave out leading zeroes
8219         which are not part of a base prefix.
8220         Keep track of width truncation to fit into buf, not counting left-out
8221         zeroes against width till the truncation has been compensated for.
8222         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8223
8224 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8225
8226         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8227
8228 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8229
8230         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
8231         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
8232         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
8233         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
8234         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
8235         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
8236         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
8237         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
8238         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
8239         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
8240         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
8241         libc/stdio/getchar.c libc/stdio/getchar_u.c,
8242         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
8243         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
8244         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
8245         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
8246         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
8247         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
8248         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
8249         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
8250         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
8251         libc/stdio/siprintf.c libc/stdio/snprintf.c,
8252         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
8253         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
8254         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
8255         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
8256         libc/stdio/vprintf.c libc/stdio/vscanf.c,
8257         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
8258         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
8259         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
8260         copyright notices to top of file, ensure that <_ansi.h> is
8261         included, be consistent with open parentheses, use _DEFUN macro,
8262         include "local.h" where needed, and remove various compiler
8263         warnings.
8264
8265 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
8266
8267         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
8268         (__svfscanf_r): In integer conversions, leave out leading zeroes
8269         which are not part of a base prefix.
8270         Keep track of width truncation to fit into buf, not counting left-out
8271         zeroes against width till the truncation has been compensated for.
8272
8273 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8274
8275         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
8276
8277 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8278
8279         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
8280
8281 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
8282
8283         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
8284         to SUSv3.
8285
8286 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8287
8288         * libc/stdio/fclose.c (_fclose_r): New function.
8289         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
8290         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
8291         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
8292         * libc/include/stdio.h (_fclose_r): New prototype.
8293         * libc/stdio/fopen.c: Fix typo in comment.
8294
8295 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8296
8297         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
8298         to handle _r reentrant functions.
8299
8300 2004-04-08  Eric Christopher  <echristo@redhat.com>
8301
8302         * libc/include/machine/setjmp.h: Fix endif locations.
8303
8304 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8305
8306         * libc/time/strptime.c: Add standard includes to avoid
8307         warning messages at compilation time.
8308
8309 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
8310
8311         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
8312         of file.
8313
8314 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
8315
8316         * libc/machine/h8300/Makefile.am: Reformat slightly.
8317         * libc/machine/h8300/Makefile.in: Regenerate.
8318
8319 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
8320
8321         * libc/stdio/findfp.c (__fp_lock_all): Add call to
8322         __sfp_lock_acquire.
8323         (__fp_unlock_all): Add call to __sfp_lock_release.
8324
8325 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
8326
8327         * libc/stdio/fclose.c (fclose): Protect file pointer list when
8328         releasing a file.
8329          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
8330         fwalk.
8331         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
8332         _flockfile/_funlockfile.
8333         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
8334         to recursive.
8335         Change __lock_acquire/__lock_release calls for __sfp_lock to
8336         __sfp_lock_acquire/__sfp_lock_release throughout.
8337         (std): Make sure that file lock is only initialized once.
8338         (__sfp): Move _file initialization. Initialize file lock.
8339         (__sfp_lock_acquire): New function.
8340         (__sfp_lock_release): Ditto.
8341         (__fp_lock_all): Remove __sfp_lock_acquire call.
8342         (__fp_unlock_all): Remove __sfp_lock_release call.
8343         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
8344         Add calls to _flockfile/_funlockfile. Remove
8345         __lock_init_recursive call.
8346         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
8347         * libc/stdio/fwalk.c (__fwalk): New static function.
8348         (_fwalk): Protect file pointer list. Use __fwalk to walk through
8349         file pointers.
8350         * libc/stdio/local.h: Add defines for
8351         __sfp_lock_acquire/__sfp_lock_release when
8352         single threaded. Add function prototypes otherwise.
8353         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
8354         _flockfile/_funlockfile.
8355         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
8356         Add calls to _flockfile/_funlockfile. Remove
8357          __lock_init_recursive call.
8358         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
8359         list.
8360
8361 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
8362
8363         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
8364         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
8365         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
8366         to be __LOCK_INIT_RECURSIVE.
8367
8368 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
8369
8370         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
8371         _exit.c with _exit.S.
8372         * libc/sys/h8300hms/Makefile.in: Regenerate.
8373         * libc/sys/h8300hms/_exit.c: Remove.
8374         * libc/sys/h8300hms/_exit.S: New.
8375
8376 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
8377
8378         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
8379         Change __sfp_lock to static global.
8380         (__fp_lock): New static function.
8381         (__fp_unlock): Ditto.
8382         (__fp_lock_all): New function.
8383         (__fp_unlock_all): Ditto.
8384
8385 2004-02-10  Christopher Faylor  <cgf@redhat.com>
8386
8387         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
8388         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
8389         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
8390         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
8391
8392 2004-02-09  Christopher Faylor  <cgf@redhat.com>
8393
8394         * libc/include/time.h (TIMER_RELTIME): New define.
8395
8396 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
8397
8398         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
8399         * libc/stdlib/Makefile.in: Regenerated.
8400
8401 2004-02-08  Christopher Faylor  <cgf@redhat.com>
8402
8403         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
8404         * libc/include/sys/reent.h (__getreent): Protect against possibly being
8405         defined.
8406         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
8407
8408 2004-02-05  Paul Brook  <paul@codesourcery.com>
8409
8410         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
8411         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
8412
8413 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
8414
8415         * NEWS: Update with 1.12.0 info.
8416         * README: Ditto.
8417         * acinclude.m4: Change version number to 1.12.0.
8418         * aclocal.m4: Regenerated.
8419         * configure: Ditto.
8420         * doc/aclocal.m4: Ditto.
8421         * doc/configure: Ditto.
8422         * libc/*/aclocal.m4: Ditto.
8423         * libc/*/configure: Ditto.
8424         * libc/libc.texinfo: Ditto.
8425         * libm/*/aclocal.m4: Ditto.
8426         * libm/*/configure: Ditto.
8427         * libm/libm.texinfo: Ditto.
8428         * libc/sys/linux/shared.ld: Add VERS_1.12.
8429
8430 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
8431
8432         * configure.host: Add support for tic4x.
8433         * libc/include/machine/ieeefp.h: Ditto.
8434         * libc/include/machine/setjmp.h: Ditto.
8435         * libc/machine/tic4x/Makefile.am: New file.
8436         * libc/machine/tic4x/configure.in: Ditto.
8437         * libc/machine/tic4x/setjmp.S: Ditto.
8438         * libc/machine/tic4x/aclocal.m4: Generated.
8439         * libc/machine/tic4x/configure: Ditto.
8440         * libc/machine/tic4x/Makefile.in: Ditto.
8441
8442 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
8443
8444         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
8445         file chain on the passed in reentrancy struct if it
8446         is _GLOBAL_REENT.
8447
8448 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8449             Jeff Johnston  <jjohnstn@redhat.com>
8450
8451         * libc/iconv/iconv.tex: Updated with more information.
8452
8453 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
8454             Jeff Johnston  <jjohnstn@redhat.com>
8455
8456         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
8457         struct for std streams and traverse the global reeentrancy
8458         struct for all other streams.
8459
8460 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
8461
8462         * libc/stdlib/atexit.c: Protect global atexit list with a
8463         lock when newlib is multithreaded.
8464
8465 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8466
8467         * configure.in: Add support to generate iconv converter flags
8468         for newlib.h
8469         * newlib.hin: Add iconv converter flags.
8470         * configure: Regenerated.
8471         * libc/Makefile.in: Ditto.
8472         * libc/configure.in: Moved iconv converter parsing logic to
8473         top level newlib configure.in.
8474         * libc/configure: Regenerated.
8475         * libc/iconv/Makefile.in: Ditto.
8476         * libc/iconv/README.TODO
8477         * libc/iconv/charset.aliases: Remove wrong BE aliases for
8478         UCS2/UCS4/UTF8.
8479         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
8480         newlib.h can be used.
8481         * libc/iconv/ces/Makefile.am: Ditto.
8482         * libc/iconv/lib/Makefile.am: Ditto.
8483         * libc/iconv/ccs/Makefile.in: Regenerated.
8484         * libc/iconv/ces/Makefile.in: Ditto.
8485         * libc/iconv/lib/Makefile.in: Ditto.
8486         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
8487         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
8488         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
8489         defined in newlib.h.
8490         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8491         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8492         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8493         * libc/iconv/ccs/cp775.c: Ditto.
8494         * libc/iconv/ccs/cp850.c: Ditto.
8495         * libc/iconv/ccs/cp852.c: Ditto.
8496         * libc/iconv/ccs/cp855.c: Ditto.
8497         * libc/iconv/ccs/cp866.c: Ditto.
8498         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8499         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8500         * libc/iconv/ccs/iso_8859_15.c: Ditto.
8501         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8502         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8503         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8504         * libc/iconv/ccs/jis_x0201.c: Ditto.
8505         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8506         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8507         * libc/iconv/ccs/koi8_r.c: Ditto.
8508         * libc/iconv/ccs/koi8_u.c: Ditto.
8509         * libc/iconv/ccs/ksx1001.c: Ditto.
8510         * libc/iconv/ccs/shift_jis.c: Ditto.
8511         * libc/iconv/ccs/us_ascii.c: Ditto.
8512         * libc/iconv/ccs/binary/big5.cct: Newly generated.
8513         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8514         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8515         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8516         * libc/iconv/ccs/binary/cp775.cct: Ditto.
8517         * libc/iconv/ccs/binary/cp850.cct: Ditto.
8518         * libc/iconv/ccs/binary/cp852.cct: Ditto.
8519         * libc/iconv/ccs/binary/cp855.cct: Ditto.
8520         * libc/iconv/ccs/binary/cp866.cct: Ditto.
8521         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
8522         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8523         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8524         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8525         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8526         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8527         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8528         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8529         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8530         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8531         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8532         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8533         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8534         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8535         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
8536         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
8537         * libc/iconv/ces/euc-kr.c: Ditto.
8538         * libc/iconv/ces/euc-tw.c: Ditto.
8539         * libc/iconv/ces/gb2312.c: Ditto.
8540         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
8541         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8542         * libc/iconv/ces/ucs-2-internal.c: Ditto.
8543         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8544         * libc/iconv/ces/utf-16.c: Ditto.
8545         * libc/iconv/ces/utf-8.c: Ditto.
8546         * libc/iconv/lib/aliases.c: Ditto.
8547         * libc/iconv/lib/biccs.c: Ditto.
8548         * libc/iconv/lib/bices.c: Ditto.
8549         * libc/iconv/lib/ccs.c: Ditto.
8550         * libc/iconv/lib/ces.c: Ditto.
8551         * libc/iconv/lib/ces_euc.c: Ditto.
8552         * libc/iconv/lib/ces_iso2022.c: Ditto.
8553         * libc/iconv/lib/ces_table.c: Ditto.
8554         * libc/iconv/lib/converter.c: Ditto.
8555         * libc/iconv/lib/deps.h: Ditto.
8556         * libc/iconv/lib/endian.h: Ditto.
8557         * libc/iconv/lib/iconv.c: Ditto.
8558         * libc/iconv/lib/loaddata.c: Ditto.
8559         * libc/iconv/lib/local.h: Include newlib.h.
8560         * libc/argz/Makefile.in: Regenerated.
8561         * libc/ctype/Makefile.in: Ditto.
8562         * libc/errno/Makefile.in: Ditto.
8563         * libc/iconv/ccs/binary/Makefile.in: Ditto.
8564         * libc/locale/Makefile.in: Ditto.
8565         * libc/misc/Makefile.in: Ditto.
8566         * libc/posix/Makefile.in: Ditto.
8567         * libc/reent/Makefile.in: Ditto.
8568         * libc/search/Makefile.in: Ditto.
8569         * libc/signal/Makefile.in: Ditto.
8570         * libc/stdio/Makefile.in: Ditto.
8571         * libc/stdio64/Makefile.in: Ditto.
8572         * libc/stdlib/Makefile.in: Ditto.
8573         * libc/string/Makefile.in: Ditto.
8574         * libc/syscalls/Makefile.in: Ditto.
8575         * libc/time/Makefile.in: Ditto.
8576         * libc/unix/Makefile.in: Ditto.
8577         * testsuite/newlib.iconv/iconv.exp: New file.
8578         * testsuite/newlib.iconv/iconvjp.c: Ditto.
8579         * testsuite/newlib.iconv/iconvnm.c: Ditto.
8580         * testsuite/newlib.iconv/iconvru.c: Ditto.
8581
8582 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8583
8584         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
8585         (--enable-newlib-builtin-converters): Ditto.
8586         * configure.in: Add code to set _ICONV_ENABLED flag.
8587         Set _MB_LEN_MAX to 1 if not mb enabled.
8588         * configure: Regenerated.
8589         * aclocal.m4: Ditto.
8590         * Makefile.in: Ditto.
8591         * newlib.hin: Add _ICONV_ENABLED flag.
8592         * libc/Makefile.am: Add support for iconv.
8593         * libc/configure.in: Ditto.
8594         * libc/Makefile.in: Regenerated.
8595         * libc/aclocal.m4: Ditto.
8596         * libc/configure: Ditto.
8597         * libc/libc.texinfo: Add iconv documentation.
8598         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
8599         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
8600         libc/iconv/README.TODO, libc/iconv/charset.aliases,
8601         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
8602         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
8603         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
8604         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
8605         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
8606         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
8607         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
8608         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
8609         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
8610         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
8611         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
8612         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
8613         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
8614         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
8615         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
8616         libc/iconv/ccs/binary/big5.cct,
8617         libc/iconv/ccs/binary/cns11643_plane1.cct,
8618         libc/iconv/ccs/binary/cns11643_plane14.cct,
8619         libc/iconv/ccs/binary/cns11643_plane2.cct,
8620         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
8621         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
8622         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
8623         libc/iconv/ccs/binary/iso_8859_1.cct,
8624         libc/iconv/ccs/binary/iso_8859_15.cct,
8625         libc/iconv/ccs/binary/iso_8859_2.cct,
8626         libc/iconv/ccs/binary/iso_8859_4.cct,
8627         libc/iconv/ccs/binary/iso_8859_5.cct,
8628         libc/iconv/ccs/binary/jis_x0201.cct,
8629         libc/iconv/ccs/binary/jis_x0208_1983.cct,
8630         libc/iconv/ccs/binary/jis_x0212_1990.cct,
8631         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
8632         libc/iconv/ccs/binary/ksx1001.cct,
8633         libc/iconv/ccs/binary/shift_jis.cct,
8634         libc/iconv/ccs/binary/us_ascii.cct,
8635         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
8636         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
8637         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
8638         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
8639         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
8640         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
8641         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
8642         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
8643         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
8644         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
8645         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
8646         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
8647         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
8648         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
8649         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
8650         * libc/sys/linux/include/iconv.h: Ditto.
8651         * libc/include/sys/_types.h (_iconv_t): Added.
8652         * doc/aclocal.m4: Regenerated.
8653         * doc/configure: Ditto.
8654         * doc/Makefile.in: Ditto.
8655         * iconvdata/Makefile.in: Ditto.
8656         * iconvdata/aclocal.m4: Ditto.
8657         * iconvdata/configure: Ditto.
8658         * libc/*aclocal.m4: Ditto.
8659         * libc/*Makefile.in: Ditto.
8660         * libc/*configure: Ditto.
8661         * libm/*aclocal.m4: Ditto.
8662         * libm/*Makefile.in: Ditto.
8663         * libm/*configure: Ditto.
8664
8665 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8666
8667         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
8668         by a lock when newlib is multithreaded.
8669
8670 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
8671
8672         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
8673         pointer to match C99 spec.
8674         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
8675         dst is NULL.  Also fix to not alter src pointer when dst is NULL
8676         and call _mbrtowc_r instead of _mbtowc_r.
8677         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
8678         of _wctomb_r.
8679
8680 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
8681
8682         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
8683         * libc/stdio/freopen.c (freopen): Ditto.
8684
8685 2004-01-16  Christopher Faylor  <cgf@redhat.com>
8686
8687         * libc/stdio/vfprintf.c: Add sys/lock.h include.
8688
8689 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
8690
8691         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
8692         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
8693         Add calls to __lock_init_recursive and __lock_close_recursive
8694         instead.
8695
8696 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
8697
8698         * libc/stdio/fclose.c: Include sys/lock.h.
8699         (fclose): Destroy lock when file is closed.
8700         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
8701         member.
8702         * libc/stdio/freopen.c: Include sys/lock.h.
8703         (_freopen_r): Destroy lock when file is closed.
8704         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
8705         _lock member.
8706
8707 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8708
8709         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
8710         Remove warnings.
8711
8712 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8713
8714         * libc/sys/rtems/sys/queue.h: New file.
8715         * libc/include/sys/signal.h: Reflect renumbering of signals to
8716         fit into 32-bit mask.
8717         * libc/include/sys/unistd.h: Add fdatasync() prototype.
8718         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
8719         required.  In particular, add the reentrant variants of libc calls.
8720         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
8721
8722 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
8723
8724         * libc/sys/arm/syscalls.c (unistd.h): Include it.
8725         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
8726         Similarly for stdout and stderr.
8727
8728 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8729
8730         * libc/libc.texinfo: Correct escape character for @ sign
8731         so file will be processed by make info.  Update copyright years.
8732         * libm/libm.texinfo: Ditto.
8733
8734 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8735
8736         * libc/include/sys/stat.h: No longer include stat-dj.h.
8737         * libc/include/sys/stat-dj.h: Removed.
8738
8739 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8740
8741         * libc/include/wchar.h: Include <sys/reent.h>.
8742
8743 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8744
8745         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
8746         when defining _mbrtowc.
8747         * libc/stdlib/mbsinit.c: Ditto.
8748         * libc/stdlib/mbsrtowcs.c: Ditto.
8749         * libc/stdlib/wcrtomb.c: Ditto.
8750         * libc/stdlib/wcsrtombs.c: Ditto.
8751         * libc/stdlib/wctob.c: Ditto.
8752
8753 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8754
8755         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
8756         errors when defining _mbrtowc.
8757         * libc/stdlib/mbsinit.c: Ditto.
8758         * libc/stdlib/mbsrtowcs.c: Ditto.
8759
8760 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8761
8762         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
8763         errors when defining _mbrtowc.
8764
8765 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8766
8767         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
8768         of mb routines for %lc and %ls support.
8769         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
8770         %ls, and %S support.  Remove CYGNUS_NEC markers and
8771         code within.
8772
8773 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
8774
8775         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
8776         _wcrtomb_r, and _wcsrtombs_r.
8777
8778 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
8779
8780         * libc/include/sys/fcntl.h: Don't define struct flock when on
8781         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
8782
8783 2003-11-28  Christopher Faylor  <cgf@redhat.com>
8784
8785         * libc/include/sys/signal.h: Use system specific signal file when
8786         building on cygwin.
8787
8788 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8789
8790         * libc/include/stdlib.h (_atoi_r): New prototype.
8791         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
8792
8793 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8794
8795         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
8796         * libc/stdlib/atol.c (_atol_r): New reentrant function.
8797         * libc/stdlib/atoll.c (_atoll_r): Ditto.
8798
8799 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8800             Jeff Johnston  <jjohnstn@redhat.com>
8801
8802         * libc/include/stdlib.h (lldiv_t): New type.
8803         (atoll, llabs, lldiv): New prototypes.
8804         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
8805         * libc/stdlib/stdlib.tex: Ditto.
8806         * libc/stdlib/Makefile.in: Regenerated.
8807         * libc/stdlib/atoll.c: New file.
8808         * libc/stdlib/llabs.c: Ditto.
8809         * libc/stdlib/lldiv.c: Ditto.
8810
8811 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
8812
8813         * libc/include/fcntl.h: Declare syscalls only when building newlib.
8814         * libc/include/unistd.h: Ditto.
8815         * libc/include/stat.h: Ditto.  Also declare struct stat64.
8816
8817 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8818
8819         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
8820         specifier to use ch instead of *fmt.
8821
8822 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8823
8824         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
8825         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
8826         use simple byte logic.
8827
8828 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
8829
8830         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
8831         _strtold routine for processing floats and doubles since it
8832         is not as fast as _strtod_r.
8833
8834 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8835
8836         * libc/machine/h8300/defines.h : Correct pointer register defines
8837         for normal mode.
8838         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
8839         for normal mode.
8840         * libc/machine/h8300/reg_memcpy.S : Likewise.
8841         * libc/machine/h8300/reg_memset.S : Likewise.
8842         * libc/machine/h8300/strcmp.S : Likewise.
8843
8844 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
8845
8846         * configure.host: Enable positional arguments for printf
8847         family for Cygwin.
8848         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
8849         pointer reference for quad_ptr_t.
8850
8851 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
8852
8853         * libc/stdio/scanf.c: Don't include local.h more than once.
8854
8855 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
8856
8857         * libc/include/sys/fcntl.h: Declare _open64.
8858         * libc/include/sys/stat.h: Declare _fstat64.
8859         * libc/include/sys/unistd.h: Declare _lseek64.
8860
8861 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
8862
8863         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
8864         (setprogname): Ditto.
8865
8866 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
8867
8868         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
8869         to use (Ebits + 1) which accounts for the sign-bit.
8870
8871 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
8872
8873         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
8874         x86 build.
8875         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
8876         and set up default flags to pass to aclocal.
8877         * iconvdata/Makefile.in: Regenerated.
8878         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
8879         and getpwuid routines.
8880         * libc/sys/linux/Makefile.in: Regenerated.
8881         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
8882         applications to link with newlib's shared libc library.
8883         * libc/sys/linux/getpwnam.c: Ditto.
8884         * libc/sys/linux/getpwuid.c: Ditto.
8885         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
8886         that were formerly supplied by /usr/include/linux/types.h with
8887         kernel types.
8888         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
8889         test _ELIX_LEVEL macro.
8890
8891 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
8892
8893         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
8894         referring to _NO_LONGLONG macro.
8895
8896 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
8897
8898         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
8899         in LOG() macro so this will compile on gcc 3.4 and up.
8900         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
8901         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
8902         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
8903         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
8904         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
8905         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
8906         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
8907         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
8908         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
8909         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
8910         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
8911         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
8912         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
8913         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
8914         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
8915         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
8916         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
8917         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
8918         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
8919         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
8920         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
8921         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
8922         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
8923         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
8924         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
8925         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
8926         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
8927         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
8928         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
8929         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
8930         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
8931         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
8932         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
8933         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
8934         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
8935         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
8936
8937 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
8938             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8939
8940         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
8941         %ls, %S, %lc, and %C format specifiers.
8942         (get_arg): Ditto.
8943         * libc/stdio/sprintf.c: Add documentation regarding new
8944         format specifiers added in vfprintf.c.
8945
8946 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
8947
8948         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
8949         to make code work as specified in standard.
8950
8951 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
8952
8953         * configure.in: Use absolute newlib basedir when forming
8954         CC_FOR_NEWLIB include options.
8955         * configure: Regenerated.
8956
8957 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8958
8959         * libc/string/wcsnlen.c: New file.
8960         * libc/include/wchar.h: Add wcsnlen prototype.
8961         * libc/string/Makefile.am: Add wcsnlen support.
8962         * libc/string/Makefile.in: Regenerated.
8963         * libc/string/wcstrings.tex: Add wcsnlen documentation.
8964
8965 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
8966
8967         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
8968
8969 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
8970
8971         * libc/locale/locale.c: Use double quotes in code.
8972         * libc/locale/locale.tex: Likewise.
8973         * libc/libc.texinfo: Hyphenate "floating-point".
8974         * libc/machine/necv70/necv70.tex: Likewise.
8975         * libc/stdio/sprintf.c: Likewise.
8976         * libc/stdio/sscanf.c: Likewise.
8977         * libc/stdlib/atof.c: Likewise.
8978         * libc/stdlib/ldtoa.c: Fix comment typo.
8979         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
8980         * libc/stdlib/ldiv.c: Likewise.
8981         * libm/common/s_expm1.c: Likewise.
8982         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
8983         * libm/common/s_infinity: Hyphenate "double- and single-precision".
8984         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
8985         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
8986         and "floating-point".
8987         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
8988         * libm/math/e_pow.c: Fix comment typo.
8989         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
8990         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
8991         * libm/math/s_atan.c: Likewise.
8992         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
8993         * libm/math/s_isnan.c: Hyphenate "single-precision" and
8994         "floating-point".  Use "nonzero".
8995         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
8996         * libm/math/w_acos.c: Likewise.
8997         * libm/math/w_acosh.c: Likewise.
8998         * libm/math/w_asin.c: Likewise.
8999         * libm/math/w_atan2.c: Likewise.
9000         * libm/math/w_atanh.c: Likewise.
9001         * libm/math/w_cosh.c: Likewise.
9002         * libm/math/w_exp.c: Likewise.
9003         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9004         version of 2^x in the description.
9005         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9006         * libm/math/w_gamma.c: Likewise.
9007         * libm/math/w_hypot.c: Likewise.
9008         * libm/math/w_j0.c: Likewise.
9009         * libm/math/w_sinh.c: Likewise.
9010         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9011         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9012         "floating-point".
9013         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9014         * libm/mathfp/e_atanh.c: Likewise.
9015         * libm/mathfp/e_hypot.c: Likewise.
9016         * libm/mathfp/er_lgamma.c: Likewise.
9017         * libm/mathfp/s_acos.c: Likewise.
9018         * libm/mathfp/s_asine.c: Likewise.
9019         * libm/mathfp/s_asinh.c: Likewise.
9020         * libm/mathfp/s_atan.c: Likewise.
9021         * libm/mathfp/s_atan2.c: Likewise.
9022         * libm/mathfp/s_atangent.c: Likewise.
9023         * libm/mathfp/s_cosh.c: Likewise.
9024         * libm/mathfp/s_exp.c: Likewise.
9025         * libm/mathfp/s_fmod.c: Likewise.
9026         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9027         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9028         "floating-point".  Use "nonzero".
9029         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9030         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9031         * libm/mathfp/s_sineh.c: Likewise.
9032         * libm/mathfp/w_jn.c: Likewise.
9033
9034 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9035
9036         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9037         lines, to enable parallel make.
9038         * Makefile.in: Rebuilt.
9039
9040 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9041
9042         * libc/time/clock.c: Clarify documentation of return value when no
9043         measurement is available.
9044
9045 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9046
9047         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9048         * libm/configure: Regenerate.
9049         * libm/Makefile.in: Ditto.
9050
9051 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9052
9053         * libc/machine/sh/strncpy.S: New file.
9054         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9055         * libc/machine/sh/Makefile.in: Regenerate.
9056
9057 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9058
9059         * MAINTAINERS: Update my e-mail address.
9060
9061 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9062
9063         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9064
9065 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9066
9067         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9068         prototype.
9069         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9070         _simdldcheck().  Also add unsigned cast for index variable in
9071         for loop using sizeof operators.
9072         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9073         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9074         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9075         plus fix shift calculation for determining if there is a
9076         carry from word2.
9077
9078 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9079
9080         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9081         setgroupent for Cygwin.
9082
9083 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9084
9085         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9086         is different for _REENT_SMALL than when using regular reent
9087         struct.
9088
9089 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9090
9091         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9092         modern versions of GCC issue a warning.
9093
9094         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9095         after continuation characters that induces a warning from modern
9096         versions of GCC.
9097
9098 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9099
9100         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9101         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9102
9103 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9104
9105         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9106         * libc/stdlib/exit.c : Ditto.
9107         * libc/stdlib/on_exit.c: Ditto.
9108
9109 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9110
9111         * libc/include/reent.h: Define stat64 as __stat64 when
9112         compiling newlib for Cygwin.
9113
9114 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9115
9116         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9117         __stat64 when compiling newlib.
9118
9119 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9120
9121         * libc/include/stdio.h: Allow the io64 function prototypes for
9122         Cygwin when compiling newlib.
9123         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9124         to expose the Cygwin struct __stat64 type.
9125         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9126         pointer.
9127         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9128
9129 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9130
9131         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9132         definition to fseeko64.
9133
9134 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9135
9136         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9137         * libc/stdio: Globally remove/replace all references to fp->_data.
9138         Replace with _REENT or _GLOBAL_REENT where appropriate.
9139         * libc/stdio/asprintf.c: Ditto.
9140         * libc/stdio/fclose.c: Ditto.
9141         * libc/stdio/fvwrite.c: Ditto.
9142         * libc/stdio/makebuf.c: Ditto.
9143         * libc/stdio/refill.c: Ditto.
9144         * libc/stdio/local.h: Ditto.
9145         * libc/stdio/setvbuf.c: Ditto.
9146         * libc/stdio/sscanf.c: Ditto.
9147         * libc/stdio/stdio.c: Ditto.
9148         * libc/stdio/ungetc.c: Ditto.
9149         * libc/stdio/vfscanf.c: Ditto.
9150         * libc/stdio/vsscanf.c: Ditto.
9151         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9152         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9153         * libc/stdio/vsnprintf.c: Ditto.
9154         * libc/stdio/vsprintf.c: Ditto.
9155         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9156         instead of _REENT to walk file list.
9157         * libc/stdio/fflush.c: Ditto.
9158         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9159         version call reentrant version with _REENT argument.
9160         * libc/stdio/fsetpos.c: Ditto.
9161         * libc/stdio/fseek.c: Ditto.
9162         * libc/stdio/fseeko.c: Ditto.
9163         * libc/stdio/ftell.c: Ditto.
9164         * libc/stdio/ftello.c: Ditto.
9165         * libc/stdio/freopen.c: Ditto.
9166         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9167         new files to chain.  Also use _GLOBAL_REENT pointer for
9168         cleaning up.
9169         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9170         * libc/stdio/siprintf.c: Ditto.
9171         * libc/stdio/iprintf.c: Ditto.
9172         * libc/stdio/fprintf.c: Ditto.
9173         * libc/stdio/printf.c: Ditto.
9174         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9175         * libc/stdio/sprintf.c: Ditto.
9176         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9177         * libc/stdio/rewind.c: Call _fseek_r directly.
9178         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9179         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9180         data pointer.
9181         (get_arg): Add extra struct _reent pointer argument.
9182         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9183         to fp->_data.
9184         * libc/stdio64/fopen64.c: Ditto.
9185         * libc/stdio64/freopen64.c: Ditto.
9186         * libc/stdio64/fsetpos64.c: Ditto.
9187         * libc/stdio64/ftello64.c: Ditto.
9188         * libc/stdio64/local64.h: Ditto.
9189         * libc/stdio64/stdio64.c: Ditto.
9190         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9191         _fstat64_r for the meantime.
9192
9193 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9194
9195         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9196         overflow detection.
9197
9198 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9199
9200         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9201         extern "C".
9202
9203 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9204
9205         * libc/include/math.h: Add prototypes for __signbitf and
9206         __signbitd.
9207
9208 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9209
9210         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9211         correct type of conversion when dealing with EUCJP or SJIS.
9212         * libc/ctype/iswblank.c: Ditto.
9213         * libc/ctype/iswcntrl.c: Ditto.
9214         * libc/ctype/iswprint.c: Ditto.
9215         * libc/ctype/iswpunct.c: Ditto.
9216         * libc/ctype/iswspace.c: Ditto.
9217         * libc/ctype/towlower.c: Ditto.
9218         * libc/ctype/towupper.c: Ditto.
9219
9220 2003-07-31  Nick Clifton  <nickc@redhat.com>
9221
9222         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9223         before calling main, in case it saves its argument registers.
9224         Remove reference to deleted v850ea port.
9225         * configure.host: Remove reference to deleted v850ea port.
9226         Do not use -mv850 when building for v850e target.  This
9227         prevents the ctbp system register from being initialised.
9228
9229 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
9230
9231         * libc/stdio/vfprintf.c: Set output size to 1 when
9232         we have %f format with precision 0 and # flag not specified.
9233
9234 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
9235
9236         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
9237         .am33_2.
9238
9239 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9240
9241         * libc/stdio64/fdopen64.c: Include sys/lock.h.
9242
9243 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9244
9245         * configure.host: Find cygwin include directory, when appropriate.
9246
9247 2003-07-24  Christopher Faylor  <cgf@redhat.com>
9248
9249         * libc/stdio64/fdopen64.c: New file.
9250         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
9251         * libc/stdio64/Makefile.in: Regenerate.
9252         * libc/include/stdio.h (fdopen64): Define.
9253         * libc/include/stdio.h (_fdopen64_r): Ditto.
9254
9255 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9256
9257         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9258         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
9259         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
9260         restore callee-saved FP registers.
9261
9262 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9263
9264         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
9265         for __sh__.
9266         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
9267         truncate.c.
9268         * libc/sys/sh/Makefile.in: Regenerate.
9269         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
9270         * libc/sys/sh/ftruncate.c: New file.
9271         * libc/sys/sh/truncate.c: Likewise.
9272
9273 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9274
9275         * libc/include/math.h (nan, nanf): Update prototype to C99.
9276         * libm/common/s_nan.c (nan): Likewise.
9277         * libm/common/s_nanf.c (nanf, nan): Likewise.
9278         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
9279
9280 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
9281
9282         * libc/include/stdbool.h: Removed as this is defined by gcc.
9283
9284 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
9285
9286         * libc/include/stdbool.h: New header file defined by C99.
9287
9288 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9289
9290         * libc/include/sys/types.h (int8_t): Make signed.
9291
9292 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9293
9294         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
9295
9296 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
9297
9298         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
9299         on if we actually created the shared memory file exclusively.
9300
9301 2003-06-27  Joe Vornehm  <joev@mitre.org>
9302
9303         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
9304         comparisons to account for unsigned internal value w.
9305
9306 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
9307
9308         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
9309         wrbuf for a non-creating open.
9310
9311 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
9312
9313         * libc/machine/h8300/setarch.h: New.
9314         * libc/machine/h8300/memcpy.S: Use it.
9315         * libc/machine/h8300/memset.S: Likewise.
9316         * libc/machine/h8300/reg_memcpy.S: Likewise.
9317         * libc/machine/h8300/reg_memset.S: Likewise.
9318         * libc/machine/h8300/setjmp.S: Likewise.
9319         * libc/machine/h8300/strcmp.S: Likewise.
9320
9321 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
9322
9323         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
9324         to atexit().
9325
9326 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9327
9328         * configure.host (iq2000): Add tabs.
9329
9330 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9331
9332         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
9333         to handle latest on_exit change.
9334         * libc/sys/linux/Makefile.am: Remove special compilation
9335         for malloc.c and mcheck.c.
9336         * libc/sys/linux/Makefile.in: Regenerated.
9337         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
9338         after including <features.h>.
9339         * libc/sys/linux/mcheck.c: Ditto.
9340         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
9341         for <features.h>.
9342         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
9343         add -DNOT_IN_libc to C flags.
9344         * libc/sys/linux/intl/Makefile.in: Regenerated.
9345         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
9346         * libc/sys/linux/linuxthreads/semaphore.h: Include
9347         <bits/pthreadtypes.h>.
9348         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
9349         including <features.h>.
9350         * libc/sys/linux/sys/lock.h: Ditto.
9351
9352 2003-06-11  Nick Clifton  <nickc@redhat.com>
9353
9354         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
9355         _on_exit_args_ptr.
9356
9357 2003-06-10  Stan Cox  <scox@redhat.com>
9358             Anthony Green  <green@redhat.com>
9359
9360         * configure.host: Add iq2000 support.
9361         * newlib/libc/include/machine/ieeefp.h: Ditto.
9362         * newlib/libc/include/machine/setjmp.h: Ditto.
9363         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
9364         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
9365         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
9366         libc/machine/iq2000/Makefile.in: New files.
9367
9368 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
9369
9370         * libc/sys/h8300hms/setarch.h: New file.
9371         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
9372         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
9373         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
9374         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
9375
9376 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
9377
9378         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
9379         definition.
9380         * libc/argz/argz_add_sep.c: Ditto.
9381         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
9382         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
9383         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
9384         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
9385         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
9386         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
9387         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
9388         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
9389         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
9390         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
9391         * libc/posix/execl.c libc/posix/execle.c: Ditto.
9392         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
9393         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
9394         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
9395         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
9396         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
9397         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
9398         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
9399         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
9400         * libc/search/twalk.c libc/signal/signal.c: Ditto.
9401
9402 2003-06-05  Nick Clifton  <nickc@redhat.com>
9403
9404         * libc/include/sys/reent.h (struct _on_exit_args): New
9405         structure containing fields used by the on_exit() function.
9406         (struct _atexit): Include struct _on_exit_args.  For
9407         _REENT_SMALL do his via a pointer that is initialised when
9408         needed.
9409         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
9410         structure, if one has been allocated.
9411         * libc/stdlib/atexit.c (atexit): Update indirection to
9412         _fntypes field.
9413         * libc/stdlib/on_exit.c (on_exit): Indirect via the
9414         _on_exit_args structure.  For _REENT_SMALL, allocate a
9415         structure if one does not exist.
9416         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
9417         structure.
9418
9419 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
9420
9421         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
9422         * libc/sys/linux/net/Makefile.in: Regenerated.
9423
9424 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9425
9426         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
9427         * libc/reent/fcntlr.c: Ditto.
9428         * libc/reent/fstat64r.c: Ditto.
9429         * libc/reent/linkr.c: Ditto.
9430         * libc/reent/lseek64r.c: Ditto.
9431         * libc/reent/lseekr.c: Ditto.
9432         * libc/reent/openr.c: Ditto.
9433         * libc/reent/readr.c: Ditto.
9434         * libc/reent/reent.c: Ditto.
9435         * libc/reent/sbrkr.c: Ditto.
9436         * libc/reent/signalr.c: Ditto.
9437         * libc/reent/signgam.c: Ditto.
9438         * libc/reent/statr.c: Ditto.
9439         * libc/reent/timer.c: Ditto.
9440         * libc/reent/unlinkr.c: Ditto.
9441         * libc/reent/writer.c: Ditto.
9442         * libc/syscalls/sysclose.c: Ditto.
9443         * libc/syscalls/sysexecve.c: Ditto.
9444         * libc/syscalls/sysfcntl.c: Ditto.
9445         * libc/syscalls/sysfork.c: Ditto.
9446         * libc/syscalls/sysfstat.c: Ditto.
9447         * libc/syscalls/sysgetpid.c: Ditto.
9448         * libc/syscalls/sysgettod.c: Ditto.
9449         * libc/syscalls/syskill.c: Ditto.
9450         * libc/syscalls/syslink.c: Ditto.
9451         * libc/syscalls/syslseek.c: Ditto.
9452         * libc/syscalls/sysopen.c: Ditto.
9453         * libc/syscalls/sysread.c: Ditto.
9454         * libc/syscalls/syssbrk.c: Ditto.
9455         * libc/syscalls/sysstat.c: Ditto.
9456         * libc/syscalls/systimes.c: Ditto.
9457         * libc/syscalls/sysunlink.c: Ditto.
9458         * libc/syscalls/syswait.c: Ditto.
9459         * libc/syscalls/syswrite.c: Ditto.
9460
9461 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
9462
9463         * libc/time/tzset_r.c: Change local variables that are
9464         set via sscanf using the %h format specifier to be unsigned short
9465         instead of int.
9466
9467 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
9468
9469         * configure.host:  Allow i[34567]86 variant.
9470         * configure.in: Likewise.
9471         * README: Likewise to the docs.
9472         * configure: Regenerated.
9473         * Makefile.in: Ditto.
9474
9475 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
9476             Tom Fitzsimmons  <fitzsim@redhat.com>
9477
9478         * configure.in: Add iconvdata support for x86 linux.
9479         * configure: Regenerated.
9480         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
9481         library, iconv, and linuxthreads support.
9482         * libc/sys/linux/configure.in: Ditto.
9483         * libc/sys/linux/Makefile.in: Regenerated.
9484         * libc/sys/linux/configure: Ditto.
9485         * iconvdata/EUC-JP.irreversible: New file.
9486         * iconvdata/Makefile.am: Ditto.
9487         * iconvdata/Makefile.in: Ditto.
9488         * iconvdata/SJIS.irreversible: Ditto.
9489         * iconvdata/aclocal.m4: Ditto.
9490         * iconvdata/configure: Ditto.
9491         * iconvdata/configure.in: Ditto.
9492         * iconvdata/dummy.c: Ditto.
9493         * iconvdata/euc-jp.c: Ditto.
9494         * iconvdata/gconv-modules: Ditto.
9495         * iconvdata/jis0201.c: Ditto.
9496         * iconvdata/jis0201.h: Ditto.
9497         * iconvdata/jis0208.c: Ditto.
9498         * iconvdata/jis0208.h: Ditto.
9499         * iconvdata/jis0212.c: Ditto.
9500         * iconvdata/jis0212.h: Ditto.
9501         * iconvdata/sjis.c: Ditto.
9502         * libc/include/errno.h: Protect definition of error_t.
9503         * libc/sys/linux/gethostid.c: New file.
9504         * libc/sys/linux/sethostid.c: Ditto.
9505         * libc/sys/linux/dl/Makefile.am: Ditto.
9506         * libc/sys/linux/dl/Makefile.in: Ditto.
9507         * libc/sys/linux/dl/abi-tag.h: Ditto.
9508         * libc/sys/linux/dl/atomicity.h: Ditto.
9509         * libc/sys/linux/dl/dl-addr.c: Ditto.
9510         * libc/sys/linux/dl/dl-cache.c: Ditto.
9511         * libc/sys/linux/dl/dl-cache.h: Ditto.
9512         * libc/sys/linux/dl/dl-close.c: Ditto.
9513         * libc/sys/linux/dl/dl-debug.c: Ditto.
9514         * libc/sys/linux/dl/dl-deps.c: Ditto.
9515         * libc/sys/linux/dl/dl-dst.h: Ditto.
9516         * libc/sys/linux/dl/dl-error.c: Ditto.
9517         * libc/sys/linux/dl/dl-fini.c: Ditto.
9518         * libc/sys/linux/dl/dl-init.c: Ditto.
9519         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
9520         * libc/sys/linux/dl/dl-libc.c: Ditto.
9521         * libc/sys/linux/dl/dl-librecon.h: Ditto.
9522         * libc/sys/linux/dl/dl-load.c: Ditto.
9523         * libc/sys/linux/dl/dl-lookup.c: Ditto.
9524         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
9525         * libc/sys/linux/dl/dl-minimal.c: Ditto.
9526         * libc/sys/linux/dl/dl-misc.c: Ditto.
9527         * libc/sys/linux/dl/dl-object.c: Ditto.
9528         * libc/sys/linux/dl/dl-open.c: Ditto.
9529         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
9530         * libc/sys/linux/dl/dl-profile.c: Ditto.
9531         * libc/sys/linux/dl/dl-profstub.c: Ditto.
9532         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9533         * libc/sys/linux/dl/dl-runtime.c: Ditto.
9534         * libc/sys/linux/dl/dl-support.c: Ditto.
9535         * libc/sys/linux/dl/dl-sym.c: Ditto.
9536         * libc/sys/linux/dl/dl-version.c: Ditto.
9537         * libc/sys/linux/dl/dlfcn.h: Ditto.
9538         * libc/sys/linux/dl/do-lookup.h: Ditto.
9539         * libc/sys/linux/dl/do-rel.h: Ditto.
9540         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9541         * libc/sys/linux/dl/kernel-features.h: Ditto.
9542         * libc/sys/linux/dl/ldsodefs.h: Ditto.
9543         * libc/sys/linux/dl/libintl.h: Ditto.
9544         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
9545         * libc/sys/linux/dl/unsecvars.h: Ditto.
9546         * libc/sys/linux/iconv/Makefile.am: Ditto.
9547         * libc/sys/linux/iconv/Makefile.in: Ditto.
9548         * libc/sys/linux/iconv/categories.def: Ditto.
9549         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
9550         * libc/sys/linux/iconv/gconv.c: Ditto.
9551         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
9552         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
9553         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
9554         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
9555         * libc/sys/linux/iconv/gconv_close.c: Ditto.
9556         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
9557         * libc/sys/linux/iconv/gconv_db.c: Ditto.
9558         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
9559         * libc/sys/linux/iconv/gconv_int.h: Ditto.
9560         * libc/sys/linux/iconv/gconv_open.c: Ditto.
9561         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9562         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
9563         * libc/sys/linux/iconv/hash-string.h: Ditto.
9564         * libc/sys/linux/iconv/iconv.c: Ditto.
9565         * libc/sys/linux/iconv/iconv.h: Ditto.
9566         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
9567         * libc/sys/linux/iconv/iconv_close.c: Ditto.
9568         * libc/sys/linux/iconv/iconv_open.c: Ditto.
9569         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
9570         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
9571         * libc/sys/linux/iconv/loadinfo.h: Ditto.
9572         * libc/sys/linux/iconv/localeinfo.h: Ditto.
9573         * libc/sys/linux/iconv/loop.c: Ditto.
9574         * libc/sys/linux/iconv/skeleton.c: Ditto.
9575         * libc/sys/linux/iconv/strtab.c: Ditto.
9576         * libc/sys/linux/include/dl-hash.h: Ditto.
9577         * libc/sys/linux/include/dlfcn.h: Ditto.
9578         * libc/sys/linux/include/fnmatch.h: Ditto.
9579         * libc/sys/linux/include/gconv.h: Ditto.
9580         * libc/sys/linux/include/glob.h: Ditto.
9581         * libc/sys/linux/include/hesiod.h: Ditto.
9582         * libc/sys/linux/include/ifaddrs.h: Ditto.
9583         * libc/sys/linux/include/libc_private.h: Ditto.
9584         * libc/sys/linux/include/link.h: Ditto.
9585         * libc/sys/linux/include/namespace.h: Ditto.
9586         * libc/sys/linux/include/netconfig.h: Ditto.
9587         * libc/sys/linux/include/netdb.h: Ditto.
9588         * libc/sys/linux/include/nsswitch.h: Ditto.
9589         * libc/sys/linux/include/regex.h: Ditto.
9590         * libc/sys/linux/include/resolv.h: Ditto.
9591         * libc/sys/linux/include/rune.h: Ditto.
9592         * libc/sys/linux/include/runetype.h: Ditto.
9593         * libc/sys/linux/include/semaphore.h: Ditto.
9594         * libc/sys/linux/include/setlocale.h: Ditto.
9595         * libc/sys/linux/include/un-namespace.h: Ditto.
9596         * libc/sys/linux/include/wordexp.h: Ditto.
9597         * libc/sys/linux/include/arpa/ftp.h: Ditto.
9598         * libc/sys/linux/include/arpa/inet.h: Ditto.
9599         * libc/sys/linux/include/arpa/nameser.h: Ditto.
9600         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
9601         * libc/sys/linux/include/arpa/telnet.h: Ditto.
9602         * libc/sys/linux/include/arpa/tftp.h: Ditto.
9603         * libc/sys/linux/include/net/bpf.h: Ditto.
9604         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
9605         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
9606         * libc/sys/linux/include/net/bridge.h: Ditto.
9607         * libc/sys/linux/include/net/ethernet.h: Ditto.
9608         * libc/sys/linux/include/net/fddi.h: Ditto.
9609         * libc/sys/linux/include/net/if.h: Ditto.
9610         * libc/sys/linux/include/net/if_arc.h: Ditto.
9611         * libc/sys/linux/include/net/if_arp.h: Ditto.
9612         * libc/sys/linux/include/net/if_atm.h: Ditto.
9613         * libc/sys/linux/include/net/if_dl.h: Ditto.
9614         * libc/sys/linux/include/net/if_gif.h: Ditto.
9615         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
9616         * libc/sys/linux/include/net/if_llc.h: Ditto.
9617         * libc/sys/linux/include/net/if_media.h: Ditto.
9618         * libc/sys/linux/include/net/if_mib.h: Ditto.
9619         * libc/sys/linux/include/net/if_ppp.h: Ditto.
9620         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
9621         * libc/sys/linux/include/net/if_slvar.h: Ditto.
9622         * libc/sys/linux/include/net/if_sppp.h: Ditto.
9623         * libc/sys/linux/include/net/if_stf.h: Ditto.
9624         * libc/sys/linux/include/net/if_tap.h: Ditto.
9625         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
9626         * libc/sys/linux/include/net/if_tun.h: Ditto.
9627         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
9628         * libc/sys/linux/include/net/if_types.h: Ditto.
9629         * libc/sys/linux/include/net/if_var.h: Ditto.
9630         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
9631         * libc/sys/linux/include/net/intrq.h: Ditto.
9632         * libc/sys/linux/include/net/iso88025.h: Ditto.
9633         * libc/sys/linux/include/net/net_osdep.h: Ditto.
9634         * libc/sys/linux/include/net/netisr.h: Ditto.
9635         * libc/sys/linux/include/net/pfil.h: Ditto.
9636         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
9637         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
9638         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
9639         * libc/sys/linux/include/net/radix.h: Ditto.
9640         * libc/sys/linux/include/net/raw_cb.h: Ditto.
9641         * libc/sys/linux/include/net/route.h: Ditto.
9642         * libc/sys/linux/include/net/slcompress.h: Ditto.
9643         * libc/sys/linux/include/net/slip.h: Ditto.
9644         * libc/sys/linux/include/net/zlib.h: Ditto.
9645         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
9646         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
9647         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
9648         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
9649         * libc/sys/linux/include/netinet/igmp.h: Ditto.
9650         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
9651         * libc/sys/linux/include/netinet/in.h: Ditto.
9652         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
9653         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
9654         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
9655         * libc/sys/linux/include/netinet/in_var.h: Ditto.
9656         * libc/sys/linux/include/netinet/ip.h: Ditto.
9657         * libc/sys/linux/include/netinet/ip6.h: Ditto.
9658         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
9659         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
9660         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
9661         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
9662         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
9663         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
9664         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
9665         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
9666         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
9667         * libc/sys/linux/include/netinet/tcp.h: Ditto.
9668         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
9669         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
9670         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
9671         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
9672         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
9673         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
9674         * libc/sys/linux/include/netinet/udp.h: Ditto.
9675         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
9676         * libc/sys/linux/include/netinet6/ah.h: Ditto.
9677         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
9678         * libc/sys/linux/include/netinet6/esp.h: Ditto.
9679         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
9680         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
9681         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
9682         * libc/sys/linux/include/netinet6/in6.h: Ditto.
9683         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
9684         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
9685         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
9686         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
9687         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
9688         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
9689         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
9690         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
9691         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
9692         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
9693         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
9694         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
9695         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
9696         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
9697         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
9698         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
9699         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
9700         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
9701         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
9702         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
9703         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
9704         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
9705         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
9706         * libc/sys/linux/include/netns/idp.h: Ditto.
9707         * libc/sys/linux/include/netns/idp_var.h: Ditto.
9708         * libc/sys/linux/include/netns/ns.h: Ditto.
9709         * libc/sys/linux/include/netns/ns_error.h: Ditto.
9710         * libc/sys/linux/include/netns/ns_if.h: Ditto.
9711         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
9712         * libc/sys/linux/include/netns/sp.h: Ditto.
9713         * libc/sys/linux/include/netns/spidp.h: Ditto.
9714         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
9715         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
9716         * libc/sys/linux/include/netns/spp_var.h: Ditto.
9717         * libc/sys/linux/include/rpc/Makefile: Ditto.
9718         * libc/sys/linux/include/rpc/auth.h: Ditto.
9719         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
9720         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
9721         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
9722         * libc/sys/linux/include/rpc/clnt.h: Ditto.
9723         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
9724         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
9725         * libc/sys/linux/include/rpc/des.h: Ditto.
9726         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
9727         * libc/sys/linux/include/rpc/nettype.h: Ditto.
9728         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
9729         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
9730         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
9731         * libc/sys/linux/include/rpc/raw.h: Ditto.
9732         * libc/sys/linux/include/rpc/rpc.h: Ditto.
9733         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
9734         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
9735         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
9736         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
9737         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
9738         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
9739         * libc/sys/linux/include/rpc/svc.h: Ditto.
9740         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
9741         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
9742         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
9743         * libc/sys/linux/include/rpc/types.h: Ditto.
9744         * libc/sys/linux/include/rpc/xdr.h: Ditto.
9745         * libc/sys/linux/intl/Makefile.am: Ditto.
9746         * libc/sys/linux/intl/Makefile.in: Ditto.
9747         * libc/sys/linux/intl/bindtextdom.c: Ditto.
9748         * libc/sys/linux/intl/catgets.c: Ditto.
9749         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
9750         * libc/sys/linux/intl/config.h: Ditto.
9751         * libc/sys/linux/intl/dcgettext.c: Ditto.
9752         * libc/sys/linux/intl/dcigettext.c: Ditto.
9753         * libc/sys/linux/intl/dcngettext.c: Ditto.
9754         * libc/sys/linux/intl/dgettext.c: Ditto.
9755         * libc/sys/linux/intl/dngettext.c: Ditto.
9756         * libc/sys/linux/intl/explodename.c: Ditto.
9757         * libc/sys/linux/intl/finddomain.c: Ditto.
9758         * libc/sys/linux/intl/gettext.c: Ditto.
9759         * libc/sys/linux/intl/gettext.h: Ditto.
9760         * libc/sys/linux/intl/gettextP.h: Ditto.
9761         * libc/sys/linux/intl/hash-string.h: Ditto.
9762         * libc/sys/linux/intl/l10nflist.c: Ditto.
9763         * libc/sys/linux/intl/loadinfo.h: Ditto.
9764         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
9765         * libc/sys/linux/intl/locale.alias: Ditto.
9766         * libc/sys/linux/intl/localealias.c: Ditto.
9767         * libc/sys/linux/intl/ngettext.c: Ditto.
9768         * libc/sys/linux/intl/open_catalog.c: Ditto.
9769         * libc/sys/linux/intl/plural.c: Ditto.
9770         * libc/sys/linux/intl/plural.y: Ditto.
9771         * libc/sys/linux/intl/stpcpy.c: Ditto.
9772         * libc/sys/linux/intl/textdomain.c: Ditto.
9773         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
9774         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
9775         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
9776         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
9777         * libc/sys/linux/linuxthreads/attr.c: Ditto.
9778         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
9779         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
9780         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
9781         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
9782         * libc/sys/linux/linuxthreads/config.h: Ditto.
9783         * libc/sys/linux/linuxthreads/configure: Ditto.
9784         * libc/sys/linux/linuxthreads/configure.in: Ditto.
9785         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
9786         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
9787         * libc/sys/linux/linuxthreads/events.c: Ditto.
9788         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
9789         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
9790         * libc/sys/linux/linuxthreads/internals.h: Ditto.
9791         * libc/sys/linux/linuxthreads/join.c: Ditto.
9792         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
9793         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
9794         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
9795         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
9796         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
9797         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
9798         * libc/sys/linux/linuxthreads/manager.c: Ditto.
9799         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
9800         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
9801         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
9802         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
9803         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
9804         * libc/sys/linux/linuxthreads/prio.c: Ditto.
9805         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
9806         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
9807         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
9808         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
9809         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
9810         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
9811         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
9812         * libc/sys/linux/linuxthreads/queue.h: Ditto.
9813         * libc/sys/linux/linuxthreads/reent.c: Ditto.
9814         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
9815         * libc/sys/linux/linuxthreads/restart.h: Ditto.
9816         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
9817         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
9818         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
9819         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
9820         * libc/sys/linux/linuxthreads/signals.c: Ditto.
9821         * libc/sys/linux/linuxthreads/specific.c: Ditto.
9822         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
9823         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
9824         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
9825         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
9826         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9827         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
9828         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9829         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9830         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9831         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9832         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9833         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9834         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9835         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9836         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9837         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9838         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9839         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9840         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9841         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9842         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9843         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9844         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9845         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9846         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9847         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9848         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9849         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9850         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9851         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9852         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9853         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9854         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9855         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9856         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9857         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9858         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9859         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9860         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9861         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9862         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9863         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
9864         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
9865         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
9866         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
9867         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
9868         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
9869         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
9870         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
9871         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
9872         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
9873         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
9874         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
9875         * libc/sys/linux/linuxthreads/unload.c: Ditto.
9876         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
9877         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
9878         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
9879         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
9880         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
9881         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
9882         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
9883         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
9884         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
9885         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
9886         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
9887         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
9888         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
9889         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
9890         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
9891         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
9892         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
9893         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
9894         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
9895         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
9896         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
9897         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
9898         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
9899         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
9900         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
9901         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
9902         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
9903         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
9904         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
9905         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
9906         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
9907         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
9908         * libc/sys/linux/net/Makefile.am: Ditto.
9909         * libc/sys/linux/net/Makefile.in: Ditto.
9910         * libc/sys/linux/net/addr2ascii.3: Ditto.
9911         * libc/sys/linux/net/addr2ascii.c: Ditto.
9912         * libc/sys/linux/net/ascii2addr.c: Ditto.
9913         * libc/sys/linux/net/base64.c: Ditto.
9914         * libc/sys/linux/net/bindresvport.c: Ditto.
9915         * libc/sys/linux/net/byteorder.3: Ditto.
9916         * libc/sys/linux/net/ether_addr.c: Ditto.
9917         * libc/sys/linux/net/ethers.3: Ditto.
9918         * libc/sys/linux/net/getaddrinfo.3: Ditto.
9919         * libc/sys/linux/net/getaddrinfo.c: Ditto.
9920         * libc/sys/linux/net/gethostbydns.c: Ditto.
9921         * libc/sys/linux/net/gethostbyht.c: Ditto.
9922         * libc/sys/linux/net/gethostbyname.3: Ditto.
9923         * libc/sys/linux/net/gethostbynis.c: Ditto.
9924         * libc/sys/linux/net/gethostnamadr.c: Ditto.
9925         * libc/sys/linux/net/getifaddrs.3: Ditto.
9926         * libc/sys/linux/net/getifaddrs.c: Ditto.
9927         * libc/sys/linux/net/getipnodebyname.3: Ditto.
9928         * libc/sys/linux/net/getnameinfo.3: Ditto.
9929         * libc/sys/linux/net/getnameinfo.c: Ditto.
9930         * libc/sys/linux/net/getnetbydns.c: Ditto.
9931         * libc/sys/linux/net/getnetbyht.c: Ditto.
9932         * libc/sys/linux/net/getnetbynis.c: Ditto.
9933         * libc/sys/linux/net/getnetent.3: Ditto.
9934         * libc/sys/linux/net/getnetnamadr.c: Ditto.
9935         * libc/sys/linux/net/getproto.c: Ditto.
9936         * libc/sys/linux/net/getprotoent.3: Ditto.
9937         * libc/sys/linux/net/getprotoent.c: Ditto.
9938         * libc/sys/linux/net/getprotoname.c: Ditto.
9939         * libc/sys/linux/net/getservbyname.c: Ditto.
9940         * libc/sys/linux/net/getservbyport.c: Ditto.
9941         * libc/sys/linux/net/getservent.3: Ditto.
9942         * libc/sys/linux/net/getservent.c: Ditto.
9943         * libc/sys/linux/net/herror.c: Ditto.
9944         * libc/sys/linux/net/hesiod.3: Ditto.
9945         * libc/sys/linux/net/hesiod.c: Ditto.
9946         * libc/sys/linux/net/if_indextoname.3: Ditto.
9947         * libc/sys/linux/net/ifname.c: Ditto.
9948         * libc/sys/linux/net/inet.3: Ditto.
9949         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
9950         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
9951         * libc/sys/linux/net/inet_addr.c: Ditto.
9952         * libc/sys/linux/net/inet_lnaof.c: Ditto.
9953         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
9954         * libc/sys/linux/net/inet_net.3: Ditto.
9955         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
9956         * libc/sys/linux/net/inet_net_pton.c: Ditto.
9957         * libc/sys/linux/net/inet_neta.c: Ditto.
9958         * libc/sys/linux/net/inet_netof.c: Ditto.
9959         * libc/sys/linux/net/inet_network.c: Ditto.
9960         * libc/sys/linux/net/inet_ntoa.c: Ditto.
9961         * libc/sys/linux/net/inet_ntop.c: Ditto.
9962         * libc/sys/linux/net/inet_pton.c: Ditto.
9963         * libc/sys/linux/net/innetgr-stub.c: Ditto.
9964         * libc/sys/linux/net/ip6opt.c: Ditto.
9965         * libc/sys/linux/net/iso_addr.3: Ditto.
9966         * libc/sys/linux/net/iso_addr.c: Ditto.
9967         * libc/sys/linux/net/issetugid-stub.c: Ditto.
9968         * libc/sys/linux/net/linkaddr.3: Ditto.
9969         * libc/sys/linux/net/linkaddr.c: Ditto.
9970         * libc/sys/linux/net/map_v4v6.c: Ditto.
9971         * libc/sys/linux/net/name6.c: Ditto.
9972         * libc/sys/linux/net/namespace.h: Ditto.
9973         * libc/sys/linux/net/ns.3: Ditto.
9974         * libc/sys/linux/net/ns_addr.c: Ditto.
9975         * libc/sys/linux/net/ns_name.c: Ditto.
9976         * libc/sys/linux/net/ns_netint.c: Ditto.
9977         * libc/sys/linux/net/ns_ntoa.c: Ditto.
9978         * libc/sys/linux/net/ns_parse.c: Ditto.
9979         * libc/sys/linux/net/ns_print.c: Ditto.
9980         * libc/sys/linux/net/ns_ttl.c: Ditto.
9981         * libc/sys/linux/net/nsap_addr.c: Ditto.
9982         * libc/sys/linux/net/nsdispatch.3: Ditto.
9983         * libc/sys/linux/net/nsdispatch.c: Ditto.
9984         * libc/sys/linux/net/nslexer.c: Ditto.
9985         * libc/sys/linux/net/nslexer.l: Ditto.
9986         * libc/sys/linux/net/nsparser.c: Ditto.
9987         * libc/sys/linux/net/nsparser.h: Ditto.
9988         * libc/sys/linux/net/nsparser.y: Ditto.
9989         * libc/sys/linux/net/rcmd.3: Ditto.
9990         * libc/sys/linux/net/rcmd.c: Ditto.
9991         * libc/sys/linux/net/rcmdsh.3: Ditto.
9992         * libc/sys/linux/net/rcmdsh.c: Ditto.
9993         * libc/sys/linux/net/recv.c: Ditto.
9994         * libc/sys/linux/net/res_comp.c: Ditto.
9995         * libc/sys/linux/net/res_config.h: Ditto.
9996         * libc/sys/linux/net/res_data.c: Ditto.
9997         * libc/sys/linux/net/res_debug.c: Ditto.
9998         * libc/sys/linux/net/res_init.c: Ditto.
9999         * libc/sys/linux/net/res_mkquery.c: Ditto.
10000         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10001         * libc/sys/linux/net/res_query.c: Ditto.
10002         * libc/sys/linux/net/res_send.c: Ditto.
10003         * libc/sys/linux/net/res_update.c: Ditto.
10004         * libc/sys/linux/net/resolver.3: Ditto.
10005         * libc/sys/linux/net/rthdr.c: Ditto.
10006         * libc/sys/linux/net/send.c: Ditto.
10007         * libc/sys/linux/net/un-namespace.h: Ditto.
10008         * libc/sys/linux/net/vars.c: Ditto.
10009         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10010         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10011         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10012         * libc/sys/linux/stdlib/cclass.h: Ditto.
10013         * libc/sys/linux/stdlib/cname.h: Ditto.
10014         * libc/sys/linux/stdlib/collate.c: Ditto.
10015         * libc/sys/linux/stdlib/collate.h: Ditto.
10016         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10017         * libc/sys/linux/stdlib/engine.c: Ditto.
10018         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10019         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10020         * libc/sys/linux/stdlib/glob.3: Ditto.
10021         * libc/sys/linux/stdlib/glob.c: Ditto.
10022         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10023         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10024         * libc/sys/linux/stdlib/regerror.c: Ditto.
10025         * libc/sys/linux/stdlib/regex.3: Ditto.
10026         * libc/sys/linux/stdlib/regex2.h: Ditto.
10027         * libc/sys/linux/stdlib/regexec.c: Ditto.
10028         * libc/sys/linux/stdlib/regfree.c: Ditto.
10029         * libc/sys/linux/stdlib/utils.h: Ditto.
10030         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10031         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10032         * libc/sys/linux/sys/dlfcn.h: Ditto.
10033         * libc/sys/linux/sys/elfclass.h: Ditto.
10034         * libc/sys/linux/sys/event.h: Ditto.
10035         * libc/sys/linux/sys/ioccom.h: Ditto.
10036         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10037         * libc/sys/linux/sys/link.h: Ditto.
10038         * libc/sys/linux/sys/lock.h: Ditto.
10039         * libc/sys/linux/sys/param.h: Ditto.
10040         * libc/sys/linux/sys/socket.h: Ditto.
10041         * libc/sys/linux/sys/sockio.h: Ditto.
10042
10043 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10044
10045         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10046         normal mode
10047         * newlib/libc/machine/h8300/memset.S: Likewise
10048         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10049         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10050         * newlib/lib/machine/h8300/setjmp.S: Likewise
10051         * newlib/lib/machine/h8300/strcmp.S: Likewise
10052         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10053
10054 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10055
10056         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10057         * libc/include/stdio.h: Ditto.
10058         * libc/include/sys/config.h: Ditto.
10059         * libc/stdio/mktemp.c: Ditto.
10060
10061 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10062
10063         * libc/locale/ldpart.c (__part_load_locale): Substitute
10064         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10065         * libc/search/hash.c (__hash_open): Ditto.
10066         (init_hash): Ditto.
10067         * libc/stdio/fseek.c (fseek): Ditto.
10068         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10069         * libc/stdio/mktemp.c (_gettemp): Ditto.
10070
10071 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10072
10073         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10074
10075 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10076
10077         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10078         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10079         if __CYGWIN_USE_BIG_TYPES__ is set.
10080         * libc/search/hash.c (__hash_open): Ditto.
10081         (init_hash): Ditto.
10082         * libc/stdio/fseek.c (fseek): Ditto.
10083         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10084         * libc/stdio/mktemp.c (_gettemp): Ditto.
10085         * libc/sys/cygwin/Makefile.am: Remove.
10086         * libc/sys/cygwin/Makefile.in: Remove.
10087         * libc/sys/cygwin/aclocal.m4: Remove.
10088         * libc/sys/cygwin/configure: Remove.
10089         * libc/sys/cygwin/configure.in: Remove.
10090         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10091         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10092         directory.
10093         * libc/sys/cygwin/sys/param.h: Ditto.
10094         * libc/sys/cygwin/sys/utime.h: Ditto.
10095         * libc/sys/cygwin/sys/utmp.h: Ditto.
10096
10097 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10098
10099         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10100
10101 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10102
10103         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10104         64 bit inodes.
10105
10106 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10107
10108         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10109         Include cygwin/config.h instead.
10110
10111 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10112
10113         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10114         all code with #ifdef __SPE__ test.
10115         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10116
10117 2003-04-15  Chris January <chris@atomice.net>
10118
10119         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10120         Cygwin.
10121
10122 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10123
10124         * libc/machine/sh/memset.S: Avoid clobbering volatile
10125         objects following a tiny to-be-set array in the same quadword.
10126
10127 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10128
10129         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10130         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10131         * libc/string/Makefile.in: Regenerated.
10132         * libc/string/wcswidth.c: New file.
10133         * libc/string/wcwidth.c: New file.
10134         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10135
10136 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10137
10138         * libc/machine/sh/memset.S: Fix problem with alloco region
10139         exceeding destination region for length >= 88 bytes, start
10140         & 0x16 == 0, end & 0x1f == 18.
10141
10142 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10143
10144         * libc/string/wcscoll.c: Fix comment.
10145
10146 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10147
10148         * libc/include/wchar.h: Add definition for wcscoll.
10149         * libc/string/Makefile.am: Add wcscoll.c.
10150         * libc/string/Makefile.in: Regenerated.
10151         * libc/string/wcscoll.c: New file.
10152         * libc/string/wcstrings.tex: Add wcscoll.
10153
10154 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10155
10156         * libc/stdio/sscanf.c: Update flags description.
10157         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10158         type.
10159         (__svfscanf_r): Add 'hh' and 'll' handling.
10160
10161 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10162
10163         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10164         __d_position member to _off_t.
10165
10166 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10167
10168         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10169         count all characters used to create number against maximum width.
10170         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10171
10172 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10173
10174         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10175         support.
10176         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10177         flag to support simulator only extensions.
10178
10179 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10180
10181         * libc/string/wcschr.c: (wcschr): Look for character first,
10182         then for end of string, so you can do wcschr(x, '\0').
10183
10184 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10185
10186         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10187         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10188         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10189         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10190         * libc/stdio/fseeko.c (fseeko): Ditto.
10191         * libc/stdio/ftello.c (ftello): Ditto.
10192         * libc/stdio/stdio.c (__swrite): Ditto.
10193         (__sseek): Ditto.
10194         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10195         * libc/stdio/fseek.c (fseek): Ditto.
10196         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10197         * libc/stdio/ftell.c (ftell): Ditto.
10198         * libc/stdio/local.h: Declare __sseek using _off_t.
10199
10200 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10201
10202         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10203
10204 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10205
10206         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10207         Cygwin.
10208
10209 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10210
10211         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10212         Cygwin.
10213         * libc/include/sys/stat.h: Ditto.
10214         * libc/include/sys/unistd.h: Ditto.
10215         * libc/sys/cygwin/sys/dirent.h: Ditto.
10216
10217 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10218
10219         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10220         declaration of getopt and avoid getopt_long declaration.
10221         * libc/sys/cygwin/include/unistd.h: Remove.
10222
10223 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10224
10225         * configure.host: Define stdio64_dir for Cygwin.
10226         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10227         Cygwin 64bit file access requirements.
10228         Drop definition of f*64() functions when compiled for Cygwin.
10229         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
10230         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
10231         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
10232
10233 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
10234
10235         * libc/include/sys/reent.h: Remove extraneous _sig_func
10236         declaration.
10237
10238 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
10239
10240         * libc/sys/h8300hms/Makefile.am: Add support for new files.
10241         * libc/sys/h8300hms/Makefile.in: Regenerated.
10242         * libc/sys/h8300hms/close.S: New file.
10243         * libc/sys/h8300hms/fstat.S: Ditto.
10244         * libc/sys/h8300hms/lseek.S: Ditto.
10245         * libc/sys/h8300hms/open.S: Ditto.
10246         * libc/sys/h8300hms/stat.S: Ditto.
10247         * libc/sys/h8300hms/read.S: New file to replace read.c.
10248         * libc/sys/h8300hms/read.c: Removed.
10249         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
10250         _lseek, _close, _stat, _fstat.
10251         * libc/sys/h8300hms/write.S: New file to replace write.c.
10252         * libc/sys/h8300hms/write.c: Removed.
10253
10254 2003-02-20  Nick Clifton  <nickc@redhat.com>
10255
10256         * Add support for Cirrus Maverick ARM co-processor:
10257
10258         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
10259
10260                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
10261                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
10262
10263         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
10264
10265                 * configure.host: set sys_dir, syscall_dir, and
10266                 newlib_cflags for ep9312 host.
10267
10268         * configure.host: Restore alpha sorting of entries in case
10269         statements.
10270
10271 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10272
10273         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
10274
10275 2003-02-18  Christian Groessler  <chris@groessler.org>
10276
10277         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
10278         support z8001 segmented mode.
10279
10280 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
10281
10282         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
10283         with a NULL value.
10284
10285 2003-02-10  Christopher Faylor  <cgf@redhat.com>
10286
10287         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
10288         Don't define some types under cygwin.
10289
10290 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
10291
10292         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
10293         option to allow disabling of syscalls being supplied in newlib.
10294         * aclocal.m4: Regenerated.
10295         * configure: Ditto.
10296         * configure.host: Add support of new configuration option and add
10297         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
10298         * doc/aclocal.m4: Regenerated.
10299         * doc/configure: Ditto.
10300         * libc/*aclocal.m4: Ditto.
10301         * libc/*configure: Ditto.
10302         * libm/*aclocal.m4: Ditto.
10303         * libm/*configure: Ditto.
10304         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
10305         is disabled.
10306         * libc/sys/arm/Makefile.in: Regenerated.
10307
10308 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
10309
10310         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
10311         -1 to be sure it cannot later match a valid file fd causing
10312         isatty() to return 1.
10313         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
10314         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
10315         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
10316
10317 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
10318
10319         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
10320         buffer based on the precision, after we have processed the input value
10321         in a local buffer and know its relative magnitude.
10322
10323 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10324
10325         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
10326         into registers r1 and r2, so that the simulator can distinguish
10327         this trap from a breakpoint trap.  Copied from libgloss.
10328
10329 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10330
10331         * libc/sys/h8300hms/crt0.S (_start): Change local label
10332         from .loop to .Loop, so that ld and gdb will ignore it.
10333
10334 2003-01-29  Jason Tishler  <jason@tishler.net>
10335
10336         * libc/include/time.h: Declare nanosleep() under Cygwin.
10337
10338 2003-01-24  Nick Clifton  <nickc@redhat.com>
10339
10340         * Add sh2e support:
10341
10342         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
10343
10344                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
10345                 * libc/machine/sh/setjmp.S: Likewise.
10346                 * libc/include/machine/ieeefp.h: Likewise.
10347
10348 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
10349
10350         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
10351         for Cygwin.
10352
10353 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
10354
10355         * libc/time/difftime.c : Typecast the result to double.
10356
10357 2003-01-20  Christopher Faylor  <cgf@redhat.com>
10358
10359         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
10360
10361 2003-01-18  Nick Clifton  <nickc@redhat.com>
10362
10363         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
10364         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
10365
10366 2003-01-16  Joel Sherrill <joel@OARcorp.com>
10367
10368         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
10369         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
10370         constants are defined in each file in the shared versions in
10371         libc/include.
10372         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
10373         autoconf can link programs.
10374         * libc/include/machine/types.h: Explicitly specify signed on
10375         intXX_t types to ensure they are signed.
10376
10377 2003-01-14  Christopher Faylor  <cgf@redhat.com>
10378
10379         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
10380         extensions.
10381
10382 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
10383
10384         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
10385
10386 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
10387
10388         * libc/stdio/sprintf.c: fix typo
10389         * libc/stdio/vfprintf.c: fix typo
10390
10391 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
10392
10393         * configure.host: Support long double I/O for x86-linux.
10394         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
10395         large enough to hold formatted result.
10396         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
10397
10398 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10399
10400         * Makefile.am: Add vasprintf.
10401         * Makefile.in: Regenerated.
10402
10403 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10404
10405         * asprintf.c (_asprintf_r): insure both declarations
10406         are the same.
10407
10408 2002-12-28  Christopher Faylor  <cgf@redhat.com>
10409
10410         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
10411         than defining getopt directly.
10412
10413 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10414
10415         * NEWS: Update with 1.11.0 info.
10416         * README: Ditto.
10417         * acinclude.m4: Change version number to 1.11.0.
10418         * aclocal.m4: Regenerated.
10419         * configure: Ditto.
10420         * doc/aclocal.m4: Ditto.
10421         * doc/configure: Ditto.
10422         * libc/*/aclocal.m4: Ditto.
10423         * libc/*/configure: Ditto.
10424         * libc/libc.texinfo: Ditto.
10425         * libm/*/aclocal.m4: Ditto.
10426         * libm/*/configure: Ditto.
10427         * libm/libm.texinfo: Ditto.
10428         * libc/sys/linux/shared.ld: Add VERS_1.11.
10429
10430 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10431
10432         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
10433         Solutions to Red Hat Inc.
10434         * libc/machine/i386/f_atan2f.S: Ditto.
10435         * libc/machine/i386/f_exp.c: Ditto.
10436         * libc/machine/i386/f_expf.c: Ditto.
10437         * libc/machine/i386/f_frexp.S: Ditto.
10438         * libc/machine/i386/f_frexpf.S: Ditto.
10439         * libc/machine/i386/f_ldexp.S: Ditto.
10440         * libc/machine/i386/f_ldexpf.S: Ditto.
10441         * libc/machine/i386/f_log.S: Ditto.
10442         * libc/machine/i386/f_log10.S: Ditto.
10443         * libc/machine/i386/f_log10f.S: Ditto.
10444         * libc/machine/i386/f_logf.S: Ditto.
10445         * libc/machine/i386/f_pow.c: Ditto.
10446         * libc/machine/i386/f_powf.c: Ditto.
10447         * libc/machine/i386/f_tan.S: Ditto.
10448         * libc/machine/i386/f_tanf.S: Ditto.
10449         * libc/machine/i386/memchr.S: Ditto.
10450         * libc/machine/i386/memcmp.S: Ditto.
10451         * libc/machine/i386/memcpy.S: Ditto.
10452         * libc/machine/i386/memmove.S: Ditto.
10453         * libc/machine/i386/memset.S: Ditto.
10454         * libc/machine/i386/strchr.S: Ditto.
10455         * libc/machine/i386/strlen.S: Ditto.
10456         * libm/machine/i386/f_atan2.S: Ditto.
10457         * libm/machine/i386/f_atan2f.S: Ditto.
10458         * libm/machine/i386/f_exp.c: Ditto.
10459         * libm/machine/i386/f_expf.c: Ditto.
10460         * libm/machine/i386/f_frexp.S: Ditto.
10461         * libm/machine/i386/f_frexpf.S: Ditto.
10462         * libm/machine/i386/f_ldexp.S: Ditto.
10463         * libm/machine/i386/f_ldexpf.S: Ditto.
10464         * libm/machine/i386/f_log.S: Ditto.
10465         * libm/machine/i386/f_log10.S: Ditto.
10466         * libm/machine/i386/f_log10f.S: Ditto.
10467         * libm/machine/i386/f_logf.S: Ditto.
10468         * libm/machine/i386/f_pow.c: Ditto.
10469         * libm/machine/i386/f_powf.c: Ditto.
10470         * libm/machine/i386/f_tan.S: Ditto.
10471         * libm/machine/i386/f_tanf.S: Ditto.
10472
10473 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10474
10475         * libc/stdlib/environ.c: Update license to Red Hat.
10476         * libc/machine/hppa/setjmp.S: Ditto.
10477         * libm/test/Makefile.in: Ditto.
10478
10479 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
10480
10481         * configure.host: Remove references to go32.
10482         * libc/sys/go32/*: Removed.
10483
10484 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
10485
10486         * libc/include/sys/config.h: Change setting of INT_MAX
10487         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
10488         __H8300S__.  Also consolidate flag settings for these
10489         platforms.
10490
10491 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
10492
10493         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
10494         for i386-rtems targets.
10495
10496 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
10497
10498         * libc/include/stdlib.h (strtof): New prototype (from C99).
10499         (strtodf): Changed from prototype to macro which redefines
10500         to strtof.
10501         * libc/stdlib/atof.c: Change documentation to refer to strtof
10502         instead of strtodf.
10503         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
10504         strtodf.
10505         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
10506         (strtof): New function.
10507         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
10508         calls strtof.
10509
10510 2002-11-27  Christopher Faylor  <cgf@redhat.com>
10511
10512         * libc/string/memset.c (memset): Fix comment.
10513
10514 2002-11-26  Christopher Faylor  <cgf@redhat.com>
10515
10516         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
10517         function.
10518
10519 2002-11-25  Christopher Faylor  <cgf@redhat.com>
10520
10521         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
10522         variable, introduced below, everywhere.
10523
10524 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
10525
10526         * libc/string/memset.c (memset): Make it safe even if
10527         sizeof (int) = 2.
10528
10529 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
10530
10531         * configure.in: Change check for libc/include in ${CC} to
10532         use an intermediate value so as to work with different shells.
10533         * configure: Regenerated.
10534         * Makefile.in: Ditto.
10535
10536 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
10537
10538         * libc/sys/h8300hms/read.c: Add support for normal mode
10539         architecture.
10540
10541 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
10542
10543         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
10544         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
10545         when -mint32 is used.
10546
10547 2002-11-18  Nick Clifton  <nickc@redhat.com>
10548
10549         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
10550
10551 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
10552
10553         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
10554         only issue one pass/fail message for a compile/link/execute.
10555         * testsuite/newlib.elix/elix.exp: New file.
10556         * testsuite/newlib.elix/tmmap.c: Ditto.
10557
10558 2002-11-06  Christopher Faylor  <cgf@redhat.com>
10559
10560         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
10561         * libc/stdlib/mlock.c: Ditto.
10562         * libc/stdlib/msize.c: Ditto.
10563         * libc/stdlib/msize.c: Ditto.
10564         * libc/stdlib/mtrim.c: Ditto.
10565         * libc/stdlib/valloc.c: Ditto.
10566
10567 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
10568
10569         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
10570         for inf/nan, make sure that the check ignores the sign bit.
10571
10572 2002-11-07  Joel Sherrill <joel@OARcorp.com>
10573
10574         * libc/sys/rtems/machine: New directory.
10575         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
10576         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
10577         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
10578         targets more BSD like when installed without requiring files to
10579         be overwritten at install point when RTEMS itself is installed.
10580         * Makefile.am: Pick up system dependent machine .h files such as
10581         might be found on a BSD-ish system.
10582         * Makefile.in: Regenerate.
10583         * libc/include/machine/types.h: When on an RTEMS target, define a
10584         few BSD flavor types.
10585
10586 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
10587
10588         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
10589
10590 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10591
10592         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
10593         * libc/include/wctype.h: Ditto.
10594
10595 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
10596
10597         * libc/include/wchar.h: Add extern "C" specifier if C++.
10598         * libc/include/wctype.h: Ditto.
10599
10600 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10601
10602         * testsuite/newlib.wctype/tiswctype.c: New test case.
10603         * testsuite/newlib.wctype/twctrans.c: Ditto.
10604
10605 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10606
10607         * libc/sys/linux/machine/i386/include/endian.h: New file.
10608         * libc/sys/linux/machine/i386/include/param.h: Ditto.
10609
10610 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10611
10612         * libm/machine/i386/aclocal.m4: Regenerated.
10613         * libm/machine/i386/configure: Ditto.
10614
10615 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10616
10617         * testsuite/include/check.h: New header file to use with
10618         test cases.
10619         * testsuite/lib/newlib.exp: Add testsuite/include directory
10620         to list of header files to use.
10621         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
10622         * testsuite/newlib.wctype/wctype.exp: New file.
10623
10624 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
10625             Richard Sandiford  <rsandifo@redhat.com>
10626
10627         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
10628         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
10629         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
10630
10631 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10632
10633         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
10634         dummy programs.
10635
10636 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10637
10638         * libc/include/pthread.h: Define PTHREAD_CANCELED.
10639
10640 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10641
10642         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
10643         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
10644         compile with current GNU tools.
10645
10646 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
10647
10648         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
10649         the build library.
10650         * configure.in: Ditto.
10651         * Makefile.in: Regenerated.
10652         * configure: Ditto.
10653         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
10654         for specifying configured libraries/directories.
10655         * libc/sys/linux/configure.in: Ditto.
10656         * libc/sys/linux/Makefile.in: Regenerated.
10657         * libc/sys/linux/configure: Ditto.
10658
10659 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
10660
10661         * libc/include/reent.h: Update documentation at start of file.
10662
10663 2002-09-27  Jim Wilson  <wilson@redhat.com>
10664
10665         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
10666         the ctbp register.
10667
10668 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
10669
10670         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
10671         Also convert to EUCJP before using arrays.  For values not in
10672         the conversion arrays, return WEOF.
10673         * libc/ctype/jp2uc.h: Change from one array to a number of
10674         arrays to account for the fact that the originating table
10675         is not contiguous for the input values since some are invalid.
10676
10677 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
10678
10679         * libc/time/ctime.c: Fix prototype documentation.
10680
10681 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
10682
10683         * libc/include/sys/errno.h: Add EOVERFLOW.
10684
10685 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10686
10687         * libc/include/wctype.h: New file.
10688
10689 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10690
10691         * libc/ctype/Makefile.am: Add new files.
10692         * libc/ctype/Makefile.in: Regenerated.
10693         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
10694         and wctrans functions to documentation index.
10695         * libc/ctype/iswalnum.c: New file.
10696         * libc/ctype/iswalpha.c: Ditto.
10697         * libc/ctype/iswblank.c: Ditto.
10698         * libc/ctype/iswcntrl.c: Ditto.
10699         * libc/ctype/iswctype.c: Ditto.
10700         * libc/ctype/iswdigit.c: Ditto.
10701         * libc/ctype/iswgraph.c: Ditto.
10702         * libc/ctype/iswlower.c: Ditto.
10703         * libc/ctype/iswprint.c: Ditto.
10704         * libc/ctype/iswpunct.c: Ditto.
10705         * libc/ctype/iswspace.c: Ditto.
10706         * libc/ctype/iswupper.c: Ditto.
10707         * libc/ctype/iswxdigit.c: Ditto.
10708         * libc/ctype/jp2uc.c: Ditto.
10709         * libc/ctype/jp2uc.h: Ditto.
10710         * libc/ctype/local.h: Ditto.
10711         * libc/ctype/towctrans.c: Ditto.
10712         * libc/ctype/towlower.c: Ditto.
10713         * libc/ctype/towupper.c: Ditto.
10714         * libc/ctype/utf8alpha.h: Ditto.
10715         * libc/ctype/utf8print.h: Ditto.
10716         * libc/ctype/utf8punct.h: Ditto.
10717         * libc/ctype/wctrans.c: Ditto.
10718         * libc/ctype/wctype.c: Ditto.
10719         * libc/locale/locale.c (__lc_ctype): New external array to
10720         replace static lc_ctype array.
10721         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
10722         rather than reentrancy structure's _current_locale field.
10723         * libc/stdlib/wctomb_r.c: Ditto.
10724
10725 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10726
10727         * configure.host: Minor comment and formatting changes.
10728         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
10729         * libc/Makefile.in: Regenerated.
10730         * libc/include/sys/config.h: Minor format change.
10731
10732 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10733
10734         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
10735         statement comment.
10736
10737 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10738
10739         * libc/posix/opendir.c (opendir): Change code to check
10740         for HAVE_FCNTL before calling fcntl.
10741         * libc/search/hash.c (hash_open): Ditto.
10742         * libc/search/hash_page.c (open_tmp): Ditto.
10743         * libc/reent/Makefile.am: Add fcntlr.c.
10744         * libc/reent/Makefile.in: Regenerated.
10745         * libc/reent/fcntlr.c: New file.
10746         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
10747         instead of _fcntl when HAVE_FCNTL flag is set.
10748         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
10749         to see if _fcntl or _fcntl_r should be called.  If flag is not
10750         set, default to ENOSYS stub.
10751
10752 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
10753
10754         * libc/include/wchar.h (mbstate_t): Change protective flag to
10755         be _MBSTATE_T.
10756         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
10757         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
10758         for Cygwin.
10759         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
10760
10761 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
10762
10763         * acinclude.m4 (enable-newlib-mb): Change check to
10764         default newlib_mb variable to empty string rather than "no".
10765         * configure.host: Remove hard-coding of -DMB_CAPABLE for
10766         x86-linux and Cygwin.  Add code to check for newlib_mb
10767         being unset in which case set to "yes" for x86-linux and
10768         Cygwin.  Change check for newlib_mb being "yes" to allow
10769         for an empty string.
10770         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
10771         * newlib.hin (_MB_LEN_MAX): New define to configure.
10772         * aclocal.m4: Regenerated.
10773         * configure: Ditto.
10774         * libc/include/limits.h: New file.
10775         * libc/sys/linux/include/limits.h: Ditto.
10776         * doc/aclocal.m4 doc/configure libc/aclocal.m4
10777           libc/configure libc/machine/aclocal.m4
10778           libc/machine/configure libc/machine/a29k/aclocal.m4
10779           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
10780           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
10781           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
10782           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
10783           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
10784           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
10785           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
10786           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
10787           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
10788           libc/machine/i386/configure libc/machine/i960/aclocal.m4
10789           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
10790           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
10791           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
10792           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
10793           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
10794           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
10795           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
10796           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
10797           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
10798           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
10799           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
10800           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
10801           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
10802           libc/machine/v850/configure libc/machine/w65/aclocal.m4
10803           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
10804           libc/machine/xscale/configure
10805           libc/machine/xstormy16/aclocal.m4
10806           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
10807           libc/machine/z8k/configure libc/sys/aclocal.m4
10808           libc/sys/configure libc/sys/a29khif/aclocal.m4
10809           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
10810           libc/sys/arc/configure libc/sys/arm/aclocal.m4
10811           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
10812           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
10813           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
10814           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
10815           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
10816           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
10817           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
10818           libc/sys/idt/configure libc/sys/linux/aclocal.m4
10819           libc/sys/linux/configure
10820           libc/sys/linux/machine/aclocal.m4
10821           libc/sys/linux/machine/configure
10822           libc/sys/linux/machine/i386/aclocal.m4
10823           libc/sys/linux/machine/i386/configure
10824           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
10825           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
10826           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
10827           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
10828           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
10829           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
10830           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
10831           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
10832           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
10833           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
10834           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
10835           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
10836           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
10837           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
10838           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
10839           libm/aclocal.m4 libm/configure: Regenerated.
10840
10841 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10842
10843         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
10844         code that clears the .bss section.
10845
10846 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10847
10848         * libc/include/sys/_types.h (_mbstate_t): Changed to use
10849         unsigned char internally.
10850         * libc/sys/linux/sys/_types.h: Ditto.
10851         * libc/include/sys/reent.h
10852         * libc/stdlib/mblen.c (mblen): Use function-specific state
10853         value from default reentrancy structure.
10854         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
10855         _mbtowc_r is less than 0, reset state __count value and
10856         return -1.
10857         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
10858         is NULL, use the function-specific pointer provided in the
10859         default reentrancy structure.
10860         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
10861         If input state pointer is NULL, use function-specific area
10862         provided in reentrancy structure.
10863         * libc/stdlib/mbsrtowcs.c: Ditto.
10864         * libc/stdlib/wcrtomb.c: Ditto.
10865         * libc/stdlib/wcsrtombs.c: Ditto.
10866         * libc/stdlib/mbstowcs.c: Reformat.
10867         * libc/stdlib/wcstombs.c: Ditto.
10868         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
10869         reset the state's __count value and return -1.
10870         * libc/stdlib/mbtowc.c: Ditto.
10871         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
10872         If number of bytes is used up before completing a valid multibyte
10873         character, return -2 and save the state.
10874         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
10875         and change some __count references to __state for clarity.
10876
10877 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
10878
10879         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
10880         is defined by <limits.h>.
10881
10882 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10883
10884         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
10885         defined.
10886
10887 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10888
10889         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
10890         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
10891         __WCHAR_MAX__ or 0x7fffffffu.
10892         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
10893         * libc/string/wcsncmp.c: Ditto.
10894
10895 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
10896
10897         * libc/string/wcschr.c: Add include of <stddef.h>.
10898         * libc/string/wcspbrk.c: Ditto.
10899         * libc/string/wcsrchr.c: Ditto.
10900         * libc/string/wcsstr.c: Ditto.
10901
10902 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
10903
10904         * libc/include/sys/_types.h (_flock_t): Added.
10905         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
10906         (__lock_try_acquire_recursive): Ditto.
10907         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
10908         _lock field.
10909         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
10910         field.
10911         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
10912         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
10913         * libc/sys/linux/include/time.h (struct timespec): Moved from
10914         <sys/types.h> and added check for __need_timespec flag so type
10915         can be defined by itself.
10916         * libc/sys/linux/sys/_types.h (_flock_t): New type.
10917         * libc/sys/linux/sys/types.h (struct timespec): Moved to
10918         <time.h>.
10919
10920 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
10921
10922         * libc/sys/linux/argp: New directory.
10923         * libc/sys/linux/getopt.c: New file.
10924         * libc/sys/linux/getopt1.c: New file.
10925         * libc/sys/linux/getoptlong.c: Remove file.
10926         * libc/sys/linux/include/argp.h: New file.
10927         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
10928         based on ELIX level.
10929         (SUBDIRS): Add argp_dir.
10930         (SUBLIBS): Add ARGP_LIB.
10931         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
10932         getopt_long.$(oext).
10933         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
10934
10935 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
10936
10937         * libc/libc.texinfo: Add node reference to wide-character strings.
10938         * libc/string/wcstrings.tex: New file.
10939         * libc/string/strtok_r.c: Remove outdated advertising clause.
10940         * libc/string/Makefile.am (doc): Add wide-character string
10941         chapter to documentation.
10942         * libc/string/Makefile.in: Regenerated.
10943
10944 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10945
10946         * libc/include/wchar.h: Define NULL. Define WEOF more general
10947         way. Declare functions in newlib manner.
10948         * libc/stdlib/Makefile.am: Delete wmem*.c
10949         * libc/stdlib/Makefile.in: Regenerated.
10950         * libc/stdlib/wmemchr.c: Delete.
10951         * libc/stdlib/wmemcmp.c: Ditto.
10952         * libc/stdlib/wmemcpy.c: Ditto.
10953         * libc/stdlib/wmemmove.c: Ditto.
10954         * libc/stdlib/wmemset.c: Ditto.
10955         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
10956         * libc/string/Makefile.in: Regenerated.
10957         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
10958         * libc/string/wcschr.c: Ditto.
10959         * libc/string/wcscmp.c: Ditto.
10960         * libc/string/wcscpy.c: Ditto.
10961         * libc/string/wcscspn.c: Ditto.
10962         * libc/string/wcslcat.c: Ditto.
10963         * libc/string/wcslcpy.c: Ditto.
10964         * libc/string/wcslen.c: Ditto.
10965         * libc/string/wcsncat.c: Ditto.
10966         * libc/string/wcsncmp.c: Ditto.
10967         * libc/string/wcsncpy.c: Ditto.
10968         * libc/string/wcspbrk.c: Ditto.
10969         * libc/string/wcsrchr.c: Ditto.
10970         * libc/string/wcsspn.c: Ditto.
10971         * libc/string/wcsstr.c: Ditto.
10972         * libc/string/wmemchr.c: Ditto.
10973         * libc/string/wmemcmp.c: Ditto.
10974         * libc/string/wmemcpy.c: Ditto.
10975         * libc/string/wmemmove.c: Ditto.
10976         * libc/string/wmemset.c: Ditto.
10977
10978 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
10979
10980         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
10981         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
10982         and is treated as if "C" was specified.
10983
10984 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
10985
10986         * Makefile.am (install-data-local): Move install of build
10987         newlib.h after installing headers in libc/include so as to
10988         overwrite default newlib.h.
10989         * Makefile.in: Regenerated.
10990
10991 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
10992
10993         * libc/include/newlib.h: New file for tools that use newlib
10994         headers but don't build newlib first (e.g. gcc).
10995
10996 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
10997
10998         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
10999         * libc/stdlib/wmemcmp.c: Ditto.
11000         * libc/stdlib/wmemcpy.c: Ditto.
11001         * libc/stdlib/wmemmove.c: Ditto.
11002         * libc/stdlib/wmemset.c: Ditto.
11003
11004 2002-08-27  Egor Duda  <deo@logos-m.ru>
11005
11006         * libc/stdlib/wmemchr.c: New file.
11007         * libc/stdlib/wmemcmp.c: Ditto.
11008         * libc/stdlib/wmemcpy.c: Ditto.
11009         * libc/stdlib/wmemmove.c: Ditto.
11010         * libc/stdlib/wmemset.c: Ditto.
11011         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11012         * configure.host: Default -DMB_CAPABLE for cygwin.
11013         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11014         wmemmove() and wmemset().  Add include of <_ansi.h>.
11015         * libc/stdlib/Makefile.in: Regenerate.
11016
11017 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11018
11019         * configure.host: Remove _ELIX_LEVEL flag setting.
11020         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11021         (install-data-local): Install newlib.h.
11022         * Makefile.in: Regenerated.
11023         * aclocal.m4: Ditto.
11024         * configure: Ditto.
11025         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11026         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11027         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11028         In AC_OUTPUT statement, unset ac_file so multilib support does
11029         not use last ac_file temporary used in newlib.h configuration.
11030         * libc/include/_ansi.h: Include <newlib.h>.
11031         * newlib.hin: New template file for newlib.h.
11032         * stamp-h.in: New file.
11033
11034 2002-08-26  Wu Yongwei <adah@netstd.com>
11035
11036         * time.h (timezonevar): Change "#if" to "#ifdef".
11037
11038 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11039
11040         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11041         * Makefile.in: Regenerated.
11042         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11043         * aclocal.m4: Regenerated.
11044         * configure: Ditto.
11045         * configure.host: Add code to define _ELIX_LEVEL if
11046         --enable-newlib-elix-level option is used.
11047         * configure.in:
11048         * libc/aclocal.m4: Regenerated.
11049         * libc/configure: Ditto.
11050         * libc/argz/Makefile.am: Add EL/IX level checking.
11051         * libc/argz/Makefile.in: Regenerated.
11052         * libc/argz/dummy.c: New file.
11053         * libc/ctype/Makefile.am: Add EL/IX level checking.
11054         * libc/ctype/Makefile.in: Regenerated.
11055         * libc/locale/Makefile.am: Add EL/IX level checking.
11056         * libc/locale/Makefile.in: Regenerated.
11057         * libc/posix/Makefile.am: Add EL/IX level checking.
11058         * libc/posix/Makefile.in: Regenerated.
11059         * libc/posix/telldir.c: Add EL/IX level checking.
11060         * libc/reent/Makefile.am: Ditto.
11061         * libc/reent/fstat64r.c: Ditto.
11062         * libc/reent/lseek64r.c: Ditto.
11063         * libc/reent/open64r.c: Ditto.
11064         * libc/reent/Makefile.in: Regenerated.
11065         * libc/search/Makefile.am: Add EL/IX level checking.
11066         * libc/search/Makefile.in: Regenerated.
11067         * libc/stdio/Makefile.am: Add EL/IX level checking.
11068         * libc/stdio/Makefile.in: Regenerated.
11069         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11070         * libc/stdio64/Makefile.in: Regenerated.
11071         * libc/stdio64/dummy.c: New file.
11072         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11073         after first include.
11074         * libc/stdio64/fopen64.c: Ditto.
11075         * libc/stdio64/freopen64.c: Ditto.
11076         * libc/stdio64/fseeko64.c: Ditto.
11077         * libc/stdio64/fsetpos64.c: Ditto.
11078         * libc/stdio64/ftello64.c: Ditto.
11079         * libc/stdio64/tmpfile64.c: Ditto.
11080         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11081         * libc/stdlib/Makefile.in: Regenerated.
11082         * libc/stdlib/mstats.c: Add EL/IX level checking.
11083         * libc/string/Makefile.am: Ditto.
11084         * libc/string/Makefile.in: Regenerated.
11085         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11086         * libc/sys/linux/Makefile.in: Regenerated.
11087         * libc/sys/linux/aclocal.m4: Ditto.
11088         * libc/sys/linux/configure: Ditto.
11089         * libc/sys/linux/aio.c: Add EL/IX level checking.
11090         * libc/sys/linux/ftok.c: Ditto.
11091         * libc/sys/linux/getdate.c: Ditto.
11092         * libc/sys/linux/ids.c: Ditto.
11093         * libc/sys/linux/inode.c: Ditto.
11094         * libc/sys/linux/io.c: Ditto.
11095         * libc/sys/linux/process.c: Ditto.
11096         * libc/sys/linux/resource.c: Ditto.
11097         * libc/sys/linux/sched.c: Ditto.
11098         * libc/sys/linux/sig.c: Ditto.
11099         * libc/sys/linux/termios.c: Ditto.
11100         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11101         __libc___waitpid weak aliases.
11102         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11103         that generate the code for a syscall, but do not create a
11104         weak alias.
11105         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11106         * libc/syscalls/Makefile.in: Regenerated.
11107         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11108         functionality.
11109         * libc/unix/Makefile.am: Add EL/IX level checking.
11110         * libc/unix/Makefile.in: Regenerated.
11111
11112 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11113
11114         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11115         wrapper macros to standard malloc functions.
11116         * libc/include/stdlib.h: Ditto.
11117         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11118
11119 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11120
11121         * libc/include/langinfo.h: New file.
11122         * libc/include/wchar.h: Likewise.
11123         * libc/include/sys/syslimits.h: Likewise.
11124         * libc/locale/fix_grouping.c: Likewise.
11125         * libc/locale/ldpart.c: Likewise.
11126         * libc/locale/ldpart.h: Likewise.
11127         * libc/locale/lmessages.c: Likewise.
11128         * libc/locale/lmessages.h: Likewise.
11129         * libc/locale/lmonetary.c: Likewise.
11130         * libc/locale/lmonetary.h: Likewise.
11131         * libc/locale/lnumeric.c: Likewise.
11132         * libc/locale/lnumeric.h: Likewise.
11133         * libc/locale/nl_langinfo.3: Likewise.
11134         * libc/locale/nl_langinfo.c: Likewise.
11135         * libc/locale/timelocal.c: Likewise.
11136         * libc/locale/timelocal.h: Likewise.
11137         * libc/stdlib/btowc.c: Likewise.
11138         * libc/stdlib/mbrlen.c: Likewise.
11139         * libc/stdlib/mbrtowc.c: Likewise.
11140         * libc/stdlib/mbsinit.c: Likewise.
11141         * libc/stdlib/mbsrtowcs.c: Likewise.
11142         * libc/stdlib/wcrtomb.c: Likewise.
11143         * libc/stdlib/wcsrtombs.c: Likewise.
11144         * libc/stdlib/wctob.c: Likewise.
11145         * libc/sys/linux/prof-freq.c: Likewise.
11146         * libc/sys/linux/profile.c: Likewise.
11147         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11148         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11149         * libc/include/stdlib.h: Change re-entrant functions to take
11150         mbstate_t pointers.
11151         * libc/include/sys/_types.h: Define _mbstate_t.
11152         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11153         * libc/include/sys/errno.h (EILSEQ): New error code.
11154         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11155         structure to use mbstate_t.
11156         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11157         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11158         * libc/machine/powerpc/vfscanf.c: Likewise.
11159         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11160         * libc/stdio/vfprintf.c: Likewise.
11161         * libc/stdio/vfscanf.c: Likewise.
11162         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11163         * libc/stdlib/mblen.c: Use mbstate_t.
11164         * libc/stdlib/mblen_r.c: Likewise.
11165         * libc/stdlib/mbstowcs.c: Likewise.
11166         * libc/stdlib/mbstowcs_r.c: Likewise.
11167         * libc/stdlib/mbtowc.c: Likewise.
11168         * libc/stdlib/mbtowc_r.c: Likewise.
11169         * libc/stdlib/wcstombs.c: Likewise.
11170         * libc/stdlib/wcstombs_r.c: Likewise.
11171         * libc/stdlib/wctomb_r.c: Likewise.
11172         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11173         profile.c.
11174         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11175         dl-procinfo.c.
11176         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11177         * libc/sys/linux/sys/types.h (off_t): Define type.
11178         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11179         to C-UTF-8.
11180         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11181
11182 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11183
11184         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11185           (AlignPage): Continue macro on next line.
11186
11187 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11188
11189         * libc/sys/linux/include/pthread.h: New file.
11190
11191 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11192
11193         * libc/include/sys/types.h: Support __need_inttypes macro
11194         that only sets the __intxx and __uintxx types.
11195         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11196         to get mprec.h.
11197         * libc/machine/powerpc/Makefile.in: Regenerated.
11198         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11199         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11200         redundant fixed-point conversion prototypes.
11201         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11202         after setting __need_inttypes.
11203
11204 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11205
11206         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11207
11208 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11209
11210         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11211         _LONG_DOUBLE to double.
11212
11213 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11214
11215         * configure.host: Add powerpc*-*-eabispe* configuration.
11216         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11217         * libc/machine/powerpc/atosfix32.c: Ditto.
11218         * libc/machine/powerpc/atosfix64.c: Ditto.
11219         * libc/machine/powerpc/atoufix16.c: Ditto.
11220         * libc/machine/powerpc/atoufix32.c: Ditto.
11221         * libc/machine/powerpc/atoufix64.c: Ditto.
11222         * libc/machine/powerpc/fix64.h: Ditto.
11223         * libc/machine/powerpc/simdldtoa.c: Ditto.
11224         * libc/machine/powerpc/strtosfix16.c: Ditto.
11225         * libc/machine/powerpc/strtosfix32.c: Ditto.
11226         * libc/machine/powerpc/strtosfix64.c: Ditto.
11227         * libc/machine/powerpc/strtoufix16.c: Ditto.
11228         * libc/machine/powerpc/strtoufix32.c: Ditto.
11229         * libc/machine/powerpc/strtoufix64.c: Ditto.
11230         * libc/machine/powerpc/ufix64toa.c: Ditto.
11231         * libc/machine/powerpc/configure.in: Add check for
11232         powerpc*-eabispe and add fixed-point conversion functions.
11233         * libc/machine/powerpc/configure: Regenerated.
11234         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
11235         %r and %R format specifiers which handle fixed-point data.
11236         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
11237         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
11238         function prototypes.
11239
11240 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11241
11242         *  Makefile.am: Move cmath stuff into libc/sys/linux.
11243         *  Makefile.in: Regenerated.
11244         *  configure.host: Default -DMB_CAPABLE for x86-linux.
11245         *  libc/include/reent.h: Define _sbrk to take signed int argument.
11246         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
11247         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
11248         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
11249         locale for LC_CTYPE and LC_MESSAGES.
11250         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
11251         *  libc/sys/linux/brk.c: Change sbrk prototype.
11252         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
11253         include <sys/features.h>.
11254         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
11255         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
11256         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
11257         with a few local additions.
11258         *  libc/sys/linux/sys/features.h: New file.
11259         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
11260         to take signed argument.
11261         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
11262         prototypes to take signed size argument.
11263
11264 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
11265
11266         * libc/sys/linux/cmath: New directory.
11267         * libc/sys/linux/include/cmathcalls.h: New file.
11268         * libc/sys/linux/include/complex.h: New file.
11269         * libc/sys/linux/machine/i386/huge_val.h: New file
11270         * libm/math/w_sincos.c: New file
11271         * libm/math/wf_sincos.c: New file
11272         * libm/mathfp/s_sincos.c: New file
11273         * libm/mathfp/sf_sincos.c: New file
11274         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
11275         * libc/include/math.h: Add sincos and sincosf declarations.
11276         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
11277         (SUBLIBS): Likewise.
11278         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
11279         * libm/math/Makefile.am (src): Add w_sincos.c.
11280         (fsrc): Add wf_sincos.c.
11281         * libm/mathfp/Makefile.am (src): Add s_sincos.c
11282         (fsrc): Add sf_sincos.c.
11283
11284 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
11285
11286         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
11287         Declare as extern chars and use the address operator to
11288         properly use values set in linker script.
11289
11290 2002-08-09  Jason Tishler  <jason@tishler.net>
11291
11292         * libc/stdlib/mallocr.c: Include <limits.h>.
11293         (request2size): Change macro to do
11294         unsigned long comparisons and avoid signed overflow.
11295         (mALLOc): Add overflow check for the number of bytes to allocate.
11296         (rEALLOc): Ditto.
11297
11298 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
11299
11300         * configure.host: Add check for --enable-newlib-io-pos-args
11301         and define WANT_IO_POS_ARGS flag if enabled.  Define
11302         the flag by default for x86-linux configurations.
11303         * configure.in: Add support for --enable-newlib-io-pos-args.
11304         * libc/configure.in: Ditto.
11305         * configure: Regenerated.
11306         * libc/configure: Ditto.
11307         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
11308         vfprintf.c and vfiprintf.c.
11309         * libc/stdio/Makefile.in: Regenerated.
11310         * libc/stdio/vfprintf.c: Add positional argument support that
11311         is enabled by compiling with -DWANT_IO_POS_ARGS.
11312
11313 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
11314
11315         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
11316         based on __mips_soft_float rather than __mips64.
11317         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
11318         of both 32-bit and 64-bit code.
11319
11320 2002-08-04  Christopher Faylor  <cgf@redhat.com>
11321
11322         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
11323         arguments for popen to match similar functionality in fopen.
11324
11325 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
11326
11327         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
11328
11329 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
11330
11331         * libc/sys/linux/Makefile.am: Add aio64.c.
11332         * libc/sys/linux/Makefile.in: Regenerated.
11333         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
11334         * libc/sys/linux/aio64.c: New file.
11335
11336 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11337
11338         *  libc/include/sys/param.h (MAX, MIN): Added macros.
11339         *  libc/sys/linux/Makefile.am: Add new files.
11340         *  libc/sys/linux/Makefile.in: Regenerated.
11341         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11342         *  libc/sys/linux/inode.c (fchdir): Added syscall.
11343         *  libc/sys/linux/ftw.c: New file.
11344         *  libc/sys/linux/ftw64.c: Ditto.
11345         *  libc/sys/linux/getwd.c: Ditto.
11346         *  libc/sys/linux/scandir64.c: Ditto.
11347         *  libc/sys/linux/strverscmp.c: Ditto.
11348         *  libc/sys/linux/versionsort.c: Ditto.
11349         *  libc/sys/linux/versionsort64.c: Ditto.
11350
11351 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11352
11353         * libc/string/strings.tex: Fix typo for memccpy.
11354
11355 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11356
11357         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
11358         * libc/sys/linux/sys/types.h (off64_t): Definition added.
11359
11360 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11361
11362         * libc/sys/linux/Makefile.am: Add fclean.c.
11363         * libc/sys/linux/Makefile.in: Regenerated.
11364         * libc/sys/linux/fclean.c: New file.
11365
11366 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11367
11368         * libc/sys/linux/Makefile.am: Add confstr.c.
11369         * libc/sys/linux/Makefile.in: Regenerated.
11370         * libc/sys/linux/confstr.c: New file.
11371         * libc/sys/linux/confstr.h: Ditto.
11372         * libc/sys/linux/sys/unistd.h: Include <features.h> and
11373         <bits/environments.h>.
11374
11375 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11376
11377         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
11378         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
11379         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
11380         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
11381         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
11382         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
11383
11384 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11385
11386         * libc/sys/linux/Makefile.am: Add new files.
11387         * libc/sys/linux/Makefile.in: Regenerated.
11388         * libc/sys/linux/fstab.c: New file.
11389         * libc/sys/linux/fstatvfs.c: Ditto.
11390         * libc/sys/linux/fstatvfs64.c: Ditto.
11391         * libc/sys/linux/internal_statvfs.c: Ditto.
11392         * libc/sys/linux/mntent.c: Ditto.
11393         * libc/sys/linux/mntent_r.c: Ditto.
11394         * libc/sys/linux/statvfs.c: Ditto.
11395         * libc/sys/linux/statvfs64.c: Ditto.
11396         * libc/sys/linux/include/paths.h: Ditto.
11397         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
11398         with double-underscore weak-aliases.
11399         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11400
11401 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11402
11403         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
11404         to use _sig_func_ptr type casted constants.
11405         (_sig_func_ptr): Typedef moved to sys/signal.h.
11406         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
11407         For __rtems, use POSIX definition, otherwise default to ANSI.
11408         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
11409
11410 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
11411
11412         * configure.host: Recognize m6811-elf and m6812-elf targets.
11413         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
11414         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
11415         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
11416         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
11417         according to __INT_MAX__.
11418         (_POINTER_INT): Define to short.
11419         * libc/machine/m68hc11/Makefile.am: New file.
11420         * libc/machine/m68hc11/Makefile.in: New file.
11421         * libc/machine/m68hc11/configure.in: New file.
11422         * libc/machine/m68hc11/configure: New file.
11423         * libc/machine/m68hc11/aclocal.m4: New file.
11424         * libc/machine/m68hc11/setjmp.S: New file.
11425
11426 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11427
11428         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
11429         prototypes.
11430         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
11431         * libc/stdlib/Makefile.in: Regenerated.
11432         * libc/stdlib/strdup.c: Removed.
11433         * libc/stdlib/strdup_r.c: Removed.
11434         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
11435         mempcpy.c, strndup.c, and strndup_r.c.
11436         * libc/string/Makefile.in: Regenerated.
11437         * libc/string/memccpy.c: New file.
11438         * libc/string/mempcpy.c: Ditto.
11439         * libc/string/strndup.c: Ditto.
11440         * libc/string/strndup_r.c: Ditto.
11441         * libc/string/strdup.c: New file moved from stdlib.
11442         * libc/string/strdup_r.c: Ditto.
11443         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
11444
11445 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11446
11447         * libc/include/stdio.h: Move fcloseall prototype within
11448         #ifndef _REENT_ONLY section.
11449         * libc/sys/linux/Makefile.am: Add new files.
11450         * libc/sys/linux/Makefile.in: Regenerated.
11451         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
11452         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
11453         * libc/sys/linux/sys/types.h: Add ino64_t type.
11454         * libc/sys/linux/ctermid.c: New file.
11455         * libc/sys/linux/ttyname_r.c: Ditto.
11456         * libc/sys/linux/readdir64.c: Ditto.
11457
11458 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11459
11460         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
11461         * libc/stdio/Makefile.am: Added fcloseall.c support.
11462         * libc/stdio/Makefile.in: Regenerated.
11463         * libc/stdio/fcloseall.c: New file.
11464         * libc/stdio64/Makefile.am: Remove missing .def references.
11465         * libc/stdio64/Makefile.in: Regenerated.
11466
11467 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11468
11469         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
11470         * libc/machine/powerpc/times.c: New file.
11471         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
11472         * libc/machine/powerpc/Makefile.in: Regenerated.
11473
11474 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
11475
11476         * libc/machine/powerpc/time.c: New file.
11477         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
11478         time.c.
11479         * libc/machine/powerpc/Makefile.in: Regenerated.
11480
11481 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11482
11483         * libc/libc.texinfo: Change copyright notices to Red Hat from
11484         Cygnus.
11485         * libm/libm.texinfo: Likewise.
11486         * README: Change docs URL to
11487         http://sources.redhat.com/newlib/docs.html.
11488
11489 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11490
11491         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
11492         * libc/sys/linux/Makefile.in: Regenerated.
11493         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
11494         * libc/sys/linux/io.c: Add ftruncate syscall.
11495         * libc/sys/linux/fpathconf.c: New file.
11496         * libc/sys/linux/pathconf.c: Ditto.
11497         * libc/sys/linux/linux_fsinfo.h: Ditto.
11498         * libc/sys/linux/sys/unistd.h: Ditto.
11499
11500 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11501
11502         * libc/stdio64/Makefile.am: Remove missing files.
11503         * libc/stdio64/Makefile.in: Regenerated.
11504
11505 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11506
11507         * libc/include/sys/config.h[__i386__][__linux__]: Define
11508         _LARGE64FILE_SOURCE to 1.
11509         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
11510         * libc/sys/linux/Makefile.in: Regenerated.
11511         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
11512         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
11513         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
11514         of <linux/resource.h>.
11515         * libc/sys/linux/getrlimit64.c: New file.
11516         * libc/sys/linux/setrlimit64.c: Ditto.
11517
11518 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11519
11520         * libc/argz/argz_replace.c: Include buf_findstr.h.
11521         * libc/argz/buf_findstr.c: Likewise.
11522         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
11523         value to (char *).
11524         * libc/argz/envz_get.c: Likewise.
11525         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
11526         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
11527         * libc/stdlib/getsubopt.3: New file.
11528         * libc/stdlib/getsubopt.c: New file.
11529         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
11530         Change esp to ebp.
11531
11532 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
11533
11534         * configure.host(stdio64_dir): New setting that is used to
11535         enable building of new stdio64 directory.
11536         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
11537         large files.
11538         (stmp-stdio64,stdio64.texi): New targets to optionally add in
11539         stdio64 info to info files.
11540         * libc/Makefile.in: Regenerated.
11541         * libc/configure: Ditto.
11542         * libc/configure.in: Add configuration variables that are set
11543         when stdio64 is selected as subdir in configure.host.
11544         * libc/libc.texinfo: Add optional menu item for Stdio64, based
11545         on whether STDIO64 flag is set or not.
11546         * libc/sys.tex: Add optional stdio64 syscalls based on whether
11547         STDIO64 flag is set or not.
11548         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
11549         _r sycall routines.
11550         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
11551         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
11552         (__SL64): New file flag indicating file is opened via fopen64.
11553         * libc/include/sys/_types.h(_off64_t): Added.
11554         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
11555         * libc/include/sys/reent.h(struct __sFILE64): New file structure
11556         for 64-bit offset large file support.
11557         (__FILE): New intermediate type either set to struct __sFILE64 or
11558         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
11559         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
11560         * libc/reent/Makefile.in: Regenerated.
11561         * libc/reent/fstat64r.c: New file.
11562         * libc/reent/lseek64r.c: Ditto.
11563         * libc/reent/open64r.c: Ditto.
11564         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
11565         based on whether STDIO64 flag is set.
11566         * libc/stdio/stdio.tex: Add blank line.
11567         * libc/stdio64/Makefile.am: New file.
11568         * libc/stdio64/Makefile.in: Ditto.
11569         * libc/stdio64/fgetpos64.c: Ditto.
11570         * libc/stdio64/fopen64.: Ditto.
11571         * libc/stdio64/freopen64.c: Ditto.
11572         * libc/stdio64/fseeko64.c: Ditto.
11573         * libc/stdio64/fsetpos64.c: Ditto.
11574         * libc/stdio64/ftello64.c: Ditto.
11575         * libc/stdio64/local64.h: Ditto.
11576         * libc/stdio64/stdio64.c: Ditto.
11577         * libc/stdio64/stdio64.tex: Ditto.
11578         * libc/stdio64/tmpfile64.c: Ditto.
11579         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
11580         open64.
11581
11582 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
11583
11584         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
11585         if LIBC_EXTRA_LIB is present.
11586         * libc/Makefile.in: Regenerated.
11587         * libc/libc.texinfo: Add blank line.
11588         * libc/argz/Makefile.am: Add doc support.
11589         * libc/search/Makefile.am: Ditto.
11590         * libc/argz/Makefile.in: Regenerated.
11591         * libc/search/Makefile.in: Ditto.
11592         * libc/misc/misc.tex: Add ffs function.
11593         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
11594
11595 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11596
11597         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
11598         definition that was removed in error.
11599
11600 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11601
11602         * libc/include/machine/ieeefp.h: Change to only define
11603         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
11604         __IEEE_LITTLE_ENDIAN must be defined for each platform).
11605         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
11606         remove redundant floating point definitions.
11607
11608 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11609
11610         * libc/sys/linux/callocr.c: Fix so code references
11611         calloc.
11612
11613 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11614
11615         * libc/sys/linux/Makefile.am: Add new files.
11616         * libc/sys/linux/Makefile.in: Regenerated.
11617         * libc/sys/linux/bp-sym.h: Moved to include directory.
11618         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
11619         * libc/sys/linux/inode.c: Set _LIBC to 1.
11620         * libc/sys/linux/mq_close.c: Ditto.
11621         * libc/sys/linux/mq_getattr.c: Ditto.
11622         * libc/sys/linux/mq_open.c: Ditto.
11623         * libc/sys/linux/mq_receive.c: Ditto.
11624         * libc/sys/linux/mq_send.c: Ditto.
11625         * libc/sys/linux/mq_setattr.c: Ditto.
11626         * libc/sys/linux/mq_unlink.c: Ditto.
11627         * libc/sys/linux/calloc.c: New file.
11628         * libc/sys/linux/callocr.c: Ditto.
11629         * libc/sys/linux/cfreer.c: Ditto.
11630         * libc/sys/linux/config.h: Ditto.
11631         * libc/sys/linux/free.c: Ditto.
11632         * libc/sys/linux/freer.c: Ditto.
11633         * libc/sys/linux/msize.c: Ditto.
11634         * libc/sys/linux/msizer.c: Ditto.
11635         * libc/sys/linux/mstats.c: Ditto.
11636         * libc/sys/linux/mtrim.c: Ditto.
11637         * libc/sys/linux/mtrimr.c: Ditto.
11638         * libc/sys/linux/pvallocr.c: Ditto.
11639         * libc/sys/linux/realloc.c: Ditto.
11640         * libc/sys/linux/reallocr.c: Ditto.
11641         * libc/sys/linux/thread-m.h: Ditto.
11642         * libc/sys/linux/vallocr.c: Ditto.
11643         * libc/sys/linux/bp-checks.h: Ditto.
11644         * libc/sys/linux/libc-symbols.h: Ditto.
11645         * libc/sys/linux/libc-tsd.h: Ditto.
11646         * libc/sys/linux/libintl.h: Ditto.
11647         * libc/sys/linux/malign.c: Ditto.
11648         * libc/sys/linux/malignr.c: Ditto.
11649         * libc/sys/linux/mallinfor.c: Ditto.
11650         * libc/sys/linux/malloc.c: Ditto.
11651         * libc/sys/linux/mallocr.c: Ditto.
11652         * libc/sys/linux/malloptr.c: Ditto.
11653         * libc/sys/linux/mallstatsr.c: Ditto.
11654         * libc/sys/linux/mcheck.c: Ditto.
11655         * libc/sys/linux/mhooks.h: Ditto.
11656         * libc/sys/linux/include/bp-sym.h: Ditto.
11657         * libc/sys/linux/include/malloc.h: Ditto.
11658         * libc/sys/linux/include/mcheck.h: Ditto.
11659         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
11660         getpagesize.c.
11661         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
11662         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
11663         * libc/sys/linux/machine/i386/getpagesize.c: New file.
11664         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
11665         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11666         * libc/sys/linux/machine/i386/sysdep.h: New file.
11667         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
11668         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
11669         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
11670
11671 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
11672
11673         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
11674         instead of <asm/siginfo.h>.
11675         * libc/sys/linux/sys/signal.h: Change to include various linux
11676         <bits/xxx.h> header files, rather than <linux/signal.h> so as
11677         to work with multiple releases of glibc header files.
11678
11679 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
11680
11681         * testsuite/newlib.search/hsearchtest.c: New file to test
11682         newlib/libc/search.
11683         * testsuite/newlib.search/hsearchtest.exp: Likewise.
11684
11685 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
11686
11687         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
11688         a terminal.
11689         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
11690
11691 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
11692
11693         * libc/include/math.h (MAXFLOAT): Added.
11694
11695 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
11696
11697         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
11698         Make strcmp.S unconditional.
11699         * libc/machine/sh/Makefile.in: Regenerate.
11700         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
11701         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
11702         for SHcompact.
11703
11704 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11705
11706         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
11707         define before including <sys/lock.h>.
11708
11709 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11710
11711         * libc/include/utime.h: Add include of <_ansi.h>.
11712         * libc/sys/linux/Makefile.am: Add utimes.c.
11713         * libc/sys/linux/Makefile.in: Regenerated.
11714         * libc/sys/linux/inode.c(__umask): New static routine.
11715         (umask): Written to use __umask and attempt to thread lock.
11716         (getumask): New function written to use __umask and thread lock.
11717         * libc/sys/linux/utimes.c: New file.
11718         * libc/sys/linux/sys/time.h: Fix utimes prototype.
11719         * libc/sys/linux/sys/utime.h: New file.
11720
11721 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
11722
11723         * libtool.m4: New file.
11724         * libc/sys/linux/process.c: Implement vfork in terms of fork,
11725         rather than as a syscall.
11726
11727 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11728
11729         * libc/include/stdio.h: Add new prototypes.
11730         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
11731         * libc/stdio/Makefile.in: Regenerated.
11732         * libc/stdio/fseek.c: Add fseeko documentation.
11733         * libc/stdio/ftell.c: Add ftello documentation.
11734         * libc/stdio/fseeko.c: New file.
11735         * libc/stdio/ftello.c: New file.
11736
11737 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11738
11739         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
11740         * libc/stdio/Makefile.in: Regenerated.
11741         * libc/stdio/asprintf.c: New file.
11742         * libc/stdio/vasprintf.c: Ditto.
11743         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
11744         the buffer for asprintf support.
11745         * libc/stdio/sprintf.c: Add asprintf documentation.
11746         * libc/stdio/vfprintf.c: Add vasprintf documentation.
11747         * libc/include/stdio.h: Add new prototypes.
11748
11749 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
11750
11751         * libc/search/hcreate.c: Remove advertising clause from license.
11752         * libc/search/hcreate_r.c: Likewise.
11753
11754 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
11755
11756         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
11757         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
11758         Check that one of them is defined and error out if not.
11759         Add any platforms defined in <machine/ieeefp.h> that are missing.
11760         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
11761         (DB_LITTLE_ENDIAN): New defines.
11762         * libc/search/hash.c: Replace all incorrect checks for
11763         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
11764         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
11765         * libc/search/hash_page.c: Likewise.
11766
11767 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
11768
11769         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
11770
11771 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
11772
11773         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
11774         * libc/include/time.h: Same.
11775         * libc/include/string.h: Same.
11776         * libc/include/stdlib.h: Same.
11777         * libc/include/signal.h: Same.
11778         * libc/include/setjmp.h: Same.
11779         * libc/include/math.h: Same.
11780         * libc/include/locale.h: Same.
11781         * libc/include/ctype.h: Same.
11782         * libc/include/machine/setjmp.h: Same.
11783         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
11784         (_END_STD_C): Add.
11785
11786 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11787
11788         * libc/include/sys/_types.h: Define _ssize_t as int if int is
11789         32-bits, otherwise define it as long.
11790         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
11791         and define ssize_t as _ssize_t.
11792         * libc/reent/readr.c: Change return type to _ssize_t.
11793         * libc/reent/writer.c: Ditto.
11794         * libc/sys/linux/Makefile.am: Add aio.c.
11795         * libc/sys/linux/Makefile.in: Regenerated.
11796         * libc/sys/linux/aio.c: New file.
11797         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
11798         * libm/common/fdlibm.h: Undef __P before defining it.
11799
11800 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
11801
11802         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
11803         exponent_is_even_int variable.  Handle case where x is
11804         negative, and y is an odd integer.
11805         * libm/mathfp/sf_pow.c (powf): Likewise.
11806
11807         * libm/mathfp/er_lgamma.c: Remove __kernel references.
11808         * libm/mathfp/erf_lgamma.c: Likewise.
11809         * libm/mathfp/s_tgamma.c: Likewise.
11810         * libm/mathfp/sf_tgamma.c: Likewise.
11811
11812 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11813
11814         * libc/sys/linux/Makefile.am: Add new clock routines.
11815         * libc/sys/linux/Makefile.in: Regenerated.
11816         * libc/sys/linux/clock_getres.c: New file.
11817         * libc/sys/linux/clock_gettime.c: Ditto.
11818         * libc/sys/linux/clock_settime.c: Ditto.
11819         * libc/sys/linux/hp-timing.h: Ditto.
11820         * libc/sys/linux/libc-internal.h: Ditto.
11821         * libc/sys/linux/sysconf.c: Fix typo.
11822         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
11823         * libc/sys/linux/machine/hp-timing.h: New file.
11824         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
11825         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11826         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
11827         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
11828         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
11829         * libc/sys/linux/sys/linux_time.h: New file.
11830         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
11831         replace with <sys/linux_time.h>.
11832
11833 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
11834
11835         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
11836
11837 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11838
11839         * libc/sys/linux/Makefile.am: Consolidate additional items under
11840         ADD_OBJS.
11841         * libc/sys/linux/Makefile.in: Regenerated.
11842
11843 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11844
11845         * libc/sys/linux/sethostname.c: New file.
11846         * libc/sys/linux/Makefile.am: Add sethostname.c support.
11847         * libc/sys/linux/Makefile.in: Regenerated.
11848
11849 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11850
11851         * libc/search/db_local.h: New file.
11852         * libc/include/db.h: Remove.
11853         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
11854         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
11855         "db_local.h".
11856         * libc/search/hash_bigkey.c: Likewise.
11857         * libc/search/hash_buf.c: Likewise.
11858         * libc/search/hash_func.c: Likewise.
11859         * libc/search/hash_log2.c: Likewise.
11860         * libc/search/hash_page.c: Likewise.
11861
11862 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
11863
11864         * libc/machine/sh/strlen.S: New file.
11865         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
11866         * libc/machine/sh/Makefile.am: Regenerate.
11867
11868 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11869
11870         * libc/sys/linux/gethostname.c: Change name to __gethostname and
11871         add gethostname alias.
11872
11873 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11874
11875         * libc/include/math.h: Remove <sys/types.h>.
11876         (__dmath): Use __ULong instead of __uint32_t.
11877         * libc/include/sys/reent.h: If long or int is not 32-bits,
11878         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
11879         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
11880         * libm/common/fdlibm.h: Ditto.
11881
11882 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11883
11884         * libc/include/ndbm.h: Remove.
11885         * libc/search/ndbm.c: Remove.
11886
11887 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
11888
11889         * libc/stdio/fseek.c (fseek): Fix braces.
11890
11891 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
11892
11893         * libc/time/strftime.c (strftime): Add %e format specifier.
11894
11895 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
11896
11897         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
11898         previously defined.
11899
11900 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
11901
11902         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
11903         (BYTE_ORDER): Define as appropriate for the target.
11904
11905 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11906
11907         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
11908         to _ssize_t.
11909         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
11910
11911 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11912
11913         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
11914         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
11915         [HAVE_GETDATE](getdate_err): New error code.
11916         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
11917         * libc/stdio/Makefile.in: Regenerated.
11918         * libc/stdio/getdelim.c: New file.
11919         * libc/stdio/getline.c: Ditto.
11920         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
11921         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
11922         * libc/sys/linux/Makefile.in: Regenerated.
11923         * libc/sys/linux/getdate.c: New file.
11924         * libc/sys/linux/getdate_err.c: Ditto.
11925         * libc/sys/linux/ntp_gettime.c: Ditto.
11926         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
11927         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
11928
11929 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11930
11931         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
11932         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
11933         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
11934         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
11935         * libc/include/sys/param.h: Remove i386 case which is handled
11936         by default case.
11937         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
11938         definitions in case they are already defined.
11939         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
11940         _IEEE_LITTLE_ENDIAN flags.
11941         * libc/include/sys/reent.h: Change __uint32_t references to
11942         use _ULong instead.
11943         (_REENT_GETDATE_REENT_P): New macro.
11944         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
11945         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
11946         * libc/search/hash.h: Add default setting of BYTE_ORDER,
11947         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
11948         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
11949         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
11950         pid_t, off_t, loff_t, caddr_t, and daddr_t type
11951         definitions which are done by subsequent glibc headers.
11952         Add macro definitions to prevent subsequent header files from
11953         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
11954         intptr_t to after glibc definitions of types they are based on.
11955
11956 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
11957
11958         * libc/include/errno.h: Protect from multiple inclusion.
11959
11960 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
11961
11962         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
11963
11964 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
11965
11966         * Makefile.am (LIB_OBJECTLISTS): Add
11967         libc/search/objectlist.awk.in.
11968         * libc/Makefile.am (SUBDIRS): Add search.
11969         (SUBLIBS): Add search/libsearch.la.
11970         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
11971         * libc/search: New directory.
11972         * libc/search/Makefile.am: New file.
11973         * libc/search/extern.h: New file.
11974         * libc/search/hash.c: New file.
11975         * libc/search/hash.h: New file.
11976         * libc/search/hash_bigkey.c: New file.
11977         * libc/search/hash_buf.c: New file.
11978         * libc/search/hash_func.c: New file.
11979         * libc/search/hash_log2.c: New file.
11980         * libc/search/hash_page.c: New file.
11981         * libc/search/hcreate.3: New file.
11982         * libc/search/hcreate.c: New file.
11983         * libc/search/hcreate_r.c: New file.
11984         * libc/search/ndbm.c: New file.
11985         * libc/search/page.h: New file.
11986         * libc/search/tdelete.c: New file.
11987         * libc/search/tdestroy.c: New file.
11988         * libc/search/tfind.c: New file.
11989         * libc/search/tsearch.3: New file.
11990         * libc/search/tsearch.c: New file.
11991         * libc/search/twalk.c: New file.
11992         * libc/include/db.h: New file.
11993         * libc/include/ndbm.h: New file.
11994         * libc/include/search.h: New file.
11995         * libc/include/sys/queue.h: New file.
11996         * libc/include/sys/cdefs.h: New file.
11997         * libc/include/sys/param.h
11998         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
11999         LITTLE_ENDIAN or BIG_ENDIAN.
12000         * libc/include/sys/errno.h (EFTYPE): New macro.
12001         * libc/search/bsearch.c: Move from libc/stdlib.
12002         * libc/search/qsort.c: Likewise.
12003         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12004         qsort.c.
12005         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12006         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12007
12008 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12009
12010         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12011         ipc routines, and ftok.
12012         * libc/sys/linux/Makefile.in: Regenerated.
12013         * libc/sys/linux/ftok.c: New file.
12014         * libc/sys/linux/ipc.c: Ditto.
12015         * libc/sys/linux/mq_close.c: Ditto.
12016         * libc/sys/linux/mq_getattr.c: Ditto.
12017         * libc/sys/linux/mq_notify.c: Ditto.
12018         * libc/sys/linux/mq_open.c: Ditto.
12019         * libc/sys/linux/mq_receive.c: Ditto.
12020         * libc/sys/linux/mq_send.c: Ditto.
12021         * libc/sys/linux/mq_setattr.c: Ditto.
12022         * libc/sys/linux/mq_unlink.c: Ditto.
12023         * libc/sys/linux/mqlocal.h: Ditto.
12024         * libc/sys/linux/include/mqueue.h: Ditto.
12025         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12026         __uid_t_defined.
12027
12028 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12029
12030         * libm/common/sf_lround.c (round): Change name to: (lround).
12031         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12032         remquof.
12033
12034 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12035
12036         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12037         procedure.
12038         (newlib_pass_fail): Change to compile and run only one file.
12039         * testsuite/newlib.locale/locale.exp: Use new
12040         newlib_pass_fail_all procedure.
12041         * testsuite/newlib.string/string.exp: Likewise.
12042
12043 2002-06-18  Dave Brolley  <brolley@redhat.com>
12044
12045         From Catherine Moore, Michael Meissner, Richard Sandiford:
12046         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12047         (_JBTYPE): Ditto.
12048         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12049         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12050         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12051         * configure.host: Support frv-*-*.
12052         * libc/machine/frv/Makefile.am: New file.
12053         * libc/machine/frv/configure.in: New file.
12054         * libc/machine/frv/setjmp.S: New file.
12055
12056 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12057
12058         * libc/include/ctype.h: Remove isblank macro.
12059
12060         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12061         * libc/ctype/isblank.c: New file.
12062         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12063         declaration.  Add isblank macro.
12064
12065 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12066
12067         * testsuite/newlib.stdlib/atexit.c: New file.
12068         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12069         * testsuite/newlib.string/tstring.c: Change default start size
12070         to something more reasonable for embedded platforms.
12071
12072 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12073
12074         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12075
12076         * libc/argz: New directory.
12077         * libc/argz/*: New files.
12078         * libc/argz/argz_add.c: New file.
12079         * libc/argz/argz_add_sep.c: New file.
12080         * libc/argz/argz_append.c: New file.
12081         * libc/argz/argz_count.c: New file.
12082         * libc/argz/argz_create.c: New file.
12083         * libc/argz/argz_create_sep.c: New file.
12084         * libc/argz/argz_delete.c: New file.
12085         * libc/argz/argz_extract.c: New file.
12086         * libc/argz/argz_insert.c: New file.
12087         * libc/argz/argz_next.c: New file.
12088         * libc/argz/argz_replace.c: New file.
12089         * libc/argz/argz_stringify.c: New file.
12090         * libc/argz/buf_findstr.c: New file.
12091         * libc/argz/envz_add.c: New file.
12092         * libc/argz/envz_entry.c: New file.
12093         * libc/argz/envz_get.c: New file.
12094         * libc/argz/envz_merge.c: New file.
12095         * libc/argz/envz_remove.c: New file.
12096         * libc/argz/envz_strip.c: New file.
12097         * libc/include/argz.h: New file.
12098         * libc/include/envz.h: New file.
12099         * Makefile.am (LIBC_OBJECTLISTS): Add
12100         libc/argz/objectlist.awk.in.
12101         * libc/Makefile.am (SUBDIRS): Add argz.
12102         (SUBLIBS): Add argz/libargz.la.
12103         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12104         * libc/include/errno.h: Add error_t typedef.
12105
12106 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12107
12108         * libc/include/stdlib.h: Add _Exit prototype.
12109         * libc/stdlib/Makefile.am: Add _Exit.c support.
12110         * libc/stdlib/Makefile.in: Ditto.
12111         * libc/stdlib/_Exit.c: New file.
12112
12113 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12114
12115         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12116         x is close to -1.0 and y is very large to use ax (absolute value)
12117         instead of x.
12118         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12119
12120 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12121
12122         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12123         Fix clobbering bytes before destination if src and dst have same
12124         non-zero misalignment.
12125
12126         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12127         Fixed bug in writing end of set region.
12128
12129 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12130
12131         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12132         spawnve declaration.
12133
12134 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12135
12136         * libm/common/s_fdim.c: New file.
12137         * libm/common/s_fma.c: Likewise.
12138         * libm/common/s_fmax.c: Likewise.
12139         * libm/common/s_fmin.c: Likewise.
12140         * libm/common/s_fpclassify.c: Likewise.
12141         * libm/common/s_lrint.c: Likewise.
12142         * libm/common/s_lround.c: Likewise.
12143         * libm/common/s_nearbyint.c: Likewise.
12144         * libm/common/s_remquo.c: Likewise.
12145         * libm/common/s_round.c: Likewise.
12146         * libm/common/s_scalbln.c: Likewise.
12147         * libm/common/s_signbit.c: Likewise.
12148         * libm/common/s_trunc.c: Likewise.
12149         * libm/common/sf_fdim.c: Likewise.
12150         * libm/common/sf_fma.c: Likewise.
12151         * libm/common/sf_fmax.c: Likewise.
12152         * libm/common/sf_fmin.c: Likewise.
12153         * libm/common/sf_lrint.c: Likewise.
12154         * libm/common/sf_lround.c: Likewise.
12155         * libm/common/sf_nearbyint.c: Likewise.
12156         * libm/common/sf_remquo.c: Likewise.
12157         * libm/common/sf_round.c: Likewise.
12158         * libm/common/sf_scalbln.c: Likewise.
12159         * libm/common/sf_trunc.c: Likewise.
12160         * libm/math/w_exp2.c: Likewise.
12161         * libm/math/w_tgamma.c: Likewise.
12162         * libm/math/wf_exp2.c: Likewise.
12163         * libm/math/wf_tgamma.c: Likewise.
12164         * libm/mathfp/s_exp2.c: Likewise.
12165         * libm/mathfp/s_tgamma.c: Likewise.
12166         * libm/mathfp/sf_exp2.c: Likewise.
12167         * libm/mathfp/sf_tgamma.c: Likewise.
12168         * libm/math/er_gamma.c: Fix return value.
12169         * libm/math/erf_gamma.c: Likewise.
12170         * libm/mathfp/er_gamma.c: Likewise.
12171         * libm/mathfp/erf_gamma.c: Likewise.
12172         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12173         declarations and macros.
12174         Regenerated all Makefile.in, aclocal.m4 and configure files to
12175         use new libtool macros in top-level libtool.m4
12176
12177 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12178
12179         * libc/include/string.h[__linux__]: Add strsignal prototype.
12180         * libc/include/sys/lock.h: New file with default locking support.
12181         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12182         and psignal.
12183         * libc/posix/Makefile.am: Add support for readdir_r.c.
12184         * libc/posix/Makefile.in: Regenerated.
12185         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12186         * libc/posix/opendir.c: Add lock support.
12187         * libc/posix/readdir.c: Ditto.
12188         * libc/posix/rewinddir.c: Ditto.
12189         * libc/posix/scandir.c: Ditto.
12190         * libc/posix/seekdir.c: Ditto.
12191         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12192         clean up leftover hash table entries.
12193         * libc/posix/readdir_r.c: New file.
12194         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12195         * libc/sys/linux/Makefile.in: Regenerated.
12196         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12197         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12198         * libc/sys/linux/psignal.c: New file.
12199         * libc/sys/linux/strsignal.c: Ditto.
12200
12201 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12202
12203         * libc/include/sys/types.h: Don't define dev_t when compiling for
12204         Cygwin.
12205
12206 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12207
12208         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12209         make siglist.inc dependent on sig.c instead of signal.c.
12210         * libc/sys/linux/Makefile.in: Regenerated.
12211         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12212         use NSIG instead of _NSIG.
12213         * libc/sys/linux/sigaction.c: New file.
12214         * libc/sys/linux/signal.c: Changed to be linux signal() function
12215         so as to override regular newlib default signal.c.
12216         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12217         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12218         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12219         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12220         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12221         default linux sigset_t typedef by defining it equal to __sigset_t.
12222         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12223         with a sigset_t that isn't implemented with a single int.
12224
12225 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12226
12227         * libc/sys/linux/Makefile.am: Add support for new files.
12228         * libc/sys/linux/Makefile.in: Regenerated.
12229         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
12230         * libc/sys/linux/signal.c: Change to use real-time syscalls for
12231         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
12232         it is in a separate file now.
12233         * libc/sys/linux/machine/i386/Makefile.am
12234         * libc/sys/linux/machine/i386/Makefile.in
12235         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
12236         * libc/sys/linux/sigaction.c: New file.
12237         * libc/sys/linux/sigqueue.c: Ditto.
12238         * libc/sys/linux/sigwait.c: Ditto.
12239         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
12240         * libc/sys/linux/kernel_sigaction.h: Ditto.
12241
12242 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
12243
12244         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
12245         tcsendbrk.c.
12246         * libc/sys/linux/Makefile.in: Regenerated.
12247         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
12248         tcgetpgrp(), and tcsetpgrp() functions.
12249         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
12250         to get __MAX_BAUD rate.
12251         * libc/sys/linux/machine/i386/include/termios.h: New file.
12252         * libc/include/machine/termios.h: Ditto.
12253         * libc/sys/linux/cfspeed.c: Ditto.
12254         * libc/sys/linux/tcsendbrk.c: Ditto.
12255
12256 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
12257
12258         * libc/include/string.h: Add strnlen and strerror_r prototypes.
12259         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
12260         * libc/string/Makefile.in: Regenerated.
12261         * libc/string/strerror_r.c: New file.
12262         * libc/string/strnlen.c: New file.
12263         * libc/sys/linux/Makefile.am: Add rename.c.
12264         * libc/sys/linux/Makefile.in: Regenerated.
12265         * libc/sys/linux/rename.c: New file to override default rename.
12266
12267 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12268
12269         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
12270         * libc/sys/linux/sys/time.h: Add conversion macros.
12271         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
12272         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
12273         * libc/sys/linux/gethostname.c: New file.
12274         * libc/sys/linux/seteuid.c: New file.
12275         * libc/sys/linux/sysctl.c: New file.
12276
12277 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12278
12279         * libc/string/Makefile.am: Add support for strsep.c.
12280         * libc/string/Makefile.in: Regenerated.
12281         * libc/string/strsep.c: New file.
12282         * libc/string/strtok.c: Change to call __strtok_r service routine.
12283         * libc/string/strtok_r.c: Add __strtok_r routine which takes
12284         additional flag parameter regarding whether to skip leading delimeters.
12285         Change strtok_r to call __strtok_r.
12286
12287 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
12288
12289         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
12290         * libc/stdio/Makefile.in: Regenerated.
12291         * libc/stdio/setbuffer.c: New file.
12292         * libc/stdio/setlinebuf.c: New file.
12293
12294 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12295
12296         * libc/sys/linux/Makefile.am: Add resource.c.
12297         * libc/sys/linux/Makefile.in: Regenerated.
12298         * libc/sys/linux/resource.c: New file.
12299         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
12300         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
12301         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12302         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
12303         are now found in libc/sys/linux/resource.c.
12304
12305 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12306
12307         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
12308         to use void * pointers and comply with Single Unix spec.
12309         * libc/string/bcmp.c: Change to use void * instead of char *.
12310         * libc/string/bcopy.c: Ditto.
12311         * libc/string/bzero.c: Ditto.
12312
12313 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12314
12315         * libc/sys/linux/shm_open.c: New file.
12316         * libc/sys/linux/shm_unlink.c: Ditto.
12317         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
12318         shm_unlink.c.
12319         * libc/sys/linux/Makefile.in: Regenerated.
12320         * libc/sys/linux/sys/types.h: Add some additional checks to see
12321         if clock_t or time_t is already defined.
12322
12323 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12324
12325         * Makefile.am: Don't pass $toollibdir down directly in
12326         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
12327         Pass it under the name: top_toollibdir.
12328         * Makefile.in: Regenerated.
12329
12330 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12331
12332         * libc/include/sys/types.h: Revert previous patch.
12333
12334 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12335
12336         * libc/include/sys/types.h: Include cygwin/types.h always under
12337         Cygwin, not only if _POSIX_THREADS is defined.
12338
12339 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
12340
12341         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
12342
12343 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
12344
12345         * Makefile.am: Copy and install headers from sys/machine/include
12346         directory.  Also pass $toollibdir to lower-level directories.
12347         * Makefile.in: Regenerated.
12348         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
12349         stderr to use _REENT macro instead of _impure_ptr directly.
12350         * libc/include/sys/config.h[__i386__][__linux__]: Define
12351         __DYNAMIC_REENT__.
12352         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
12353         call to __getreent() function if !__SINGLE_THREAD__ and
12354         __DYNAMIC_REENT__ is set.
12355         * libc/reent/Makefile.am: Add support for getreent.c.
12356         * libc/reent/Makefile.in: Regenerated.
12357         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
12358         * libc/sys/linux/Makefile.am: Add support for new files.
12359         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
12360         * libc/sys/linux/Makefile.in: Regenerated.
12361         * libc/sys/linux/configure: Ditto.
12362         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
12363         __close, __read, __write, __poll, __open, __lseek, __fcntl from
12364         their __libc_ counterparts.
12365         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
12366         and weak-alias to regular names.
12367         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
12368         to pread64 and __pread64.
12369         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
12370         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
12371         weak-alias to pwrite64.
12372         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
12373         __libc_sched_getscheduler, __libc_sched_get_priority_max,
12374         __libc_sched_get_priority_min, and __libc_sched_setschedule to
12375         name with __ instead of __libc_.
12376         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
12377         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
12378         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
12379         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
12380         to raise.
12381         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
12382         __libc_send to __send.
12383         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
12384         __gettimeofday.
12385         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
12386         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
12387         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
12388         type and typedef __jmp_buf to jmp_buf.
12389         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
12390         setjmp.S.
12391         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12392         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
12393         section.
12394         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
12395         prefix for function macros and then use weak_alias() to regular names.
12396         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12397         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
12398         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
12399         to be flockfile() and funlockfile() respectively.
12400         * libc/sys/linux/sys/types.h
12401         * libc/reent/getreent.c: New file.
12402         * libc/sys/linux/flockfile.c: Ditto.
12403         * libc/sys/linux/funlockfile.c: Ditto.
12404         * libc/sys/linux/getreent.c: Ditto.
12405         * libc/sys/linux/pread.c: Ditto.
12406         * libc/sys/linux/pwrite.c: Ditto.
12407         * libc/sys/linux/raise.c: Ditto.
12408         * libc/sys/linux/system.c: Ditto.
12409         * libc/sys/linux/tcdrain.c: Ditto.
12410         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
12411         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
12412         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
12413         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
12414         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
12415
12416 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
12417
12418         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
12419         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
12420         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
12421         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
12422
12423 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12424
12425         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
12426         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
12427         exit point.
12428
12429 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
12430
12431         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
12432         options when testing natively on i[3456]86-*-linux.
12433
12434         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
12435         only one pass or fail per test file.  Trim \r's from output
12436         values received from test programs.  Remove support for named
12437         tests.
12438         * testsuite/newlib.locale/UTF-8.exp: Update to support new
12439         newlib_check_output behaviour.
12440         * testsuite/newlib.locale/UTF-8.c: Likewise.
12441
12442 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
12443
12444         * libc/include/stdlib.h: Add on_exit prototype.
12445         * libc/include/sys/reent.h (struct _atexit): Add argument array
12446         and bits to track type of exit routine to support both on_exit
12447         and atexit.
12448         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
12449         by default and change the setting of the atexit structure.
12450         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
12451         * libc/stdlib/on_exit.c: New file.
12452         * libc/stdlib/Makefile.am: Add support for on_exit.
12453         * libc/stdlib/Makefile.in: Regenerated.
12454         * libc/stdlib/atexit.c: Change to initialize types field.
12455         * libc/stdlib/exit.c: Change to look at types field for each
12456         exit routine and either call an atexit-style or an on_exit-style
12457         routine accordingly.
12458
12459 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12460
12461         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
12462         allow v specifier with n or L specifiers.  For vector c format,
12463         move tmp declaration to the top.
12464
12465 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12466
12467         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
12468         the original format specifier when looping for vectors to compensate
12469         for any changes made in vector %g format processing.
12470         Also add syntax checking for various invalid scenarios
12471         involving vector format extensions.
12472         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
12473         return code setting for vector formats.  Also treat vector
12474         separator mismatch as a match error instead of an input error.
12475         Perform some syntax checking for vector formats.
12476
12477 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12478
12479         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
12480         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
12481         * libc/string/strlcat.c: New file.
12482         * libc/string/strlcpy.c: New file.
12483
12484 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
12485
12486         * libc/string/strchr.c: Fix comment typo.
12487
12488 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
12489
12490         * acinclude.m4: Add support for --enable-newlib-multithread.
12491         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
12492         --enable-newlib-multithread=no.
12493
12494         * libc/stdio/getc_u.c: New file.
12495         * libc/stdio/getchar_u.c: New file.
12496         * libc/stdio/putc_u.c: New file.
12497         * libc/stdio/putchar_u.c: New file.
12498         * libc/include/stdio.h: Add declarations for getc_unlocked,
12499         getchar_unlocked, putc_unlocked and putchar_unlocked.
12500         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
12501         (CHEWOUT_FILES): Add new files' .def's.
12502         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
12503
12504 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
12505
12506         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12507         Also handle as single quad word when destination ends at last
12508         byte of first quad word.  Fix byte selection in single quad code.
12509
12510 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
12511
12512         * libc/include/sys/stdio.h: New file.
12513         * libc/sys/linux/sys/stdio.h: New file.
12514         * libc/include/stdio.h: Add declarations for flockfile,
12515         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
12516         * libc/stdio/clearerr.c: Add file locking.
12517         * libc/stdio/fclose.c: Likewise.
12518         * libc/stdio/feof.c: Likewise.
12519         * libc/stdio/ferror.c: Likewise.
12520         * libc/stdio/fflush.c: Likewise.
12521         * libc/stdio/fgetc.c: Likewise.
12522         * libc/stdio/fgetpos.c: Likewise.
12523         * libc/stdio/fgets.c: Likewise.
12524         * libc/stdio/fileno.c: Likewise.
12525         * libc/stdio/fputc.c: Likewise.
12526         * libc/stdio/fputs.c: Likewise.
12527         * libc/stdio/fread.c: Likewise.
12528         * libc/stdio/freopen.c: Likewise.
12529         * libc/stdio/fseek.c: Likewise.
12530         * libc/stdio/ftell.c: Likewise.
12531         * libc/stdio/fwrite.c: Likewise.
12532         * libc/stdio/getc.c: Likewise.
12533         * libc/stdio/putc.c: Likewise.
12534         * libc/stdio/setvbuf.c: Likewise.
12535         * libc/stdio/ungetc.c: Likewise.
12536         * libc/stdio/vfprintf.c: Likewise.
12537
12538 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12539
12540         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
12541         support for 'p' format.  Fix code to print bytes for vector
12542         integer formats that do not specify 'h' or 'l'.
12543         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
12544         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
12545         formats that do not specify 'h' or 'l'.
12546
12547         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
12548
12549 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
12550
12551         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
12552         (_sbrk): Add cast of return value.
12553
12554 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12555
12556         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
12557         (_REENT_L64A_BUF): New macro for accessing area.
12558         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
12559         *  libc/stdlib/Makefile.in: Regenerated.
12560         *  libc/stdlib/a64l.c: New file.
12561         *  libc/stdlib/l64a.c: New file.
12562
12563 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12564
12565         * libc/unix/pread.c: Fix typo for _pread_r.
12566         * libc/unix/pwrite.c: Fix type for _pwrite_r.
12567         * libc/sys/linux/pread64.c: Fix typo for read syscall.
12568         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
12569
12570 2002-05-03  Christopher Faylor  <cgf@redhat.com>
12571
12572         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
12573
12574 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
12575
12576         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
12577
12578 2002-05-01  Christopher Faylor  <cgf@redhat.com>
12579
12580         * utmp.h: Define more UNIX constants.
12581
12582 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
12583
12584         * Makefile.am: Add support for checking multilibs.
12585
12586         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
12587         (SUBDEFS): Add LIBC_EXTRA_DEF.
12588         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
12589         (LIBC_EXTRA_DEF): Likewise.
12590         (extra_dir): Likewise.
12591         * libc/machine/xscale/machine: New directory.
12592         * libc/machine/xscale/machine/profile.h: New file.
12593
12594         * Makefile.am (site.exp): Remove newlib_cflags.  Add
12595         multibuildtop.
12596         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
12597         * testsuite/lib/flags.exp: New file.
12598         * testsuite/lib/newlib.exp: Load flags.exp.
12599         (newlib_target_compile): Remove libgloss directory references.
12600         (newlib_init): Remove newlib_cflags references.
12601
12602 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
12603
12604         * testsuite/lib/newlib.exp (newlib_target_compile): Change
12605         method of finding libgloss_target_dir.
12606
12607         * Makefile.am (site.exp): Change host_alias, host_triplet,
12608         target_alias, target_triplet to refer to gcc's host and target
12609         variables (newlib's build and host variables).
12610         * testsuite/lib/newlib.exp (newlib_init): Change build
12611         references to host references, host references to target
12612         references to reflect Makefile.am changes.
12613         (newlib_target_compile): Likewise.
12614         (newlib_finish): Likewise.
12615
12616 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12617
12618         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
12619
12620 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
12621
12622         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
12623         (_system): New function. Ditto.
12624         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
12625         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
12626         targets.
12627
12628 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12629
12630         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
12631         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
12632         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
12633         *  libc/sys/linux/Makefile.in: Regenerated.
12634         *  libc/unix/Makefile.in: Ditto.
12635         *  libc/sys/linux/pread64.c: New file.
12636         *  libc/sys/linux/pwrite64.c: Ditto.
12637         *  libc/unix/pread.c: Ditto.
12638         *  libc/unix/pwrite.c: Ditto.
12639
12640 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12641
12642         *  libc/sys/linux/Makefile.am: Add io64.c.
12643         *  libc/sys/linux/Makefile.in: Regenerated.
12644         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
12645         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
12646         *  libc/sys/linux/io64.c: New file.
12647
12648 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12649
12650         * configure.in (CC_FOR_NEWLIB): New variable that
12651         bases on $(CC) and adds targ-include and libc/include as
12652         -isystem directives if they are not already part of $(CC).
12653         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
12654         $(CC_FOR_NEWLIB).
12655         * configure: Regenerated.
12656         * Makefile.in: Ditto.
12657
12658 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
12659
12660         *  libc/sys/linux/Makefile.am: Add support for sched.c.
12661         *  libc/sys/linux/Makefile.in: Regenerated.
12662         *  libc/sys/linux/sched.c: New file.
12663         *  libc/sys/linux/sys/types.h: Add struct timespec.
12664
12665 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
12666
12667         * configure.in (CC_FOR_BUILD): Set to gcc whether
12668         cross-compiling or not.
12669         (CC): Add -isystem's for targ-include and libc/include when they
12670         do not already appear in CC.
12671
12672 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12673
12674         * Makefile.am (check-DEJAGNU): New target.
12675         (site.exp): Likewise.
12676         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
12677         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
12678         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
12679         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
12680         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
12681         * testsuite: New directory.
12682         * testsuite/config: Likewise.
12683         * testsuite/lib: Likewise.
12684         * testsuite/newlib.locale: Likewise.
12685         * testsuite/newlib.string: Likewise.
12686         * testsuite/config/default.exp: New file.
12687         * testsuite/lib/checkoutput.exp: New file.
12688         * testsuite/lib/newlib.exp: New file.
12689         * testsuite/lib/passfail.exp: New file.
12690         * testsuite/newlib.locale/UTF-8.c: New file.
12691         * testsuite/newlib.locale/UTF-8.exp: New file.
12692         * testsuite/newlib.locale/locale.exp: New file.
12693         * testsuite/newlib.string/string.exp: New file.
12694         * testsuite/newlib.string/tstring.c: New file.
12695
12696 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
12697
12698         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
12699         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
12700         *  libc/sys/linux/Makefile.in: Regenerated.
12701         *  libc/sys/linux/mmap.c: New file.
12702         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
12703         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
12704
12705 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12706
12707         * acinclude.m4 (newlib_cflags): Remove include directories that
12708         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
12709
12710 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
12711
12712         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
12713         * libc/machine/xscale/memcmp.c: Ditto.
12714         * libc/machine/xscale/memcpy.c: Ditto.
12715         * libc/machine/xscale/memmove.c: Ditto.
12716         * libc/machine/xscale/memset.c: Ditto.
12717         * libc/machine/xscale/strchr.c: Ditto.
12718         * libc/machine/xscale/strcmp.c: Ditto.
12719         * libc/machine/xscale/strcpy.c: Ditto.
12720         * libc/machine/xscale/strlen.c: Ditto.
12721
12722 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
12723
12724         * libc/include/sys/config.h: Remove include of <limits.h>.
12725         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
12726         define INT_MAX and LONG_MAX.  Use them in tests.
12727
12728 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
12729
12730         *  configure.host: Add support for powerpc-eabialtivec*.
12731         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
12732         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
12733         *  libc/include/machine/malloc.h: New file.
12734         *  libc/include/machine/stdlib.h: Ditto.
12735         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
12736         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
12737         sources based on configuration.
12738         *  libc/machine/powerpc/Makefile.in: Regenerated.
12739         *  libc/machine/powerpc/configure: Ditto.
12740         *  libc/machine/powerpc/configure.in: Add check for
12741         powerpc-eabialtivec* in which case add in additional source files.
12742         *  libc/machine/powerpc/setjmp.S: Add altivec support.
12743         *  libc/machine/powerpc/vec_calloc.c: New file.
12744         *  libc/machine/powerpc/vec_free.c: Ditto.
12745         *  libc/machine/powerpc/vec_malloc.c: Ditto.
12746         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
12747         *  libc/machine/powerpc/vec_realloc.c: Ditto.
12748         *  libc/machine/powerpc/machine/malloc.h: Ditto.
12749         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
12750         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
12751         with added altivec format specifiers.
12752         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
12753         added altivec format specifiers.
12754
12755 2002-04-19      Joel Sherrill <joel@OARcorp.com>
12756
12757         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
12758         while autoconf is trying to link main(){}.
12759
12760 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12761
12762         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
12763         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
12764
12765 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12766
12767         * libc/time/time.tex: Add tzset info.
12768
12769 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12770
12771         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
12772         (strptime): Moved prototype to be within !__STRICT_ANSI__.
12773         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
12774         (tzname): Defined for all platforms.
12775         (daylight, timezone): Defined only for CYGWIN.
12776         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
12777         environment set up.
12778         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
12779         environment variable is set.
12780         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
12781         tzset_r.c.
12782         * libc/time/Makefile.in: Regenerated.
12783         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
12784         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
12785         * libc/time/lcltime_r.c (lcltime_r): Ditto.
12786         * libc/time/local.h: New local header file.
12787         * libc/time/mktime.c (mktime): Add timezone support.
12788         * libc/time/mktm_r.c: New file which is the common engine
12789         for gmtime_r and lcltime_r.  This code has timezone support.
12790         * libc/time/strftime.c (strftime): Add %Z timezone support.
12791         * libc/time/tzlock.c: New file containing timezone lock stubs.
12792         * libc/time/tzset.c: New file containing tzset() routine.
12793         * libc/time/tzset_r.c: New file containing _tzset_r and
12794         internal routine for calculating timezone changes for specified year.
12795
12796 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
12797
12798         * configure.in (CRT0_DIR): Set to libc/.
12799         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
12800         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
12801         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
12802         $(CRT1_DIR)/$(CRT1).
12803         * libc/machine/xstormy16/Makefile.in: Regenerated.
12804         * libc/machine/xstormy16/aclocal.m4: Regenerated.
12805         * libc/machine/xstormy16/configure: Regenerated.
12806
12807 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
12808
12809         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
12810         fails, don't bail out, and try to correct next time.
12811
12812         * libc/include/sys/config.h: Include limits.h.
12813
12814 2002-04-12  Eric Norum  <eric.norum@usask.com>
12815
12816         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
12817         routine to allow autoconf to determine that building executables
12818         for rtems works.
12819         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
12820         (rtems_gxx_mutex_once): Ditto.
12821
12822 2002-04-09  Tom Rix  <trix@redhat.com>
12823
12824         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
12825
12826 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12827
12828         * libc/include/time.h: Fix strptime declaration.
12829         * libc/time/Makefile.am: Add strptime.c.
12830         * libc/time/Makefile.in: Regenerated.
12831         * libc/time/strptime.c: New file.
12832
12833 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
12834
12835         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
12836         siglongjmp prototype, and sigsetjmp macro definition.
12837         * libc/sys/linux/siglongjmp.c: New file.
12838         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
12839         * libc/sys/linux/Makefile.in: Regenerated.
12840
12841 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
12842
12843         * Makefile.am: Add support for installing crt1.o if one exists.
12844         * configure.host: Specify crt1.o for linux.
12845         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
12846         * Makefile.in: Regenerated.
12847         * configure: Ditto.
12848         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
12849         Added for non-Cygwin, non-RTEMS configurations.
12850         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
12851         * libc/sys/linux/Makefile.in: Regenerated.
12852         * libc/sys/linux/crt1.c: New empty file to override one defaulted
12853         by gcc.  This fixes problem with reconfiguring linux newlib build.
12854         * libc/sys/linux/sysconf.c: New file.
12855
12856 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
12857
12858         * configure.host: Add support for machine subdirectory of
12859         sys subdirectory.
12860         * configure.in: Add check for sys machine subdirectory.
12861         * Makefile.am: Ditto.
12862         * configure: Regenerated.
12863         * Makefile.in: Ditto.
12864         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
12865         * libc/sys/linux/sys/syscall.h: Ditto.
12866         * libc/sys/linux/sleep.c: New file.
12867         * libc/sys/linux/socket.c: Ditto.
12868         * libc/sys/linux/sockops.h: Ditto.
12869         * libc/sys/linux/stack.c: Ditto.
12870         * libc/sys/linux/usleep.c: Ditto.
12871         * libc/sys/linux/machine/Makefile.am: Ditto.
12872         * libc/sys/linux/machine/Makefile.in: Ditto.
12873         * libc/sys/linux/machine/aclocal.m4: Ditto.
12874         * libc/sys/linux/machine/configure: Ditto.
12875         * libc/sys/linux/machine/configure.in: Ditto.
12876         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
12877         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
12878         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
12879         * libc/sys/linux/machine/i386/configure: Ditto.
12880         * libc/sys/linux/machine/i386/configure.in: Ditto.
12881         * libc/sys/linux/machine/i386/crt0.c: Ditto.
12882         * libc/sys/linux/machine/i386/sigset.c: Ditto.
12883         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
12884         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
12885         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12886         * libc/sys/linux/sys/select.h: Ditto.
12887         * libc/sys/linux/configure.in: Add support for machine directory.
12888         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
12889         * libc/sys/linux/Makefile.in: Regenerated.
12890         * libc/sys/linux/configure: Ditto.
12891         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
12892         * libc/sys/linux/inode.c: Ditto.
12893         * libc/sys/linux/linux.c: Ditto.
12894         * libc/sys/linux/process.c: Ditto.
12895         * libc/sys/linux/systat.c: Ditto.
12896         * libc/sys/linux/time.c: Ditto.
12897         * libc/sys/linux/wait.c: Ditto.
12898         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
12899         * libc/sys/linux/io.c: Change header plus add readv/writev.
12900         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
12901         use __sigsuspend syscall.
12902         * libc/sys/linux/select.c: Change header plus change select to
12903         use _newselect syscall.
12904         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
12905         used by glibc header files.
12906         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
12907         types.
12908
12909 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
12910
12911         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
12912         initializing a struct _reent that has been dynamically allocated.
12913         (_REENT_CHECK_MISC): New macro that checks _misc struct for
12914         _REENT_SMALL and does nothing otherwise.
12915         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
12916         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
12917         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
12918         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
12919         [_REENT_SMALL](struct _misc_reent): New structure containing
12920         miscellaneous reentrant areas needed by newlib.
12921         [_REENT_SMALL](struct _reent): Add _misc pointer.
12922         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
12923         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
12924         and _REENT_STRTOK_LAST macros.
12925         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
12926         and _REENT_MBLEN_STATE macros.
12927         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
12928         and _REENT_MBTOWC_STATE macros.
12929         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
12930         and _REENT_WCTOMB_STATE macros.
12931
12932 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
12933
12934         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
12935
12936 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
12937
12938         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
12939
12940 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
12941
12942         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
12943         Store high part of leading bytes too.
12944
12945 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
12946
12947         * libm/math/ef_hypot.c: Increase scale factor to 68.
12948
12949 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
12950
12951         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
12952         error.
12953
12954 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
12955
12956         * libc/sys/go32/access.c: Change license to relaxed license
12957         used in identical file throughout newlib/libgloss.
12958
12959 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
12960
12961         * libc/sys/arm/access.c: New file.
12962         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
12963         * libc/sys/arm/Makefile.in: Regenerate.
12964         * libc/sys/arm/syscalls.c (_stat): New function.
12965
12966 2002-03-11  Michael Meissner  <meissner@redhat.com>
12967
12968         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
12969         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
12970         * libc/machine/mips/Makefile.in: Regenerate.
12971         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
12972         * libc/machine/mips/memset.c: Dito.
12973         * libc/machine/mips/strcmp.c: Dito.
12974         * libc/machine/mips/strlen.c: Dito.
12975         * libc/machine/mips/strncmp.c: Dito.
12976
12977 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
12978
12979         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
12980         object so it works for shared library or statici library.
12981 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12982
12983         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
12984         (strptime): Moved prototype to be within !__STRICT_ANSI__.
12985         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
12986         (tzname): Defined for all platforms.
12987         (daylight, timezone): Defined only for CYGWIN.
12988         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
12989         environment set up.
12990         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
12991         environment variable is set.
12992         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
12993         tzset_r.c.
12994         *  libc/time/Makefile.in: Regenerated.
12995         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
12996         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
12997         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
12998         *  libc/time/local.h: New local header file.
12999         *  libc/time/mktime.c (mktime): Add timezone support.
13000         *  libc/time/mktm_r.c: New file which is the common engine
13001         for gmtime_r and lcltime_r.  This code has timezone support.
13002         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13003         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13004         *  libc/time/tzset.c: New file containing tzset() routine.
13005         *  libc/time/tzset_r.c: New file containing _tzset_r and
13006         internal routine for calculating timezone changes for specified year.
13007
13008 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13009
13010         * configure.in (CRT0_DIR): Set to libc/.
13011         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13012         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13013         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13014         $(CRT1_DIR)/$(CRT1).
13015         * libc/machine/xstormy16/Makefile.in: Regenerated.
13016         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13017         * libc/machine/xstormy16/configure: Regenerated.
13018
13019 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13020
13021         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13022         fails, don't bail out, and try to correct next time.
13023
13024         * libc/include/sys/config.h: Include limits.h.
13025
13026 2002-04-12  Eric Norum  <eric.norum@usask.com>
13027
13028         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13029         routine to allow autoconf to determine that building executables
13030         for rtems works.
13031         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13032         (rtems_gxx_mutex_once): Ditto.
13033
13034 2002-04-09  Tom Rix  <trix@redhat.com>
13035
13036         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13037
13038 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13039
13040         * libc/include/time.h: Fix strptime declaration.
13041         * libc/time/Makefile.am: Add strptime.c.
13042         * libc/time/Makefile.in: Regenerated.
13043         * libc/time/strptime.c: New file.
13044
13045 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13046
13047         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13048         siglongjmp prototype, and sigsetjmp macro definition.
13049         * libc/sys/linux/siglongjmp.c: New file.
13050         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13051         * libc/sys/linux/Makefile.in: Regenerated.
13052
13053 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13054
13055         * Makefile.am: Add support for installing crt1.o if one exists.
13056         * configure.host: Specify crt1.o for linux.
13057         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13058         * Makefile.in: Regenerated.
13059         * configure: Ditto.
13060         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13061         Added for non-Cygwin, non-RTEMS configurations.
13062         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13063         * libc/sys/linux/Makefile.in: Regenerated.
13064         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13065         by gcc.  This fixes problem with reconfiguring linux newlib build.
13066         * libc/sys/linux/sysconf.c: New file.
13067
13068 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13069
13070         * configure.host: Add support for machine subdirectory of
13071         sys subdirectory.
13072         * configure.in: Add check for sys machine subdirectory.
13073         * Makefile.am: Ditto.
13074         * configure: Regenerated.
13075         * Makefile.in: Ditto.
13076         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13077         * libc/sys/linux/sys/syscall.h: Ditto.
13078         * libc/sys/linux/sleep.c: New file.
13079         * libc/sys/linux/socket.c: Ditto.
13080         * libc/sys/linux/sockops.h: Ditto.
13081         * libc/sys/linux/stack.c: Ditto.
13082         * libc/sys/linux/usleep.c: Ditto.
13083         * libc/sys/linux/machine/Makefile.am: Ditto.
13084         * libc/sys/linux/machine/Makefile.in: Ditto.
13085         * libc/sys/linux/machine/aclocal.m4: Ditto.
13086         * libc/sys/linux/machine/configure: Ditto.
13087         * libc/sys/linux/machine/configure.in: Ditto.
13088         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13089         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13090         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13091         * libc/sys/linux/machine/i386/configure: Ditto.
13092         * libc/sys/linux/machine/i386/configure.in: Ditto.
13093         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13094         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13095         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13096         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13097         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13098         * libc/sys/linux/sys/select.h: Ditto.
13099         * libc/sys/linux/configure.in: Add support for machine directory.
13100         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13101         * libc/sys/linux/Makefile.in: Regenerated.
13102         * libc/sys/linux/configure: Ditto.
13103         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13104         * libc/sys/linux/inode.c: Ditto.
13105         * libc/sys/linux/linux.c: Ditto.
13106         * libc/sys/linux/process.c: Ditto.
13107         * libc/sys/linux/systat.c: Ditto.
13108         * libc/sys/linux/time.c: Ditto.
13109         * libc/sys/linux/wait.c: Ditto.
13110         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13111         * libc/sys/linux/io.c: Change header plus add readv/writev.
13112         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13113         use __sigsuspend syscall.
13114         * libc/sys/linux/select.c: Change header plus change select to
13115         use _newselect syscall.
13116         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13117         used by glibc header files.
13118         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13119         types.
13120
13121 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13122
13123         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13124         initializing a struct _reent that has been dynamically allocated.
13125         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13126         _REENT_SMALL and does nothing otherwise.
13127         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13128         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13129         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13130         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13131         [_REENT_SMALL](struct _misc_reent): New structure containing
13132         miscellaneous reentrant areas needed by newlib.
13133         [_REENT_SMALL](struct _reent): Add _misc pointer.
13134         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13135         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13136         and _REENT_STRTOK_LAST macros.
13137         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13138         and _REENT_MBLEN_STATE macros.
13139         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13140         and _REENT_MBTOWC_STATE macros.
13141         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13142         and _REENT_WCTOMB_STATE macros.
13143
13144 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13145
13146         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13147
13148 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13149
13150         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13151
13152 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13153
13154         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13155         Store high part of leading bytes too.
13156
13157 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13158
13159         * libm/math/ef_hypot.c: Increase scale factor to 68.
13160
13161 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13162
13163         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13164         error.
13165
13166 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13167
13168         * libc/sys/go32/access.c: Change license to relaxed license
13169         used in identical file throughout newlib/libgloss.
13170
13171 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13172
13173         * libc/sys/arm/access.c: New file.
13174         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13175         * libc/sys/arm/Makefile.in: Regenerate.
13176         * libc/sys/arm/syscalls.c (_stat): New function.
13177
13178 2002-03-11  Michael Meissner  <meissner@redhat.com>
13179
13180         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13181         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13182         * libc/machine/mips/Makefile.in: Regenerate.
13183         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13184         * libc/machine/mips/memset.c: Dito.
13185         * libc/machine/mips/strcmp.c: Dito.
13186         * libc/machine/mips/strlen.c: Dito.
13187         * libc/machine/mips/strncmp.c: Dito.
13188
13189 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13190
13191         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13192         object so it works for shared library or statici library.
13193         * libc/machine/i386/Makefile.in: Regenerated.
13194
13195 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13196
13197         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13198         Add memcpy.S, memset.S and strcpy.S.
13199         * libc/machine/sh/Makefile.in: Regenerate.
13200         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13201         (SHHI, SHLO): Define.
13202         * libc/machine/sh/memset.S: Add code for SH5.
13203         * libc/machine/sh/memset.S: Likewise.
13204         * libc/machine/sh/strcpy.S: Likewise.
13205
13206 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13207
13208         * configure.host: Add check for --disable-newlib-io-float
13209         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13210         if appropriate.
13211         * acinclude.m4: Added --disable-newlib-io-float option.
13212         * aclocal.m4: Regenerated.
13213         * configure: Ditto.
13214         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13215         * libc/*/aclocal.m4 libc/*/configure
13216         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13217         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13218         if NO_FLOATING_POINT flag is not defined.
13219
13220 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13221
13222         * libc/include/sys/config.h: Add __extension__ in front of
13223         long long references.
13224
13225 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13226
13227         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
13228         (_stat): Ditto.
13229
13230 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13231
13232         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
13233         of off_t.
13234
13235 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
13236
13237         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
13238         clobbered registers.
13239
13240 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13241
13242         * configure.host (newlib_cflags): When host is in m68* add
13243         -DCOMPACT_CTYPE.
13244
13245 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
13246
13247         * libc/include/sys/config.h: Add definitions for
13248         __int16_t, __uint16_t, __int64_t, and __uint64_t.
13249
13250 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
13251
13252         * libc/sys/mmixware/link.c: New.
13253         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
13254         volatile.
13255         * libc/sys/mmixware/times.c (_times): Renamed from times.
13256         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
13257         properly by reading previous contents, not through BinaryReadWrite.
13258         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
13259         * libc/sys/mmixware/Makefile.in: Regenerate.
13260
13261 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
13262
13263         * libc/include/grp.h: Don't declare group functions when compiling
13264         Cygwin.
13265
13266 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
13267
13268         * libc/include/grp.h: Include Cygwin specific header.
13269         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
13270         when compiling for Cygwin.
13271         * libc/include/sys/types.h: Don't define off_t, uid_t
13272         and gid_t when compiling for Cygwin.
13273
13274 2002-02-08  matthew green  <mrg@redhat.com>
13275
13276         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
13277         _REENT_EMERGENCY_SIZE, not sizeof(char *).
13278
13279 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
13280
13281         Contribute sh64-elf.
13282         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13283         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
13284         support in printf.
13285         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
13286         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
13287         any labels.
13288         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
13289         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
13290         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13291         * libc/machine/sh/configure.in: Rework conditionals.
13292         * libc/machine/sh/Makefile.am: Likewise.
13293         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
13294         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13295         * configure.host: Match `sh*'.
13296         * libc/include/machine/setjmp.h: Define for SH5.
13297         * libc/machine/sh/configure.in: Detect SH5.
13298         * libc/machine/sh/configure: Rebuilt.
13299         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
13300         * libc/machine/sh/Makefile.in: Rebuilt.
13301         * libc/machine/sh/asm.h: Adjust for SH5.
13302         * libc/machine/sh/setjmp.S: Implement in SHmedia.
13303         * libc/sys/sh/crt0.S: Likewise.
13304         * libc/sys/sh/trap.S: Likewise.
13305
13306 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
13307
13308         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
13309         (mach_add_obj): Conditionally set to setjmp.o or nothing.
13310         (LIB_SOURCES): Remove $(mach_add_src).
13311         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
13312         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
13313         * libc/machine/i386/Makefile.in: Regenerate.
13314
13315 2002-02-05  Manik Raina <manik@cisco.com>
13316
13317         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
13318         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
13319         s, p, k, and outstr.
13320         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
13321
13322 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
13323
13324         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
13325         _REENT_CHECK_EMERGENCY macro.
13326
13327 2002-02-03  matthew green  <mrg@redhat.com>
13328
13329         * libc/reent/signgam.c (__signgam): Fix error in previous.
13330
13331 2002-02-02  matthew green  <mrg@redhat.com>
13332
13333         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
13334
13335         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
13336         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
13337         * libc/include/sys/reent.h (struct _reent): Completely new version
13338         for _REENT_SMALL.
13339         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
13340         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
13341         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
13342         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
13343         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
13344         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
13345         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
13346         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
13347         (_REENT_EMERGENCY): Likewise.
13348
13349         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
13350         the start of the real __sFILE, used for stdin, stdout and stderr until
13351         they are setup properly.
13352         (struct __sFILE): Move location of _data in _REENT_SMALL case.
13353         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
13354         allocated stdin, stdout and stderr.
13355         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
13356         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
13357         * libc/stdio/perror.c (_perror_r): Likewise.
13358         * libc/stdio/printf.c (printf, _printf_r): Likewise.
13359         * libc/stdio/putchar.c (_putchar_r): Likewise.
13360         * libc/stdio/puts.c (_puts_r): Likewise.
13361         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
13362         * libc/stdio/vprintf.c (vprintf): Likewise.
13363         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
13364
13365         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
13366
13367         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
13368         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
13369         for _REENT_SMALL.
13370         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
13371         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
13372
13373         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
13374         _REENT_SMALL.
13375         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
13376         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
13377         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
13378         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
13379         * libc/stdlib/rand48.c (__dorand48): Likewise.
13380         * libc/stdlib/seed48.c (_seed48_r): Likewise.
13381         * libc/stdlib/srand48.c (_srand48_r): Likewise.
13382         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
13383         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
13384         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
13385         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
13386         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
13387         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
13388         * libc/stdlib/rand.c (rand): Likewise.
13389
13390         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
13391         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
13392
13393         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
13394         _REENT_MP_FREELIST() and _REENT_MP_P5S.
13395         * libc/include/sys/reent.h (struct _mprec): New structure.
13396
13397         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
13398         _unused_strtok_last.
13399         * libc/string/strtok.c (strtok): Use a local static variable.
13400
13401         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
13402         (_REENT_EMERGENCY_SIZE): Likewise.
13403         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
13404         _REENT_ASCTIME_BUF().
13405         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
13406         _REENT_TM().
13407
13408         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
13409         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
13410         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
13411         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
13412         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
13413         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
13414
13415 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
13416
13417         * configure.host (xstormy16): Don't use the generic malloc.
13418         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
13419         * libc/machine/xstormy16/Makefile.in: Regenerate.
13420         * libc/machine/xstormy16/mallocr.c: New file.
13421         * libc/machine/xstormy16/tiny-malloc.c: New file.
13422
13423 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13424
13425         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
13426         when _CYGWIN_TYPES_H is not defined.
13427
13428 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13429
13430         * libc/include/sys/signal.h: Revert 2002-01-23 change.
13431
13432 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
13433
13434         * libc/include/sys/signal.h: Remove pthread_kill declaration
13435         when __CYGWIN__ is defined.
13436
13437 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13438
13439         * libc/include/time.h: Add prototype for strptime for Cygwin.
13440
13441 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
13442
13443         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
13444         dst was not word aligned.
13445
13446         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
13447         if too much memory is requested.
13448
13449 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
13450
13451         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
13452         reads blanks from the input file to break if EOF reached
13453         rather than end processing.
13454
13455 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
13456
13457         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
13458
13459 2002-01-07 Alan Matsuoka <alanm@redhat.com>
13460
13461         * libc/include/machine/ieeefp.h: Configure d10v doubles to
13462         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
13463         libc/include/sys/config.h: Ditto.
13464
13465 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
13466
13467         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
13468
13469 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
13470             Catherine Moore  <clm@redhat.com>
13471             Richard Henderson  <rth@redhat.com>
13472             Corinna Vinschen  <vinschen@redhat.com>
13473
13474         * configure.host: Add support for xstormy16.
13475         * libc/include/machine/ieeefp.h: Add support for xstormy16.
13476         * libc/include/machine/setjmp.h: Add support for xstormy16.
13477         * libc/include/sys/config.h: Add support for xstormy16.
13478         * libc/machine/xstormy16/Makefile.am: New file.
13479         * libc/machine/xstormy16/Makefile.in: New file.
13480         * libc/machine/xstormy16/aclocal.m4: New file.
13481         * libc/machine/xstormy16/configure: New file.
13482         * libc/machine/xstormy16/configure.in: New file.
13483         * libc/machine/xstormy16/setjmp.S: New file.
13484
13485 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13486
13487         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
13488         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
13489
13490 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
13491
13492         * libm/machine/Makefile.am: Change rules to create correct lib.a.
13493         * libm/machine/Makefile.in: Regenerated through automake.
13494
13495 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13496
13497         * Makefile.am (DOCDIR): Force to empty string when doc
13498         directory is not present.
13499
13500 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13501
13502         * libc/machine/i386/f_*: Move to libm/machine/i386.
13503
13504 2001-12-18      Joel Sherrill <joel@OARcorp.com>
13505
13506         * libm/machine/Makefile.am: Add dummy doc stub so
13507         "make info" works.
13508
13509 2001-12-17      Joel Sherrill <joel@OARcorp.com>
13510
13511         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
13512
13513 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13514
13515         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
13516         $(COMPILE) rather than $(CC).
13517         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
13518         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
13519         $(LIB_COMPILE) change.
13520         (vfiprintf.$(oext)): Likewise.
13521
13522 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
13523
13524         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
13525         conditionalized including of getopt stuff.
13526
13527 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13528
13529         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
13530         compile line.
13531         (vfiprintf.$(oext)): Likewise.
13532
13533 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
13534
13535         * Makefile.shared: New file.
13536         * libc/sys/linux/shared.ld: New file.
13537         * libm/machine/*: New files.
13538         * libm/machine/i386/*: New files.
13539         * Makefile.am: Add libtool support.  Change math and mathfp
13540         references to variables.
13541         * configure.host: Add variables for libtool support.  Add
13542         libm_machine_dir variable.
13543         * configure.in: Add objectlist variables, for libtool
13544         support.  Add CC_FOR_BUILD tests.
13545         * libc/Makefile.am: Add libtool support.  Change crt0.o
13546         reference to be a variable reference.
13547         * libc/configure.in: Add libtool support.  Change sublib
13548         names to be lib${subdir}.la when using libtool.
13549         * libc/ctype/Makefile.am: Add libtool support.
13550         * libc/errno/Makefile.am: Likewise.
13551         * libc/locale/Makefile.am: Likewise.
13552         * libc/machine/Makefile.am: Likewise.
13553         * libc/machine/configure.in: Likewise.
13554         * libc/machine/i386/Makefile.am: Likewise.
13555         * libc/machine/i386/configure.in: Likewise.
13556         * libc/misc/Makefile.am: Likewise.
13557         * libc/posix/Makefile.am: Likewise.
13558         * libc/reent/Makefile.am: Likewise.
13559         * libc/signal/Makefile.am: Likewise.
13560         * libc/stdio/Makefile.am: Likewise.
13561         * libc/stdlib/Makefile.am: Likewise.
13562         * libc/string/Makefile.am: Likewise.
13563         * libc/sys/Makefile.am: Likewise.
13564         * libc/sys/configure.in: Likewise.
13565         * libc/sys/linux/Makefile.am: Add libtool support.  Change
13566         awk reference to a variable reference.  Change signal.h
13567         reference to a variable reference.
13568         * libc/sys/linux/configure.in: Add libtool support.
13569         * libc/syscalls/Makefile.am: Likewise.
13570         * libc/time/Makefile.am: Likewise.
13571         * libc/unix/Makefile.am: Likewise.
13572         * libm/Makefile.am: Add libtool support.  Change math and
13573         mathfp references to variables.
13574         * libm/configure.in: Add libtool support.  Add
13575         LIBM_MACHINE_LIB variable.
13576         * libm/common/Makefile.am: Add libtool support.
13577         * libm/math/Makefile.am: Likewise.
13578         * libm/mathfp/Makefile.am: Likewise.
13579         Regenerate all Makefile.in, aclocal.m4, and configure.
13580
13581 2001-12-13 Anita Kulkarni <anitak@kpit.com>
13582
13583         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
13584
13585 2001-12-06  John Peacock <jpeacock@rowman.com>
13586
13587         * libc/include/sys/unistd.h: Correct ualarm declaration.
13588
13589 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
13590
13591         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
13592         vector before calling the initialisation functions.
13593
13594 2001-11-29  Christopher Faylor  <cgf@redhat.com>
13595
13596         * libc/include/dirent.h: Protect against multiple inclusion.
13597
13598 2001-11-27  Christopher Faylor  <cgf@redhat.com>
13599
13600         * libc/include/sys/types.h: Define useconds_t.
13601         * libc/include/sys/ulimit.h: Declare ualarm.
13602
13603 2001-11-21  Christopher Faylor  <cgf@redhat.com>
13604
13605         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
13606
13607 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
13608
13609         * libc/sys/mmixware/*: Tweak license header in all source files.
13610
13611 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
13612
13613         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
13614         to here.  Rearrange for general inclusion by stdlib.h.
13615         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
13616         isn't defined.
13617         * libc/sys/linux/include/alloca.h: Move to libc/include.
13618
13619 2001-11-12  Anthony Green  <green@redhat.com>
13620
13621         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
13622
13623 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
13624
13625         * libc/sys/mmixware/*: Correct spacing in all source files.
13626         * libc/sys/mmixware/syscall.h: Move misplaced file...
13627         * libc/sys/mmixware/sys/syscall.h: ...here.
13628
13629 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
13630
13631         * libc/include/machine/ieeefp.h: Add support for mmix target.
13632         * libc/include/machine/setjmp.h: Ditto.
13633         * configure.host: Ditto.
13634         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
13635         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
13636         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
13637         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
13638         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
13639         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
13640         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
13641         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
13642         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
13643         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
13644         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
13645         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
13646         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
13647         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
13648         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
13649         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
13650         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
13651         libc/sys/mmixware/aclocal.m4: Generate.
13652
13653 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
13654
13655         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
13656         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
13657         when __CYGWIN__ is defined.
13658         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
13659         logwtmp().
13660
13661 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
13662
13663         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
13664         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
13665         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
13666         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
13667
13668 2001-10-24  Christopher Faylor  <cgf@redhat.com>
13669
13670         * libc/stdio/fseek.c: Reset pointer to buffer base
13671         when forced to seek outside of current buffer contents.
13672         This prevents the code from erroneously thinking there is
13673         anything in the current buffer.
13674
13675 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
13676
13677         * libc/include/math.h: The C++ standard adds the single-precision
13678         versions of the elementary functions.
13679
13680 2001-10-22  Christopher Faylor  <cgf@redhat.com>
13681
13682         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
13683         throughout.
13684         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
13685         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
13686         * system.c (_system_r): Ditto.
13687
13688 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
13689
13690         * libc/include/sys/unistd.h: Add prototype for fchdir() when
13691         __CYGWIN__ or __rtems__ is defined.
13692
13693 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
13694
13695         * libc/include/stdlib.h: add declarations for
13696         _strtoull_r, _strtoll_r, strtoull, and strtoll.
13697         * libc/stdio/local.h: remove declarations of
13698         __strtoull_r and __strtoll_r.
13699         * libc/stdio/vfscanf.c(__svfscanf_r): call
13700         _strtoull_r instead of __strtoull_r. Ditto
13701         _strtoll_r vs. __strtoll_r.
13702         * libc/stdlib/Makefile.am: add new files to
13703         .c list and .def list
13704         * libc/stdlib/Makefile.in: regenerate
13705         * libc/stdlib/strtoll_r.c: rename __strtoll_r
13706         as _strtoll_r
13707         * libc/stdlib/strtoull_r.c: rename __strtoull_r
13708         as _strtoull_r
13709         * libc/stdlib/strtoull.c: new file
13710         * libc/stdlib/strtoll.c: new file
13711
13712 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
13713
13714         * libc/include/process.h: Add getpid() declaration.
13715
13716 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
13717
13718         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
13719         for new style arm/elf ctor/dtor handling.
13720         Minor formatting tidy up.
13721
13722 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
13723
13724         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
13725         and strtoull_r.c.
13726         * libc/stdlib/Makefile.in: Regenerated.
13727         * libc/stdlib/strtoll_r.c: New file.
13728         * libc/stdlib/strtoull_r.c: New file.
13729         * libc/stdio/local.h: Add prototypes for long long string
13730         conversion routines.
13731         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
13732         tied to %L integer conversion specifier.
13733
13734 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
13735
13736         * strftime.c (strftime): Fix "%W" implementation to properly handle
13737         Mondays too.
13738
13739 2001-09-07  Jeff Law  <law@redhat.com>
13740
13741         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
13742         __fini with "mov.l" instead of "mov.w".
13743
13744 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
13745
13746         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
13747         and getopt.h.
13748
13749 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
13750
13751         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
13752
13753 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13754
13755         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
13756         field.
13757         (__DIRENT_VERSION): New define.
13758
13759 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13760
13761         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
13762         Shrink __d_reserved accordingly to keep structure size.
13763         (dirfd): Declare external.
13764
13765 2001-08-29  Joel Sherrill <joel@OARcorp.com>
13766
13767         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
13768
13769 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
13770
13771         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
13772           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
13773           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
13774           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
13775           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
13776           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
13777           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
13778           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
13779         Add conditional compilation to avoid HW FPU instructions
13780         when compiled for soft-float.
13781
13782 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13783
13784         * Makefile.am: Add check for ln failing when creating libg.a
13785         so that cp gets used as a backup.
13786         * Makefile.in: Regenerated.
13787
13788 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13789
13790         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
13791         No longer include time.h.  Add struct __tm to use for
13792         _localtime_buf in the reentrant structure.  Add a
13793         _NULL definition to use in initializing the reentrant struct.
13794         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
13795         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
13796         <sys/_types.h>.
13797         * libc/include/sys/unistd.h: Include <sys/_types.h>.
13798         * libc/time/lcltime.c (localtime): Cast the reentrant struct
13799         _localtime_buf to be struct tm *.
13800
13801 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
13802
13803         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
13804         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
13805         __ctors_end.
13806         * libc/sys/h8300hms/syscalls.c: Include errno.h.
13807         (_unlink): New stub function.
13808
13809 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
13810
13811         * libc/include/sys/errno.h: Add a cautionary comment.
13812
13813 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
13814
13815         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
13816         for SIZE_SZ so that alignment ends up a minimum of 8.
13817
13818 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
13819
13820         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
13821         arguments.
13822
13823         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
13824         Cygwin.
13825
13826 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
13827
13828         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
13829         macro constants for mallopt options.
13830         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
13831
13832 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
13833
13834         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
13835         otherwise default.
13836
13837 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
13838
13839         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
13840
13841 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
13842
13843         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
13844         Define for little endian ARMs.
13845
13846         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
13847         __IEEE_BYTES_LITTLE_ENDIAN is defined.
13848
13849 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
13850
13851         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
13852
13853 2001-06-11  Egor Duda  <deo@logos-m.ru>
13854
13855         * libc/ctype/ctype_.c: When compiled with gcc on platforms
13856         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
13857         initialized memory region. Platform can define COMPACT_CTYPE
13858         to avoid allocation of the additional 128 bytes of data.
13859         Add pointer to _ctype_ array. Always initialize all _ctype_
13860         array elements.
13861
13862 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
13863
13864         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
13865         NULL pointer.
13866
13867 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
13868
13869         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
13870
13871 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
13872
13873         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
13874         matching, non-word alignment, and the length is <= 4 but more than
13875         enough to move them over a word boundary.
13876         Add comments explaining what each instruction does.
13877
13878 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
13879
13880         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
13881         * libc/include/sys/unistd.h: Ditto.
13882
13883 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
13884
13885         * libc/string/strrchr.c: Use strchr for the speed improvements.
13886
13887 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
13888
13889         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
13890         real file systems, let __smakebuf() determine if line buffering
13891         should be used for stdout.
13892
13893 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
13894
13895         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
13896
13897 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
13898
13899         * libc/include/stdlib.h: Add prototype for _strtod_r.
13900
13901 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
13902
13903         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
13904         * libc/stdio/vprintf.c (_vprintf_r): new function
13905         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
13906         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
13907         _DEFUN, and call _vfprintf_r, not vfprintf.
13908         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
13909         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
13910         _DEFUN, and call _vfprintf_r, not vfprintf.
13911
13912 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
13913
13914         * libc/include/sys/unistd.h [X_OK]: Use better protection against
13915         Cygwin X_OK definitions in sys/file.h.
13916
13917 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
13918
13919         * libc/include/sys/time.h: Define timercmp and other macros for
13920         __CYGWIN__, too.
13921
13922 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
13923
13924         * acinclude.m4: Added --enable-malloc-debugging configure flag.
13925         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
13926         --enable-malloc-debugging selected.
13927         * aclocal.m4 configure: Regenerated.
13928           libm/aclocal.m4 libm/configure: Ditto.
13929         * libc/aclocal.m4 libc/configure: Ditto.
13930         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
13931         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
13932         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
13933         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
13934         * doc/aclocal.m4 doc/configure: Ditto.
13935
13936 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
13937
13938         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
13939         into one list.
13940         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
13941         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
13942         function prototypes.
13943         (_fscanf_r, _sscanf_r): Ditto.
13944         * libc/include/stdlib.h: Added _strtod_r prototype.
13945         * libc/stdio/Makefile.am: Add new v*scanf functions.
13946         * libc/stdio/Makefile.in: Regenerate.
13947         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
13948         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
13949         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
13950         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
13951         (sscanf): Changed to call __svfscanf_r with _REENT argument.
13952         (_sscanf_r): New routine.
13953         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
13954         with __svfscanf_r prototype.
13955         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
13956         routines.
13957         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
13958         structure as argument as calls reentrant versions of helper functions
13959         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
13960         to _strtol_r and _strtod_r respectively.
13961         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
13962         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
13963         _REENT argument.
13964         * libc/stdio/vscanf.c: New file.
13965         * libc/stdio/vsscanf.c: Ditto.
13966
13967 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
13968
13969         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
13970         Define daylight to _daylight if it is not defined
13971         Prepare a variable export of timezone based on timezonevariable.
13972         (Cannot be used with the timezone() function.)
13973
13974 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
13975
13976         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
13977          Correct the numerical values.
13978
13979 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
13980
13981         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
13982
13983 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
13984
13985         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
13986         on case insensitve file systems.
13987
13988 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
13989
13990         * libc/include/sys/features.h: Add appropriate defines for Cygwin
13991         pthread support.
13992         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
13993         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
13994         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
13995
13996 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
13997
13998         * libc/include/machine/ieeefp.h: Comment about new configuration
13999         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14000         * libm/common/fdlib.h: Define new macros for testing floats.
14001         * libm/common/sf_*: Use them.
14002         * libm/math/ef_*: Likewise.
14003         * libm/math/sf_*: Likewise.
14004
14005 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14006
14007         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14008         prolog to by-pass possible assembler error.
14009
14010 2001-03-21  Egor Duda  <deo@logos-m.ru>
14011
14012         Allow building internal stubs for non-reentrant syscalls
14013         if target provides its own malloc
14014         * libc/reent/reent.c (errno): Move definition here.
14015         * libc/reent/sbrkr.c: From here.
14016
14017 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14018
14019         * libc/include/sys/types.h (BSD int typedefs): Guard with
14020         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14021         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14022         _SYS_TYPES_FD_SET.
14023         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14024         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14025
14026 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14027
14028         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14029         _PC_POSIX_SECURITY constants for Cygwin.
14030
14031 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14032
14033         * libc/sys/cygwin/crt0.c: Add copyright hint.
14034         * libc/sys/cygwin/sys/dirent.h: Ditto.
14035         * libc/sys/cygwin/sys/param.h: Ditto.
14036         * libc/sys/cygwin/sys/utime.h: Ditto.
14037         * libc/sys/cygwin/sys/utmp.h: Ditto.
14038
14039 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14040
14041         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14042         equivalent to LONGINT.
14043
14044 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14045
14046         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14047         jmpbuf on MIPS64 targets.
14048         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14049
14050 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14051
14052         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14053           declarations.
14054
14055 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14056
14057         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14058         For RTEMS, define to be ssize_t.  Default to int if not defined.
14059         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14060         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14061         * libc/stdio/local.h (__sread, __swrite): Likewise.
14062         * libc/include/sys/reent.h (_read, _write): Likewise.
14063         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14064         * libc/syscalls/sysread.c (read): Likewise.
14065         * libc/syscalls/syswrite.c (write): Likewise.
14066
14067 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14068
14069         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14070
14071 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14072
14073         * libc/include/sys/stat.h: Use special defines for executable stat bits
14074         when compiling for Cygwin.
14075         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14076         for Cygwin.
14077
14078 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14079
14080         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14081         of strtok_r is always defined.
14082
14083 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14084
14085         * libc/include/machine/ansi.h: New dummy header file.
14086
14087 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14088
14089         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14090         changed the copyright information to allow free modification of the
14091         file with no reference to "copying.dj".
14092         * libc/include/sys/stat-dj.h: Ditto.
14093         * libc/machine/i386/setjmp.S: Ditto.
14094         * libc/sys/h8300hms/sys/file.h: Ditto.
14095         * libc/sys/sysmec/access.c: Ditto.
14096         * libc/sys/sysnecv850/access.c: Ditto.
14097         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14098         * libc/stdlib/getenv_r.c: Ditto.
14099         * libc/stdlib/putenv_r.c: Ditto.
14100         * libc/stdlib/setenv_r.c: Ditto.
14101         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14102         modifications will now be in the _r version of this file.
14103         * libc/stdlib/putenv.c: Ditto.
14104         * libc/stdlib/setenv.c: Ditto.
14105         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14106         valid.  Added a reference to DJ's web page that contains his address.
14107         * libc/sys/go32/*.s: Removed references to DJ's old address.
14108         * libc/sys/go32/*.c: Ditto.
14109         * libc/sys/go32/*.h: Ditto.
14110         * libc/sys/go32/*.S: Ditto.
14111         * libc/sys/go32/sys/*.h: Ditto.
14112
14113 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14114
14115         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14116         HAVE_FCNTL flag check.
14117         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14118         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14119
14120 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14121
14122         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14123
14124 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14125
14126         * libc/include/stdlib.h: Add declarations of rand48 functions and
14127         their reentrant versions.
14128         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14129         struct _rand48 for shared parameters of rand48 functions.
14130         (struct _reent): Add a variable _r48 of struct _rand48.
14131         (_REENT_INIT): Add _r48 initialization.
14132         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14133         (CHEWOUT_FILES): Add rand48.def.
14134         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14135         * libc/stdlib/Makefile.in: Regenerated.
14136         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14137         NetBSD C library.
14138         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14139         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14140         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14141         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14142         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14143         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14144         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14145         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14146         * libc/stdlib/rand48.c (__dorand48): Ditto.
14147         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14148         parameters into macros referring them in the reentrant structure.
14149
14150 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14151
14152         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14153         Cygwin definition has correct prototype.
14154
14155 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14156
14157         * libc/include/sys/stat.h: Must revert change for mknod
14158         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14159         prototype.
14160
14161 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14162
14163         * libc/include/stdio.h: Revert putw prototype.
14164
14165 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14166
14167         * libc/include/grp.h: add prototype for initgroups.
14168         * libc/include/stdio.h: fix prototype for putw.
14169         * libc/include/sys/signal.h: add prototype for killpg.
14170         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14171         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14172         vhangup and remove duplicate sysconf prototype.
14173
14174 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14175
14176         * libc/sys/rtems/sys/types.h: Removed.
14177
14178 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14179
14180         * libc/include/locale.h: add LC_MESSAGES definition
14181
14182 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14183
14184         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14185         SYS_get_argN):
14186         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14187         __setup_argv_and_call_main): New.
14188
14189 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14190
14191         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14192         if defined.
14193         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14194         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14195         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14196         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14197
14198 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14199
14200         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14201         compiling under Cygwin.
14202
14203 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14204
14205         * libc/include/math.h (signgam): Change to errno-like solution
14206         using a function to return the address of the real signgam.
14207         * libc/reent/signgam.c: New file containing __signgam().
14208         * libc/reent/Makefile.am: Added signgam.c to list of files.
14209         * libc/reent/Makefile.in: Regenerated.
14210
14211 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14212
14213         * libc/sys/sh/syscalls.c (_times): New.
14214
14215         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14216         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14217
14218 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14219
14220         * libc/include/math.h (signgam): Regress previous fix as
14221         it does not handle programs with extern int signgam in them.
14222
14223 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14224
14225         * libc/include/math.h (signgam): Changed to a macro refering to
14226         its location in the reentrant structure.
14227
14228 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14229
14230         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
14231         that suppressed . for %.0f, 0.1.  Check now looks if there
14232         are padding zeroes (expt) in addition to any digits (ndig) to
14233         print.
14234
14235 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
14236
14237         * libc/sys/arc/Makefile.am: New file.
14238         * libc/sys/arc/Makefile.in: Ditto.
14239         * libc/sys/arc/aclocal.m4: Ditto.
14240         * libc/sys/arc/configure: Ditto.
14241         * libc/sys/arc/configure.in: Ditto.
14242         * libc/sys/arc/crt0.S: Ditto.
14243         * libc/sys/arc/isatty.c: Ditto.
14244         * libc/sys/arc/mem-layout.c: Ditto.
14245         * libc/sys/arc/sbrk.c: Ditto.
14246         * libc/sys/arc/syscalls.c: Ditto.
14247         * libc/sys/arc/sys/syscall.h: Ditto.
14248
14249 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
14250
14251         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
14252
14253 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
14254
14255         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
14256
14257 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
14258
14259         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
14260
14261 2001-01-09  Nick Clifton  <nickc@redhat.com>
14262
14263         * configure.host (v859): Remove unsupported compiler options.
14264
14265 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
14266
14267         * src/newlib/configure.host (*-*-rtems*): add printf long long
14268         support for RTEMS.
14269
14270 2000-12-19  Graham Stott <grahams@redhat.com>
14271
14272         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
14273
14274 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14275
14276         * configure.host: Turn on long double I/O for Cygwin.
14277
14278 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14279
14280         * MAINTAINERS: Removed Ranjith.
14281         * NEWS: Updated for 1.9.0.
14282         * README: Updated.
14283         * acinclude.m4: Updated to release 1.9.0.
14284         * aclocal.m4 configure
14285           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14286           libc/machine/aclocal.m4 libc/machine/configure
14287           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
14288           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
14289           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
14290           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
14291           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
14292           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
14293           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
14294           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
14295           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
14296           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
14297           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
14298           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
14299           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
14300           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
14301           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
14302           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
14303           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
14304           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
14305           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
14306           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
14307           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
14308           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
14309           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
14310           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
14311           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
14312           libc/sys/aclocal.m4 libc/sys/configure
14313           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
14314           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
14315           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
14316           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
14317           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
14318           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
14319           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
14320           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
14321           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
14322           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
14323           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
14324           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
14325           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
14326           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
14327           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
14328           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
14329           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
14330           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
14331           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
14332           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
14333           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
14334           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
14335           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
14336           libm/aclocal.m4 libm/configure: Regenerated.
14337
14338 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14339
14340         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
14341         when __CYGWIN__ is defined.
14342
14343 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14344
14345         * libc/stdlib/ldtoa.c (_ldcheck): New routine
14346         that categorizes a long double as NaN, Infinity, or other.
14347         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
14348         isinfl and isnanl static routines which were i386-specific.  Changed
14349         calls to the two removed routines to a single _ldcheck call.
14350         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
14351
14352 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14353
14354         * Makefile.am: Fixed install-data-local target to use
14355         $(mkinstalldirs) for the installed header files to ensure
14356         the directories exist before copying.
14357         * Makefile.in: Regenerated.
14358
14359 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
14360
14361         * libc/include/sys/unistd.h: Restored Cygwin _SC
14362         constants and moved new constants appropriately
14363         so Cygwin will build.
14364
14365 2000-12-11  Joel Sherrill <joel@OARcorp.com>
14366
14367         * Merge RTEMS specific .h files into main libc/include.
14368         * libc/sys/rtems/include/signal.h: Removed.
14369         * libc/sys/rtems/include/time.h: Removed.
14370         * libc/sys/rtems/sys/features.h: Removed.
14371         * libc/sys/rtems/sys/sched.h: Removed.
14372         * libc/sys/rtems/sys/siginfo.h: Removed.
14373         * libc/sys/rtems/sys/signal.h: Removed.
14374         * libc/sys/rtems/sys/time.h: Removed.
14375         * libc/sys/rtems/sys/times.h: Removed.
14376         definitions for time_t and clock_t since these are
14377         no longer in time.h.
14378         * libc/include/pthread.h: New file.
14379         * libc/include/sys/sched.h: New file.
14380         * libc/include/sys/features.h: New file.
14381         * libc/include/time.h: Removed duplicate definition of clock_t
14382         and time_t, get them from <sys/types.h> instead.  Add prototypes
14383         for POSIX clock and timer functionality.
14384         * libc/sys/linux/sys/types.h: Changed to include
14385         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
14386         * libc/include/sys/signal.h: Add more complete set of POSIX
14387         signal functionality including real-time and threaded signals.
14388         * libc/include/sys/types.h: Add clock_t, time_t, struct
14389         timespec, and struct itimerspec.  Centralizing these makes
14390         things cleaner.  RTEMS uses 64-bit dev_t.
14391         Added numerous primitive definitions
14392         for pthreads including macros, pthread_attr_t,
14393         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
14394         pthread_once_t, and pthread_t.
14395         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
14396         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
14397         Feature flags removed and moved to new file <sys/features.h>.
14398         Full set of POSIX sysconf() constants
14399
14400 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14401
14402         * configure.host: Added x86 linux target.
14403         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
14404         definitions provided if not already defined.
14405         * libc/sys/linux/crt0.c: New file.
14406         * libc/sys/linux/Makefile.am: Ditto.
14407         * libc/sys/linux/Makefile.in: Ditto.
14408         * libc/sys/linux/aclocal.m4: Ditto.
14409         * libc/sys/linux/brk.c: Ditto.
14410         * libc/sys/linux/configure: Ditto.
14411         * libc/sys/linux/configure.in: Ditto.
14412         * libc/sys/linux/getoptlong.c: Ditto.
14413         * libc/sys/linux/ids.c: Ditto.
14414         * libc/sys/linux/inode.c: Ditto.
14415         * libc/sys/linux/io.c: Ditto.
14416         * libc/sys/linux/linux.c: Ditto.
14417         * libc/sys/linux/process.c: Ditto.
14418         * libc/sys/linux/realpath.c: Ditto.
14419         * libc/sys/linux/select.c: Ditto.
14420         * libc/sys/linux/signal.c: Ditto.
14421         * libc/sys/linux/systat.c: Ditto.
14422         * libc/sys/linux/termios.c: Ditto.
14423         * libc/sys/linux/time.c: Ditto.
14424         * libc/sys/linux/wait.c: Ditto.
14425         * libc/sys/linux/include/alloca.h: Ditto.
14426         * libc/sys/linux/include/getopt.h: Ditto.
14427         * libc/sys/linux/include/stdint.h: Ditto.
14428         * libc/sys/linux/include/unistd.h: Ditto.
14429         * libc/sys/linux/sys/cdefs.h: Ditto.
14430         * libc/sys/linux/sys/dirent.h: Ditto.
14431         * libc/sys/linux/sys/errno.h: Ditto.
14432         * libc/sys/linux/sys/fcntl.h: Ditto.
14433         * libc/sys/linux/sys/file.h: Ditto.
14434         * libc/sys/linux/sys/ioctl.h: Ditto.
14435         * libc/sys/linux/sys/resource.h: Ditto.
14436         * libc/sys/linux/sys/signal.h: Ditto.
14437         * libc/sys/linux/sys/stat.h: Ditto.
14438         * libc/sys/linux/sys/syscall.h: Ditto.
14439         * libc/sys/linux/sys/termios.h: Ditto.
14440         * libc/sys/linux/sys/time.h: Ditto.
14441         * libc/sys/linux/sys/types.h: Ditto.
14442         * libc/sys/linux/sys/utmp.h: Ditto.
14443         * libc/sys/linux/sys/utsname.h: Ditto.
14444         * libc/sys/linux/sys/wait.h: Ditto.
14445
14446 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14447
14448         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
14449         can be a relative path to $(top_srcdir)/install.sh so ensure the
14450         autoconf detected settings are properly passed recursively.
14451         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
14452         properly to subdirectories.
14453         * Makefile.in: Regenerated.
14454
14455 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
14456
14457         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
14458         a floating point register unless really printing a floating
14459         point number.
14460
14461 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
14462
14463         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
14464         Also removed \r's.
14465         (asctoeg): Replaced alloca call with stack array and malloc
14466         when storage exceeds reasonable limit.
14467         (e53toe): Fixed einfin calls missing ldp parameter.
14468         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
14469
14470 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14471
14472
14473         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
14474
14475 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14476
14477         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
14478         * libc/stdlib/Makefile.in: Regenerated.
14479         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
14480         * libc/stdio/vfieeefp.h: Added long double bit structures.
14481         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
14482         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
14483         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
14484         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
14485         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
14486         _strtold routines used for conversions between character
14487         and long double.
14488
14489 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14490
14491         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
14492
14493 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14494
14495         * libc/include/machine/time.h: RTEMS systems can configure clock
14496         tick rate so use sysconf() to ask.
14497
14498 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14499
14500         * libc/include/sys/times.h: Add reference to POSIX standard.
14501
14502 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14503
14504         * libc/include/sys/time.h: Added BSD timer manipulation macros
14505         used by RTEMS code.
14506
14507 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14508
14509         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
14510         referenced by code generated by gcc 2.8.1.
14511         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
14512         satisfy gcc.
14513
14514 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14515
14516         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
14517
14518 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14519
14520         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
14521
14522 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14523
14524         * configure.host (or16, or32): New entries for OpenCores
14525         OpenRisc CPUs.
14526         (*-*-rtems*): Add -DNO_EXEC.
14527
14528 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
14529
14530         * libc/include/sys/errno.h: Added comments on many error numbers.
14531         * libc/string/strerror.c: Added some more strings.
14532
14533 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
14534
14535         * libc/sys/sh/syscalls.c (_link): New stub.
14536
14537 2000-11-29  Nick Clifton  <nickc@redhat.com>
14538
14539         * configure.host: Add xscale target.
14540         * libc/machine/xscale: New directory.
14541         * libc/machine/xscale/Makefile.am: New file.
14542         * libc/machine/xscale/Makefile.in: New file.
14543         * libc/machine/xscale/aclocal.m4: New file.
14544         * libc/machine/xscale/configure: New file.
14545         * libc/machine/xscale/configure.in: New file.
14546         * libc/machine/xscale/memchr.S: New file.
14547         * libc/machine/xscale/memcmp.S: New file.
14548         * libc/machine/xscale/memcpy.S: New file.
14549         * libc/machine/xscale/memmove.S: New file.
14550         * libc/machine/xscale/memset.S: New file.
14551         * libc/machine/xscale/strchr.S: New file.
14552         * libc/machine/xscale/strcmp.S: New file.
14553         * libc/machine/xscale/strcpy.S: New file.
14554         * libc/machine/xscale/strlen.S: New file.
14555
14556 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14557
14558         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
14559         avoid compiler warnings.
14560
14561 2000-11-22  Michael Meissner  <meissner@redhat.com>
14562
14563         * libc/posix/execl.c (execl): Don't reference environ directly,
14564         reference it only via a static pointer to avoid problems with some
14565         shared library systems and with different uses of small data where
14566         the user specifies his own version of environ.
14567         * libc/posix/execv.c (execv): Ditto.
14568         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
14569         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
14570         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
14571
14572         * libc/stdlib/getenv.c (environ): Delete unused reference to
14573         environ.
14574
14575         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
14576         colorization.
14577         * libc/stdlib/system.c: Ditto.
14578
14579 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
14580
14581         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
14582         including windows headers.
14583
14584 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
14585
14586         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
14587         * libc/include/dirent.h: Added definition of MAXNAMLEN if
14588         not defined by sys/dirent.h.
14589         * libc/posix/execvp.c: Added include of dirent.h to get
14590         MAXNAMLEN value which used to be in unistd.h.
14591
14592 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14593
14594         * libc/include/sys/types.h: Change type of i to `size_t' in
14595         FD_ZERO macro to avoid compiler warnings.
14596
14597 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
14598
14599         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
14600         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
14601
14602 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14603
14604         * libc/include/sys/unistd.h: Add defines for sysconf values
14605         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
14606         _SC_AVPHYS_PAGES.
14607
14608 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
14609
14610         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
14611         declarations for __CYGWIN__.
14612
14613 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
14614
14615         * libc/signal/signal.c (__sigtramp_r): ISO C requires
14616         case labels to be integral constant expressions, so
14617         use an if/else tree instead.
14618         (_raise_r): Likewise.
14619
14620 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14621
14622         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
14623         clipping patch from e-mail reader.
14624
14625 2000-09-13  Will Cohen  <wcohen@redhat.com>
14626
14627         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
14628         Added return value 0.
14629         (_longjmp): Allow longjmp to return value of second argument
14630         passed to it.
14631
14632 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
14633
14634         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
14635         inline code to prevent having to include another header file.
14636
14637 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
14638
14639         * Makefile.am: Fix space vs. tab problem in install-data-local.
14640         * Makefile.in: Regenerate.
14641
14642 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
14643
14644         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
14645         (_EXPARM): New macro for defining a function parameter.
14646         * libc/include/stdlib.h: Use _EXPARM.
14647         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
14648
14649 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
14650
14651         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
14652         required, as documented in the gnu coding standards.
14653         * Makefile.in: Regenerate.
14654
14655 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
14656
14657         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
14658         make O_NDELAY and O_NONBLOCK have the same value.
14659
14660 2000-08-30  Kazu Hirata  <kazu@hxi.com>
14661
14662         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
14663
14664 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14665
14666         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
14667         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
14668         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
14669         everywhere else.
14670
14671 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
14672
14673         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
14674         * libc/include/string.h: Don't include <sys/types.h>,
14675         as it causes really bad namespace pollution.  Don't declare
14676         swab(), it is properly declared in unistd.h.
14677
14678 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14679
14680         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
14681         (broken) support for non-existent /etc/passwd field "comment".
14682
14683 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14684
14685         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
14686         only if _DIRENT_HAVE_D_NAMLEN is defined.
14687         (alphasort): aligned prototype with
14688         libc/sys/cygwin/sys/dirent.h and simplified function body.
14689         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
14690         long telldir (DIR *) as mentioned in annex B of POSIX.1
14691
14692 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14693
14694         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
14695         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
14696         Added __CLI and __STI macros (controlled via
14697         _I386MACH_ALLOW_HW_INTERRUPTS macro).
14698         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
14699         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
14700         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
14701         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
14702         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
14703         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
14704         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
14705         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
14706         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
14707         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
14708         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
14709         for all global entry points.
14710         * libc/machine/i386/setjmp.S: removed code replicated in
14711         libc/machine/i386/i386mach.h and included i386mach.h instead;
14712         Use __CLI and __STI instead of cli and sti.
14713
14714 2000-08-25  DJ Delorie  <dj@redhat.com>
14715
14716         * libc/include/sys/unistd.h (environ): this one isn't from the
14717         DLL, no __IMPORT
14718
14719 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
14720
14721         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
14722         environ when compiling under cygwin since it is already declared in
14723         unistd.h.
14724
14725 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14726
14727         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
14728         like  x << y-z  to the equivalent  x << (y-z).
14729         (d2b): changed if statements with assignment to perform the
14730         assignment prior to the if check.
14731         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
14732         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
14733         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
14734         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
14735         precedence.
14736         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
14737         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
14738         execve.c).
14739         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
14740         precedence.
14741         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
14742         clarify && and || precendence (and to remove pascalism).
14743         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
14744         * libm/math/s_infconst.c: added another pair of braces to all
14745         initializers for __infinity (need three: for __infinity[1] array,
14746         for union __dmath, and for i[2]).
14747
14748 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14749
14750         * libc/stdlib/abort.c: changed description: uses "raise" instead of
14751         "getpid" and "kill"; added: uses "write" and "_exit".
14752         Also included unistd.h for "_exit" prototype.
14753         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
14754         reent.h for "_fork_r" and "_wait_r" prototypes.
14755         (do_system): changed  extern char *environ[] to POSIX-friendly
14756         extern char **environ.
14757         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
14758         prototypes.
14759         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
14760         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
14761         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
14762         * libc/reent/openr.c: included fcntl.h for "open" prototype.
14763         * libc/reent/signalr.c: included signal.h for "kill" prototype,
14764         unistd.h for "getpid" prototype.
14765         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
14766         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
14767         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
14768         prototype.  Also included stdlib.h for "abort", string.h for
14769         "strdup" and "strncmp" prototypes.
14770         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
14771         "strncpy", unistd.h for "read" and "close" prototypes.
14772         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
14773         "strcat" prototypes.
14774
14775 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
14776
14777         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
14778         used later (ifdef __SCLE)
14779         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
14780         used later (ifdef MB_CAPABLE)
14781         * libc/string/memset.c (memset): removed unused variables "count"
14782         and "unaligned_addr"
14783         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
14784         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
14785         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
14786         and "gid"
14787
14788 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14789
14790         * libc/stdlib/envlock.c: changed documented "__env_lock" and
14791         "__env_unlock" prototype from "void *" or "char *" to
14792         "struct _reent *" to match real function.  Also added include
14793         of envlock.h.
14794         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
14795         "__malloc_unlock" prototype from "void *" or "char *" to
14796         "struct _reent *" to match real function.
14797         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
14798         prototypes (for getenv_r.c and setenv_r.c).
14799
14800 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14801
14802         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
14803         and prototype in cygwin's utmp.h
14804
14805 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
14806
14807         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
14808
14809 2000-08-09  Nick Clifton  <nickc@cygnus.com>
14810
14811         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
14812         epilogue and to allow the functions to be used in a Thumb based
14813         toolchain.
14814
14815 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
14816
14817         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
14818         so size of 0 results in nothing being written to string.
14819         Also fixed code so that when size is non-zero, there is only
14820         a maximum of size - 1 characters written to the array and
14821         a nul terminator is appended at the end.
14822         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
14823
14824 2000-08-01  DJ Delorie  <dj@redhat.com>
14825
14826         * libc/include/sys/config.h: define __IMPORT appropriately
14827         * libc/include/ctype.h (_ctype_): use __IMPORT
14828         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
14829         * libc/include/math.h (__mb_cur_max): ditto
14830         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
14831         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
14832         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
14833         * libc/include/unistd.h (environ): ditto
14834
14835 2000-07-28  Michael Meissner  <meissner@redhat.com>
14836
14837         * libc/include/math.h (__infinity): Declare as an array without
14838         bounds to get around small data support.  Rewrite Cygwin support
14839         to be more general.
14840         * libm/math/s_infconst.c (__infinity): Ditto.
14841         * libm/mathfp/s_infconst.c (__infinity): Ditto.
14842
14843 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
14844
14845         * libc/include/math.h: Use appropriate dll import linkage for
14846         __infinity under Cygwin.
14847
14848 2000-07-13  DJ Delorie  <dj@cygnus.com>
14849
14850         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
14851
14852 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
14853
14854         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
14855         to argument list for AngelSWI_Reason_GetCmdLine.
14856
14857 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
14858
14859         * configure.host: Add support for AVR target.
14860         * libc/include/machine/ieeefp.h: Likewise.
14861         * libc/include/sys/config.h: Likewise.
14862
14863 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
14864
14865         * README: Newlib 1.8.2 must be built in a separate directory
14866         than the sources.
14867
14868 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14869
14870         * libc/include/sys/reent.h (_rand_next): Added __extension__
14871         qualifier as long long type is not strict ANSI.
14872         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
14873         to long long constant.
14874
14875 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
14876
14877         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
14878         `setegid' provided by Cygwin.
14879
14880 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
14881
14882         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
14883         account for Cygwin.
14884
14885 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14886
14887         * libc/include/sys/reent.h (_rand_next): Changed to
14888         unsigned long long and moved to end of _reent struct in _new union.
14889         (_REENT_INIT): Changed to move _rand_next initialization.
14890         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
14891         linear congruential algorithm that is used by DJGPP.
14892
14893 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
14894
14895         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
14896         * libc/include/sys/config.h: Define __RAND_MAX.
14897
14898 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14899
14900         * libc/stdlib/rand_r.c: New algorithm that meets minimal
14901         standard.
14902
14903 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
14904
14905         * libc/include/string.h: Work around problem with strsignal and gdb.
14906
14907 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
14908
14909         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
14910         * libc/include/malloc.h: Ditto.
14911         * libc/include/process.h: Ditto.
14912         * libc/include/stdio.h: Ditto.
14913         * libc/include/stdlib.h: Ditto.
14914         * libc/include/time.h: Ditto.
14915         * libc/include/machine/setjmp.h: Ditto.
14916         * libc/include/sys/errno.h: Ditto.
14917         * libc/include/sys/signal.h: Ditto.
14918         * libc/include/sys/stat.h: Ditto.
14919         * libc/include/sys/time.h: Ditto.
14920         * libc/include/sys/unistd.h: Ditto.
14921         * libc/include/string.h: Ditto.  strsignal should return a const char *.
14922
14923 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
14924
14925         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
14926         * libm/common/s_log1p.c (log1p): Likewise.
14927         * libm/common/s_scalbn.c (scalbn): Likewise.
14928         * libm/math/e_log.c: Likewise.
14929         * libm/math/e_asin.c: Likewise.
14930         * libm/math/ef_asin.c: Likewise.
14931         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
14932         * libm/math/e_j1.c (pone, qone): Likewise.
14933         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
14934         * libm/math/ef_j1.c (ponef, qonef): Likewise.
14935         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
14936         * libm/mathfp/e_j1.c (pone, qone): Likewise.
14937         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
14938         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
14939
14940 2000-05-19  DJ Delorie  <dj@cygnus.com>
14941
14942         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
14943         (__sread): always read in binary mode
14944         (__swrite): always write in binary mode
14945         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
14946         compatibility issues with different dll versions
14947         * libc/stdio/fopen.c: use __stextmode
14948         * libc/stdio/fdopen.c: ditto
14949         * libc/stdio/freopen.c: ditto
14950         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
14951         * libc/stdio/local.h: declare __stextmode
14952
14953 2000-05-18  DJ Delorie  <dj@cygnus.com>
14954
14955         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
14956
14957 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14958
14959         * libc/include/ctype.h: Changed tolower and toupper macros
14960         to use __extension__ to prevent pedantic warnings.
14961
14962 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
14963
14964         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
14965         structures.
14966
14967 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
14968
14969         * libc/include/machine/ieeefp.h: Add ia64 support.
14970         * configure.host: Likewise.
14971
14972 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
14973
14974         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
14975         month is now padded with space, not zero.  This now conforms to
14976         ANSI standard.
14977
14978 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
14979
14980         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
14981         host or network path") used by cygwin. Add some comments.
14982
14983 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
14984
14985         * libc/include/stdio.h (FILE): define __SCLE for "convert line
14986         endings" for Cygwin.
14987         (__sgetc): convert line endings if needed
14988         (__sputc): ditto
14989         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
14990         * libc/stdio/fopen.c (_fopen_r): ditto
14991         * libc/stdio/freopen.c (freopen): ditto
14992         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
14993         * libc/stdio/fvwrite.c (__sfvwrite): ditto
14994
14995 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
14996
14997         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
14998         post-increment when it is worth it, spacewise.
14999
15000 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15001
15002         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15003         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15004         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15005         return type.
15006         * libc/stdio/putchar.c (putchar): Added return statement.
15007         * libc/stdio/refill.c (lflush): Added correct parentheses.
15008         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15009         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15010         prints long value to use l qualifier.
15011         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15012         messages and initialized local values: ilim, ilim1, and spec_case.
15013         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15014         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15015         * libc/stdlib/mprec.c: Ditto.
15016         * libc/stdlib/setenv_r.c: Ditto.
15017         * libc/stdlib/strtod.c: Ditto.
15018         * libc/stdlib/strtol.c: Ditto.
15019         * libc/stdlib/strtoul.c: Ditto.
15020         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15021         * libm/common/sf_log1p.c: Ditto.
15022         * libm/common/sf_scalbn.c: Ditto.
15023         * libm/math/ef_log.c: Ditto.
15024
15025 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15026
15027         * libc/posix/execvp.c (execvp): Check path for
15028         trailing slash.
15029
15030 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15031
15032         * libc/include/sys/unistd.h: Add prototypes for
15033         fchmod, fchown, lchown.
15034
15035 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15036
15037         * acinclude.m4: Changed release to 1.8.2.
15038         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15039           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15040           libc/machine/configure libc/machine/a29k/aclocal.m4
15041           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15042           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15043           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15044           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15045           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15046           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15047           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15048           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15049           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15050           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15051           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15052           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15053           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15054           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15055           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15056           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15057           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15058           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15059           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15060           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15061           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15062           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15063           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15064           libc/machine/z8k/configure libc/sys/aclocal.m4
15065           libc/sys/aclocal.m4 libc/sys/configure
15066           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15067           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15068           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15069           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15070           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15071           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15072           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15073           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15074           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15075           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15076           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15077           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15078           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15079           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15080           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15081           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15082           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15083           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15084           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15085           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15086           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15087           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15088           libm/aclocal.m4 libm/configure: Regenerated.
15089
15090 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15091
15092         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15093         (do_AngelSWI): Add "cc" to list o registers clobbered.
15094
15095 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15096
15097         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15098         information to be clobbered by an Angel C library support syscall.
15099
15100 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15101
15102         * libc/stdlib/envlock.c: Fixed comment typo.
15103
15104 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15105
15106         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15107         code to update nread as each character is processed instead
15108         of using buffer contents which throw away leading zeroes.
15109
15110 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15111
15112         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15113
15114 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15115
15116         * libc/include/string.h: Include <sys/types.h>.
15117
15118 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15119
15120         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15121         with XSH5, not SVID.
15122
15123 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15124
15125         * libc/include/string.h: Changed last argument back to ssize_t
15126         to make it compatible with XPG4 definition which is
15127         defined in <unistd.h>.  There is a conflict in the SVID 3
15128         and XPG4 definitions and newlib will settle with XPG4.
15129         * libc/string/swab.c: Ditto.
15130
15131 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15132
15133         * libc/include/string.h: Changed last argument to size_t.
15134         * libc/string/swab.c: Changed last argument to size_t.
15135
15136 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15137
15138         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15139         (CHEWOUT_FILES): Added unlinkr.def.
15140         * libc/reent/Makefile.in: Rebuilt.
15141         * libc/sys.tex: Include unlinkr.def.
15142         * libc/reent/linkr.c (_unlink_r): Moved to...
15143         * libc/reent/unlinkr.c: ... new file.
15144
15145 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15146
15147         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15148         (CHEWOUT_FILES): Added swab.def.
15149         * libc/string/Makefile.in: Rebuilt.
15150         * libc/string/string.tex: Include swab.def.
15151         * libc/include/string.h (swab): Declare.
15152         * libc/string/swab.c: New file.
15153
15154 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15155
15156         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15157         (CHEWOUT_FILES): Added getw.def and putw.def.
15158         * libc/stdio/Makefile.in: Rebuilt.
15159         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15160         * libc/stdio/getw.c: New file.
15161         * libc/stdio/putw.c: New file.
15162
15163 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15164
15165         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15166         is non-null before looking at mode[2].
15167
15168 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15169
15170         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15171         * libm/mathfp/sf_atan.c: Ditto.
15172
15173 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15174
15175         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15176
15177 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15178
15179         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15180         _DOUBLE_IS_32BITS.
15181
15182 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15183
15184         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15185         call prior to calling _VFPRINTF_R so reentrant data area is set.
15186         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15187
15188 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15189
15190         * libc/stdio/vfscanf.c (limits.h): #include.
15191         (MAX_LONG_LEN): #define.
15192         (__svfscanf): Handle floating point numbers with arbitrary amounts
15193         of leading zeroes.
15194
15195 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15196
15197         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15198         zero.  Set the blocksize to 1024/
15199
15200 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15201
15202         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15203         with line buffering.
15204
15205 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15206
15207         * acinclude.m4: Changed include directory for winsup headers.
15208         * aclocal.m4 configure libc/aclocal.m4
15209           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15210           libc/locale/Makefile.in libc/machine/aclocal.m4
15211           libc/machine/configure libc/machine/a29k/aclocal.m4
15212           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15213           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15214           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15215           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15216           libc/machine/fr30/configure
15217           libc/machine/h8300/aclocal.m4
15218           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15219           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15220           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15221           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15222           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15223           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15224           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15225           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15226           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15227           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15228           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15229           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15230           libc/machine/powerpc/configure
15231           libc/machine/sh/aclocal.m4
15232           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15233           libc/machine/sparc/configure
15234           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15235           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15236           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15237           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15238           libc/misc/Makefile.in libc/posix/Makefile.in
15239           libc/reent/Makefile.in
15240           libc/signal/Makefile.in
15241           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
15242           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15243           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
15244           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
15245           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
15246           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15247           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15248           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15249           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15250           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15251           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15252           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15253           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15254           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
15255           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
15256           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
15257           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
15258           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
15259           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
15260           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
15261           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
15262           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
15263           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
15264           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
15265           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
15266           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
15267           libm/configure: Regenerated.
15268
15269 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
15270
15271         * libc/stdlib/putenv_r.c (_putenv_r): New file.
15272         * libc/stdlib/strdup_r.c (_strdup_r): New file.
15273         * libc/include/string.h: Added _strdup_r.
15274         * libc/stdlib/putenv.c: Added call to reentrant version.
15275         * libc/stdlib/strdup.c: Ditto.
15276         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
15277         * libc/include/stdlib.h: Ditto.
15278         * libc/stdlib/Makefile.in: Regenerated.
15279         * libc/string/Makefile.in: Regenerated.
15280         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
15281         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
15282         management calls to reentrant versions.
15283         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
15284         * libc/stdlib/wctomb.c: Ditto.
15285         * libc/stdlib/mblen.c: Ditto.
15286         * libc/stdlib/mbstowcs.c: Ditto.
15287         * libc/stdlib/mbtowc.c: Ditto.
15288         * libc/stdlib/getenv.c: Ditto.
15289         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
15290         and _strdup_r.
15291
15292 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
15293
15294         patch from Corinna Vinschen <corinna@vinschen.de>
15295         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
15296
15297 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
15298
15299         * libm/mathfp/s_atangent.c: Fix exponent calculation.
15300         * libm/mathfp/s_ldexp.c: Ditto.
15301         * libm/mathfp/sf_atangent.c: Ditto.
15302         * libm/mathfp/sf_ldexp.c: Ditto.
15303
15304 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15305
15306         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
15307         * libc/include/locale.h: define NULL to be 0.
15308
15309 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
15310
15311         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
15312         function.
15313
15314 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
15315
15316         * libc/machine/mn10300/setjmp.S: Handle am33.
15317
15318 1999-11-26  Nick Clifton  <nickc@cygnus.com>
15319
15320         * libc/sys/arm/syscalls.c: Add function prototypes.
15321         (stack_ptr): Move declaration before function definitions.
15322
15323 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15324
15325         * NEWS: Updated version information.
15326         * README: Ditto.
15327
15328 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
15329
15330         * libc/machine/i386/strchr.S: Fixed alignment test.
15331
15332 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
15333
15334         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
15335
15336 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
15337
15338         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
15339         ensuring that there is space between the two.
15340
15341 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
15342
15343         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
15344         only.
15345
15346 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
15347
15348         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
15349         section
15350
15351 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15352
15353         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
15354         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
15355
15356 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
15357         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
15358           per POSIX 1003.1b.
15359         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
15360           per POSIX 1003.1b.
15361
15362 1999-09-13  DJ Delorie  <dj@cygnus.com>
15363
15364         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
15365         also.
15366
15367 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15368
15369         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
15370         also note BUFSIZ as its size.
15371
15372 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
15373
15374         * configure.host: Corrected feature defines for RTEMS.
15375         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
15376         * libc/include/sys/stat.h: mkfifo() should take const path arg.
15377         * libc/include/sys/unistd.h: pathconf() should take const path arg.
15378           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
15379           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
15380           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
15381           _PC_PRIO_IO, and _PC_SYNC_IO.
15382         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
15383         * libc/machine/m68k/Makefile.in: Regenerated.
15384         * libc/machine/m68k/strcpy.c: New file.
15385         * libc/machine/m68k/strlen.c: New file.
15386         * libc/stdio/tmpnam.c: Always make the returned name usable.
15387         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
15388         * libc/sys/rtems/sys/dirent.h: New file.
15389         * libc/sys/rtems/sys/types.h: Added dev_t.
15390
15391 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
15392
15393         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
15394
15395 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
15396
15397         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
15398         my patch.
15399
15400 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
15401
15402         patch from Jeff Johnston <jjohnstn@cygnus.com>
15403         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
15404         buffer is not in a useful state.
15405
15406 1999-09-01  Nick Clifton  <nickc@cygnus.com>
15407
15408         * libc/sys/arm/syscalls.c (_link): Add stub.
15409
15410 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
15411
15412         * ftell.c (ftell): Use actual position within buffer for text mode.
15413         * findfp.c (std): Initialize ptr->_bf._size.
15414
15415 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
15416
15417         * libc/include/sys/unistd.h: Add nice() declaration.
15418
15419 1999-08-09  Nick Clifton  <nickc@cygnus.com>
15420
15421         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
15422         declare as a thumb function so that the disassembler will see the
15423         mode change.
15424
15425 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15426
15427         * libc/reent/reent.tex: Updated list of reentrant functions.
15428
15429 1999-07-09  Michael Meissner  <meissner@cygnus.com>
15430
15431         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
15432
15433 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
15434
15435         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
15436         separate file.
15437         * libc/stdio/snprintf.c: New file.
15438         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
15439         separate file.
15440         * libc/stdio/vsnprintf.c: New file.
15441         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
15442         * libc/stdio/Makefile.in: Regenerated.
15443
15444 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
15445
15446         Patch submitted by Egor Duda <deo@logos-m.ru>:
15447         * libc/include/stdio.h: Add declarations for *nprintf.
15448         * libc/stdio/sprintf.c (snprintf): New function.
15449         (_snprintf_r): New function.
15450         * libc/stdio/vsprintf.c (vsnprintf): New function.
15451         (_vnsprintf_r): New function.
15452
15453 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15454
15455         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
15456         * libm/Makefile.am (stmp-targetdep): Ditto.
15457         * libc/Makefile.in: Regenerated.
15458         * libm/Makefile.in: Ditto.
15459
15460 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15461
15462         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
15463         * libm/Makefile.am (stmp-targetdep): Ditto.
15464         * libc/Makefile.in: Regenerated.
15465         * libm/Makefile.in: Ditto.
15466
15467 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15468
15469         * Makefile.am: Removed dependencies on all-recursive and added "."
15470         to the SUBDIRS list to prevent infinite recursion from occurring.
15471         Also removed any references to EXTRA_DATA.
15472         * libc/Makefile.am: Ditto.
15473         * libc/machine/Makefile.am: Ditto.
15474         * libc/machine/i386/Makefile.am: Ditto.
15475         * libm/Makefile.am: Ditto.
15476         * libc/sys/Makefile.am: Ditto.
15477         * Makefile.in: Regenerated.
15478         * aclocal.m4: Ditto.
15479         * configure: Ditto.
15480         * doc/Makefile.in: Ditto.
15481         * doc/aclocal.m4: Ditto.
15482         * doc/configure: Ditto.
15483         * libc/Makefile.in: Ditto.
15484         * libc/aclocal.m4: Ditto.
15485         * libc/configure: Ditto.
15486         * libc/machine/Makefile.in: Ditto.
15487         * libc/machine/aclocal.m4: Ditto.
15488         * libc/machine/configure: Ditto.
15489         * libc/machine/mn10300/Makefile.in: Ditto.
15490         * libc/machine/mn10300/aclocal.m4: Ditto.
15491         * libc/machine/mn10300/configure: Ditto.
15492         * libc/sys/Makefile.in: Ditto.
15493         * libc/sys/aclocal.m4: Ditto.
15494         * libc/sys/configure: Ditto.
15495         * libm/Makefile.in: Ditto.
15496         * libm/aclocal.m4: Ditto.
15497         * libm/configure: Ditto.
15498
15499 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15500
15501         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
15502
15503 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15504
15505         * libc/include/stdlib.h: Add reentrant routines.
15506         * libc/stdlib/Makefile.am: Add reentrant routines.
15507         * libc/stdlib/Makefile.in: Ditto.
15508         * libc/stdlib/envlock.c: New file.
15509         * libc/stdlib/envlock.h: New file.
15510         * libc/stdlib/getenv.c: Modify to call reentrant routine.
15511         * libc/stdlib/getenv_r.c: New file.
15512         * libc/stdlib/mblen.c: Modify to call reentrant routine.
15513         * libc/stdlib/mblen_r.c: New file.
15514         * libc/stdlib/setenv.c: Modify to call reentrant routine.
15515         * libc/stdlib/setenv_r.c: New file.
15516         * libc/stdlib/stdlib.tex: Add reentrant routines.
15517
15518 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
15519
15520         * libc/include/sys/types.h: Define __MS_types__ whenever
15521         cygwin or win32.
15522
15523 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
15524
15525         * libc/include/machine/ieeefp.h: Always default to little
15526         endian if Windows, regardless of architecture.
15527         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
15528         regardless of architecture.
15529
15530 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
15531
15532         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
15533         _WIN32 isn't defined.
15534
15535 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15536
15537         * libm/common/s_rint.c (rint): Add volatile qualifier for
15538         intermediate value w.
15539         * libm/common/sf_rint.c (rintf): Ditto.
15540
15541 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15542
15543         * libc/sys/arm/syscalls.c (remap_handle): Added check to
15544         ensure that std streams are initialized before being referenced.
15545
15546 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
15547
15548         * README: Update reference to newlib@cygnus.com new
15549         newlib@sourceware.cygnus.com address.
15550
15551 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
15552
15553         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
15554         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
15555         defined, even if _WIN32 isn't defined.
15556
15557 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
15558
15559         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
15560
15561 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
15562
15563         * libc/include/sys/reent.h: Change Long and ULong to __Long and
15564         __ULong.
15565         * libc/stdlib/dtoa.c: Ditto.
15566         * libc/stdlib/mprec.c: Ditto.
15567         * libc/stdlib/mprec.h: Ditto.
15568         * libc/stdlib/strtod.c: Ditto.
15569
15570 1999-04-21  Nick Clifton  <nickc@cygnus.com>
15571
15572         * configure.host (mcore): Remove mcore machine directory.
15573
15574 1999-04-18  Nick Clifton  <nickc@cygnus.com>
15575
15576         * libc/include/machine/ieeefp.h: Add support for mcore target.
15577         * libc/include/machine/setjmp.h: Add support for mcore target.
15578         * configure.host: Add support for mcore target.
15579
15580 1999-04-13  Mark Salter  <msalter@cygnus.com>
15581
15582         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
15583         * libc/sys/arm/syscalls.c: Added isatty.
15584
15585 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15586
15587         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
15588         insert zeroes after significant digits.
15589
15590 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15591
15592         * libc/stdio/vfprintf.c (cvt): Changed floating point
15593         cvt routine to use union used by dtoa to properly determine
15594         if the sign bit is on or not.
15595         * libc/stdio/vfieeefp.h: New file
15596
15597 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15598
15599         * aclocal.m4: Regenerated.
15600         * configure: Regenerated.
15601
15602 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15603
15604         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
15605         f_tanf reference.
15606         * libc/machine/i386/Makefile.in: Regenerated.
15607
15608 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15609
15610         * acinclude.m4: Changed to work with new automake.
15611         * configure: Regenerated.
15612         * libc/machine/i386/aclocal.m4: Regenerated.
15613         * libc/machine/i386/configure: Regenerated.
15614
15615 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
15616
15617         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
15618         for telldir() and seekdir().  Rename unused structure element
15619         for use with these two routines.
15620
15621 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15622
15623         * libc/time/mktime.c (validate_structure): Multiple fixes to
15624         code to handle cases where input fields are outside valid ranges.
15625         * libc/stdlib/div.c (div): Modified invalid rounding check.
15626         * libc/stdlib/ldiv.c (ldiv): Ditto.
15627
15628 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15629
15630         * libc/machine/i386/memcpy.S: Performance rewrite.
15631         * libc/machine/i386/memmove.S: Ditto.
15632         * libc/machine/i386/i386mach.h: Added more register definitions.
15633         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
15634         option used.
15635         * libc/include/machine/fastmath.h: Add definitions for x86
15636         fast-math routines.
15637
15638 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15639
15640         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
15641
15642 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
15643
15644         Adjust newlib headers for new Cygwin Win32 API header files:
15645         * libc/include/sys/time.h: Check _WINSOCK_H rather than
15646         _GNU_H_WINDOWS32_SOCKETS.
15647         * libc/include/sys/types.h: Ditto.
15648
15649 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15650
15651         *include/sys/reent.h: Add checks for size of Bigint element Long.
15652         *libc/dtoa.c: Change routines to use generic Long type.
15653         *libc/mprec.c: Change routines to use generic Long type.
15654         *libc/mprec.h: Change routines to use generic Long type.
15655
15656 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15657
15658         * libc/Makefile.am: Add .def files.
15659         * libc/Makefile.in: Regenerate.
15660         * libc/e_acosh.c: Documentation update.
15661         * libc/e_atanh.c: Documentation update.
15662         * libc/e_hypot.c: Documentation update.
15663         * libc/e_remainder.c: Documentation update.
15664         * libc/er_lgamma.c: Documentation update.
15665         * libc/mathfp.tex: Documentation update.
15666         * libc/s_acos.c: Documentation update.
15667         * libc/s_atan.c: Documentation update.
15668         * libc/s_atan2.c: Documentation update.
15669         * libc/s_cosh.c: Documentation update.
15670         * libc/s_fmod.c: Documentation update.
15671         * libc/s_isnan.c: Documentation update.
15672         * libc/s_log10.c: Documentation update.
15673         * libc/s_pow.c: Documentation update.
15674         * libc/w_jn.c: Documentation update.
15675
15676 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
15677
15678         * aclocal.m4: Regenerate.
15679         * configure: Regenerate.
15680
15681 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15682
15683         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
15684         to return 1 if user specified return code is 0.
15685         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
15686
15687 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15688
15689         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
15690         to save the return address.  Fixed longjmp to return to the original
15691         calling address of setjmp and to return the user specified return code
15692         rather than default to 1.
15693         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
15694
15695 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15696
15697         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
15698
15699 1999-02-10  Nick Clifton  <nickc@cygnus.com>
15700
15701         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
15702         volatile so that its assignments will not be discarded.
15703
15704 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15705
15706         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
15707         be __STRICT_ANSI__ which is generated by compiler.
15708         * libc/include/ctype.h: Ditto.
15709         * libc/include/math.h: Ditto.
15710         * libc/include/stdio.h: Ditto.
15711         * libc/include/stdlib.h: Ditto.
15712         * libc/include/string.h: Ditto.
15713         * libc/include/sys/signal.h: Ditto.
15714
15715 1999-02-08  Nick Clifton  <nickc@cygnus.com>
15716
15717         * configure.host: Add support for StrongARM target.
15718
15719 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15720
15721         * libc/string/strncpy.c (strncpy): Removed redundant code
15722         that was copying bytes if data unaligned.
15723
15724 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
15725
15726         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
15727         mbstowcs.def, and wcstombs.def.
15728
15729 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
15730
15731         * libc/include/sys/errno.h: Add Cygwin errno.
15732         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
15733         is specified.
15734
15735 1999-01-29  Nick Clifton  <nickc@cygnus.com>
15736
15737         * libc/sys/arm/syscalls.c: Move C library functions into seperate
15738         file.
15739
15740         * libc/sys/arm/libcfunc.c: New file containing C library functions
15741         from syscalls.c
15742
15743         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
15744         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
15745
15746
15747 1999-01-27  Michael Meissner  <meissner@cygnus.com>
15748
15749         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
15750         type, and cut size in half so that the jmp_buf array is guaranteed
15751         to be aligned on a 64-bit boundary.
15752
15753 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15754
15755         * libc/string/strings.tex: Added information about
15756         strcasecmp and strncasecmp.
15757         * libc/stdlib/stdlib.tex: Added missing information
15758         about mblen, mbstowcs, and wcstombs.
15759         * libc/string/strchr.c: Changed how mask is built to use
15760         shift operators so register will be used instead of storage.
15761
15762 1999-01-22  DJ Delorie  <dj@cygnus.com>
15763
15764         * libc/include/stdlib.h: don't use dllimport if we're building
15765         newlib, since it's inside cygwin.dll
15766
15767 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
15768
15769         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
15770         _ctype_ under cygwin.
15771
15772 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
15773
15774         * include/stdlib.h: Fix typo from previous checkin.
15775
15776 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
15777
15778         * include/ctype.h: Use __declspec(dllimport) method for exporting
15779         variable from cygwin DLL.
15780         * include/time.h: Ditto.
15781         * sys/errno.h: Ditto.
15782         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
15783         * libc/locale/locale.c: Use __declspec(dllexport) method for
15784         exporting variable from cygwin DLL.
15785
15786 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
15787
15788         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
15789         access of bogus pointer will result in SIGSEGV.
15790
15791 1999-01-07  Nick Clifton  <nickc@cygnus.com>
15792
15793         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
15794         of an underscore prefix to function names.
15795
15796 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15797
15798         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
15799         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
15800
15801 1998-12-31  Michael Meissner  <meissner@cygnus.com>
15802
15803         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
15804         to `%' if not already defined.
15805
15806 1998-12-30  Michael Meissner  <meissner@cygnus.com>
15807
15808         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
15809         arguments const char *, not char *.
15810         * libc/include/stdio.h (_tempnam_r): Ditto.
15811
15812         * libc/include/sys/reent.h (struct _reent): The _sig_func type
15813         points to a function taking an integer, not void.
15814
15815 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
15816
15817         * configure.host: Add a define for Cygwin builds.
15818         * libc/include/ctype.h: Don't use dll imported variables in newlib.
15819
15820 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
15821
15822         * libc/include/ctype.h: Define _ctype_ as dll imported variable
15823         for use with Cygwin.
15824         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
15825         dll imported variables for use with Cygwin.
15826         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
15827         as a dll imported variable for Cygwin.
15828
15829 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
15830
15831         * libc/include/sys/unistd.h: Add proto for getpass.
15832
15833 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
15834
15835         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
15836         alphasort.
15837
15838 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
15839
15840         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
15841         not posix_path_list_p.
15842
15843 1998-12-15  Nick Clifton  <nickc@cygnus.com>
15844
15845         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
15846         a signed int.
15847
15848 1998-12-13  Nick Clifton  <nickc@cygnus.com>
15849
15850         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
15851
15852 1998-12-12  Nick Clifton  <nickc@cygnus.com>
15853
15854         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
15855         <msalter@cygnus.com>
15856         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
15857         * libc/machine/fr30/Makefile.in: Regenerated.
15858
15859 1998-12-11  Nick Clifton  <nickc@cygnus.com>
15860
15861         * configure.host: Remove use of libc/sys for FR30 port.
15862         * libc/sys/fr30: Remove directory (replaced by libgloss).
15863
15864 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
15865
15866         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
15867         * libc/string/strncat.c (ALIGNED): Ditto.
15868
15869 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
15870
15871         * libc/include/sys/time.h: include sys/types.h
15872
15873 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15874
15875         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
15876         comparison found when checking word at a time.
15877
15878 1998-12-04  Nick Clifton  <nickc@cygnus.com>
15879
15880         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
15881
15882 1998-12-03  Nick Clifton  <nickc@cygnus.com>
15883
15884         * libc/sys/fr30/syscalls.c (_times): New function stub.
15885
15886 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15887
15888         * configure.host (mach_add_setjmp): Replaced mach_add_objs
15889         with mach_add_setjmp flag which indicates if setjmp should
15890         be added to the machine directory objects.
15891         * acinclude.m4: Removed reference to mach_add_objs.
15892         * aclocal.m4: Regenerated.
15893         * Makefile.in: Regenerated.
15894         * configure: Regenerated.
15895         * libc/aclocal.m4: Regenerated.
15896         * libc/Makefile.in: Regenerated.
15897         * libc/configure: Regenerated.
15898         * libc/machine/aclocal.m4: Regenerated.
15899         * libc/machine/Makefile.in: Regenerated.
15900         * libc/machine/configure: Regenerated.
15901         * libc/machine/i386/aclocal.m4: Regenerated.
15902         * libc/machine/i386/Makefile.am: Altered to selectively add
15903         setjmp.S to the src files list.
15904         * libc/machine/i386/Makefile.in: Regenerated.
15905         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
15906         * libc/machine/i386/configure: Regenerated.
15907
15908 1998-12-02  Nick Clifton  <nickc@cygnus.com>
15909
15910         * libc/sys/fr30/crt0.s (_start): Fix function names.
15911
15912         * libc/machine/fr30: New directory
15913         * libc/machine/fr30/Makefile.am: New file.
15914         * libc/machine/fr30/Makefile.in: New generated file.
15915         * libc/machine/fr30/configure.in: New file.
15916         * libc/machine/fr30/configure: New generated file.
15917         * libc/machine/fr30/aclocal.m4: New generated file.
15918         * libc/sys/fr30/Makefile.am: New file.
15919         * libc/sys/fr30/Makefile.in: New generated file.
15920         * libc/sys/fr30/configure.in: New file.
15921         * libc/sys/fr30/configure: New generated file.
15922         * libc/sys/fr30/syscalls.c: New file.
15923
15924 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
15925
15926         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
15927
15928 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
15929
15930         * libc/time/strftime.c (strftime): Also handle %y for years before
15931         1900.
15932
15933 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
15934
15935         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
15936         UNIX convention.  Perform tolower on characters before comparing
15937         them rather than use toupper.
15938         * libc/string/strncasecmp.c (strncasecmp): Ditto.
15939
15940 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15941
15942         * configure.host: Added using i386 machine directory
15943         for all x86 cross-compiler and configuring
15944         which added object files to use via new "mach_add_objs" variable.
15945         * configure: Regenerated.
15946         * libc/configure: Regenerated.
15947         * libc/Makefile.in: Regenerated.
15948         * libc/aclocal.m4: Regenerated.
15949         * libc/ctype/Makefile.in: Regenerated.
15950         * libc/errno/Makefile.in: Regenerated.
15951         * libc/locale/Makefile.in: Regenerated.
15952         * libc/machine/Makefile.in: Regenerated.
15953         * libc/machine/aclocal.m4: Regenerated.
15954         * libc/machine/configure: Regenerated.
15955         * libc/posix/Makefile.in: Regenerated.
15956         * libc/reent/Makefile.in: Regenerated.
15957         * libc/signal/Makefile.in: Regenerated.
15958         * libc/stdio/Makefile.in: Regenerated.
15959         * libc/stdlib/Makefile.in: Regenerated.
15960         * libc/string/Makefile.in: Regenerated.
15961         * libc/string/memmove.c: Optimized code to use memcpy
15962         logic when performing a non-destructive copy.
15963         * libc/string/strncmp.c: Altered code to allow building
15964         optimized for size or speed.
15965         * libc/syscalls/Makefile.in: Regenerated.
15966         * libc/time/Makefile.in: Regenerated.
15967         * libc/unix/Makefile.in: Regenerated.
15968         * libc/machine/i386/Makefile.am: Added new files and reference
15969         to "mach_add_objs" to indicate optional object files.
15970         * libc/machine/i386/Makefile.in: Regenerated.
15971         * libc/machine/i386/aclocal.m4: Regenerated.
15972         * libc/machine/i386/configure: Regenerated.
15973         * libc/machine/i386/memchr.S: New file that implements
15974         function in Intel assembler.
15975         * libc/machine/i386/memcmp.S: ditto.
15976         * libc/machine/i386/memcpy.S: ditto.
15977         * libc/machine/i386/memmove.S: ditto.
15978         * libc/machine/i386/memset.S: ditto.
15979         * libc/machine/i386/strchr.S: ditto.
15980         * libc/machine/i386/strlen.S: ditto.
15981         * libc/machine/i386/f_atan2.S: New file that implements
15982         fast version of math function to be used by compiler when
15983         --ffast_math compile option is used.
15984         * libc/machine/i386/f_atan2f.S: ditto.
15985         * libc/machine/i386/f_exp.c: ditto.
15986         * libc/machine/i386/f_expf.c: ditto.
15987         * libc/machine/i386/f_frexp.S: ditto.
15988         * libc/machine/i386/f_frexpf.S: ditto.
15989         * libc/machine/i386/f_ldexp.S: ditto.
15990         * libc/machine/i386/f_ldexpf.S: ditto.
15991         * libc/machine/i386/f_log.S: ditto.
15992         * libc/machine/i386/f_logf.S: ditto.
15993         * libc/machine/i386/f_log10.S: ditto.
15994         * libc/machine/i386/f_log10f.S: ditto.
15995         * libc/machine/i386/f_math.h: New file.
15996         * libc/machine/i386/f_pow.c: ditto.
15997         * libc/machine/i386/f_powf.S: ditto.
15998         * libc/machine/i386/f_tan.S: ditto.
15999         * libc/machine/i386/f_tan.S: ditto.
16000         * libc/machine/i386/i386mach.h: New file.
16001
16002 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16003
16004         patch from Mumit Khan <khan@xraylith.wisc.edu>
16005         * libc/include/stdio.h (tempnam): Add prototype.
16006         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16007         (tempnam): Adhere to prototype.
16008
16009 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16010
16011         * Makefile.am: Add default for AR_FLAGS.
16012         * Makefile.in: Regenerate.
16013
16014 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16015
16016         * libc/include/time.h: move __cplusplus wrapper after includes
16017         * libc/include/sys/time.h: ditto.  If Cygwin, include
16018         sys/select.h.
16019         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16020
16021 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16022
16023         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16024
16025 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16026
16027         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16028         abnormnal end-of-crt0 marker.
16029
16030 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16031
16032         * libc/sys/fr30/crt0.s: New file/directory.
16033         * libc/include/machine/setjmp.h: Add FR30 target.
16034         * libc/include/machine/ieeefp.h: Add FR30 target.
16035         * configure.host: Add FR30 target.
16036
16037 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16038
16039         * libm/math: Files that are duplicated in common directory removed.
16040         * libm/math/fdlibm.h: Removed.
16041         * libm/math/s_cbrt.c: Removed.
16042         * libm/math/s_copysign.c: Removed.
16043         * libm/math/s_expm1.c: Removed.
16044         * libm/math/s_finite.c: Removed.
16045         * libm/math/s_ilogb.c: Removed.
16046         * libm/math/s_infinity.c: Removed.
16047         * libm/math/s_lib_ver.c: Removed.
16048         * libm/math/s_log1p.c: Removed.
16049         * libm/math/s_logb.c: Removed.
16050         * libm/math/s_matherr.c: Removed.
16051         * libm/math/s_modf.c: Removed.
16052         * libm/math/s_nan.c: Removed.
16053         * libm/math/s_nextafter.c: Removed.
16054         * libm/math/s_rint.c: Removed.
16055         * libm/math/s_scalbn.c: Removed.
16056         * libm/math/sf_cbrt.c: Removed.
16057         * libm/math/sf_copysign.c: Removed.
16058         * libm/math/sf_expm1.c: Removed.
16059         * libm/math/sf_finite.c: Removed.
16060         * libm/math/sf_ilogb.c: Removed.
16061         * libm/math/sf_infinity.c: Removed.
16062         * libm/math/sf_log1p.c: Removed.
16063         * libm/math/sf_logb.c: Removed.
16064         * libm/math/sf_modf.c: Removed.
16065         * libm/math/sf_nan.c: Removed.
16066         * libm/math/sf_nextafter.c: Removed.
16067         * libm/math/sf_rint.c: Removed.
16068         * libm/math/sf_scalbn.c: Removed.
16069         * libm/math/Makefile.am: Removed references to deleted files (above).
16070         * libm/math/Makefile.in: Regenerated.
16071         * libm/Makefile.am: Added common directory to math.
16072         * libm/Makefile.in: Regenerated.
16073
16074 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16075
16076         * libm/mathfp: Add non-ANSI functions.
16077         * libm/mathfp/e_acosh.c acosh(): New file.
16078         * libm/mathfp/e_atanh.c atanh(): New file.
16079         * libm/mathfp/e_hypot.c hypot(): New file.
16080         * libm/mathfp/e_j0.c j0(): New file.
16081         * libm/mathfp/e_j1.c j1(): New file.
16082         * libm/mathfp/e_remainder.c remainder(): New file.
16083         * libm/mathfp/e_scalb.c scalb(): New file.
16084         * libm/mathfp/ef_acosh.c acoshf(): New file.
16085         * libm/mathfp/ef_atanh.c atanhf(): New file.
16086         * libm/mathfp/ef_hypot.c hypotf(): New file.
16087         * libm/mathfp/ef_j0.c j0f(): New file.
16088         * libm/mathfp/ef_j1.c j1f(): New file.
16089         * libm/mathfp/ef_remainder.c remainderf(): New file.
16090         * libm/mathfp/ef_scalb.c scalbf(): New file.
16091         * libm/mathfp/er_gamma.c gamma_r: New file.
16092         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16093         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16094         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16095         * libm/mathfp/w_cabs.c cabs(): New file.
16096         * libm/mathfp/w_drem.c drem(): New file.
16097         * libm/mathfp/w_jn.c jn(): New file.
16098         * libm/mathfp/wf_cabs.c cabsf(): New file.
16099         * libm/mathfp/wf_drem.c dremf(): New file.
16100         * libm/mathfp/wf_jn.c jnf(): New file.
16101
16102 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16103
16104         * libc/sys/cygwin32: remove directory and contents
16105         * libc/sys/cygwin: and add back, losing the "32".
16106         * configure.host: check for cygwin* instead of cygwin32.
16107         * acinclude.m4: ditto.
16108         * aclocal.m4: regenerate with aclocal
16109         * configure: regenerate with autoconf
16110
16111 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16112
16113         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16114         for length
16115
16116 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16117
16118         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16119         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16120         to make rand/srand, strtok, asctime, localtime, w_gamma,
16121         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16122         time.h to bring in struct tm definition.
16123         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16124         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16125         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16126         instead of static variable.
16127         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16128         struct reent instead of static variable.
16129         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16130         struct reent instead of static variable.
16131         * libm/math/Makefile.am: Removed s_signgam.o.
16132         * libm/math/Makefile.in: Regenerated.
16133         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16134         struct reent instead of global variable 'signgam'.
16135         * libm/math/w_lgamma.c (lgamma): Likewise.
16136         * libm/math/wf_gamma.c (gammaf): Likewise.
16137         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16138         * libm/math/s_signgam.c: Removed.
16139         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16140         to be const.
16141         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16142         to be const.
16143         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16144         libc/include/reent.h.
16145         * libc/reent/Makefile.in: Regenerated.
16146         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16147         to be const.
16148         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16149         'JIS_action_table' to be const.
16150         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16151
16152 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16153
16154         * acinclude.m4:  $with_target_subdir should default to '.'
16155         or confusion results when configuring in same directory as sources.
16156         * Regenerate all aclocal.m4 and configure files.
16157
16158 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16159
16160         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16161         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16162         for platforms where sizeof(size_t) < sizeof(long) via
16163         SIZE_T_SMALLER_THAN_LONG macro.
16164
16165 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16166
16167         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16168         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16169         which sets _CLOCKS_PER_SEC_ for selected machines.
16170         * libc/include/machine/time.h: New file.
16171
16172 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16173
16174         * libc/syscalls/sysexecve.c: New file.
16175         * libc/syscalls/sysgettod.c: New file.
16176         * libc/syscalls/systimes.c: New file.
16177         * libc/syscalls/Makefile.am: Added new objects.
16178         * libc/syscalls/Makefile.in: Regenerated.
16179         * libc/include/_syslist.h (_execve): Moved define in file.
16180         * libc/include/reent.h:  Added _execve_r declaration.
16181         * libc/Makefile.in: Regenerated.
16182         * libc/ctype/Makefile.in: Regenerated.
16183         * libc/errno/Makefile.in: Regenerated.
16184         * libc/locale/Makefile.in: Regenerated.
16185         * libc/machine/Makefile.in: Regenerated.
16186         * libc/misc/Makefile.in: Regenerated.
16187         * libc/posix/Makefile.in: Regenerated.
16188         * libc/reent/Makefile.in: Regenerated.
16189         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16190         * libc/signal/Makefile.in: Regenerated.
16191         * libc/stdio/Makefile.in: Regenerated.
16192         * libc/time/Makefile.in: Regenerated.
16193         * libc/unix/Makefile.in: Regenerated.
16194         * libm/mathfp/Makefile.in: Regenerated.
16195
16196 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16197
16198         * libc/string/Makefile.in: Regenerated.
16199         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16200         * libc/string/memcpy.c (memcpy): Ditto.
16201         * libc/string/memcmp.c (memcmp): Ditto.
16202         * libc/string/memset.c (memset): Ditto.
16203         * libc/string/strchr.c (strchr): Ditto.
16204         * libc/string/strcmp.c (strcmp): Ditto.
16205         * libc/string/strcpy.c (strcpy): Ditto.
16206         * libc/string/strlen.c (strlen): Ditto.
16207
16208 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16209
16210         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16211         to generate aclocal.m4.
16212         * libm/Makefile.in: Regenerated.
16213         * libm/aclocal.m4: Regenerated.
16214         * libm/configure: Regenerated.
16215         * libm/math/Makefile.in: Regenerated.
16216         * libm/mathfp/Makefile.in: Regenerated.
16217
16218 1998-09-25  Mark Salter  <msalter@cygnus.com>
16219
16220         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16221         by adding leading and trailing underscores to symbol names.
16222
16223 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16224
16225         * Makefile.in: Add default for AR_FLAGS.
16226
16227 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
16228
16229         patch from ian@airs.com (Ian Taylor):
16230         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
16231         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
16232         is needed for detecting the build machine.  Required for
16233         cygwin native builds.
16234
16235         * Regenerate all aclocal.m4 and configure files.
16236
16237 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
16238
16239         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
16240         used to start with LC.
16241
16242 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16243
16244         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
16245         (longjmp): Likewise.
16246
16247 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16248
16249         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
16250         the test for small number of bytes.
16251
16252 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16253
16254         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
16255         math library that uses floating point algorithms instead of the old
16256         libm.
16257         * Makefile.in: Regenerate with automake version 1.3b.
16258         * configure: Rebuild.
16259         * libm/Makefile.in: Regenerate with automake version 1.3b.
16260         * libm/aclocal.m4: Regenerate.
16261         * libm/configure: Rebuild.
16262         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
16263         * libm/acinclude.m4: Define macros for configure.in.
16264         * libm/config.h.in: Generate.
16265         * libm/mathfp/Makefile.am: New file.
16266         * libm/mathfp/Makefile.in: Generate.
16267         * libm/mathfp/s_acos.c (acos): New file.
16268         * libm/mathfp/s_asin.c (asin): New file.
16269         * libm/mathfp/s_asine.c (asine): New file.
16270         * libm/mathfp/s_atan.c (atan): New file.
16271         * libm/mathfp/s_atan2.c (atan2): New file.
16272         * libm/mathfp/s_atangent.c (atangent): New file.
16273         * libm/mathfp/s_ceil.c (ceil): New file.
16274         * libm/mathfp/s_copysign.c (copysign): New file.
16275         * libm/mathfp/s_cos.c (cos): New file.
16276         * libm/mathfp/s_cosh.c (cosh): New file.
16277         * libm/mathfp/s_exp.c (exp): New file.
16278         * libm/mathfp/s_fabs.c (fabs): New file.
16279         * libm/mathfp/s_finite.c (finite): New file.
16280         * libm/mathfp/s_floor.c (floor): New file.
16281         * libm/mathfp/s_fmod.c (fmod): New file.
16282         * libm/mathfp/s_frexp.c (frexp): New file.
16283         * libm/mathfp/s_infconst.c: New file.
16284         * libm/mathfp/s_isinf (isinf).c: New file.
16285         * libm/mathfp/s_isnan.c (isnan): New file.
16286         * libm/mathfp/s_ispos.c (ispos): New file.
16287         * libm/mathfp/s_ldexp.c (ldexp): New file.
16288         * libm/mathfp/s_log.c (log): New file.
16289         * libm/mathfp/s_log10.c (log10): New file.
16290         * libm/mathfp/s_logarithm.c (logarithm): New file.
16291         * libm/mathfp/s_mathcnst.c: New file.
16292         * libm/mathfp/s_modf (modf).c: New file.
16293         * libm/mathfp/s_numtest.c (numtest): New file.
16294         * libm/mathfp/s_pow.c (pow): New file.
16295         * libm/mathfp/s_scalbn.c (scalbn): New file.
16296         * libm/mathfp/s_sin (sin).c: New file.
16297         * libm/mathfp/s_sine.c (sine): New file.
16298         * libm/mathfp/s_sineh.c (sineh): New file.
16299         * libm/mathfp/s_sinf.c (sinf): New file.
16300         * libm/mathfp/s_sinh.c (sinh): New file.
16301         * libm/mathfp/s_sqrt.c (sqrt): New file.
16302         * libm/mathfp/s_tan.c (tan): New file.
16303         * libm/mathfp/s_tanh.c (tanh): New file.
16304         * libm/mathfp/sf_acos.c (acosf): New file.
16305         * libm/mathfp/sf_asin.c (asinf): New file.
16306         * libm/mathfp/sf_asine.c (asinef): New file.
16307         * libm/mathfp/sf_atan.c (atanf): New file.
16308         * libm/mathfp/sf_atan2.c (atan2f): New file.
16309         * libm/mathfp/sf_atangent.c (atangent): New file.
16310         * libm/mathfp/sf_ceil.c (ceilf): New file.
16311         * libm/mathfp/sf_copysign.c (copysignf): New file.
16312         * libm/mathfp/sf_cos.c (cosf): New file.
16313         * libm/mathfp/sf_cosh.c (coshf): New file.
16314         * libm/mathfp/sf_exp.c (expf): New file.
16315         * libm/mathfp/sf_fabs.c (fabsf): New file.
16316         * libm/mathfp/sf_finite.c (finitef): New file.
16317         * libm/mathfp/sf_floor.c (floorf): New file.
16318         * libm/mathfp/sf_fmod.c (fmodf): New file.
16319         * libm/mathfp/sf_frexp.c (frexpf): New file.
16320         * libm/mathfp/sf_isinf.c (isinff): New file.
16321         * libm/mathfp/sf_isnan.c (isnanf): New file.
16322         * libm/mathfp/sf_ispos.c (isposf): New file.
16323         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
16324         * libm/mathfp/sf_log.c (logf): New file.
16325         * libm/mathfp/sf_log10.c (log10f): New file.
16326         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
16327         * libm/mathfp/sf_modf.c (modff): New file.
16328         * libm/mathfp/sf_numtest.c (numtestf): New file.
16329         * libm/mathfp/sf_pow.c (powf): New file.
16330         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
16331         * libm/mathfp/sf_sin.c (sinf): New file.
16332         * libm/mathfp/sf_sine.c (sinef): New file.
16333         * libm/mathfp/sf_sineh.c (sinehf): New file.
16334         * libm/mathfp/sf_sinh.c (sinhf): New file.
16335         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
16336         * libm/mathfp/sf_tan.c (tanf): New file.
16337         * libm/mathfp/sf_tanh.c (tanhf): New file.
16338         * libm/mathfp/zmath.h: New file.
16339
16340 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16341
16342         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
16343         exit if it has been overwritten by pre-fetching in delay slot.
16344
16345 1998-09-01  Michael Meissner  <meissner@cygnus.com>
16346
16347         * Makefile.am (tooldir): Add in host_alias, so that multilib
16348         libraries are installed in the directory the compiler looks in.
16349         * Makefile.in: Regenerate.
16350
16351         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
16352
16353 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16354
16355         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
16356         ahead of test for number of bytes being moved.
16357
16358 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
16359
16360         * libc/include/sys/unistd.h: Nothing special needed for
16361         _exit under cygwin.
16362
16363 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
16364
16365         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
16366         conform to user label naming conventions.
16367
16368 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
16369
16370         * libc/sys/cygwin32/sys/utime.h: variable names in
16371         protos should start with two leading underscores
16372         * libc/include/string.h: ditto
16373         * libc/include/sys/signal.h: ditto
16374         * libc/include/sys/stat.h: ditto
16375         * libc/include/sys/time.h: ditto
16376         * libc/include/sys/unistd.h: ditto
16377         * libc/include/ctype.h: ditto
16378         * libc/include/stdlib.h: ditto
16379         * libc/include/sys/reent.h: struct _atexit function ptr takes a
16380         void, same with _sig_func.
16381
16382 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16383
16384         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
16385         for MB_CAPABLE to reduce code size when newlib is not configured
16386         with --enable-newlib-mb.
16387         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
16388         mbtowc_r.o to minimize size.
16389         * libc/stdlib/Makefile.in: Rebuild.
16390
16391 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
16392
16393         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
16394         to -DREENT.
16395         * libc/sys/sparc64/Makefile.in: Rebuild.
16396
16397 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
16398
16399         * Makefile.am (MAKEOVERRIDES): Define.
16400         * Makefile.in: Rebuild.
16401
16402 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
16403
16404         * libc/sys/sparc64/sys/stat.h (stat): Add const.
16405
16406 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
16407
16408         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
16409         newlib_cflags when looking for targ-include.
16410         * */aclocal.m4, */configure: Rebuild.
16411
16412 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
16413
16414         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
16415         to "_end".
16416
16417 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
16418
16419         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
16420         on SPARCs with little-endian data.
16421         * libc/include/machine/ieeefp.h: Ditto.
16422
16423 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
16424
16425         * acinclude.m4: Handle a relative srcdir correctly when setting
16426         newlib_cflags.
16427         * */aclocal.m4, */configure: Rebuild.
16428
16429 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16430
16431         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
16432         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
16433         * libm/math/wrf_gamma.c (gammaf_r): ditto
16434         * libm/math/wr_lgamma.c (lgamma_r): ditto
16435         * libm/math/wr_gamma.c (gamma_r): ditto
16436         * libm/math/wf_sqrt.c (sqrtf): ditto
16437         * libm/math/wf_sinh.c (sinhf): ditto
16438         * libm/math/wf_scalb.c (scalbf): ditto
16439         * libm/math/wf_remainder.c (remainderf): ditto
16440         * libm/math/wf_pow.c (powf): ditto
16441         * libm/math/wf_log10.c (log10f): ditto
16442         * libm/math/wf_log.c (logf): ditto
16443         * libm/math/wf_lgamma.c (lgammaf): ditto
16444         * libm/math/wf_jn.c (jnf, ynf): ditto
16445         * libm/math/wf_j1.c (j1f, y1f): ditto
16446         * libm/math/wf_j0.c (j0f, y0f): ditto
16447         * libm/math/wf_hypot.c (hypotf): ditto
16448         * libm/math/wf_gamma.c (gammaf): ditto
16449         * libm/math/wf_fmod.c (fmodf): ditto
16450         * libm/math/wf_exp.c (expf): ditto
16451         * libm/math/wf_cosh.c (coshf): ditto
16452         * libm/math/wf_atanh.c (atanhf): ditto
16453         * libm/math/wf_atan2f.c (atan2f): ditto
16454         * libm/math/wf_asin.c (asinf): ditto
16455         * libm/math/wf_acosh.c (acoshf): ditto
16456         * libm/math/wf_acos.c (acosf): ditto
16457         * libm/math/w_sqrt.c (sqrt): ditto
16458         * libm/math/w_sinh.c (sinh): ditto
16459         * libm/math/w_scalb.c (scalb): ditto
16460         * libm/math/w_remainder.c (remainder): ditto
16461         * libm/math/w_pow.c (pow): ditto
16462         * libm/math/w_log10.c (log10): ditto
16463         * libm/math/w_log.c (log): ditto
16464         * libm/math/w_lgamma.c (lgamma): ditto
16465         * libm/math/w_jn.c (jn, yn): ditto
16466         * libm/math/w_j1.c (j1, y1): ditto
16467         * libm/math/w_j0.c (j0, y0): ditto
16468         * libm/math/w_hypot.c (hypot): ditto
16469         * libm/math/w_gamma.c (gamma): ditto
16470         * libm/math/w_fmod.c (fmod): ditto
16471         * libm/math/w_exp.c (exp): ditto
16472         * libm/math/w_cosh.c (cosh): ditto
16473         * libm/math/w_atanh.c (atanh): ditto
16474         * libm/math/w_atan2f.c (atan2): ditto
16475         * libm/math/w_asin.c (asin): ditto
16476         * libm/math/w_acosh.c (acosh): ditto
16477         * libm/math/w_acos.c (acos): ditto
16478
16479 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
16480
16481         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
16482         (fsrc): Add wf_cabs.c and wf_drem.c.
16483         * libm/math/Makefile.in: Rebuild.
16484
16485         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
16486         unused directory variables.  Remove duplicate CFLAGS.
16487         * Makefile.in: Rebuild.
16488
16489         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
16490         with $(CC_FOR_BUILD).
16491         (makedoc.o): Likewise.
16492         * doc/Makefile.in: Rebuild.
16493
16494         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
16495         force a definition of COMPILE.
16496         (libfoo_a_SOURCES): Define.
16497         * libc/sys/cygwin32/Makefile.in: Rebuild.
16498         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
16499         force a definition of COMPILE.
16500         (libfoo_a_SOURCES): Define.
16501         * libc/sys/tic80/Makefile.in: Rebuild.
16502
16503 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
16504
16505         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
16506         flag.
16507
16508 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
16509
16510         * Build using autoconf and automake.  Added many Makefile.am and
16511         configure.in files, plus generated files.  Old configure.in files
16512         and all old Makefile.in files completely replaced.  Removed
16513         host/any.  Added acinclude.m4 and configure.host.
16514
16515 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
16516
16517         * libc/stdio/vfprintf.c: enable long long support, sometimes.
16518         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
16519
16520 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16521
16522         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
16523         * libc/machine/sh/Makefile.in: Add rules for new files.
16524
16525 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16526
16527         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
16528         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
16529         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
16530
16531 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
16532
16533         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
16534         code is ignored.
16535
16536 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16537
16538         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
16539         internal static buffer when s is NULL, as prescribed by ANSI.
16540
16541 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
16542
16543         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
16544         removed.
16545         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
16546         libc/stdlib will be used for h8300hms.
16547
16548 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16549
16550         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
16551         version that can be built either for speed or size.
16552         * libc/machine/mn10300/memset.S (_memset): ditto
16553         * libc/machine/mn10300/memchr.S (_memchr): ditto
16554         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
16555         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
16556         * libc/machine/mn10300/strchr.S (_strchr): ditto
16557         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
16558         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
16559         * libc/machine/mn10300/Makefile.in: Added entries for
16560         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
16561         strcmp.o, strcpy.o, and strlen.o.
16562
16563 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
16564
16565         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
16566         been replaced with libgloss/mn10200.
16567
16568 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
16569
16570         * libc/string/strchr.c (strchr): Make s a constant pointer to
16571         avoid warning.
16572
16573 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
16574
16575         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
16576         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
16577         board SWIs instead of Demon board SWIs).
16578
16579 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
16580
16581         * libc/string/strncat.c (strncat):  Make -Os act the same as
16582         PREFER_SIZE_OVER_SPEED being defined.
16583
16584 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
16585
16586         * libc/string/memchr.c (memchr): Make -Os act the same as
16587         PREFER_SIZE_OVER_SPEED being defined.
16588         * libc/string/memcmp.c (memcmp): Ditto.
16589         * libc/string/memcpy.c (memcpy): Ditto.
16590         * libc/string/memset.c (memset): Ditto.
16591         * libc/string/strcat.c (strcat): Ditto.
16592         * libc/string/strchr.c (strchr): Ditto.
16593         * libc/string/strcmp.c (strcmp): Ditto.
16594         * libc/string/strcpy.c (strcpy): Ditto.
16595         * libc/string/strlen.c (strlen): Ditto.
16596         * libc/string/strncat.c (strncat): Ditto.
16597         * libc/string/strncmp.c (strncmp): Ditto.
16598         * libc/string/strncpy.c (strncpy): Ditto.
16599
16600 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
16601
16602         * libc/include/sys/itimer.h: remove
16603         * libc/include/sys/time.h: itimer stuff should be here
16604
16605 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16606
16607         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
16608         bit instead of comparing to 0 so -0.0 can be printed correctly.
16609
16610 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16611
16612         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
16613
16614 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
16615
16616         * libc/include/sys/unistd.h: fix sync() proto
16617         * libc/include/sys/fcntl.h: remove _close which is already
16618         defined in unistd.h.
16619         * libc/include/sys/time.h: add getitimer proto
16620
16621 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
16622
16623         * libc/string/strchr.c: convert arg to unsigned char
16624         * libc/include/stdlib.h: add protos for random, srandom
16625         * libc/include/sys/stat.h: add lstat proto
16626         * libc/include/sys/time.h: add setitimer proto
16627         * libc/include/sys/unistd.h: add readlink, symlink protos
16628         * libc/include/process.h: instead of including windows.h and using
16629         HANDLEs in sexec protos, just use void *s.  Need to include
16630         sys/types.h.
16631
16632 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
16633
16634         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
16635
16636 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
16637
16638         * libc/include/process.h: add secure exec protos
16639
16640 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
16641
16642         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
16643         which are accessed as both doubles and integers.
16644         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
16645         * libc/stdlib/strtod.c (_strtod_r): Likewise.
16646         * libc/stdlib/mprec.h: Add "union double_union" and change
16647         word0/word1 macros to use it.
16648
16649 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
16650
16651         * libc/include/sys/signal.h: add __cplusplus wrapper
16652
16653 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
16654
16655         * libc/include/sys/utime.h: new generic file that gets replaced by
16656         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
16657         function.
16658         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
16659         * libc/include/time.h: remove duplicate utime proto
16660         * libc/include/utime.h: add comment
16661
16662 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
16663
16664         * libc/include/sys/time.h: Add missing include to
16665         allow use of _EXFUN.  Remove times function that is
16666         already defined in times.h.
16667
16668 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
16669
16670         * libc/include/time.h: Fix typo in tzset.
16671
16672 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
16673
16674         * libc/include/sys/time.h: add missing Cygwin32 function protos
16675         * libc/include/sys/unistd.h: ditto
16676         * libc/include/time.h: ditto
16677
16678 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
16679
16680         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
16681         FIXME.
16682         * libc/include/sys/types.h: add a new __MS_types__ section
16683         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
16684         __BIT_TYPES_DEFINED__.
16685
16686 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
16687
16688         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
16689         since it overrides the one in libc/include/sys.  Also, start
16690         including types.h.
16691
16692 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
16693
16694         * libm/math/Makefile.in: add s_signgam.o to obj list
16695
16696 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16697
16698         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
16699
16700 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
16701
16702         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
16703         so don't use defines.
16704
16705 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
16706
16707         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
16708
16709 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
16710
16711         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
16712         _current_locale as default locale.
16713
16714 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
16715
16716         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
16717         insufficient space in a chunk.
16718
16719 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16720
16721         * configure.in (links): Added check for --enable-newlib-mb configure
16722         option which defines the MB_CAPABLE macro.
16723         * libc/locale/locale.c (_setlocale_r): Added support for setting
16724         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
16725         defined.
16726         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
16727         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
16728         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
16729         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
16730         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
16731         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
16732         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
16733         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
16734         * libc/stdlib/Makefile.in: Added new multibyte
16735         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
16736         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
16737         _mbstowcs_r(), and _wcstombs_r().
16738         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
16739         for JIS, SJIS, and EUC-JP characters.
16740         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
16741         MB_CAPABLE defined.
16742         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
16743         MB_CAPABLE defined.
16744         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
16745         MB_CAPABLE defined.
16746         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
16747         if MB_CAPABLE defined.
16748         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
16749         if MB_CAPABLE defined.
16750         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
16751         to the format string processing when MB_CAPABLE.
16752         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
16753         call _mbtowc_r().
16754
16755 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
16756
16757         The following modifications are courtesy of Anthony Thompson,
16758         athompson@cambridge.arm.com:
16759         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
16760         boith RDI and RDP monitors.
16761         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
16762         RDI and RDP monitors.
16763
16764 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16765
16766         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
16767         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
16768         (_swiopen): Fixed open flags to treat write with append as just append.
16769         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
16770         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
16771
16772 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16773
16774         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
16775         When needing to transfer an initial 2-byte-word, store as
16776         two single bytes.
16777
16778 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16779
16780         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
16781         __SH3E__ .
16782         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
16783         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
16784
16785 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
16786
16787         * configure.in (target_cflags): If --enable-target-optspace, use
16788         -Os to compile newlib rather than -O2.  Default to using -Os for
16789         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
16790         used.
16791
16792 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
16793
16794         * libc/include/machine/setjmp.h: change sigsetjmp and
16795         siglongjmp definitions to use an array instead of a struct
16796         for __CYGWIN32__
16797
16798 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
16799
16800         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
16801
16802 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
16803
16804         * libc/string/strxfrm.c: fix to get correct return value
16805
16806 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
16807
16808         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
16809         builds.  Make mode change labels global so that they will be seen
16810         by the debugger.
16811
16812 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
16813
16814         * configure.in (links): Do not use ARM debiugging protocols for PE
16815         builds.
16816
16817         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
16818         message.
16819
16820 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16821
16822         * libc/stdio/findfp.c (__sinit): Made stdout default to
16823         line buffered mode as defined by ANSI.
16824
16825 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
16826
16827         * libc/include/sys/itimer.h: New file.
16828
16829         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
16830
16831 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16832
16833         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
16834         failure.
16835
16836 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
16837
16838         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
16839         insns.
16840
16841 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
16842
16843         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
16844
16845 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
16846
16847         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
16848         support.
16849
16850         * libc/include/machine/setjmp.h: Add D30V support.
16851
16852         * configure.in (d30v-*): Add d30v machine directory.
16853
16854 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
16855
16856         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
16857         been replaced with libgloss/mn10300.
16858
16859 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
16860
16861         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
16862         it is no longer needed.
16863
16864 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
16865
16866         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
16867
16868 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
16869
16870         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
16871         the file when O_APPEND is set, wherever the EOF happens to be at
16872         that time.
16873
16874 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
16875
16876         patch from cgf@bbc.com (Christopher Faylor):
16877         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
16878         convention of closing fp prior to attempting to open the file
16879         argument.  This allows correct operation when reopening
16880         stdin/stdout/stderr.  Replaces last freopen.c patch.
16881
16882 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
16883
16884         patch from cgf@bbc.com (Christopher Faylor):
16885         * libc/stdio/freopen.c: freopen was not preserving the fd
16886         of the stream being operated on.  This confuses programs that
16887         expect that the handles for stdout and stderr will be 1 and 2.
16888
16889 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
16890
16891         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
16892
16893 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
16894
16895         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
16896
16897 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16898
16899         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
16900         altered to not use a branch.  Also added hint that last
16901         bclr in longjmp will likely result in branch.
16902
16903
16904 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
16905
16906         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
16907
16908 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
16909
16910         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
16911         v850 builds.
16912
16913         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
16914
16915 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16916
16917         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
16918         that loads FR14 to specify offset of 8 rather than 4
16919         so it loads from offset 96 (where setjmp stored it).
16920
16921 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16922
16923         * libc/machine/sh/memcpy.S: (_memcpy): Update to
16924         latest version supplied by customer.
16925         * libc/machine/sh/memset.S (_memset): Ditto.
16926
16927 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
16928
16929         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
16930         PR14730).
16931
16932 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
16933
16934         * libc/include/string.h: remove redefinition of ffs
16935
16936 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
16937
16938         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
16939         defined
16940
16941 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16942
16943         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
16944         TI Libraries to link to libc.a
16945
16946 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
16947
16948         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
16949         * libc/include/sys/stat.h (_{,f}stat): Ditto.
16950         * libc/include/sys/wait.h (_wait): Ditto.
16951         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
16952         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
16953
16954 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
16955
16956         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
16957         minded stabs so function name shows up when running the simulator
16958         with -t.
16959         * libc/sys/d10v/{crt0,trap}.S: Ditto.
16960
16961 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
16962
16963         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
16964         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
16965         Use R5 where we used to use R3.
16966
16967 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
16968
16969         * libc/stdlib/getopt.c (getopt): replaced __progname
16970         with nargv[0] to improve portability to imbedded systems.
16971
16972 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
16973
16974         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
16975         patch supplied by Tont.Thompson@arm.com to fix the creation of the
16976         stdout file.
16977
16978 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
16979
16980         * libc/stdio/tmpnam.c (worker): Generate a different file name
16981         each time.
16982
16983         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
16984         fails, try an execlp for sh.
16985
16986         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
16987         option for the winsup include directory.
16988
16989 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
16990
16991         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
16992         debugging interface from Tony.Thompson@arm.com.
16993
16994         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
16995         * libc/sys/arm/swi.h: ditto.
16996
16997 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
16998
16999         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17000         DIR struct used for readdir hashes.
17001
17002 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17003
17004         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17005
17006 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17007
17008         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17009         integer targets.
17010
17011 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17012
17013         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17014         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17015         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17016         (__malloc_copy): Declare.
17017
17018 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17019
17020         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17021         <sys/config.h>.
17022         (POINTER_UINT): Define.
17023         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17024         (MALLOC_ALIGNMENT): Don't define if already defined.
17025         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17026         long.
17027
17028 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17029
17030         * libc/string/memset.c (memset): Fiddle with code so that the long
17031         value being stored is not a stack value.  Unroll storing longs 4
17032         times.
17033
17034 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17035
17036         * Reduce code size for libm modules.
17037         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17038         and simply move code into sqrt.
17039         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17040         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17041         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17042         * libm/math/wr_gamma.c (gamma_r): Likewise.
17043         * libm/math/wf_sinh.c (sinfh): Likewise.
17044         * libm/math/w_sinh.c (sinh): Likewise.
17045         * libm/math/wf_scalb.c (scalbf): Likewise.
17046         * libm/math/w_scalb.c (scalb): Likewise.
17047         * libm/math/wf_remainder.c (remainderf): Likewise.
17048         * libm/math/w_remainder.c (remainder): Likewise.
17049         * libm/math/wf_pow.c (powf): Likewise.
17050         * libm/math/w_pow.c (pow): Likewise.
17051         * libm/math/wf_log10.c (log10f): Likewise.
17052         * libm/math/w_log10.c (log10): Likewise.
17053         * libm/math/wf_log.c (logf): Likewise.
17054         * libm/math/w_log.c (log): Likewise.
17055         * libm/math/w_lgamma.c (lgamma): Likewise.
17056         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17057         * libm/math/wf_jn.c (jnf): Likewise.
17058         * libm/math/w_jn.c (jn): Likewise.
17059         * libm/math/wf_j1.c (j1f): Likewise.
17060         * libm/math/w_j1.c (j1): Likewise.
17061         * libm/math/wf_j0.c (j0f): Likewise.
17062         * libm/math/w_j0.c (j0): Likewise.
17063         * libm/math/wf_hypot.c (hypotf): Likewise.
17064         * libm/math/w_hypot.c (hypot): Likewise.
17065         * libm/math/wf_gamma.c (gammaf): Likewise.
17066         * libm/math/w_gamma.c (gamma): Likewise.
17067         * libm/math/wf_fmod.c (fmodf): Likewise.
17068         * libm/math/w_fmod.c (fmod): Likewise.
17069         * libm/math/wf_exp.c (expf): Likewise.
17070         * libm/math/w_exp.c (exp): Likewise.
17071         * libm/math/wf_cosh.c (coshf): Likewise.
17072         * libm/math/w_cosh.c (cosh): Likewise.
17073         * libm/math/wf_atanh.c (atanhf): Likewise.
17074         * libm/math/w_atanh.c (atanh): Likewise.
17075         * libm/math/wf_atan2.c (atan2f): Likewise.
17076         * libm/math/w_atan2.c (atan2): Likewise.
17077         * libm/math/wf_asin.c (asinf): Likewise.
17078         * libm/math/w_asin.c (asin): Likewise.
17079         * libm/math/wf_acosh.c (acoshf): Likewise.
17080         * libm/math/w_acosh.c (acosh): Likewise.
17081         * libm/math/wf_acos.c (asocf): Likewise.
17082         * libm/math/w_acos.c (acos): Likewise.
17083         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17084         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17085         for embedded systems.
17086
17087 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17088
17089         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17090         Lea in case of a foreign sbrk.
17091
17092 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17093
17094         Incorporate Doug Lea's malloc:
17095         * libc/stdlib/mallocr.c: Completely replaced.
17096         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17097         (realloc): Remove.
17098         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17099         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17100         mallopt.
17101         (mallinfo, malloc_stats, mallopt): New functions.
17102         (_mstats_r): Just call _malloc_stats_r.
17103         * libc/stdlib/malign.c: New file.
17104         * libc/stdlib/mlock.c: New file.
17105         * libc/stdlib/msize.c: New file.
17106         * libc/stdlib/mtrim.c: New file.
17107         * libc/stdlib/realloc.c: New file.
17108         * libc/stdlib/valloc.c: New file.
17109         * libc/stdlib/malloc.h: Remove.
17110         * libc/stdlib/callocr.c: Remove.
17111         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17112         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17113         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17114         reallocr.o, valloc.o, vallocr.o.
17115         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17116         (MALLOC_CFLAGS): New variable.
17117         (mallocr.o): New target, build from mallocr.c.
17118         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17119         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17120         (msizer.o, malloptr.o): Likewise.
17121         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17122         (valloc.o): New target.
17123         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17124         * libc/include/malloc.h: Declare struct mallinfo, and new
17125         routines.
17126         * libc/include/stdlib.h (cfree): Correct declaration.
17127
17128 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17129
17130         * libc/include/machine/setjmp.h: Add support for Thumb target.
17131
17132         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17133
17134         * configure.in (links): Add support for Thumb target.
17135
17136 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17137
17138         * libc/sys/arm/setjmp.S: Updated with version from branch.
17139
17140 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17141
17142         * libc/include/stdio.h: add POSIX-required define L_ctermid
17143         for ctermid
17144
17145 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17146
17147         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17148         addition to MISSING_SYSCALL_NAMES.
17149
17150 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17151
17152         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17153
17154 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17155
17156         * libc/include/string.h: change strsignal proto to return
17157         a char *.  This eliminates compile problems in gdb resulting
17158         from gdb's definition of strsignal in defs.h.
17159
17160 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17161
17162         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17163         winsup/include) so as not to conflict with the one in
17164         libc/include.
17165         * libc/include/string.h: add protos for strsignal, strtosigno
17166
17167 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17168
17169         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17170
17171         * configure.in (d30v-*-*): Add configuration.
17172
17173 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17174
17175         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17176         to select which kind of debug monitor is in use for an ARM target.
17177
17178         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17179         Angel and Demon debug monitors.  Part of this code was supplied by
17180         Tony Thompson at ARM: athompso@arm.com.
17181
17182 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17183
17184         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17185         semantics when the count is greater than the length of the second
17186         source string.
17187
17188 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17189
17190         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17191         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17192         truncate and ftruncate take off_t, not size_t
17193
17194 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17195
17196         * libc/string/strcat.c (strcat): Add missing comment end.
17197         * libc/string/strncat.c (strncat): Likewise.
17198
17199 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17200
17201         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17202         targets.
17203         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17204         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17205         defined.
17206         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17207         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17208         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17209
17210 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17211
17212         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17213         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17214
17215 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17216
17217         * libc/machine/i386/setjmp.S: New file.
17218         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17219         (OFILES): Add setjmp.o.
17220         (setjmp.o): Add rule for.
17221         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17222
17223 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17224                          Jeffrey A Law  (law@cygnus.com)
17225
17226         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17227         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17228         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17229         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17230
17231 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
17232
17233         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17234         rules.
17235
17236         * libc/include/sys/config.h: Use __v850 to select v850
17237         endianness.
17238
17239         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
17240         buffer size.
17241
17242         * libc/include/machine/ieeefp.h: Use __v850 to select v850
17243         endianness.
17244
17245 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
17246
17247         * libc/stdlib/setenv.c: change unsetenv definition to match
17248         style of setenv (with _DEFUN).  The string should be a const.
17249         * libc/include/stdlib.h: unsetenv proto should return void.
17250
17251 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
17252
17253         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
17254
17255 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
17256
17257         * libc/stdio/glue.h: remove.
17258         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
17259         * libc/stdio/Makefile.in: remove glue.h dependencies
17260
17261 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
17262
17263         * libc/sys/sysnecv850/crt0.S: Created V850e version.
17264
17265 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
17266
17267         * configure.in (target_cpu): Add `arc'.
17268
17269 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
17270
17271         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
17272           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
17273         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
17274         * newlib/libc/reent/reent.c: Add _wrapup_reent.
17275         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
17276
17277 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
17278
17279         * libc/machine/mips/setjmp.S: Handle mips16 builds.
17280
17281 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
17282
17283         * libc/include/stdio.h (siprintf): Declare.
17284
17285 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
17286
17287         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
17288         TARGET_CFLAGS and NEWLIB_FLAGS.
17289
17290 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17291
17292         * configure.in (links): Add support for v850ea target.
17293
17294 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17295
17296         * configure.in (links): Add support for v850e target.
17297
17298 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
17299
17300         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
17301
17302 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
17303
17304         * configure.in (arc-*-*): Add support for.
17305         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
17306
17307 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17308
17309         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
17310
17311 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
17312
17313         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
17314         comparison which accesses invalid memory when the key is
17315         larger than the last member of the array.
17316         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
17317         for CYGWIN32
17318         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
17319
17320 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17321
17322         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
17323         not _STRICT_ANSI.
17324
17325 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
17326
17327         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
17328         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
17329
17330 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
17331
17332         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
17333         to load/store memory.
17334
17335 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
17336
17337         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
17338         underscores if _WIN32.
17339
17340 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
17341
17342         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
17343         support ifdef _USE_WRITE missed in last change.
17344         From Anders Blomdell <anders.blomdell@control.lth.se>.
17345
17346 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
17347
17348         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
17349         (_tmpnam_r, _tempnam_r): Update.
17350
17351 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
17352
17353         * libc/machine/sparc/setjmp.S: New file.
17354         * libc/machine/sparc/Makefile.in: Add setjmp.
17355         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
17356
17357 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
17358
17359         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
17360
17361 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
17362
17363         From Joel Sherrill <joel@oarcorp.com>.
17364         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
17365
17366         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
17367         * configure.in: Recognize *-*-rtems*.
17368         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
17369         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
17370         time.h,times.h,types.h}: New files.
17371         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
17372
17373 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
17374
17375         patch from sos@prospect.com.ru (Sergey Okhapkin):
17376         * include/sys/wait.h: correct operator precidence bug
17377         in WIFSIGNALED
17378
17379 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
17380
17381         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
17382         with newlib's unsetenv function
17383         * libc/sys/cygwin32/sys: new directory for includes
17384         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
17385         here from winsup/include/sys
17386
17387 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
17388
17389         * libc/include/sys/unistd.h: _exit should only be
17390         labelled noreturn when not __CYGWIN32__
17391         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
17392         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
17393         increment NSIG
17394
17395 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
17396
17397         * libc/include/sys/time.h: Only define timeval and timezone if
17398         _GNU_H_WINDOWS32_SOCKETS is not defined.
17399         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
17400
17401 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
17402
17403         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
17404         * libc/machine/mn10300/setjmp.S: Likewise.
17405
17406         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
17407         the mn10300 (more relaxing opportunities).
17408
17409 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
17410
17411         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
17412         Build libraries with -mstrict-align.
17413
17414 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
17415
17416         * libc/string/strlwr.c: New file.
17417         * libc/string/strupr.c: New file.
17418         * libc/include/string.h: Declare strlwr and strupr.
17419         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
17420         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
17421         (strlwr.o, strupr.o): New targets.
17422         * libc/string/strings.tex: Include strlwr and strupr docs.
17423
17424         * libc/include/sys/types.h: Don't define u_char, et. al., if
17425         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
17426         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
17427         _types_fd_set rather than fd_set, and define fd_set as a macro.
17428
17429         * libc/include/malloc.h: New file.
17430
17431         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
17432         strnicmp if they are not already defined.
17433
17434         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
17435         _timezone, _daylight, and _tzname.
17436
17437 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17438
17439         * configure.in: Sort all configuration tables.
17440
17441         From Joel Sherrill <joel@oarcorp.com>
17442         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
17443
17444 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
17445
17446         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
17447         use int when declaring kill.
17448
17449         * libc/include/sys/timeb.h: New file.
17450
17451 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
17452
17453         * libc/include/sys/time.h: add itimer support for Cygwin32
17454
17455 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
17456
17457         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
17458         out a message that abort was called to stderr.
17459
17460 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
17461
17462         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
17463         so that libio doesn't freak.
17464
17465         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
17466         int.
17467
17468         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
17469         memory sizes, not int.
17470
17471 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
17472
17473         * libm/math/ef_hypot.c: Use long constants where
17474         appropriate.
17475         * libm/math/ef_sqrt.c: Ditto.
17476
17477         * libc/sys/sysmec/times.c(_times): Change to times.
17478
17479         * libc/sys/sysmec/read.c(_read): The third argument is
17480         size_t.
17481         * libc/sys/sysmec/write.c (_write): Ditto.
17482
17483         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
17484         (_lseek): It's off_t for the second argument.
17485
17486 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
17487
17488         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
17489         as well as machine/ieeefp.h.
17490
17491 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
17492
17493         * libc/include/sys/signal.h: add signal protos for winsup
17494         functions (when __CYGWIN32__), include types.h
17495         * libc/include/sys/types.h: Change __go32_types__ internal
17496         define to __MS_types__ since it's used for more than just
17497         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
17498         defined.
17499         * libc/include/sys/unistd.h: add ftruncate proto for
17500         winsup functions (when __CYGWIN32__)
17501
17502 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17503
17504         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
17505
17506 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
17507
17508         * libc/include/machine/setjmp.h: Add tic80 support.
17509         * libc/machine/tic80/setjmp.S: Likewise.
17510
17511 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
17512
17513         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
17514         link programs from libraries only (such as in the X11
17515         distribution)
17516
17517 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
17518
17519         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
17520         supplied elsewhere in newlib.
17521
17522 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
17523
17524         * Makefile.in (INSTALL): Change install.sh to install-sh.
17525
17526 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
17527
17528         * README: update WWW address for on-line documentation.
17529
17530 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
17531
17532         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
17533         increment NSIG
17534
17535 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
17536
17537         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
17538         mn10300.
17539         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
17540
17541 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
17542
17543         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
17544         * libc/sys/d10v/syscalls.c: Likewise.
17545         * libc/sys/h8300hms/sbrk.c: Likewise.
17546         * libc/sys/h8500hms/syscalls.c: Likewise.
17547         * libc/sys/m88kbug/syscalls.c: Likewise.
17548         * libc/sys/sh/syscalls.c: Likewise.
17549         * libc/sys/sysmec/sbrk.c: Likewise.
17550         * libc/sys/sysnecv850/sbrk.c: Likewise.
17551         * libc/sys/w65/syscalls.c: Likewise.
17552         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
17553
17554 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
17555
17556         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
17557         emulated syscall instead of "trap".
17558
17559 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
17560
17561         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
17562         not trap 0.
17563
17564 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
17565
17566         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
17567
17568 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
17569
17570         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
17571         not "sh".
17572         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
17573         not "d10v".
17574         * libc/sys/tic80/crt0.c: New file for TIc80.
17575         * libc/sys/tic80/Makefile.in: New file for TIc80.
17576         * libc/machine/tic80/Makefile.in: New file for TIc80.
17577
17578 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
17579
17580         * libc/machine/sh/memcpy.S: New file.
17581         * libc/machine/sh/memset.S: New file.
17582         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
17583
17584 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
17585
17586         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
17587         for TIc80.
17588
17589 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
17590
17591         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
17592         the mn10200.
17593
17594 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
17595
17596         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
17597         (patch from andrew@pogo.WV.TEK.COM).
17598
17599 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
17600
17601         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
17602         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
17603
17604 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
17605
17606         * configure.in:  Add cases for "tic80" to set machine_dir,
17607         sys_dir, and syscall_dir.
17608
17609 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
17610
17611         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
17612
17613 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
17614
17615         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
17616
17617 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
17618
17619         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
17620         Use proper constant prefix.
17621
17622 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
17623
17624         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
17625         that loses on the mn10200 where ints and pointers are different
17626         sizes.
17627
17628 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
17629
17630         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
17631         target as signal is provided in winsup.
17632
17633 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
17634
17635         * libc/include/sys/process.h: Corrected const definitions
17636         in spawn functions. Added cwait.
17637
17638 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
17639
17640         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
17641         doubles.
17642         * libc/include/sys/config.h: Similarly.
17643
17644 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17645
17646         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
17647         target_cflags.
17648         (i[3456]86-*-sco*): Ditto.
17649
17650         * libc/signal/Makefile.in (OFILES): Add signal.o.
17651         (CFILES): Add signal.c.
17652
17653         * libc/signal/raise.c (_raise_r): Only compile code if
17654         SIGNAL_PROVIDED is defined.
17655
17656         * libc/signal/signal.c: Redo whole file so that it works with
17657         current newlib.  Use _kill_r if no signal handler provided.
17658
17659         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
17660         signal stubs.
17661         * libc/sys/sysvnecv70/Makefile.in: Ditto.
17662         * libc/sys/sysnecv850/Makefile.in: Ditto.
17663
17664         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
17665         * libc/sys/sysmec/{raise,signal}.c: Ditto.
17666         * libc/sys/sysvnecv70/signal.s: Ditto.
17667         * libc/sys/sysnecv850/raise.c: Ditto.
17668
17669         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
17670         simulator and debugger can tell the difference between a signal
17671         being raised and an exit system call.
17672
17673         * NEWS: Document software signals being provided.
17674
17675 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17676
17677         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
17678         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
17679         include/sys/config.h.
17680         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
17681         Change from 'inpure_data'.
17682         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
17683         &impure_data, not &inpure_data.
17684
17685         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
17686         and and System V ABI, define so that _impure_ptr lives in the
17687         .sdata section.
17688
17689 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17690
17691         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
17692         nothing if not defined.
17693         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
17694         its attributes.
17695
17696         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
17697
17698 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
17699
17700         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
17701         * libc/sys/sysmec/trap.s: Handle mn10200 too.
17702         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
17703
17704 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
17705
17706         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
17707
17708 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
17709
17710         * libc/include/sys/errno.h: Added net errno's.
17711
17712 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17713
17714         * libc/misc/ffs.c: New file to support ffs function for GCC test
17715         gcc.c-torture/execute/960909-1.c.
17716
17717         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
17718
17719 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
17720
17721         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
17722         * libc/sys/sysmec/trap.S: Likewise.
17723
17724 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
17725
17726         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
17727         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
17728
17729 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
17730
17731         * libc/sys/sysmec/signal.c: Dummy file.
17732         * libc/sys/sysmec/Makefile.in: Build it.
17733
17734 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
17735
17736         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
17737         mips16.
17738
17739 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
17740
17741         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
17742         c-startup and simulator traps.
17743
17744
17745         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
17746         * libc/sys/sysmec/trap0.S: Likewise.
17747
17748 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17749
17750         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
17751         round to double word alignment.
17752         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
17753         byte alignment.
17754
17755         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
17756
17757         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
17758         out of memory.
17759
17760 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
17761
17762         * configure.in: Handle mn10200 and mn10300.
17763         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
17764         * libc/include/sys/config.h: Likewise.
17765         * libc/sys/sysmec: New directory for mec stuff.
17766         * libc/machine/mn10300: New directory for mn10300 stuff.
17767         * libc/machine/mn10200: Similarly for mn10200 stuff.
17768
17769 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
17770
17771         * libc/sys/arm/crt0.S: Use .text, not .section .text.
17772         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
17773
17774         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
17775         (nlink_t): Change type from unsigned int to unsigned short.
17776         (mode_t): Ensure size is 32 bits even if int is 16.
17777         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
17778         (st_spare[123]): Change type from int to long.
17779
17780 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17781
17782         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
17783         byte boundary.
17784
17785         * configure.in (d10v*): Define SMALL_MEMORY.
17786
17787 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17788
17789         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
17790         -mrelocatable-lib and -mno-eabi flags.
17791
17792 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
17793
17794         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
17795         Fix handling of mis-aligned source operand when both the
17796         destination & length are properly aligned.
17797
17798 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
17799
17800         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
17801         times.o, time.o and gettime.o
17802         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
17803         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
17804         SYS_gettimeofday.
17805
17806 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
17807
17808         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
17809         * libc/sys/sysnecv850/access.c: New file.
17810
17811 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
17812
17813         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
17814
17815         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
17816         long.
17817
17818 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
17819
17820         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
17821
17822 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
17823
17824         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
17825         * libc/include/sys/config.h: Add m32r support.
17826
17827 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
17828
17829         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
17830         here.
17831
17832 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
17833
17834         * libc/include/machine/setjmp.h: Add D10v support.
17835
17836 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
17837
17838         * configure.in: Configure the "libc/syscalls" directory for
17839         the v850.
17840
17841         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
17842         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
17843         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
17844         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
17845         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
17846
17847 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
17848
17849         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
17850         stack for args for main and other routines.  Zero out args for
17851         main.
17852
17853         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
17854         correctly.
17855
17856 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17857
17858         * libc/stdio/findfp.c (std): Remove extraneous ';' after
17859         function.
17860
17861         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
17862
17863         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
17864         real system calls now.
17865
17866         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
17867         before casting them to int.
17868         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
17869
17870         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
17871         aligning pointer.
17872         * libc/string/memset.c (memset): Ditto.
17873
17874         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
17875         first convert ints to _POINTER_INT to eliminate GCC warning.
17876
17877         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
17878         processing %p.
17879
17880         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
17881         from 65000 if ints are only 16 bits.
17882
17883         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
17884         from 50000 if ints are only 16 bits.
17885
17886         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
17887         int type that is the same size as a pointer.
17888
17889         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
17890         processing %p.
17891         (get_number): Explicitly cast number to long before shifting by 16
17892         or 24, in case ints are short.
17893
17894         * libc/include/sys/config.h (_POINTER_INT): Define as short.
17895
17896 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
17897
17898         * libc/string.h: Added ffs, removed swab.
17899         * libc/sys/errno.h: Added EOPNOTSUPP.
17900         * libc/sys/unistd.h: Added swab.
17901
17902 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
17903
17904         * libc/include/sys/stat.h: Added fchmod.
17905         * libc/include/sys/unistd.h: Added fsync.
17906
17907 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
17908
17909         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
17910         and ECONNRESET (104) for cygwin32.
17911
17912 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
17913
17914         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
17915         do the static destructors.
17916
17917 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
17918
17919         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
17920
17921 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
17922
17923         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
17924         * configure.in: Recognize m32r-*-*.
17925
17926 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
17927
17928         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
17929         __rt_stkovf_split_small): Added default software stack overflow
17930         handlers, which just call SWI_Exit.
17931         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
17932         limit initialisation.
17933
17934 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
17935
17936         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
17937
17938 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
17939
17940         * libc/include/sys/types.h: Added ssize_t definition.
17941
17942 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17943
17944         * libc/machine/d10v/setjmp.S: Use ';' for comments.
17945         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
17946
17947         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
17948         branch around a single ldi instruction.
17949
17950         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
17951         Call exit, instead of just issuing a stop instruction.
17952
17953 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17954
17955         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
17956
17957 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17958
17959         * libc/stdlib/mprec.h: Explicitly declare all large constants as
17960         longs, and then cast them to __uint32_t.
17961
17962         * libc/include/sys/config.h: Protect against multiple inclusions.
17963
17964 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
17965
17966         * configure.in (d10v*): Set syscall_dir.
17967
17968 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
17969
17970         * libc/sys/d10v/crt0.S: Set stack pointer.
17971
17972 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
17973
17974         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
17975         in assembly for efficiency.  Change calling convention to allow
17976         long ints to be returned.
17977
17978 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17979
17980         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
17981
17982 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
17983
17984         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
17985         Handle empty entries in $PATH.
17986
17987 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
17988
17989         * libc/machine/d10v/setjmp.S: Make it really work.
17990
17991 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
17992
17993         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
17994         the .stack section.
17995
17996 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
17997
17998         * sys/sysnecv850/sys/file.h: Remove.
17999         * sys/sysnecv850/sys/syscall.h: New file.
18000         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18001         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18002         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18003         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18004         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18005         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18006         * sys/sysnec850/trap.S: New file.
18007         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18008         syscalls.
18009         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18010         * sys/sysnec850/sbrk.c: New version.
18011
18012 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18013
18014         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18015         as long as r6 is less than r7.
18016
18017 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18018
18019         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18020         remove *.a or targ-include.
18021         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18022
18023 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18024
18025         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18026         d10v.
18027         (__SMALL_BITFIELDS): Ditto.
18028
18029         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18030
18031 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18032
18033         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18034         prefix.
18035
18036         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18037         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18038         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18039         * libc/sys/sysnecv850/write.c (write): Likewise.
18040
18041         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18042         .bss.
18043
18044 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18045
18046         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18047         appropriately for D10V, depending on -mint16/-mint32.
18048
18049 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18050
18051         * configure.in: Add cases for D10V.
18052
18053 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18054
18055         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18056
18057 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18058
18059         * libc/include/machine/ieeefp.h: Fix typo.
18060
18061 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18062
18063         * libc/sys/d10v: New directory for D10V stuff.
18064         * libc/include/machine/ieeefp.h: Add D10V defines.
18065
18066 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18067
18068         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18069         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18070         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18071         * libc/string/strerror.c (strerror): Add them.
18072
18073 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18074
18075         * libc/sys/sysnecv850: New directory for v850 stuff.
18076
18077         * libc/machine/v850: New directory for v850 stuff.
18078         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18079
18080         * configure.in: Add support for the v850.
18081
18082         * libc/include/machine/ieeefp.h: Add v850 defines.
18083         * libc/include/machine/setjmp.h: Likewise.
18084         * libc/include/sys/config.h: Add v850 defines.
18085
18086 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18087
18088         * libc/include/machine/ieeefp.h
18089         * libc/include/machine/setjmp.h
18090         * libc/include/sys/fcntl.h
18091         * libc/include/sys/signal.h
18092         * libc/include/sys/types.h
18093         * libc/stdlib/system.c:
18094         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18095         API availability, __CYGWIN32__ for cygwin32 environment specific).
18096
18097 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18098
18099         * libc/include/stdlib.h: add multibyte character functions.  Add
18100         __eprintf for assert.
18101
18102 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18103
18104         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18105         arithmetic or __alignof__ to properly get the alignment, instead
18106         of hardwiring it to 4.
18107
18108 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18109
18110         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18111         on append stream (fix from NetBSD sources), adjust curoff offset
18112         for ungetc's benefit.
18113         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18114         * libc/stdio/rewind.c: replace code with up to date NetBSD
18115         code to undo hacks made to work around above problem of not
18116         having fflush call mentioned above
18117
18118 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18119
18120         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18121         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18122         Partially revert last changes.  The thread specific errno is set
18123         iff if the underlying syscall fails and the global errno is not
18124         zero.
18125
18126 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18127
18128         * libc/reent/filer.c: Removed files, all functions have split out
18129         into their own files.
18130         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18131         New files containing functions formally in filer.c
18132         * libc/reent/Makefile.in: Updated for above change.
18133
18134         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18135         syscall fails, not if errno is changed.
18136         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18137         _write_r): Likewise.
18138         * libc/reent/fstatr.c (_fstat_r): Likewise.
18139         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18140         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18141         * libc/reent/signalr.c (_kill_r): Likewise.
18142         * libc/reent/statr.c (_stat_r): Likewise.
18143         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18144
18145         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18146         signalr.c, statr.c, timer.c} (errno): declare extern rather
18147         than as a common.
18148
18149         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18150         instead of calling vfprintf so that i*printf will not require
18151         floating point support code.
18152
18153 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18154
18155         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18156         path delimiter.
18157         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18158         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18159
18160 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18161
18162         * libc/include/signal.h: _sig_func_ptr function takes an int
18163         * libc/include/sys/signal.h: sa_handler function takes an int
18164
18165 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18166
18167         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18168         * libc/include/sys/config.h: Add missing H8/S conditional.
18169
18170 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18171
18172         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18173
18174 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18175
18176         * libc/include/machine/setjmp.h: Handle H8/S.
18177         * libc/include/machine/ieeefp.h: Likewise.
18178         * libc/include/sys/config.h: Likewise.
18179         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18180         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18181         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18182         * libc/sys/h8300hms/crt0.S: Likewise.
18183
18184 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18185
18186         * Makefile.in (datadir): Set to $(prefix)/share.
18187         (oldincludedir, docdir): Removed.
18188         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18189         (oldincludedir, docdir): Removed.
18190         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18191         (oldincludedir, docdir): Removed.
18192         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18193         (oldincludedir, docdir): Removed.
18194
18195 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18196
18197         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18198         _reent struct.
18199
18200 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18201
18202         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18203         fetch current path rules with sysconf and handler posix/win32
18204         appropriately.
18205
18206         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18207
18208         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18209         (WAIT_CHILD): Always define.
18210
18211 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18212
18213         * libc/stdlib/eprintf.c: New file.
18214         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18215         (eprintf.o): New target.
18216
18217 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18218
18219         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18220         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18221
18222 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18223
18224         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18225         NT in PowerPC endianess cases.
18226
18227 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18228
18229         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
18230
18231 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18232
18233         * libc/string/strtok.c: Fix doc typo.
18234
18235 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18236
18237         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
18238         _next, _scanpoint, _signgam fields.
18239
18240         * libc/include/stdlib.h (rand_r): Added new declaration.
18241         (_rand_r, _srand_r): Removed declarations.
18242         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
18243         have been made obsolete by rand_r.
18244         * libc/stdlib/rand_r.c: New file, rand_r function as specified
18245         by POSIX.1c.
18246
18247         * libc/string/strtok.c: Update documentation to describe
18248         strtok_r().
18249
18250 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
18251
18252         * libc/include/sys/stat.h (stat structure): Use the expanded stat
18253         structure on Solaris, and PowerPC systems even though __svr4__ is
18254         defined.
18255
18256 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18257
18258         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
18259
18260 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
18261
18262         * host/any: Use ../.. rather than .. to get to the main build
18263         directory.  This matches the current layout of the build
18264         directory.
18265
18266 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
18267
18268         * libc/machine/h8300/__main.S: Delete.  No longer needed.
18269         * libc/machine/h8300/Makefile.in: Corresponding changes.
18270         * libc/sys/h8300hms/crt1.c: New file.
18271         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
18272         * libc/sys/h8300hms/crt0.s: Call __main.
18273
18274         * libc/sys/h8300hms/crt0.S: Use temporary label names
18275         for branch targets.
18276
18277 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
18278
18279         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
18280
18281 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18282
18283         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
18284         .sdata on the PowerPC so that we can link newlib with code
18285         compiled with -msdata.
18286
18287 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
18288
18289         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
18290
18291 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
18292
18293         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
18294         exception handler to __cygwin_exception_handler.
18295
18296 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
18297
18298         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
18299
18300 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
18301
18302         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
18303         SunOS VPATH.
18304         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
18305         wcstombs.o): Likewise.
18306
18307 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
18308
18309         * libc/stdlib/environ.c (initial_env): New static local.
18310         (environ): Point to `initial_env'.
18311
18312         * libc/include/machine/setjmp.h: Clean up.
18313         (__H8300H__,__PPC__): Define _JBTYPE.
18314         (__arm__): Provide entry for.
18315         (sigjmp_buf): Delete.
18316         (jmp_buf): Use _JBTYPE if defined, otherwise int.
18317
18318 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
18319
18320         * libc/machine/h8300/strcmp.S: Sign extend the result to
18321         32bits so we don't lose with -mint32.
18322
18323 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
18324
18325         * libc/sys/go32/sys/errno.h: New file.
18326         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
18327         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
18328         errno's address (make compatible with rest of newlib).
18329         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
18330         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
18331
18332 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18333
18334         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
18335         * libc/machine/sparc/Makefile.in: Build them.
18336         * libc/machine/sparc/machine/sparclet.h: New file.
18337
18338 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18339
18340         * libc/machine/sh/asm.h: New file.
18341         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
18342         support for SH3e's FP registers.  Use asm.h.
18343
18344 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
18345
18346         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
18347         as first argument.  Call _dtoa_r and pass the reent structure
18348         instead of calling __dtoa.
18349
18350 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
18351
18352         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
18353         the h8300, h8500, and others.  Add comments for some rather
18354         dubious code.
18355
18356 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
18357
18358         * Makefile.in (check): Check that testsuite exists before cd.
18359
18360 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18361
18362         * libc/include/string.h (strsep): Correct prototype.
18363
18364 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
18365
18366         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
18367         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
18368         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
18369
18370 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
18371
18372         * libc/posix/{creat.c,isatty.c}: New files.
18373         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
18374
18375         * libc/sys/sparc64/crt0.S (environ): Delete.
18376         (.LHaveBias): Renamed from HaveBias.
18377
18378 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
18379
18380         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
18381         (_morecore_r): Delete SBRK_IS_ALLOC support.
18382
18383 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18384
18385         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
18386         module rather than touch, so we don't get warning messages when
18387         all of the libraries are combined into libc.a.
18388
18389 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
18390
18391         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
18392         crt0.s replaced by version in libgloss.
18393
18394 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18395
18396         * libc/reent/Makefile.in (OFILES): Add impure.o.
18397         * libc/reent/impure.o: New file, define initial reentrancy struct.
18398         * libc/reent/reent.c: Remove above definition.
18399
18400         * libm/math/sf_asinh.c: Fix typo.
18401
18402         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
18403         srf_ldexp.o.
18404
18405         * libm/libm.texinfo: Change documentation to reflect changes
18406         in reentrancy model.
18407         * libm/math/w_gamma.c: Likewise.
18408
18409 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18410
18411         * configure.in (*-*-cygwin32): New.
18412         (*-*-win32): Deleted.
18413         * libc/sys/win32 renamed libc/sys/cygwin32.
18414
18415 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18416
18417         * libc/include/sys/file.h: New include file.
18418
18419 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18420
18421         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
18422
18423 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18424
18425         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
18426
18427 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18428
18429         * doc/makedoc.c (realloc): Declare at file scope.
18430         (catchar): Not here.
18431
18432 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
18433
18434         * Makefile.in (VERSION): Update to 1.7.0.
18435         * {libc,libm}/Makefile.in (VERSION): Likewise.
18436         * configure.in: Minor clean up of multilib stuff.
18437
18438         From David Johnson <davidj@ICSI.Berkeley.EDU>
18439         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
18440
18441         * libc/stdlib/environ.c: New file.
18442         * libc/stdlib/Makefile.in (OFILES): Build it.
18443         * libc/sys/h8500hms/crt0.c (environ): Deleted.
18444         * libc/sys/m88kbug/crt0.c (environ): Deleted.
18445         * libc/sys/z8ksim/crt0.c (environ): Deleted.
18446         * libc/sys/netware/environ.c: Deleted.
18447
18448 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
18449
18450         * configure.in (links): set sys_dir, posix_dir, syscall_dir
18451
18452 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18453
18454         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
18455         declaration out to external scope and declare it PTR, not char *.
18456
18457 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
18458
18459         * libc/include/sys/unistd.h (getpagesize): New declaration.
18460         (_SC_PAGESIZE): New definition.
18461         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
18462         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
18463
18464 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
18465
18466         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
18467         addressing. System call returns size, not (last address + 1).
18468
18469 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18470
18471         * libm/math/*.c: Removed _foo_r() reentrancy API.
18472         * libc/include/math.h: Removed _foo_r prototypes and macros.
18473
18474         * libm/math/*.c: On systems with IEEE single precision "doubles"
18475         move foo() -> foof() wrapper code from the files that implement
18476         the standard IEEE double precision functions to the files that
18477         implement IEEE single precision functions. (ie. On those systems
18478         sin is moved from s_sin.c to sf_sin.c).  There should eventually
18479         be use of a C extension (like gcc's alias attribute) so that the
18480         wrappers are not needed at all.
18481
18482         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
18483         strict NEC V810 compiler.
18484         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
18485         for same reason.
18486
18487 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18488
18489         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
18490         from NetBSD C library.
18491         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
18492
18493         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
18494         and adapted from implementation I wrote for NetBSD C library.
18495         The difference is __assert doesn't take a format argument,
18496         so that there won't be multiple copies of the same string
18497         constant in the executable if assertions are enabled in
18498         more than one source module.
18499         * libc/include/assert.h (assert): Changed to call __assert.
18500
18501 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18502
18503         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
18504         word1 on systems with 32 bit doubles.
18505         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
18506         so that we can do arithmetic on them.
18507         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
18508         compilers.
18509
18510 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
18511
18512         * libc/sys/arm/crt0.S: Zero bss.
18513
18514 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
18515
18516         * libc/include/unctrl.h: New file.
18517         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
18518         * configure.in (subdirs): Add libc/misc.
18519         * libc/Makefile.in (SUBDIRS): Add misc.
18520         (SUBLIBS): Add misc/lib.a.
18521
18522         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
18523
18524 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
18525
18526         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
18527         (_vfprintf_r): Call CHECK_INIT.
18528
18529 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
18530
18531         * Makefile.in (MULTITOP): Delete.
18532         (MULTISRCTOP, MULTIBUILDTOP): Add.
18533         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
18534         instead of cfg-ml-pos.in.
18535
18536 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18537
18538         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
18539         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
18540         presence.
18541
18542 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
18543
18544         * libc/string/strtok.c: Include string.h to pick up strtok_r
18545         prototype.
18546
18547 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18548
18549         * libc/string/strtok.c: include <_ansi.h>.
18550         * libc/time/asctime_r.c: `reresult' -> `result'.
18551
18552 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18553
18554         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
18555         in #ifndef _REENT_ONLY ... #endif conditional.
18556
18557         * libc/include/string.h (_strtok_r): Remove declaration.
18558         * libc/include/time.h (_asctime_r): Remove declaration.
18559         * libc/string/strtok.c (_strtok_r): Removed.
18560         * libc/time/asctime.c (_asctime_r): Removed.
18561
18562         * libc/string/Makefile.in (OFILES): Add new object.
18563         * libc/string/strtok_r.c: New file.  strtok_r function as
18564         specified by POSIX.1c, adapted from strtok implementation
18565         from NetBSD C library.
18566         * libc/string/strtok.c (strtok): Reimplemented in terms of
18567         strtok_r.
18568
18569         * libc/time/Makefile.in (OFILES): Add new objects.
18570         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
18571         New files, reentrant time functions specified by POSIX.1c.
18572         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
18573         reentrant time functions re-written in terms of reentrant
18574         functions.
18575         * libc/time/lcltime.c: Renamed from localtime.c
18576
18577         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
18578         gmtime_r, and localtime_r.
18579
18580 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
18581
18582         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
18583         * libc/include/sys/unistd.h (getlogin): Revert change of
18584         Oct 19.
18585         * libc/include/sys/signal.h (sigprocmask): Change prototype
18586         so it compiles with c++.
18587
18588 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
18589
18590         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
18591         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
18592         to give some room in case we need to align the jmp_buf.
18593
18594         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
18595         the new ppc-asm.h include file the compiler provides to specify
18596         function prologue/epilogue.  Eliminate saves of the xer and ctr
18597         registers, which are volatile.  Before starting to save registers,
18598         align to 8 byte boundary.
18599
18600 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18601
18602         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
18603         referenced by standard libraries.
18604
18605 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
18606
18607         * libc/unix/Makefile.in, libc/string/Makefile.in,
18608         libc/stdio/Makefile.in, libc/reent/Makefile.in,
18609         libc/posix/Makefile.in:
18610         Remove tabs from otherwise empty line.  Confuses some
18611         older non-GNU versions of "make".
18612
18613 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18614
18615         * libc/sys/unistd.h (getlogin): Returns const char *.
18616
18617 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
18618
18619         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
18620         * libc/include/errno.h: Moved into and include...
18621         * libc/include/sys/errno.h: New file.
18622         * libc/include/sys/wait.h: New file.
18623         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
18624         * libc/sys/win32/*: Moved out.
18625         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
18626         * configure.in (i[345]86-*-win32): HAVE_RENAME
18627
18628 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
18629
18630         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
18631         avoid macro expansion for these two names.
18632
18633 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
18634
18635         * libc/machine/h8500/psi.S: r6 renamed to fp.
18636
18637 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18638
18639         * configure.in (powerpc*): No longer need to define
18640         NO_LONGLONG_POINTERS to supress warnings.
18641
18642 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18643
18644         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
18645         through PTR instead of directly.
18646
18647         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
18648         non-standard constructor support.
18649
18650 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18651
18652         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
18653         address of the Bigint instead of the address of its _x field,
18654         as the size the result buffer was calculated accordingly.
18655         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
18656
18657         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
18658         from NetBSD C library.  No longer special cases division by
18659         zero (which needs to be done by the application anyway), but
18660         it doesn't need to call abs() (or labs()) four times either.
18661
18662         * libc/stdlib/qsort.c: Replaced with implementation from
18663         NetBSD C library.
18664
18665 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18666
18667         * libc/stdio/vfprintf.c: Replaced with implementation from
18668         NetBSD C library (which is derived from the 4.4BSD C library).
18669         * libc/stdio/cvt.c: Removed.
18670         * libc/stdio/Makefile: Updated.
18671
18672 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
18673
18674         * libc/sys/win32/syscalls.c (rename): New.
18675         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
18676
18677 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18678
18679         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
18680         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
18681
18682         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
18683         (setjmp.o): Delete rule to build setjmp.o.
18684         * libc/sys/sh/setjmp.S: Delete file.
18685
18686 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18687
18688         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
18689         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
18690         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
18691         pow5mult and s2b to identifiers with leading underscores.
18692         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
18693         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
18694
18695 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
18696
18697         * libc/sys/posix/popen.c (sys/types.h): Include.
18698
18699 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
18700
18701         * libc/sys/win32/syscalls.h (fhandler): New struct.
18702         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
18703         (__fhandler_normal): Declare.
18704         (hinfo): New member op_handlers.
18705         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
18706         (__write): Likewise.
18707         (_read, _write, _open, _close, _lseek): Validate fd here.
18708         Move file type specific stuff to foo_normal.
18709         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
18710         New functions.
18711         (__lookup_fhandler): New function.
18712         (__lookup_fhandler_hook, __fhandler_normal): New variables.
18713
18714         From anders.blomdell@control.lth.se (Anders Blomdell)
18715         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
18716         Don't touch standard handles.
18717         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
18718         (_execve): Only create __FD_TABLE__ if necessary.
18719         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
18720
18721 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
18722
18723         * libc/sys/win32/sys/termios.h (FLUSHO): New.
18724         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
18725         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
18726         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
18727         without a handler is received.
18728         * libc/sys/win32/Makefile.in: Remove --nodelete.
18729         * libc/sys/win32/resouce.c (gettimeofday): New.
18730         * libc/sys/win32/syscalls.c (path_to_real_path): New.
18731         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
18732
18733 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
18734
18735         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
18736         Don't append "/*" to search pattern if trailing '/' already there,
18737         append "*".
18738         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
18739         like /'s, convert them to \'s.  Handle //<drive>/ path names.
18740         Add space for quoted \'s in arg string.  Print translated prog name
18741         and original prog name.
18742         (_execve): Handle parent doing exec a teensy bit better.
18743         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
18744         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
18745         path needs conversion, handle both cases.  Delete `const' from result.
18746         (hash_path_name): New function.
18747         (_open): Call it.
18748         (_stat): Likewise.  Fill in more fields for directories.
18749         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
18750         (wait_for_any): Fix trace message.
18751         (waitpid): Explicitly test for intpid == 0.
18752
18753         From anders.blomdell@control.lth.se (Anders Blomdell)
18754         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
18755         so `next' is valid.
18756
18757 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
18758
18759         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
18760         complicated.
18761
18762 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
18763
18764         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
18765         at all, not just == 1.
18766         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
18767
18768 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
18769
18770         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
18771         * libc/sys/win32/include/wintypes.h: include <winnt.h>
18772         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
18773         file.
18774
18775 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18776
18777         * libc/sys/syscalls.c (getcwd): Fix off by one error.
18778
18779         * libc/sys/signal.c (sleep): Fill it in.
18780         * libc/sys/termios.c (tcflush): Use PurgeComm
18781         (tcsetattr): Set some more of the bits.
18782         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
18783
18784 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
18785
18786         * libc/sys/arm/crt0.S (fp): Initialize to 0.
18787         Conditionally include .idata$3 stuff ifdef __pe__.
18788
18789 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18790
18791         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
18792         * libc/sys/win32/pipe.c (pipe): Ditto.
18793         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
18794         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
18795         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
18796         (tcgetattr): Contents are new.
18797         * libc/sys/win32/include/winkernel.h (DCB): New.
18798         (GetCommState, SetCommState): New.
18799
18800 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
18801
18802         * libc/sys/arm/crt0.S (_start): Define.
18803
18804 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
18805
18806         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
18807         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
18808
18809         * libc/sys/win32/sysconf.c: New
18810         * libc/sys/win32/sys/winadvapi.h: New
18811         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
18812         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
18813         * libc/sys/win32/pipe.c (pipe): Ditto.
18814         * libc/sys/win32/signal.c (_raise): New.
18815         (_kill): Moved from spawn.c
18816         * libc/sys/win32/spawn.c (kill): Moved to signal.c
18817         * libc/sys/win32/syscalls.c (__read): Use new fields.
18818         (_open): Ditto.
18819         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
18820         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
18821         * libc/include/sys/unistd.h (rmdir): Takes const path.
18822         * libc/include/sys/stat.h (mkdir): Takes const path.
18823         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
18824
18825 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18826
18827         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
18828
18829         Add support for specifying paths as //<drive>/foo/bar.
18830         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
18831         (__path_to_real_path): Declare.
18832         (PATH_TO_REAL_PATH): New macro.
18833         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
18834         (__path_needs_conversion_p, __path_to_real_path): New functions.
18835         (_open): Fix test for error return from CreateFileA.
18836         Handle new path syntax.
18837         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
18838         * libc/sys/win32/dirsearch.c (opendir): Likewise.
18839
18840 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
18841
18842         * libc/sys/win32/include/*.h: Reorganized
18843         * libc/sys/win32/include/WINREADME: New.
18844         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
18845         * libc/sys/win32/*.c: Fix for new include scheme.
18846         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
18847         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
18848         * libc/sys/win32/passwd.c (*): Fix.
18849         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
18850         (_stat): Get directory owner and permissions right.
18851         * libc/sys/win32/syscalls.h (uinfo): New.
18852         * libc/sys/win32/version.def: Remove leading underscores.
18853
18854 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18855
18856         * libc/sys/win32/key.c: include "include/wincon.h".
18857
18858 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
18859
18860         * libc/sys/win32/{key, stubs}.c: New.
18861         * libc/sys/win32/Makefile: Adjust to cope.
18862         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
18863         (environ_init): Change env names to upper case.
18864         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
18865         * libc/sys/win32/passwd.c (*): Fill in the functions.
18866         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
18867         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
18868         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
18869         (_open): Initialze hmap->execable_p too.
18870         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
18871         (_fstat): Fill in permissions.
18872         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
18873
18874 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18875
18876         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
18877         if defined.
18878         (cfg-ml-pos.in invocation): Likewise.
18879
18880 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18881
18882         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
18883         s_isnan.o and sf_isnan.o.
18884
18885 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
18886
18887         * All Makefile.in files: added maintainer-clean target as a
18888         synonym for realclean.
18889
18890 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
18891
18892         * libc/include/machine/setjmp.h: Add hppa support.
18893         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
18894         support.
18895         * libc/machine/hppa/Makefile.in: Related changes.
18896
18897 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
18898
18899         * configure.in (machine_dir): Don't set for v810-*-*.
18900
18901 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18902
18903         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
18904         conventions correctly.
18905
18906 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
18907
18908         * libc/stdio/puts.c: Update documentation of return value to match
18909         ANSI standard.
18910
18911 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
18912
18913         Fix file descriptor inheritance.
18914         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
18915         (NOT_OPEN_FD): Fix.
18916         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
18917         close-on-exec flag not set.  Initialize child's entire fd table.
18918         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
18919         CHILD_P.
18920         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
18921         if CHILD_P.  Initialize entire hmap entry.
18922         (dup): Only create new handle as inheritable if CHILD_P.
18923         (dup2): Likewise.  Properly initialize hmap entry.
18924
18925         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
18926         _spawn.
18927         (_exit): Use CHILD_P.
18928         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
18929         (_stat): Likewise.
18930
18931 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18932
18933         * libc/sys/win32/crt0.c (passover): fix up the state table.
18934         * libc/posix/popen.c: Added.
18935         * libc/posix/Makefile.in: compile popen.c.
18936
18937 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
18938
18939         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
18940         h8/500 define _DOUBLE_IS_32BITS.
18941
18942 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
18943
18944         Get vfork/exec/spawn/cwait/wait working again.
18945         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
18946         (procinfo): New member vfork_level.
18947         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
18948         (vfork_init_first): Use GetCurrentProcessId to get pid.
18949         Initialize vfork_level.
18950         (vfork_init): Delete __PID__.
18951         (environ_init): New function.  Undo patch of Aug 19, Posix says
18952         environment variables are case sensitive.
18953         (mainCRTStartup): Call it.
18954         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
18955         (my_longjump: Make static.
18956         (_spawn): New argument `h'.  Delete setting of __PID__.
18957         Delete local `idx'.  Look for chars that need quotes, rather than
18958         ones that don't.  Set handle of created process in `h'.
18959         Result is process id if created task.
18960         (allocate_spawn_entry): New function.
18961         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
18962         (_execve): Set __FD_TABLE__ before spawning child.
18963         Scan our fd table when passing fds, not our parent's.
18964         Store handle and pid in procinfo entry.
18965         (vfork0): Ensure strace message always printed.
18966         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
18967         (vfork): Don't clobber result of vfork0.
18968         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
18969         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
18970
18971         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
18972         and `exit_code'.
18973         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
18974         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
18975         adding vfork level to pseudo-pid.
18976         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
18977         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
18978         (_exit): If child, set exit code.
18979         (__vfork_record_death): Only close process handle if valid.
18980         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
18981         didn't exec.
18982         (wait_for_any): Likewise.  Start scan after root entry.
18983
18984 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
18985
18986         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
18987         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
18988         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
18989         of actual file length.
18990
18991         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
18992         * libc/include/paths.h: _PATH_BSHELL added.
18993         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
18994         and STDERR_FILENO.
18995
18996 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
18997
18998         * libc/include/ar.h: Added.
18999         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19000         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19001         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19002         on filename.
19003         (_fstat): use .namehash for inode number of the fd.
19004
19005 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19006
19007         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19008          Change hinfo to __this_procinfo.
19009         * libc/sys/win32/crt0.c: Remove procinfo_list.
19010
19011 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19012
19013         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19014         win32 environment.
19015
19016 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19017
19018         * libc/sys/win32/include/grp.h: Removed.
19019         * libc/sys/include/grp.h: Added.
19020         * libc/sys/win32/grp.c: Include <grp.h>.
19021
19022 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19023
19024         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19025         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19026         Defined for all but strict ANSI.
19027         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19028         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19029         * libc/signal/signal.c (_signal_r): Changed from using
19030         _MAX_SIGNALS to NSIG.
19031         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19032          __hmap): Deleted.
19033         (__strace, __vfork_next_pid): New.
19034         (__exe_suffix): Default to 1.
19035         (passover, table): Understand quoted arguments.
19036         (vfork_init_first): New.
19037         (vfork_init): Initialize new process structure.
19038         (mainCRTStartup): Pass environ to main.
19039         * exceptions.c (__sig_mask): New
19040         (ehandler3): Ignore signals in mask.
19041         (really_exit): Remove CHILD_P test.
19042         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19043         * resource.c (getrusage): Ditto.
19044         * signal.c (sigprocmask): New.
19045         * spawn.c (*): Rewritten.
19046         * syscalls.c (*): Use new process and file structure.
19047         (find_unused_handle): New.
19048         * syscalls.h (MAX_HANDLES): Deleted.
19049         (hinfo): Removed child_created_p.
19050         (MAX_CHILDREN): Deleted.
19051         (vfork_jmp_info, procinfo): New.
19052         * wait.c (*): Mostly new.
19053         * sys/strace.h (_STRACE_PARANOID): New.
19054         * sys/param.h: New file.
19055
19056 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19057
19058         * libc/include/sys/stat.h: add S_BLKSIZE.
19059         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19060         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19061         types under win32.
19062         (mode_t): add a #else to avoid multiple definitons.
19063
19064         * libc/sys/win32/Makefile.in: add grp.c.
19065         * libc/sys/win32/grp.c: include grp.h correctly.
19066         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19067         of the st structure with real information.
19068         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19069
19070 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19071
19072         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19073         and (maybe) sparc64.
19074         (nlink_t): Provide typedef.
19075
19076 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19077
19078         * libc/sys/win32/grp.c: New file.
19079         * libc/sys/win32/include/grp.h: New file.
19080
19081 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19082
19083         * libc/include/machine/ieeefp.h: Added whitespace to make this
19084         file easier to maintain.
19085         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19086         depending on the value of __LITTLE_ENDIAN__.
19087         On the sh3e, define _DOUBLE_IS_32BITS.
19088
19089 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19090
19091         * libc/sys/vr4300/syscalls.c: Added missing support
19092         routines. _raise() and getpid().
19093
19094 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19095
19096         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19097
19098 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19099
19100         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19101         and VR4300 processor.
19102         * libc/sys/vr4300: Add directory.
19103         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19104         monitor run-time support.
19105
19106 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19107
19108         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19109         * libc/stdlib/stdlib.tex: Don't include atol.def.
19110
19111 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19112
19113         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19114
19115 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19116
19117         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19118
19119 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19120
19121         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19122         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19123         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19124         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19125         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19126
19127 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19128
19129         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19130
19131 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19132
19133         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19134         * libc/stdlib/atoff.c: New file.
19135         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19136         * libc/stdlib/atoi.c (atol): Removed.
19137         * libc/stdlib/atol.c: Removed duplicate documentation.
19138
19139         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19140         #ifndef _STRICT_ANSI conditional.
19141         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19142         * libc/ctype/_tolower.c: New file.
19143         * libc/ctype/_toupper.c: New file.
19144         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19145         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19146         * libc/ctype/toascii.c (_toascii): Removed.
19147
19148 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19149
19150         * libc/sys/sparc64/sys/types.h: Deleted.
19151
19152 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19153
19154         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19155         and recognize Windows_95 systems.
19156
19157 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19158
19159         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19160         and passed fds should be opened in text mode.
19161
19162 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19163
19164         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19165         in __hmap, set to binary mode by default.
19166
19167 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19168
19169         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19170         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19171         vector 34.
19172
19173 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19174
19175         * Makefile.in (install): Install all libraries found in the
19176         top level.  If there's a sys/<type>/include directory,
19177         install those headers into include.
19178
19179         * libc/sys/win32/kernel.def351: Delete
19180         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19181         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19182         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19183         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19184         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19185         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19186         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19187         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19188
19189         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19190         * libc/sys/win32/crt0.c: Force all env names to upper case.
19191         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19192         * libc/sys/win32/*.c: Headers have moved.
19193         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19194         __vfork_child_idx is now __vfork_child_ptr.
19195
19196         * posix/execvp (execvp): Don't crash if no PATH envname.
19197
19198 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19199
19200         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19201         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19202         through the _freelist instead of through the _reclaim list.
19203         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19204         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19205         sources.
19206
19207 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19208
19209         * libc/machine/h8500/setjmp.S: New file.
19210         * libc/include/machine/setjmp.h: Updated for H8/500.
19211
19212 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19213
19214         * libc/sys/win32/syscalls.c (_open): More stracing.
19215         (_stat): Open the file in O_BINARY.
19216
19217 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19218
19219         * libc/machine/h8300/setjmp.S: New file.
19220         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19221
19222 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19223
19224         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19225         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19226         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19227         __exe_suffix.  Free fd_tab after setting env variable.
19228         (spawnv,_execve): Update.
19229         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
19230         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
19231         (__small_vfprintf): New function.
19232         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
19233         * libc/sys/win32/wait.c (cwait): Validate argument.
19234
19235         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
19236         (process_deletion_queue): Likewise.
19237
19238         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
19239
19240 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
19241
19242         * libc/sys/win32: Copyrights and gratuitous indenting.
19243
19244 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
19245
19246         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
19247         (process_deletion_queue): Likewise.
19248         (__close_all_files): New function.
19249         (_close): Only queue file deletion if really a file.
19250         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
19251         _P_APPEND_EXE.
19252         (_exit): Call __close_all_files.
19253
19254         * libc/stdlib/system.c: #include <errno.h>.
19255         (_system_r): Fix results in -DNO_EXEC case.
19256
19257         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
19258         Reorganize structure.
19259         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
19260         if argument is valid.  Save directory name in DIR.  malloc space
19261         for dirent struct separately.
19262         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
19263
19264         * libc/include/errno.h (ENAMETOOLONG): Define.
19265         * libc/string/strerror.c (strerror): Reword ENFILE.
19266         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
19267
19268 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
19269
19270         * libc/sys/win32/crt0.c (__progname): New global.
19271         (mainCRTStartup): Support strace=bitmask,filename.
19272         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
19273         * libc/sys/win32/syscalls.c (_write): Print parent trace message
19274         if error.
19275         (getcwd): Handle len too small.  Convert '\\' to '/'.
19276         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
19277         Add prototypes for open, creat, fcntl.
19278         (O_APPEND): Change value to conform to Microsoft's value.
19279         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
19280
19281         * libc/stdlib/getopt.c: New file.
19282         * libc/stdlib/Makefile.in: Build it.
19283
19284 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
19285
19286         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
19287         Fix scanning of $PATH.
19288         * libc/posix/exec*.c: Call _execve, not execve.
19289         * libc/posix/execve.c: New file.
19290         * libc/posix/Makefile.in (OFILES): Add execve.o.
19291
19292         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
19293         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
19294         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
19295         * libc/sys/win32/crt0.c: Update _STRACE calls.
19296         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
19297
19298         * libc/sys/win32/smallprint.c (rn): Fix digit list.
19299
19300         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
19301         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
19302         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
19303         Print __seterrno trace message first.
19304         (_execve): Renamed from execve.
19305         (vfork): Update __strace usage.
19306         (__vfork_child_pid): Deleted.
19307         (__vfork_children, __vfork_child_idx): New globals.
19308         (_spawnvp): New function.
19309         (spawnvp, spawnv, _execve): Call _spawnvp.
19310         (init_child): Record child in __vfork_children.
19311         (__vfork_get_entry, __vfork_record_death): New functions.
19312         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
19313         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
19314         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
19315         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
19316         (children): New typedef.
19317         (__vfork_children,__vfork_child_idx): Declare.
19318         (__vfork_get_entry,__vfork_record_death): Declare.
19319         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
19320         (waitpid): Handle pid == -1.
19321         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
19322         * configure.in (i386-win32): Add -DNO_FORK.
19323         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
19324         * libc/reent/execr.c (_fork_r): Likewise.
19325         * libc/stdlib/system.c (do_system): New function.
19326         If WIN32, try to get shell path from $SH_PATH, use vfork.
19327         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
19328         otherwise return 0.
19329
19330 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
19331
19332         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
19333         * libc/sys/win32/fcntl.h: Don't include self.
19334         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
19335         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
19336         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
19337         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
19338         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
19339         Correct prototypes.
19340         * libc/sys/win32/strace.c: New file.
19341         * libc/sys/win32/smallprint.c: New file.
19342         * libc/sys/win32/crt0.c (func): Delete.
19343         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
19344         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
19345         * libc/sys/win32/exceptions.c: Lint.
19346         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
19347         Clean up handle usage.
19348         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
19349         (open.c): Default file type is text.
19350         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
19351         * libc/sys/win32/advapi32.def: New
19352
19353 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19354
19355         * configure.in (posix_dir, libc_posix_lib): New variables.
19356         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
19357         (i[345]86-*-win32): Define posix_dir.
19358         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
19359         (if unix_dir): Fix typo.
19360         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
19361         scandir,seekdir,telldir}: New files.
19362         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
19363         from libc/unix.
19364         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
19365         (SUBDIRS): Add posix.
19366         (SUBLIBS): Add $(LIBC_POSIX_LIB).
19367
19368         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
19369         (NSIG): Increase to 21.
19370         * libc/include/sys/unistd.h (pid_t): Move from here,
19371         * libc/include/sys/types.h (pid_t): to here.
19372
19373         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
19374         (__ptrace): Delete.
19375         (hinfo): New members close_exec_p, child_created_p.
19376         (struct exception_list): Define.
19377         (__hmap): Redefine as pointer to table.
19378         (__parent_hmap, __child_hmap): New globals.
19379         (__set_errno, __really_exit): Declare.
19380         (__vfork_child_pid): Declare.
19381         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
19382         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
19383         (__parent_hmap, __child_hmap): New globals.
19384         (__hmap): Redefine as pointer to active map.
19385         (__get_console): New function.
19386         (mainCRTStartup): Change leading '=' in environ vars to '!'.
19387         (env __FD_TABLE__): Watch for this and initialize our fd/handle
19388         mapping table from it if defined.
19389         (argv, envp): Dump if __strace >= 4.
19390         (main): Call here.
19391         * libc/sys/win32/exceptions.c (myp): Redefine.
19392         (__syscalls_b): Delete.
19393         (__stack_trace): New function.
19394         (ehandler3): Update to use _STRACE.  Print stack trace.
19395         Call __really_exit instead of exit.
19396         (init_exceptions): Delete args argc,argv.  New arg mine.
19397         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
19398         FindFirstFileA, FindNextFileA, GetComputerNameA,
19399         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
19400         * libc/sys/win32/signal.c (signal): Validate arg.
19401         (alarm, sleep): Define as stubs for now.
19402         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
19403         (__syscalls_b, errno): Delete.
19404         (__vfork_child_pid, __vfork_jmp_buf): New globals.
19405         (__seterrno): Handle more errors.
19406         (__sys_printf): Renamed from _ptrace.
19407         (__really_exit): New function.
19408         (queue_file_deletion, process_deletion_queue): New functions.
19409         (__resume_parent): New function.
19410         (_unlink): Handle trying to delete open file.
19411         (__totime_t): Renamed from totime_t.
19412         (setsid, __read, __write): New functions.
19413         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
19414         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
19415         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
19416         * libc/sys/win32/console.c: Update to new definition of __hmap.
19417         * libc/sys/win32/Makefile.in: Build new files.
19418         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
19419         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
19420         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
19421         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
19422
19423 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19424
19425         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
19426
19427 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19428
19429         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
19430         have been made to the master dtoa.c sources (from netlib.att.com)
19431         since they were integrated into newlib in early 1992.  Fixes
19432         problems with storage leaks and handling of numbers with very
19433         negative exponents.
19434
19435 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19436
19437         * Makefile.in (all): set rootpre and srcrootpre before calling
19438         sub-makes.
19439
19440 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19441
19442         * libc/sys/win32/crt0.c: Change __hmap usage.
19443         * libc/sys/win32/exceptions.c: Use _ptrace call.
19444         * libc/sys/win32/syscalls.c: Use _ptrace call.
19445         (read, write): Cope with DOS style CRLF when in TEXT mode.
19446         * libc/sys/win32/syscalls.h: Declare hinfo struct.
19447         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
19448         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
19449         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
19450         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
19451
19452 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19453
19454         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
19455
19456         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
19457         wrappers for hypot() and remainder() for BSD libm compatibility.
19458         These are public domain implementations written by me for the
19459         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
19460         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
19461         (fobj): Added wf_cabs.o and wf_drem.o.
19462
19463 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19464
19465         * libc/sys/h8500hms/misc.c: New file.
19466         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
19467
19468 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19469
19470         * libc/time/localtime.c (localtime): Fix problem with leap year
19471         handling.  Stole algorithm from Arthur David Olson's tz code.
19472
19473 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
19474
19475         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
19476
19477         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
19478         (_exit): Use argument.
19479
19480 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
19481
19482         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
19483
19484 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19485
19486         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
19487
19488 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19489
19490         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
19491         target_cflags.
19492
19493 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
19494
19495         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
19496         ptrace with case insensitivity
19497         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
19498         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
19499         New files.
19500
19501 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
19502
19503         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19504         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
19505         (all, install, *clean): Use new multilib support.
19506         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19507
19508 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
19509
19510         * libc/include/sys/signal.h (__WIN32__): New.
19511
19512         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
19513
19514         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
19515         (ulp, b2d): Handle 32 bit doubles.
19516         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
19517         * libc/stdlib/strtod.c (_strtod_r): Ditto.
19518
19519 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
19520
19521         from medp@primag.co.uk:
19522         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
19523         dynamically allocated buffers.
19524
19525 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
19526
19527         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
19528         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
19529
19530 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19531
19532         * configure.in (powerpc): Fix previous fix.
19533
19534 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19535
19536         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
19537         directories for this target.
19538
19539 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
19540
19541         * configure.in (hppa): Add machine_dir definition.
19542         * libc/machine/hppa: New directory with PA specific implementations
19543         of the basic memory/string functions.
19544
19545 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19546
19547         * configure.in: Update current PowerPC multilib directories.
19548         Split big and little endian configurations.
19549
19550 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
19551
19552         * configure.in: Add --enable-single-float option to configure to
19553         control use of MIPS single-float directories.  Default to yes.
19554
19555         * Makefile.in (all): Don't recurse into multilib directory if it
19556         does not exist.
19557
19558 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19559
19560         * libc/sys/sh/syscalls.c: Fix typo.
19561
19562 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19563
19564         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
19565         Pass down DLLTOOL.
19566         * libc/include/process.h: Define WAIT_CHILD.
19567         * libc/include/types.h: Get sizes right for win32.
19568         * configure.in (i386-*-pe): Becomes i386-win32.
19569         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19570         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
19571         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
19572         is defined.
19573
19574 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19575
19576         * configure.in (i[345]86-*-pe):  New target (NT).
19577         * host/any: DLLTOOL new.
19578         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19579         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
19580         WIN32 (just enough to cross host the comp-tools).
19581
19582 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
19583
19584         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
19585         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
19586
19587 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
19588
19589         * libc/include/machine/ieeefp.h (arm): Change to always be
19590         __IEEE_BIG_ENDIAN (even on little endian ARM's).
19591
19592 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19593
19594         * libc/sys/crt0.S: Initialze sp, and call exit after main.
19595         * libc/sys/syscalls.c (abort): New.
19596         * configure.in (arm): Define ABORT_PROVIDED.
19597
19598 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19599
19600         * configure.in (powerpc): Define multidirs.
19601
19602 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
19603
19604         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
19605
19606 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
19607
19608         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
19609
19610 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19611
19612         * configure.in, libc/include/machine/ieeefp.h: Modified
19613         for arm:
19614         libc/machine/arm/*, libc/sys/arm/*: New
19615
19616 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19617
19618         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
19619           __powerpc__ when determining endianness.
19620
19621 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19622
19623         * configure.in (m68*): Add multidir for the m68332.
19624
19625         * host/any (CC): Fix typo in last change.
19626
19627 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
19628
19629         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
19630         when determining endianness.
19631         * libc/include/machine/ieeefp.h: Ditto.
19632         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
19633         operands.
19634
19635 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
19636
19637         * libc/include/errno.h (ENOTEMPTY): Define.
19638
19639 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19640
19641         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
19642           target_cflags.
19643
19644         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
19645           and umultiply.o.
19646
19647         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
19648           instead of only when open succeeds.  ANSI requires that multiple
19649           calls to tmpnam() result in different files.
19650
19651         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
19652           objects pulled in from /lib/libc.a that must be renamed before
19653           being pulled into newlib.  /lib/libc.a's div.o conflicted with
19654           newlib's file with the same name.
19655
19656         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
19657
19658         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
19659           the build tree will only be used if the executables are present
19660           (instead of just the Makefiles).
19661
19662         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
19663           wcstombs): Define.
19664         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
19665           versions of these functions that I orignally wrote for the
19666           NetBSD C library.
19667         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
19668           versions I wrote for NetBSD.
19669
19670 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
19671
19672         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
19673         * libc/sys/sparclite/crt0.s: ditto.
19674
19675 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
19676
19677         * configure.in: Add soft-float for proelf.
19678
19679 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
19680
19681         * libc/stdlib/mprec.h (Bcopy): Copy the right number
19682         of bytes.
19683
19684 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
19685
19686         * Makefile.in (all): Depend on `force'.
19687         * configure.in (syscall_dir): Renamed from fake_sys_dir.
19688         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
19689         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
19690         * libc/Makefile.in: Likewise.
19691         * libc/include/reent.h: Update syscall references.
19692         (_fcntl_r): Add prototype.
19693         * libc/syscalls/*.c #include <reent.h>.
19694         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
19695
19696 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
19697
19698         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
19699         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
19700         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
19701         (time.h, sys/types.h): Always include (even if MSDOS).
19702         (stat): Fix prototype.
19703
19704 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
19705
19706         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
19707
19708 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19709
19710         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
19711
19712 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
19713
19714         * libc/include/regdef.h: New file.
19715         * libc/machine/mips/machine/regdef.h: New file.
19716
19717 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
19718
19719         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
19720
19721 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
19722
19723         * libc/sys/sh/crt0.S: Pass main's return to exit.
19724         * libc/sys/sh/trap.S: Put errno in the right place.
19725
19726 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19727
19728         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
19729         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
19730         * libm/math/ef_rem_pio2.c: Likewise.
19731         * libm/math/e_log10.c: Remove unused static one.
19732         * libm/math/ef_log10.c: Likewise.
19733         * libm/math/s_frexp.c: Likewise.
19734         * libm/math/sf_frexp.c: Likewise.
19735
19736 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
19737
19738         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
19739         longjmp.S: Upgraded.
19740         * libc/sys/go32/sys/setjmp.h: Upgraded.
19741         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
19742
19743 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19744
19745         * configure.in: Add many entries to multidirs for mips targets.
19746
19747 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19748
19749         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
19750           5.2 which fixes bug where jn(-1,x) is three times larger than
19751           the actual answer.
19752         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
19753
19754 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
19755
19756         * libc/sys/w65/sys/syscalls.h: New file
19757         * libc/include/machine/ieeefp.h: W65 support.
19758         * libc/include/sys/config.h: Ditto.
19759         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
19760         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
19761         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
19762
19763 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19764
19765         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
19766
19767 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
19768
19769         * Makefile.in, configure.in: Remove any references to the old
19770         "stub" dir.
19771
19772 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19773
19774         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
19775         uses ... in prototype.
19776
19777
19778 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
19779
19780         * libc/sys/a29khif/sys/libconfig.h: Remove.
19781         * libc/sys/go32/sys/libconfig.h: Remove.
19782         * libc/sys/sun4/sys/libconfig.h: Remove.
19783         * libc/sys/sysvi386/sys/libconfig.h: Remove.
19784         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
19785         * libc/sys/sparc64/sys/libconfig.h: Remove.
19786
19787         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
19788         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
19789         * libc/include/math.h: Change all uses of _FLOAT_RET and
19790         _FLOAT_ARG to float.
19791         * libm/test/math.c: Likewise.
19792         * testsuite/libm.sac/math.c: Likewise.
19793         * testsuite/libm.sac/working/math.c: Likewise.
19794
19795 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19796
19797         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
19798         gcc calls gas with endian option.
19799         * configure.in (sh): Build little endian version too.
19800
19801 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19802
19803         * configure.in: Configure big and little endian versions for MIPS
19804         targets.
19805
19806 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
19807
19808         * libc/include/limits.h: Deleted.
19809         * libc/include/machine/limits.h: Deleted.
19810
19811 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
19812
19813         * ChangeLog: Remove stub directory. This has all been rewritten
19814         and moved to devo/libgloss.
19815
19816 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19817
19818         * Makefile.in (dvi): Add to info target, use $@ in sub make.
19819         (docs): Merge into info target.
19820         * libm/Makefile.in (dvi): Add $(srcdir).
19821         * libm/math/Makefile.in (chobjs): Remove underscores from file
19822         names.  Texinfo doesn't like them.
19823         (wacos.def, ...): Add explicit targets for all .def files.
19824         * libm/math/math.tex: Remove underscores from @include file names.
19825         * doc/Makefile.in (dvi): Add dummy target.
19826         * testsuite/Makefile.in (dvi): Add dummy target.
19827
19828 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
19829
19830         * Makefile.in (VERSION): Define.  For net newlib releases.
19831
19832 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
19833
19834         * README: New file.
19835
19836 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19837
19838         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
19839
19840 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19841
19842         * libc/stdlib/setenv.c (_findenv): Declare.
19843
19844         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
19845         fcntl to not use _EXFUN, and change string parameters to open and
19846         creat to be ``const char *''.
19847         * libc/sys/sparc64/sys/fcntl.h: Likewise.
19848         * libc/sys/sparc64/creat.c (creat): Make PATH const.
19849         * libc/syscalls/sysopen.c: Include <fcntl.h>.
19850         (open) Make _FILE const.
19851         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
19852         (_creat): Make PATH const.
19853         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
19854         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
19855         * libc/sys/m88kbug/syscalls.c (open): Likewise.
19856         * libc/sys/sh/syscalls.c (_open): Likewise.
19857         * stub/shared/glue.c (open): Make BUF const.
19858         * stub/ex93x/syscalls.c (open): Make FILENAME const.
19859
19860 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19861
19862         * libc/include/errno.h: Add ENMFILE
19863         * libc/include/sys/config.h: Support Z8000.
19864         * libc/include/sys/signal.h: New signals for go32.
19865         * libc/machine/h8500/psi.S (__addpsir0r0): New function
19866         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
19867         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
19868         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
19869         size is variable, depending upon CHUNK_POWER.
19870         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
19871
19872 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19873
19874         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
19875
19876 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19877
19878         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
19879
19880 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19881
19882         * configure.in: Change i[34]86 to i[345]86.
19883
19884         * libc/include/math.h: Don't define HUGE_VAL if it is already
19885         defined.
19886
19887 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19888
19889         * testsuite/libm.sac/test_erfc.c: Correct some result values.
19890         * testsuite/libm.sac/test_gammaf.c: Likewise.
19891         * testsuite/libm.sac/test_sin.c: Likewise.
19892         * testsuite/libm.sac/test_tanh.c: Likewise.
19893
19894 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19895
19896         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
19897         already set.  Define typedefs __int32_t and __uint32_t.
19898         * libc/include/math.h: Include <machine/ieeefp.h>.
19899         (union __dmath): Use __uint32_t.
19900         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
19901         instead of int and unsigned int.
19902
19903 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19904
19905         Replace the math library with the SunPRO fdlibm package.
19906         * libm/math: Completely changed all files.
19907         * libm/ieeefp: Remove contents and directory.
19908         * libm/Makefile.in (LIBM_FP_LIB): Remove.
19909         (SUBDIRS): Just set to math/lib.a.
19910         * libm/libm.texinfo: Updated for new library.
19911         * libc/include/math.h: Extensive changes for new math library.
19912         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
19913         from _FLOAT_ARG to float.
19914         (maxpowtwo, maxpowtwof): Don't declare.
19915         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
19916         (libm_fp_lib): Removed.
19917         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
19918         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
19919         argument to ${RUNTEST}.
19920         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
19921         (.c.o): New rule.
19922         (RUNTESTFLAGS): Set CC and CFLAGS.
19923         (TESTS): Remove test_log2 and test_log2f.
19924         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
19925         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
19926         _FLOAT_ARG, for single precision argument type.
19927         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
19928         expected failure.  Close the input pipe.
19929         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
19930         Correct misspelling of inaccurate.
19931         (test_mok): Use ``inaccurate'', not ``wrong''.
19932         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
19933         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
19934         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
19935         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
19936         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
19937         test_yn.c): Correct many result values.  Many are still wrong.
19938
19939         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
19940         just copy the string.
19941         (_gcvt): Always return the buffer.
19942
19943 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
19944
19945         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
19946
19947 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
19948
19949         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
19950         structure.
19951         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
19952         (_reclaim_reent): declare new entry point.
19953         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
19954         functions.
19955
19956         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
19957         ever allocated, so that we can later reclaim them all.
19958         (pow5mult): make reentrant.
19959
19960         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
19961         so that when given NULL as a buffer, return a pointer to static
19962         space in the rent structure.  This is not documented behaviour;
19963         it's only to support ecvt and fcvt, which aren't ANSI anyway.
19964         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
19965         therefore become reentrant).
19966
19967         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
19968
19969 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19970
19971         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
19972
19973 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
19974
19975         * Makefile.in: Make link to libg.a after libc.a; this is needed
19976           for the testsuites to build executables when everything comes
19977           from the tree.
19978
19979 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
19980
19981         * libc/Makefile.in: Add a VERSION variable so we can keep track.
19982         * libm/Makefile.in: Add a VERSION variable so we can keep track.
19983
19984 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19985
19986         * libc/include/stdio.h: Use __VALIST, not va_list.
19987
19988 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
19989
19990         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
19991         testsuite/libm.sac/execute.exp:
19992           Replace error proc calls with perror calls.
19993
19994 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
19995
19996         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
19997         * libc/include/time.h: #define NULL as 0L.
19998
19999 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20000
20001         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20002         care of it.
20003
20004 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20005
20006         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20007         not __unix__.
20008
20009 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20010
20011         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20012         (z8k-*-*): Use syscalls fake sys dir.
20013         * libc/sys/z8k/glue.c: Rename syscalls.
20014         * libc/sys/go32/Makefile.in: Use new routines.
20015         * libc/machine/Makefile.in: Fix typo in ln stuff.
20016
20017 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20018
20019         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20020         * libc/Makefile.in (crt0.o): Likewise.
20021         * libc/machine/Makefile.in (lib.a): Likewise.
20022         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20023
20024         All Makefile.in files: Added mostlyclean, realclean and distclean
20025         targets.
20026
20027         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20028         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20029         the top level Makefile.
20030
20031 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20032
20033         * libc/sys/sparc64/sys/stat.h: New file.
20034         * libc/sys/sparc64/sys/time.h: New file.
20035         * libc/sys/sparc64/sys/types.h: New file.
20036
20037 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20038
20039         * stub/ex93x/crt0.s (start): Add code to clear bss.
20040
20041 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20042
20043         * libc/include/sys/types.h (time_t): Properly protect inside
20044         #ifndef __time_t_defined.
20045
20046         * libc/stdio/fileno.c: New file.
20047         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20048         (fileno.o): Add dependency.
20049         * libc/include/stdio.h (__sgetc): Rename never to _never.
20050         (fileno macro): Disable, needs to do CHECK_INIT first.
20051
20052 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20053
20054         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20055         goal.
20056
20057         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20058         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20059         runtest.
20060         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20061         runtest.
20062
20063 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20064
20065         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20066         of the various constants.
20067
20068 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20069
20070         * libc/include/math.h: #ifndef __math_68881 around things which
20071         conflict with the (gcc-provided) inline functions in
20072         gcc/ginclude/math-68881.h.
20073
20074 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20075
20076         * libc/include/_syslist.h (_gettimeofday): Define.
20077         (_times): Ditto.
20078         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20079         (struct tms, timeval, timezone): Declare.
20080         (_gettimeofday_r, _times_r): Declare.
20081         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20082         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20083         (time_t): Add multiple definition protection, __time_t_defined.
20084         * libc/include/sys/time.h: Don't #include <time.h>.
20085         Always define struct timezone (remove #ifndef _TIME_H_).
20086         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20087         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20088         * libc/reent/Makefile.in (OFILES): Add timer.o.
20089         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20090         * libc/reent/timer.c: New file.
20091         * libc/time/clock.c: #include <reent.h>.
20092         (clock): Call _times_r instead of times.
20093         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20094         HAVE_GET_TIME_OF_DAY.
20095         Add comment regarding supporting OS routine(s) required (for docs).
20096         #include <reent.h>.
20097         (time): Call _gettimeofday_r instead of gettimeofday.
20098         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20099         * libc/time/ctime.c: Ditto.
20100         * libc/time/strftime.c: Ditto.
20101         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20102         (TEMPLATE_SFILES_R): Define here.  Also define times.
20103         Add times_r.o/times.S dependence.
20104         (time2.c, junk.c): Deleted.
20105         * libc/sys/sparc64/time2.c: Deleted.
20106         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20107
20108         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20109         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20110         * libc/sys/sparc64/junk.c: Deleted.
20111
20112 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20113
20114         * libc/sys/sparc64/Makefile.in: Add times syscall.
20115         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20116         be used with and without it.  Add comment clarifying Medium/Anywhere
20117         model requirements.
20118         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20119         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20120         even if obsolete.
20121
20122 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20123
20124         * configure.in (target_cflags): Move init.
20125         (sparc64-*-*): Define HAVE_BLKSIZE.
20126
20127 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20128
20129         * libc/include/sys/_types.h: New file.
20130         * libc/include/reent.h: #include it.
20131         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20132         MISSING_SYSCALL_NAMES.
20133         Sort syscalls.
20134         * libc/include/_syslist.h: Remove _raise.
20135         * libc/reent/signalr.c: New file.
20136         * libc/reent/Makefile.in: Compile it.
20137         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20138         Add doc for raise and _raise_r.
20139         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20140         (raise): Call _raise_r.
20141         (_raise_r): Call _getpid_r and _kill_r.
20142         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20143         (abort): Loop forever calling raise and _exit.
20144
20145 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20146
20147         * configure.in: Remove extraneous echo.
20148
20149 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20150
20151         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20152         collision with unistd.h, and fix for svr4.
20153
20154 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20155
20156         * libc/stdio/local.h (_llicvt): Declare.
20157         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20158         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20159         (_llicvt): Define.
20160         (_sicvt): Fix function header (`value' is short).
20161         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20162         Add printing of long long's support.
20163         Add printing of 8 byte pointer support.
20164
20165 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20166
20167         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20168         stat, chmod): New hooks.
20169         (sbrk): Abort if stack and heap collide.
20170         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20171         shortcut when given small args.
20172         * libc/machine/sh/setjmp.s: Rewritten.
20173         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20174         of cmp/str instruction.
20175
20176 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20177
20178         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20179         and machine_dir powerpc.
20180         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20181         Add cases for __powerpc__.
20182         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20183         New files.
20184
20185         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20186
20187 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20188
20189         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20190         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20191
20192 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20193
20194         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20195         (print_e): More comments to describe args, etc.
20196         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20197         trailing blanks.
20198         (_gcvt): Remove locals decpt, sign, end, p, done.
20199         More comments for print_e invocation.
20200         Pass "type" to print_e as is (g/G).
20201
20202 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20203
20204         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20205         stock m68000.
20206
20207 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20208
20209         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20210         works with any sized pointer, including ones bigger than ints and
20211         longs.
20212
20213 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20214
20215         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20216
20217 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20218
20219         * libc/include/stdlib.h (_calloc_r): Add prototype.
20220         * libc/machine/h8500/negsi2.c: New file.
20221         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20222         large unsigned numbers.
20223         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20224         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20225         works when sizeof(size_t) != sizeof(char *).
20226         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20227         get play area
20228         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
20229
20230 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
20231
20232         * libc/include/assert.h (assert): Handle -traditional.
20233
20234 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
20235
20236         * Makefile.in: added ; after every "fi" and "done" that wasn't at
20237         the end of a line (ie. anything before a backslash continuation)
20238         so that bash handles them.
20239
20240 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20241
20242         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
20243         stat to lstat
20244
20245 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
20246
20247         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
20248         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
20249         libc/machine/sh/udivsi3.s: Use new calling convention.
20250
20251 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
20252
20253         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
20254         chmod, access, chdir, chown by making _path const. Also fix _amode
20255         param of access.
20256
20257 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
20258
20259         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
20260         _khif_tmpnam, because it doesn't comply with ANSI but may be
20261         useful anyway. Real tmpnam was already in libc/stdio, and was
20262         colliding with this one (pr 2176.)
20263         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
20264         the wrong idea anyhow.
20265
20266 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20267
20268         * configure.in: Remove h8300h, we have multilib now.
20269
20270 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
20271
20272         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
20273         functions, to get preference over the ones in libiberty (since we
20274         provide correct declarations in <string.h>.
20275         * libc/string/Makefile.in: add support for strncasecmp,
20276         strcasecmp.
20277
20278 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
20279
20280         * Change netware config not to look for cpu explicitly.
20281
20282 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20283
20284         * libc/sys/sparc64/{creat.c,junk.c}: New files.
20285         * libc/sys/sparc64/Makefile.in: Add dependencies.
20286
20287 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
20288
20289         * configure.in: Clean up v9 a bit, new "os" aoutv8.
20290
20291 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
20292
20293         * libc/include/sys/reent.h: make structure smaller by allocating
20294         some stuff when needed.
20295         * libc/signal/signal.c: allocate as needed
20296         * libc/stdio/findfp.c,stdio/local.h: ditto
20297         * libc/stdlib/mprec.c: ditto
20298
20299         * libc/time/localtime.c: don't return a dangling stack ptr.
20300
20301 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20302
20303         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
20304
20305 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20306
20307         * libc/include/stdio.h (__sputc): comment out static inline which
20308           confuses coff toolchains.
20309
20310 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
20311
20312         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
20313         _write.s, getpid.c, kill.c, read.s}:
20314         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
20315         through the syscalls directory.
20316
20317 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20318
20319         * configure.in: fixed double quote gotcha.
20320
20321 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20322
20323         * stub/ex931: stub library for sparclite board.
20324         * stub/idp: Renamed from mc68ec. Added contructor table
20325         stuff to linker script.
20326         * stub/mvme135: Renamed from m68kmvme. Added contructor table
20327         stuff to linker script.
20328
20329 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20330
20331         * configure.in: Configure testsuites only if they exist.
20332
20333 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20334
20335         * configure.in: Don't set machine_dir for i386 until there is
20336         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
20337         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
20338         CLOCK_PROVIDED and MALLOC_PROVIDED.
20339
20340         * libc/sys/netware: New directory.  Contains simplistic and
20341         probably incorrect stubs for NetWare.  Should be enough to load
20342         the library.
20343         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
20344         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
20345         stub files.
20346
20347         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
20348         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
20349         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
20350         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
20351
20352 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
20353
20354         * testsuite/Makefile.in: add "docs" dummy target for consistency
20355         with rest of newlib; turn "info" and "install-info" into dummy
20356         targets, since they wouldn't have worked.  (Depended on
20357         nonexistent "doc" subdir.)
20358
20359 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20360
20361         * configure.in: handle mips* instead of mips
20362
20363 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20364
20365         * libc/include/sys/dirent.h: New file.  If it is not overridden by
20366         a version of libc/sys/*/sys/dirent.h, it includes the next
20367         <dirent.h> file in case there is one lurking somewhere.
20368
20369 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20370
20371         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
20372         compliance, namely: Accept a minus sign.  Consider a single 0 with
20373         a radix of 0 as being a conversion.  Determine overflow correctly.
20374         If an overflow occurs, set *ptr to the end of the number, not the
20375         middle.
20376         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
20377
20378 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
20379
20380         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
20381
20382 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
20383
20384         * Makefile.in (INSTALL): Use $srcrootpre.
20385         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
20386         can't handle it.
20387         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
20388         it.
20389         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
20390         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
20391         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
20392         * libm/math/Makefile.in (matherr.o): Ditto.
20393
20394 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20395
20396         * configure.in: Build multidirs for z8k.
20397         * libc/include/stdlib.h (_strtoul_r): add prototype.
20398         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
20399         * libc/include/machine/setjmp.h: Add for z8k.
20400         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
20401         * libc/sys/z8ksim/glue.c: tidy up.
20402
20403 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
20404
20405         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
20406         New files.  Requires execve system call.
20407         * libc/unix/Makefile.in: Use them.
20408         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
20409         Deleted, moved to libc/unix.
20410         * libc/sys/sparc64/Makefile.in: Remove them.
20411
20412 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20413
20414         * libc/sys/sparc64/{template.S template_r.S}: New files.
20415         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
20416         from templates.
20417         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
20418         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
20419         umask.S unlink.S wait4.S write.S}: Removed, now built from
20420         templates.
20421
20422 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
20423
20424         * libc/time/time.c: #include <_ansi.h>.
20425
20426 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20427
20428         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
20429
20430 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20431
20432         * configure.in: match m8* rather than m88k so that m88110 is
20433           recognized as well.
20434
20435 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20436
20437         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
20438         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
20439         misc.c: New file.
20440
20441         * configure.in: Add multilib support to h8300.
20442
20443 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20444
20445         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
20446         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
20447         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
20448
20449 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20450
20451         * configure.in: Corrected multidirs for sparc target.
20452
20453 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20454
20455         Support for building newlib multiple times with different
20456         compilation flags.
20457         * configure.in: Only configure doc at top level.  Set multidirs
20458         when appropriate for target, unless not at top level.  If
20459         multidirs is set, independently configure each subdirectory.
20460         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
20461         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
20462         automagically set by configure.in.
20463         (all): If MULTIDIRS is set, build multiple copies of libraries.
20464         (install): If MULTIDIRS is set, install multiple copies of
20465         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
20466         MULTISUBDIR is set, don't bother to install header files.
20467         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
20468         ${srcrootpre}.
20469         * stub/configure.in: Set MULTISUBDIR appropriately.
20470         * stub/Makefile.in (install): Install in
20471         $(tooldir)/lib/$(MULTISUBDIR).
20472         * All Makefile.in files: Define SRCTOP as well as TOP.
20473
20474 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
20475
20476         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
20477         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
20478
20479 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
20480
20481         * libc/sys/h8300hms/exit.c (_exit): New function.
20482
20483 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20484
20485         * configure.in: recognize m88110.
20486
20487 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20488
20489         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
20490           prototype main and call with args.
20491
20492 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
20493
20494         First real try at system traps for m88k-bug.
20495         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
20496           to real trap calls.
20497         * libc/sys/m88kbug/sys/systraps.h: new file.
20498
20499 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20500
20501         Patches to fix info building when target does not use sys
20502         directory.
20503         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
20504         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
20505           libc/sys.tex.
20506         * libc/sys/Makefile.in (doc): do nothing.
20507
20508 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20509
20510         * libc/Makefile.in (CRT0): new macro.
20511           (all): depend on $(CRT0) rather than crt0.o.
20512
20513         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
20514           do not default crt0, instead, set crt0 and crt0_dir based on
20515           sys_dir and stub_dir.
20516
20517         * Makefile.in (CRT0_DIR): new macro.
20518           (all): depend on $(CRT0) rather than crt0.o which may not exist.
20519           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
20520           $(CRT0).
20521           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
20522
20523 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20524
20525         * testsuite/lib/libm.exp:
20526                 added code to support compiling and linking of tests for
20527                 libm.sac (paranoia to be added next) and processing the
20528                 pass or failure of the tests.
20529
20530         * testsuite/config/unix-libm.exp:
20531                 platform specific proc's for dealing with compiler, linker
20532                 and the way we execute and process the test results.
20533
20534         * testsuite/libm.sac/execute.exp:
20535                 generic framework for the sac tests. the config and lib
20536                 expect code for specific platforms tie it all together.
20537
20538         * testsuite/libm.sac/test_is.c:
20539                 changed the output of the test to be consistant with the
20540                 other tests. parsing of pass nad fail messages is now fixed.
20541
20542 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
20543
20544         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
20545         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
20546         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
20547         #ifdef __cplusplus, surround by extern ""C { ... }.
20548         * libc/include/assert.h:  Do *not* protect assert.h against
20549         multiple inclusion!  Also, #undef it before #define, to allow
20550         redefinition.
20551         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
20552         should be only in unistd.h.
20553
20554         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
20555         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
20556         ... }.
20557
20558 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
20559
20560         * libc/machine/sparc/Makefile.in: Must create a library, even
20561         if empty.
20562
20563 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20564
20565         * configure.in: set machine_dir for m88k.  edit crt0 definition
20566           into makefiles.
20567
20568         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
20569
20570         * libc/Makefile.in (all): also build crt0.o.
20571
20572         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
20573           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
20574           to remove CRT0.
20575
20576         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
20577           (all): reworked to build in place.
20578           (clean): remove lib.a
20579           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
20580
20581         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
20582           (_start): key off edata rather than _start_bss.
20583
20584 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
20585
20586         * libc/include/sys/unistd.h, libc/include/reent.h,
20587         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
20588
20589 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20590
20591         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
20592
20593         * Makefile.in (libc.a): break into two rules, one for libc.a and
20594           one for libc/libc.a.  Force subdirs current before rebuilding
20595           library.
20596           (libm.a): break into two rules, one for libm.a and one for
20597           libm/libm.a.  Force subdirs current before rebuilding library.
20598
20599         * libc/Makefile.in (SUBLIBS): fix typo.
20600
20601         * libc/sys/Makefile.in (all): force descent into subdirs, then
20602           rebuild library iff out of of date.
20603
20604 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20605
20606         Rework so that library is built and then finished rather than
20607         being built on each invocation of make.
20608
20609         * host/any (machine_dir, sys_dir, signal_dir): these are not
20610           shared and have been moved to their associated Makefile.in's.
20611           (AR_FLAGS): switch to qc which is faster.
20612         * configure.in: no longer assign machine_dir for m88k.  set
20613           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
20614           stub_dir set, then add to configdirs.  add comment about silly
20615           configuration.
20616           (configdirs): drop stub.  It will be added only
20617           when needed.
20618           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
20619           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
20620           stub_lib, crt0): new variables for tailoring lower level
20621           makefiles.  Assign accordingly and edit into makefiles.
20622         * libm/Makefile.in: updated copyright.
20623           (TARGETLIB): removed.
20624           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
20625           (SUBDIRS): removed TARGETDEP_DIRS.
20626           (LIBM_FP_LIB, SUBLIBS): new macros.
20627           (all): reworked.
20628           (force): new target to force rebuilds.
20629           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20630         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
20631           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
20632           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
20633           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
20634           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
20635           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
20636           stub/m68kmvme/Makefile.in: updated copyright.
20637           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
20638           (all): reworked.  made this the default rule.
20639           (clean): also remove lib.a.
20640           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20641         * stub/Makefile.in: updated copyright.
20642           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
20643           (stub_lib): new macro.
20644           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
20645           RANLIB.
20646           (all): reworked.
20647           (clean, install): assume stub_dir exists.
20648           (Makefile): depend on configure.in.  call $(SHELL) rather than
20649           sh.  drop redundant ./
20650         * stub/configure.in (stublib): new macro, assign it, edit it into
20651           makefiles.
20652         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
20653           updated copyright.
20654           (all): reworked.
20655           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20656         * libc/Makefile.in (TARGETCRT0): removed.
20657           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
20658           TARGETCRT0.
20659           (SUBDIRS): drop TARGETDEP_DIRS.
20660           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
20661           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
20662           (force): new target to force rebuilds.
20663         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
20664           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
20665           removed.
20666           (clean): assume sys_dir always exists.
20667         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
20668           drop redundant ./
20669         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
20670           libc/locale/Makefile.in, libc/machine/Makefile.in,
20671           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
20672           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
20673           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
20674           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
20675           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
20676           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
20677           libc/signal/Makefile.in, libc/stdio/Makefile.in,
20678           libc/stdlib/Makefile.in, libc/string/Makefile.in,
20679           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
20680           libc/time/Makefile.in, libc/unix/Makefile.in,
20681           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
20682           (TARGETLIB): removed.
20683           (all): reworked.
20684           (clean): also remove lib.a.
20685           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20686         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
20687           new macros.
20688           (SUBDIRS): moved to follow frag inclusion, change stub to
20689           stub_dir.
20690           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
20691           are now set in the libc Makefile.
20692         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
20693           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
20694           TARGETCRT0.
20695           (force): new target to force rebuilds.
20696         * stub/configure.in: determine and set stub_lib for for Makefile.
20697
20698 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
20699
20700         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
20701         crt0.s renamed to crt0.S.
20702         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
20703
20704         * libc/machine/h8300/Makefile.in: Make `all' the default target.
20705         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
20706         h8300h.
20707         * libc/machine/h8300/defines.h: Add macros to handle pointers for
20708         h8300 (16 bits) and h8300h (32 bits).
20709         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
20710         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
20711
20712 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
20713
20714         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
20715         implementation of setjmp and longjmp for the m88k.
20716         * libc/include/machine/setjmp.h: Added __m88000__ case.
20717
20718 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
20719
20720         * configure.in: Recognize h8300h as variant of h8300.
20721
20722 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20723
20724         * libc/include/sys/unistd.h (read, write): get prototypes right.
20725         (sbrk): New prototype.
20726         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
20727         * libc/stdio/local.h: Include unistd.h.
20728         * libc/machine/h8300/syscalls.c: Names have changed.
20729
20730 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
20731
20732         * configure.in: add sys_dir assignment for m88k-bug.
20733
20734 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
20735
20736         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
20737         a.out or elf.
20738         * libc/sys/sparc64: all *.S files: Use new macros.
20739         * libc/sys/sparc64/isatty.c: New file.
20740         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
20741         functions beyond what newlib provides.
20742
20743 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
20744
20745         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
20746         svr4.
20747
20748 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20749
20750         * libc/include/machine/ieeefp.h: Add support for h8/300h.
20751
20752 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
20753
20754         * configure.in: add m88k.
20755         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
20756         sanity check so no one else need ever chase what I did to find
20757         this.
20758
20759         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
20760
20761 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20762
20763         * doc/makedoc.c: Include <ctype.h>.
20764
20765 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20766
20767         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20768         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20769         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20770
20771         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
20772
20773 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
20774
20775         * libc/include/errno.h (ENOSYS): Added.
20776
20777         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
20778
20779 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20780
20781         * libc/stdio/fflush.c (fflush): Check for reent struct
20782         initialization.
20783         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
20784
20785 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
20786
20787         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
20788         out of dtoa.c so it doesn't pollute the namespace.
20789         * libc/include/_syslist.h: new file -- mappings from _function to
20790         function, for systems where we can't win (by default, all of them,
20791         until we start updating system calls.)
20792         * libc/syscalls: new directory -- stubs for exporting _function
20793         names as unmodified function names.
20794         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
20795         _syslist.h on all platforms by default, but put hooks in for
20796         fake_sys_dir so we can include it when we've renamed the system
20797         calls.
20798         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
20799         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
20800         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
20801         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
20802         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
20803         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
20804         non ANSI functions to call _function.
20805
20806 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
20807
20808         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
20809         when base 16 is specified.  Don't accept non-digits if radix > 10.
20810
20811 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
20812
20813         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
20814
20815 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
20816
20817         * libc/include/sys/stat.h: Surround text after #endif with
20818         comments.
20819
20820 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
20821
20822         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
20823         _malloc_r, _realloc_r, and free_r call the corresponding
20824         non-reentrant functions.
20825
20826         * libm/math/modf.c (modf): We now take the address of ipart, so
20827         don't make it a register variable.
20828
20829 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
20830
20831         * libm/math/*: Rename all xxx_r fns to _xxx_r.
20832
20833 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
20834
20835         * libc/libc.texinfo and embedded docn throughout: formatting
20836         improvements, minor rephrasing for clarity, and improved
20837         reentrancy docn.
20838
20839 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20840
20841         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
20842
20843         * libc/stdio/cvt.c (_licvt): Print the right value on machines
20844         where sizeof(int) != sizeof(long).
20845
20846 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20847
20848         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
20849         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
20850         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
20851         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
20852         libm/math/matherr.c: changes for better docn formatting (info).
20853
20854         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
20855         libc/reent/reent.tex, libc/signal/signal.tex,
20856         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
20857         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
20858         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
20859         makeinfo node defaulting to get better Info file node structure.
20860         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
20861         Also include a few formerly missing sections (subroutines).
20862
20863         * doc/doc.str: delete fossil expansion for "func"
20864
20865         * default.menu, no-signal.menu: delete.
20866
20867         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
20868         method used to adjust doc for missing "signals" chapter when
20869         signal_dir is empty.
20870
20871 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20872
20873         * configure.in: added testsuite/libm.sac
20874
20875 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
20876
20877         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
20878         code model).
20879
20880 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20881
20882         * libm/Makefile.in: Use $(MAKE) rather than make, and define
20883         MAKEOVERRIDES to be empty.
20884
20885 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
20886
20887         * configure.in: Don't build mips-*-* with -msoft-float, since that
20888         makes it incompatible with hard floating point.
20889
20890 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20891
20892         * Makefile.in: added recursive 'make check'
20893
20894 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20895
20896         * configure.in: added ./testsuite ./testsuite/libm.paranoia
20897         * ./testsuite/Makefile.in: created
20898         * ./testsuite/libm.paranoia: paranoia tests added
20899
20900 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20901
20902         * configure.in: For mips-*-* set machine_dir to mips.
20903
20904         * libc/machine/mips: New directory.
20905         * libc/machine/mips/Makefile.in: New file.
20906         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
20907         setjmp and longjmp.
20908         * libc/include/machine/setjmp.h: Added __mips__ case.
20909
20910         * libc/machine/lmips: Removed unused and useless directory.
20911
20912 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
20913
20914         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
20915
20916 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
20917
20918         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
20919         start up).
20920
20921 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
20922
20923         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
20924         SETJMP_H.
20925
20926 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
20927
20928         * libm/test/convert.c: structure member errno -> errno_val.
20929         Must include <errno.h> to use errno, it's a macro now.
20930         * libm/test/math.c: Ditto.
20931         * libm/test/math2.c: Include errno.h.
20932         * libm/test/string.c: Ditto.
20933         * libm/test/test.h: structure member errno -> errno_val.
20934         Remove extern int errno decl.
20935
20936 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
20937
20938         * libc/stdio/Makefile.in: Added dependencies on local header
20939         files.
20940         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
20941         files.
20942
20943 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
20944
20945         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
20946
20947 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
20948
20949         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
20950         Initialize _data.
20951
20952         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
20953         * libc/stdio/local.h: Add prototype for _licvt.
20954
20955         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
20956         instead of malloc,reealloc.
20957
20958         * libc/stdlib/local.h: New file.
20959         * libc/stdlib/efgcvt.c: #include local.h.
20960         (gcvt): Fix call to _gcvt.
20961         * libc/stdlib/ecvtbuf.c: #include local.h.
20962
20963         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
20964         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
20965         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
20966
20967         * libc/stdlib/atexit.c: moved global data to struct _reent.
20968         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
20969
20970         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
20971
20972 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
20973
20974         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
20975         here from ../reent.h.
20976
20977 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
20978
20979         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
20980         should be provided in both libc.a and libm.a.
20981         (libc.a): Depend on targ-include and libm.a.  Copy
20982         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
20983         (libm.a): Depend on targ-include.
20984         * configure.in (subdirs): Removed libc/math.
20985
20986 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20987
20988         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
20989
20990 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
20991
20992         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
20993         sys/reent.h instead of reent.h.
20994         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
20995         headers moved to sys/reent.h.
20996         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
20997         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
20998         __need__MAX_SIGNALS defined.
20999         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21000         std{in,out,err} refer to new _std{in,out,err} members.
21001
21002 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21003
21004         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21005         case.
21006
21007 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21008
21009         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21010         rather than whatever macro seterrno() has.
21011
21012 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21013
21014         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21015         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21016
21017         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21018         __STDC__.
21019
21020         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21021         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21022         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21023
21024         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21025         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21026
21027         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21028         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21029         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21030         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21031         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21032         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21033         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21034         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21035         for ANSI.  structure members given leading "_" for ANSI.  Use
21036         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21037
21038         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21039         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21040         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21041         reent_struct renamed to struct _reent for ANSI.
21042         Structure members given leading "_" for ANSI.
21043         _CONST --> const in prototypes.
21044         Use _HAVE_STDC instead of __STDC__.
21045
21046         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21047         _xxx_r.
21048         struct reent_struct renamed to struct _reent for ANSI.
21049         Structure members given leading "_" for ANSI.
21050
21051         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21052         _xxx_r.
21053         struct reent_struct renamed to struct _reent for ANSI.
21054
21055         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21056         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21057         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21058         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21059         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21060
21061         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21062         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21063         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21064         #ifndef _STRICT_ANSI non-ANSI routines.
21065         Reentrant routines renamed from _r_xxx to _xxx_r.
21066         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21067         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21068         Clean up namespace (structure members have leading "_").
21069         struct reent_struct renamed to struct _reent for ANSI compliance.
21070         _CONST --> const in function prototypes.
21071
21072         * libc/include/string.h: Add NULL and size_t.
21073
21074         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21075         unlink, wait, wait4. Reentrant syscall routines close, fork,
21076         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21077         write.
21078         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21079         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21080         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21081         write.S}: Define reentrant versions.
21082         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21083         reentrant syscalls.
21084
21085         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21086
21087         * libc/include/stdlib.h (RAND_MAX): Fix value.
21088
21089 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21090
21091         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21092         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21093         VPATH support targets after all: target.
21094
21095         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21096         exceptionHandler, which is what mvme135-stub.c expects.
21097
21098 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21099
21100         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21101
21102         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21103         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21104         compliant).
21105
21106 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21107
21108         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21109         first.
21110         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21111         _r_write): Ditto.
21112         libc/reent/fstatr.c (_r_fstat): Ditto.
21113         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21114         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21115         libc/reent/statr.c (_r_stat): Ditto.
21116
21117         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21118         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21119         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21120         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21121         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21122         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21123         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21124         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21125         (__swrite): Ditto for _r_lseek, _r_write.
21126         (__sseek): Ditto for _r_lseek.
21127         (__close): Ditto for _r_close.
21128         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21129
21130         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21131         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21132
21133         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21134         to make reent_struct the first argument (and thus consistent with
21135         the rest of newlib).
21136
21137         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21138         reference to __STDC__.
21139
21140 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21141
21142         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21143         global __cleanup.
21144
21145 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21146
21147         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21148         first.
21149         libc/stdio/fclose.c (fclose): Ditto.
21150
21151 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21152
21153         * Run through indent and rename reentrant routines for ANSI.
21154         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21155         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21156         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21157         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21158         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21159         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21160         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21161         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21162         vsprintf.c wbuf.c wsetup.c local.h}
21163
21164         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21165
21166         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21167         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21168         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21169         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21170         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21171         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21172
21173         * Run through indent.
21174         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21175         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21176         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21177         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21178         strxfrm.c}
21179
21180         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21181         localtime.c mktime.c strftime.c time.c}:
21182         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21183
21184         * Reformatting + renaming (for ANSI, GNU style, consistency).
21185         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21186         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21187         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21188
21189 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21190
21191         * libc/include/stdio.h (stdin_r): Fix.
21192
21193 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21194
21195         * Makefile.in: Unexport some variables to keep GNU make from
21196         putting them in the environment and using up needed ARG_MAX space
21197         (a hack is used to let this work with older makes as well).
21198
21199 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21200
21201         * Makefile.in: Use $(MAKE) rather than make.
21202         (MAKEOVERRIDES): Define to be empty.
21203         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21204         (libc.a, libm.a): Depend on targ-include.
21205         * host/any (LD): Don't define.
21206         (INCLUDES): Use targ-include.
21207         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21208         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21209         * libc/Makefile.in: Use $(MAKE) rather than make.
21210         (MAKEOVERRIDES): Define to be empty.
21211         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21212         (all): Rewrote to be slightly smaller.
21213         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21214         Define to be empty.
21215         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21216         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21217
21218 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21219
21220         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21221         with errno/errno.c.
21222
21223 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21224
21225         * Changes for reentrancy.
21226         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21227         Use ptr->_errno, not errno.
21228         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
21229         libc/stdio/remove.c (remove_r): New function.
21230         libc/stdio/rename.c (rename_r): New function.
21231         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21232         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
21233         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
21234         reentrant versions of system calls.
21235         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
21236         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
21237         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
21238         libc/stdio/findfp.c: Include <string.h>.
21239         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
21240         "local.h".
21241         libc/stdio/wbuf.c: Include "fvwrite.h"
21242
21243         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
21244         <string.h>.
21245         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
21246         (NULL): Don't define if already defined.
21247         libc/stdlib/system.c: Call reentrant versions of system calls.
21248         (system_r): New function.
21249
21250         * Changes for reentrancy.
21251         libc/include/_ansi.h (_PARAMS): New macro.
21252         libc/include/errno.h: Define errno as a macro that calls __errno.
21253         (__errno_r): New macro for reentrant code.
21254         libc/include/math.h: Include reent.h.  Declare many reentrant
21255         functions.
21256         (signgam): Now a macro, not a variable.
21257         (struct exception): Added err field.
21258         libc/include/reent.h: Don't declare __sglue.  Added function
21259         declarations.
21260         (struct reent_struct): Moved errno to beginning.  Added _signgam.
21261         libc/include/stdio.h, libc/include/stdlib.h: Added function
21262         declarations.
21263
21264         * More reentrancy hacking.
21265         libc/errno/errno.c (__errno): New function.
21266         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
21267         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
21268         files.
21269
21270         * Added many new reentrant functions to libm/math/*.
21271         libm/math/error.c (__matherror): Added reent_struct pointer
21272         argument. Changed all callers.
21273         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
21274         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
21275         libm/math/tan.h: Removed obsolete unused header files.
21276
21277         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
21278
21279         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
21280
21281 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21282
21283         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
21284         delay slots.
21285
21286 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21287
21288         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
21289
21290 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21291
21292         * libc/reent/reent.tex:  New file.  (text from
21293         newlib/libc/libc.texinfo)
21294         * libc/stdio/tmpnam.c:  fixed doc typo
21295         * libc/stdlib/rand.c:   fixed doc typo
21296
21297 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21298
21299         * libc/reent/reent.tex:  New file.  (text from
21300         newlib/libc/libc.texinfo)
21301
21302 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21303
21304         support for reentrancy
21305         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
21306         new files
21307         * libc/errno/errno.c, libc/include/ieeefp.h,
21308         libc/include/locale.h, libc/include/reent.h,
21309         libc/include/signal.h, libc/include/stdio.h,
21310         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
21311         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
21312         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
21313         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
21314         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21315         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
21316         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
21317         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
21318         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
21319         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
21320         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
21321         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
21322         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
21323         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
21324         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
21325         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
21326         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
21327         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
21328         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
21329         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
21330         libc/time/strftime.c: modify to provide reentracy.
21331
21332         new routines:
21333         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
21334         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
21335         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
21336         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
21337         mstats_r, realloc_r, localeconv_r, setlocale_r
21338
21339 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
21340
21341         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
21342         libc/include/sys/config.h, libc/include/sys/signal.h,
21343         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
21344         provided macros (such as m68000), use the ansi version
21345         (__m68000__) so that the library can be used with code compiled
21346         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
21347         and sparc.
21348
21349 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21350
21351         * configure.in (sparc*): Don't set -fsoft-float for sparc
21352         configurations.  Do set -fsoft-float for sparclite configurations.
21353
21354 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21355
21356         * default.menu, no-signal.menu: alternate forms of libc main menu
21357           (in newlib rather than newlib/libc due to configuration restrictions)
21358
21359         * configure.in: select one of the two menus above, link to
21360         libc.menu
21361
21362         * libc/libc.texinfo: include menu from separate file
21363
21364 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
21365
21366         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
21367         (info): Split long shell command in half.
21368         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
21369         sub-makes, just CHEW and TARGETDOC.
21370         (targetdep.tex): Removed now special handling of sys and machine
21371         subdirectories, made obsolete some time ago.
21372         * libc/machine/Makefile.in (doc): Don't pass everything to
21373         sub-make, just CHEW and TARGETDOC.
21374         (Makefile): New target.
21375         * libc/sys/Makefile.in (Makefile): New target.
21376
21377 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
21378
21379         * Makefile.in (here and most subdirectories): Only pass down CHEW
21380         and TARGETDOC when making info, not for other targets.
21381
21382         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
21383         $(AR_FLAGS) rather than $(ARUPDATE).
21384
21385 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
21386
21387         * Try to reduce command line length:
21388         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
21389         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
21390         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
21391         (info): Pass CHEW to other subdirs.
21392
21393 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
21394
21395         * configure.in: add signal_dir, like unix_dir, but by default it
21396         is set to "signal" so that a29khif can turn it off (since a29khif
21397         has raise() as part of machine-specific signal.s.)
21398
21399 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21400
21401         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
21402         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
21403         correctly.
21404         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
21405         libc/stdio/vfprintf: type lint.
21406         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
21407         initialzation code.
21408         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
21409
21410 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
21411
21412         * stub/mvme135/mvme135-asm.S: new file.
21413         stub/mvme135mvme135-stub.c: moved all assembler routines into
21414         mvme135-asm.S.
21415         stub/mvme135/Makefile.in: build mvme135-stub.o.
21416
21417 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21418
21419         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
21420         sub-Makefiles instead, to try to avoid line length limitations.
21421
21422 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
21423
21424         * libc/include/unistd.h (read, write):  Use void* instead of
21425         char*.
21426
21427 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
21428
21429         * stub/go32/resetpc: sample script to send a reset packet to the
21430         stub
21431
21432         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
21433         DOS environment, which compiles with Turbo C.
21434
21435         * stub/go32/DSER32.LNK: new file, linker commands for serial
21436         remote stub.
21437
21438         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
21439         start up message to identify version; call set_debug_traps.
21440
21441         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
21442         keyboard interaction); call handle_exception() in go_til_stop,
21443         rather than return, so that the remote stub gets control.
21444
21445         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
21446         rename, rather than mv), set flags that work with current Turbo C,
21447         including using the /3 flag; also, add commands to build dser32.
21448
21449         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
21450         default Turbo C installation (\tc rather than \usr)
21451
21452         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
21453         "&..."
21454
21455 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21456
21457         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
21458
21459 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21460
21461         * libc/stdio/cvt.c (licvt): new function to convert ints when
21462         sizeof(int) != sizeof(long).
21463
21464         * libc/include/stdio.h: added prototype for iprintf.
21465         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
21466
21467 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21468
21469         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
21470         __REGISTER_PREFIX__.
21471
21472 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21473
21474         * libc/sys/m68kbare: moved into stub directory.
21475
21476 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
21477
21478         * configure.in, Makefile.in: created new directory stub, to hold
21479         sample code for specific targets.
21480
21481 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
21482
21483         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
21484         in the unified libc/include/sys/fcntl.h.
21485
21486 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
21487
21488         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
21489         printed .01, not 0.01.
21490
21491 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
21492
21493         * configure.in: compile with -m68000 for m68* targets.
21494
21495 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
21496
21497         * libm/math/remainder.c (remainder): document the svr4 and sunos
21498         references used to construct the function.
21499
21500 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
21501
21502         * libm/math/remainder.c (rint, remainder): fix old typos.
21503         * libm/math/Makefile.in: actually build remainder.c (functions
21504         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
21505         page.)
21506
21507 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
21508
21509         * libc/string/bcopy.c: BSD version works on overlapping strings,
21510         so ours should too.
21511
21512         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
21513         ("SHELL").
21514
21515 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
21516
21517         * Makefile.in (docs): new target.
21518
21519 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
21520
21521         * libc/include/sys/times.h: define clock_t as required by POSIX.
21522         libc/include/time.h: protect clock_t from multiple definitions.
21523
21524 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21525
21526         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
21527         does not need more than the original three iterations to get
21528         within 1 ulp. (Paranoia tests for rounding to better than that,
21529         but further iterations *don't* help, only more subtle changes
21530         can.)
21531
21532 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21533
21534         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
21535         were doing nothing useful.
21536
21537 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21538
21539         * configure.in: define MALLOC_PROVIDED for vxworks targets;
21540         removed sys_dir settings of vxworks68 and vxworks960.
21541         host/any: don't pass -nostdinc to gcc, since newlib no longer
21542         provides all required header files.
21543
21544         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
21545         is not defined; this provides a hook for VxWorks.
21546
21547 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21548
21549         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
21550         buffer if buf is NULL, don't do it here -- it is already being
21551         done by makebuf elsewhere in stdio.
21552
21553 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21554
21555         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
21556         that C programs can call functions without using initial
21557         underscores.
21558
21559 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
21560
21561         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
21562
21563 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
21564
21565         * configure.in: set TARGET_CFLAGS for certain CPU types to
21566         -msoft-float.
21567
21568 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21569
21570         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
21571
21572 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21573
21574         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
21575         m68k*-unknown-coff.
21576
21577 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
21578
21579         * libc/include/stdio.h: define __need___va_list before including
21580         <stdarg.h>, to avoid defining va_arg, et. al.
21581
21582 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
21583
21584         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
21585         (don't cd to the user's home directory).
21586
21587         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
21588         In general this is the wrong thing to do, but I can't get around
21589         GNU make's insistence on passing command line arguments any other
21590         way.
21591
21592 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21593
21594         * configure.in: always configure the libc/sys directory, since it
21595         now provides a required documentation file.
21596
21597         * Makefile.in: replaced all instances of $(MAKE) with make.  In
21598         general this is the wrong thing to do, but I can't get around GNU
21599         make's insistence on passing command line arguments any other way.
21600
21601 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
21602
21603         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
21604         terminated.
21605
21606         * libc/stdio/local.h: include <stdarg.h> to define va_list.
21607         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
21608
21609         * libc/include/float.h, libc/include/stdarg.h,
21610         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
21611         versions instead.
21612         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
21613         <stdarg.h>, not from <machine/types.h>.  Protect definition of
21614         NULL.
21615         libc/include/time.h: get size_t from stddef.h.  Protect definition
21616         of NULL.
21617         libc/include/machine/limits.h: override gcc <limits.h> by defining
21618         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
21619         get correct INT_MIN and LONG_LONG values.
21620         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
21621         size_t or va_list at all; they're now gotten from stddef.h
21622         instead.
21623         libc/include/machine/varargs.h: removed; use gcc version instead.
21624         libc/include/sys/types.h: explicitly include <machine/types.h>.
21625
21626         * libm/math/sqrt.h: using the fp-bit routines appears to require
21627         more iterations.
21628
21629         * Makefile.in, host/any: let system include files override machine
21630         include files.
21631
21632 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21633
21634         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
21635         override _*_T_ definitions defaulted here.
21636
21637 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
21638
21639         * Makefile.in (install): install the include files in
21640         $(tooldir)/include, not $(exec_prefix)/include.
21641
21642 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21643
21644         * Makefile.in (install): fixed typo, and changed install to not
21645         force rebuild of libc.a and libm.a.
21646
21647 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
21648
21649         * libc/sys/a29khif/*: Changed all .include's to include
21650         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
21651         that they will be installed for the user.
21652
21653         * Makefile.in (all): create targ-include, a directory holding the
21654         machine and system specific header files during the build.
21655         (install): fixed installation of machine and system specific
21656         header files.
21657
21658         * Makefile.in: fixed comment.
21659         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
21660         we can pass $(INCLUDES) to it.
21661
21662 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21663
21664         * libc/include/sys/param.h: new generic file, which may be
21665         overridden for specific systems.
21666
21667         * libc/include/sys/signal.h: define all ANSI signal names, and
21668         NSIG (which is not ANSI) for a29k.
21669
21670 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
21671
21672         * Makefile.in: don't pass down arguments the lower level makes
21673         will not need.
21674         * libc/Makefile.in: recurse directly, rather than using subdir_do,
21675         in hopes of avoiding argument length limits.
21676         * libm/Makefile.in: recurse directly, rather using subdir_do, in
21677         hopes of avoiding argument length limits.
21678
21679 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
21680
21681         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
21682         mode_t is defined.
21683
21684 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21685
21686         * Fixed make info and make install-info for newlib, changing most
21687         Makefile.in and several *.tex files.  Moved doc directory from
21688         libc to top level.
21689
21690         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
21691         Should be rewritten.
21692
21693         * libc/string/strings.tex: renamed node index to node index
21694         function, so that it does not conflict with the top level index
21695         node.
21696
21697         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
21698
21699 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21700
21701         * Overhauled general configuration for newlib.  Eliminated all
21702         target dependent Makefile fragments.  Create libraries in newlib
21703         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
21704         than CROSS_CC, et. al.  Broke make docs; will fix later.
21705
21706         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
21707         Should be rewritten.
21708
21709 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21710
21711         * libc/configure.in: cleaned up somewhat; switch on ${target}
21712         rather than ${target_alias}.
21713         * libm/configure.in: cleaned up somewhat; switch on ${target}
21714         rather than ${target_alias}.
21715
21716         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
21717         * libc/include/ctype.h: marked _ctype_ as _CONST.
21718
21719         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
21720         _CONST.
21721
21722         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
21723         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
21724         libc/stdio/gets.c (gets): removed non-ANSI warning message.
21725         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
21726
21727         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
21728         bigtens, tinytens): marked arrays _CONST.
21729         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
21730         rather than a static variable.
21731
21732         * libc/time/asctime.c (asctime), libc/time/localtime.c
21733         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
21734         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
21735         mname_len, mname): Marked static arrays _CONST.
21736
21737         * libm/math/gamma.h: made local variables non-static.
21738
21739         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
21740         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
21741         _CONST.
21742
21743         * libm/math/constants.c: removed file, because the constants it
21744         defined were never referenced.
21745         libm/math/Makefile.in: removed references to constants.c.
21746         libm/math/mathimpl.h: removed declarations of constants.
21747
21748 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21749
21750         * libc/include/machine/varargs.h: only call __builtin_saveregs if
21751         it is sensibly defined in libgcc2.  Checks preprocessor defines,
21752         which is not a good solution.
21753
21754         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
21755
21756         * libm/frexp.c: handle denormalized numbers as arguments.
21757
21758         * libm/math/Makefile.in: added some dependencies for .c files
21759         which include local .h files.
21760
21761 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
21762
21763         * libc/configure.in: set target_alias for OSE*.  Replace
21764         target_makefile_frag if it is blank.
21765
21766         * libc/Makefile.in: make sure everything is passed to subsidiary
21767         makes; create all directories when installing.
21768
21769         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
21770         CROSS_ARUPDATE instead of AR.
21771
21772         * libm/configure.in: set target_alias for OSE*.  Replace
21773         target_makefile_frag if it is blank.
21774
21775         * libm/Makefile.in: make sure everything is passed to subsidiary
21776         makes; create all directories when installing.
21777
21778 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
21779
21780         * add following change from libc copy.
21781
21782 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21783
21784         * libc/libc.texinfo: make copyright disclaimers appear on back of
21785         title page; make format of same slightly less ugly; avoid using
21786         underbars in section headings (avoids nasty texinfo bug in table
21787         of contents).
21788
21789         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
21790           comments only) avoid using underbars in section headings
21791
21792         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21793           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
21794           changes in comments only): shorten headings ieeefp/infinity.c,
21795           ieeefp/isnan.c: (doc, comments only) more informative headings
21796
21797         * libc/math/bessel.c: (doc, comments only) shorten heading
21798
21799         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
21800         (doc, comments only) shorten headings
21801
21802         * libc/time/localtime.c (doc, comments only): shorten headings
21803
21804         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21805           isnan
21806           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
21807           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
21808           headings
21809           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
21810           only) more informative headings
21811         * libm/math/bessel.c: (doc, comments only) shorten heading
21812
21813 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21814
21815         * .../Makefile.in: use CROSS_ARUPDATE consistently.
21816         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
21817         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
21818         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
21819         defined, the one from the .mt file will be correct.
21820         * libc/include/machine, libc/include/sys: created, and populated
21821         with common files from machine/*/machine. ifdefs were used for
21822         most, typically by handling exceptions first and then filling in
21823         defaults. Files with D.J. Delorie copyright #included rather than
21824         copied. Most files in include/sys really were the same in the
21825         original.
21826         * libc/include/...: cleaned up use of _EXFUN.
21827         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
21828         it with double quotes, not angles.
21829
21830 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
21831
21832         * libc/Makefile.in: always create installation directories.
21833
21834 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21835
21836         * libc/configure.in: handle host properly (using canonical
21837         triples), better error message for the case of target not found
21838
21839 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
21840
21841         * libc/Makefile.in (insincdir): Ensure this directory exists
21842         before attempting installation.
21843
21844 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21845
21846         * libc/stdlib/assert.c: now calls abort like it should
21847         * libc/sys/a29khif: many many patches for 29khif work
21848         * libc/machine/i386: gnulib2 expanded there.
21849
21850 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21851
21852         Added accurate fp conversion routines to stdlib, moved dcvt from
21853         stdio to stdlib and called it ecvtbuf:
21854         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
21855         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
21856         routines
21857         * libc/libc.texinfo: Modifed to include the copyright info from
21858         the mprec files
21859         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
21860         * libc/test/ : many vector which tested for the implementation
21861         defined returns of strange conversion requests have been updated
21862         to relflect the new implementation
21863
21864 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21865
21866         * libc/libc.texinfo: new chapter on variable arg lists
21867         (stdarg.h/varargs.h)
21868         * libc/libc.texinfo: new title
21869         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
21870         (doc only) shorter headings for better formatting.
21871
21872 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21873
21874         * libc/libc.texinfo: three more info menu entries
21875         * libc/locale/locale.tex: new chapter
21876         * libc/locale/locale.c: new doc for setlocale, localeconv
21877         * libc/locale/Makefile.in: use new locale doc
21878         * libc/signal/signal.tex: new chapter
21879         * libc/signal/raise.c, libc/signal/signal.c: new doc
21880         * libc/signal/Makefile.in: use new doc
21881         * libc/time/time.tex: new chapter
21882         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
21883         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
21884         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
21885         * libc/time/Makefile.in: use new doc
21886
21887 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21888
21889         * libm/math/log1p.c: split to use the new function way of float
21890         function definition. math/log1p.h deleted
21891         * libm/math/scalb.c: obsolete and deleted
21892         * libm/math/scalbn.c: created from part log1p.c
21893         * libm/math/Makefile.in: know about log1p and scalbn
21894
21895 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21896
21897         * libc/ctype/isupper.c: revise doc;
21898           libc/ctype/ctype.tex: use doc from isupper.c
21899
21900         * libc/string/bzero.c: new doc
21901
21902 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21903
21904         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
21905         new doc
21906         * libc/stdlib/Makefile.in: extract new doc
21907         * libc/stdlib/stdlib.tex: use new doc
21908
21909         * libc/string/strerror.c: expanded doc.
21910
21911         * libc/stdio/Makefile.in: extract doc from more files
21912         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
21913         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
21914         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
21915         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
21916         libc/stdio/vsprintf.c: new doc
21917         * libc/stdio/stdio.tex: use new doc
21918
21919 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21920
21921         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
21922         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
21923         finitef functions.
21924         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
21925         time ago.
21926
21927         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
21928         * libc/stdio/setbuf.c: added ansi style definition.
21929         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
21930         buffer if none provided.
21931         * libc/stdio/tmpfile.c: lint
21932         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
21933         rather than using static, also make sure file isn't already
21934         present.  Uses P_tmpdir. (tempnam): rewritten to use new
21935         subroutine, and uses P_tmpdir.
21936         * libc/stdio/siprintf.c: created
21937
21938 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21939
21940         Release 1.03 for NEC, major mods. Main differences from release
21941         1.02::
21942
21943         More tests in test/:
21944         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
21945         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
21946         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
21947         get/set mask, get/set sticky and get/set roundtoi.  Tests
21948         that setting the bits changes the way arithmetic is done.
21949         * string.c: added test to make sure memcmp does it with unsigned
21950         chars.
21951         * test.c: cleaned up and removed lint.
21952         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
21953         dvec.c: tests for string to value conversions,  sprintf, scanf,
21954         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
21955         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
21956         rounding in sprintf too.
21957         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
21958         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
21959         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
21960         and function form.
21961         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
21962         powf
21963
21964         In the library:
21965         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
21966         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
21967         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
21968         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
21969         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
21970         than sprintf.
21971         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
21972         * Method of producting float versions of double functions has
21973         changed, functions will be modified gradually. So far:
21974         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
21975         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
21976         altered
21977         * libc/string/memcmp.c: now uses unsigned chars
21978         * libc/string/bcmp.c, libc/string/strcpy.c,
21979         libc/stsring/strxfrm.c: fixed doc
21980         * libc/sys/sysvnecv70.tex: fix example of sbrk code
21981 \f
21982 Local Variables:
21983 version-control: never
21984 End: