OSDN Git Service

2010-03-09 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2010-03-09  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * libc/posix/telldir.c (dd_loccnt): Change start index to be 1 
4         instead of 0.
5         (_seekdir): A loc of 0 now means rewind dir.
6
7 2010-03-08  Craig Howland <howland@LGSInnovations.com>
8
9         * libm/common/s_rint.c:  Fix error when integral part had 18 bits and
10         fraction had bits set beyond first radix bit.  Also, make 2-part
11         adjustment consistent with 1-part adjustment when adjusting fractional
12         bits.
13         * libm/common/sf_rint.c:  Make fractional-bit adjustment consistent
14         with s_rint.c by setting 0b.01 instead of 0b.001.
15
16 2010-03-05  Craig Howland <howland@LGSInnovations.com>
17
18         * libm/math/ef_sqrt.c: Delete unused variable sign.
19         * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
20         proper prototype, and is properly prototyped in stdlib.h, anyway.
21         * libc/stdlib/getenv_r.c: Ditto.
22         * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
23         #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
24         * libc/search/db_local.h: Correct __hash_open() prototype.
25         * libc/sys/linux/cmath/math_private.h:  Eliminate compiler warnings:
26         Remove #define INFINITY (redefines from math.h); remove #define __isnanf
27         and #define __isinff isinff.
28
29 2010-03-02  Craig Howland <howland@LGSInnovations.com>
30
31         * libc/include/sys/features.h:  Add POSIX.1-permitted definition of
32         _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an
33         appropriate value.  Specifically, check for POSIX.1-2008 & 2001 values.
34         * libc/include/sys/config.h:  Add #include <sys/features.h> so that all
35         includes get the new check added to it.
36
37 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38
39         * libc/xdr/README: Correct grammatical errors.
40         * libc/include/rpc/types.h: Add public types used
41         by RPC implementations.
42         * libc/include/rpc/xdr.h: Add defines used by RPC
43         implementations.
44         * libc/xdr/Makefile.am: Eliminate automake warning.
45         * libc/xdr/Makefile.in: Regenerate.
46
47 2010-03-02  Corinna Vinschen  <corinna@vinschen.de>
48
49         * libc/xdr/Makefile.in: Regenerate.
50
51 2010-03-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52
53         Add eXtensible Data Record (XDR) support
54         * configure.host: Build libc/xdr only on cygwin.
55         * Makefile.am: Install xdr headers.
56         * libc/configure.in: Support new libc/xdr subdirectory.
57         * libc/Makefile.am: Support new libc/xdr subdirectory.
58         * libc/include/rpc/types.h: New.
59         * libc/include/rpc/xdr.h: New.
60         * libc/xdr/README: New.
61         * libc/xdr/Makefile.am: New.
62         * libc/xdr/dummy.c: New.
63         * libc/xdr/xdr.c: New.
64         * libc/xdr/xdr_array.c: New.
65         * libc/xdr/xdr_float.c: New.
66         * libc/xdr/xdr_float_vax.c: New.
67         * libc/xdr/xdr_mem.c: New.
68         * libc/xdr/xdr_private.c: New.
69         * libc/xdr/xdr_private.h: New.
70         * libc/xdr/xdr_rec.c: New.
71         * libc/xdr/xdr_reference.c: New.
72         * libc/xdr/xdr_sizeof.c: New.
73         * libc/xdr/xdr_stdio.c: New.
74
75         Regenerate using ac-2.63 and am-1.11.1
76         * libc/xdr/Makefile.in: New.
77         * Makefile.in: Regenerate.
78         * libc/configure: Regenerate.
79         * libc/Makefile.in: Regenerate.
80         * libc/argz/Makefile.in: Regenerate.
81         * libc/ctype/Makefile.in: Regenerate.
82         * libc/errno/Makefile.in: Regenerate.
83         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
84         * libc/iconv/ccs/Makefile.in: Regenerate.
85         * libc/iconv/ces/Makefile.in: Regenerate.
86         * libc/iconv/lib/Makefile.in: Regenerate.
87         * libc/iconv/Makefile.in: Regenerate.
88         * libc/locale/Makefile.in: Regenerate.
89         * libc/misc/Makefile.in: Regenerate.
90         * libc/posix/Makefile.in: Regenerate.
91         * libc/reent/Makefile.in: Regenerate.
92         * libc/search/Makefile.in: Regenerate.
93         * libc/signal/Makefile.in: Regenerate.
94         * libc/stdio/Makefile.in: Regenerate.
95         * libc/stdio64/Makefile.in: Regenerate.
96         * libc/stdlib/Makefile.in: Regenerate.
97         * libc/string/Makefile.in: Regenerate.
98         * libc/syscalls/Makefile.in: Regenerate.
99         * libc/time/Makefile.in: Regenerate.
100         * libc/unix/Makefile.in: Regenerate.
101
102 2010-02-26  Craig Howland <howland@LGSInnovations.com>
103
104         * libm/common/s_ilogb.c:  Fix typo in comments that causes doc
105         generation to fail.
106
107 2010-02-26  Corinna Vinschen  <corinna@vinschen.de>
108
109         * libc/time/strftime.c: Add support for era and alt_digits data from
110         LC_TIME locale category.  Conditionalize using _WANT_C99_TIME_FORMATS
111         flag.
112         (STRTOUL): Define differently for building strftime or wcsftime.
113         (STRCPY): Ditto.
114         (STRCHR): Ditto.
115         (STRLEN): Ditto.
116         (CHECK_LENGTH): Define to simplify code.
117         (era_info_t): New type to store era info.
118         (get_era_info): New function to fetch era info matching incoming
119         struct tm.
120         (free_era_info): New function to free era info.
121         (alt_digits_t): New type to store alternative digits.
122         (get_alt_digits): New function to convert alt_digits string into
123         alt_digits_t structure.
124         (free_alt_digits): New function to free alt_digits info.
125         (conv_to_alt_digits): New function to convert unsigned value into
126         alternative digits.
127         (strftime): Conditionalize on _WANT_C99_TIME_FORMATS.  If
128         _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
129         providing era_info and alt_digits pointers and call ...
130         (__strftime): Rename from strftime and make static if
131         _WANT_C99_TIME_FORMATS is defined.  Add parameters for era_info and
132         alt_digits pointers.  Handle conversion modifiers according to
133         POSIX-1.2008.  Redefine %F and %Y according to POSIX.  Add default case
134         to allow to bail out on invalid conversion specifiers.
135         * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
136         config.h.
137
138         * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
139
140 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
141
142         * libc/locale/locale.c (loadlocale): Fix typo in comment.
143
144 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
145
146         * libc/locale/locale.c: Throughout, extensively comment on the
147         reason for using __CYGWIN__.
148         (lconv): Remove _CONST entirely.
149         (loadlocale): Guard calls to function loading locale-specific
150         category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__.
151         * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
152
153 2010-02-24  Charles Wilson  <...>
154
155         Work around issues with new libtool files in ..
156         * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH.
157         * iconvdata/configure.in: Ditto.
158         * libc/configure.in: Ditto.
159         * libc/machine/configure.in: Ditto.
160         * libc/machine/i386/configure.in: Ditto.
161         * libc/sys/configure.in: Ditto.
162         * libc/sys/linux/configure.in: Ditto.
163         * libc/sys/linux/linuxthreads/configure.in: Ditto.
164         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
165         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
166         * libc/sys/linux/machine/configure.in: Ditto.
167         * libc/sys/linux/machine/i386/configure.in: Ditto.
168         * libm/configure.in: Ditto.
169         * libm/machine/configure.in: Ditto.
170         * libm/machine/i386/configure.in: Ditto.
171         * libc/machine/sh/configure.in: Ditto.  Also, call
172         AC_NO_EXECUTABLES before NEWLIB_CONFIGURE.
173         * aclocal.m4: Regenerated.
174         * configure: Ditto.
175         * Makefile.in: Ditto.
176         * doc/aclocal.m4: Ditto.
177         * doc/Makefile.in: Ditto.
178         * libc/*/aclocal.m4: Ditto.
179         * libc/*/Makefile.in: Ditto.
180         * libc/*/configure: Ditto.
181         * libm/*/aclocal.m4: Ditto.
182         * libm/*/Makefile.in: Ditto.
183         * libm/*/configure: Ditto.
184
185 2010-02-24  Jeff Johnston  <jjohnstn@redhat.com>
186
187         * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
188
189 2010-02-23  Jeff Johnston  <jjohnstn@redhat.com>
190
191         * libc/include/sys/types.h: Fix __XMK__ sectioning and remove
192         redundant code section for __XMK__.
193
194 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
195
196         * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item
197         value for LC_TIME entry date_fmt.
198         (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT.
199         * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
200
201 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
202
203         * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.
204         * libc/ctype/iswprint.c (iswprint): Ditto.
205         * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation.
206         Define in terms of other wctype functions instead.
207         * libc/ctype/towlower.c (towlower): Update to Unicode 5.2.  Add comment
208         to explain how to fetch the data from the Unicode database.
209         * libc/ctype/towupper.c (towupper): Ditto.
210         * libc/ctype/utf8alpha.h: Ditto.
211         * libc/ctype/utf8print.h: Ditto.
212         * libc/ctype/utf8punct.h: Remove.
213         * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to
214         fetch the data from the Unicode database.
215
216 2010-02-18  Corinna Vinschen  <corinna@vinschen.de>
217
218         * libc/locale/timelocal.h (struct lc_time_T): Add missing ERA-related
219         members.
220         * libc/locale/timelocal.c (_C_time_local): Set new members to empty
221         strings.
222         * libc/locale/nl_langinfo.c (nl_langinfo): Return values from
223         __get_current_time_locale() for ERA related requests.
224
225 2010-02-16  Corinna Vinschen  <corinna@vinschen.de>
226
227         * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
228         U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
229         to explain how to generate from Unicode data file.
230         * libc/ctype/iswspace.c (iswspace): Ditto.
231
232 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
233
234         * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
235         as well.
236
237 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
238
239         * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant
240         decimal point in case the float argument is an integral value.
241
242 2010-02-11  Craig Howland <howland@LGSInnovations.com>
243        
244         * libc/include/machine/ieeefp.h:  isfinite macro modified to run faster
245         by only calling fpclassify once instead of possibly twice.
246
247 2010-02-11  Craig Howland <howland@LGSInnovations.com>
248
249         * libm/common/s_ilogb.c:  Adjust documentation to reflect new returns
250         (see next items) and that ilogb() and ilogbf() are C99/POSIX.
251         * libm/common/s_ilogb.c (ilogb):  Use C99/POSIX FP_ILOGB0 and
252         FP_ILOGBNAN returns for 0 and NAN arguments, respectively, instead of
253         the prior -INT_MAX and INT_MAX.  The FP_ILOGBx defines in math.h
254         presently match the prior hard-codes, so no functional change is
255         actually introduced.  (Not at this time, nor planned, but the values
256         are permitted to be different, so subsequent edits of math.h could
257         possibly cause a functional change.)
258         * libm/common/sf_ilogb.c (ilogbf):  Ditto.
259
260 2010-02-09  Daniel Gutson  <dgutson@codesourcery.com>
261
262         * libc/machine/arm/arm_asm.h (_ISA_THUMB_2): __ARM_ARCH_7EM__
263         added to the preprocessor condition.
264
265 2010-02-09  Corinna Vinschen  <corinna@vinschen.de>
266
267         * libc/locale/lmessages.c (__messages_load_locale): Take additional
268         parameters for wide char to multibyte conversion.  Call
269         __set_lc_messages_from_win on Cygwin.
270         * libc/locale/lmessages.h: Make C++-safe.
271         (__messages_load_locale): Change declaration.
272         * libc/locale/lmonetary.c (__monetary_load_locale): Use
273         _monetary_locale_buf as buffer pointer.
274         * libc/locale/lnumeric.c (__numeric_load_locale): Use
275         _numeric_locale_buf as buffer pointer.
276         * libc/locale/timelocal.c (__time_load_locale): Use time_locale_buf
277         as buffer pointer.
278         * libc/locale/locale.c (loadlocale): Enable loading LC_MESSAGES data
279         on Cygwin.
280
281 2010-02-08  Josef Wolf  <jw@raven.inka.de>
282
283         * libc/machine/m68k/memcpy.S: MISALIGEND_OK should not be set for
284         __mcpu32__.
285
286 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
287
288         * libc/locale/locale.c: Add Cygwin's /usr/share/locale/locale.alias
289         support to documentation.
290         (__set_locale_from_locale_alias): Declare when build for Cygwin.
291         (loadlocale): On Cygwin, if locale can't be recognized, call
292         __set_locale_from_locale_alias to check for locale alias.
293         Define FAIL macro to replace `return NULL' statements.  Replace
294         throughout.
295
296 2010-02-07  Corinna Vinschen  <corinna@vinschen.de>
297
298         * libc/locale/locale.c: Fix typo in documentation.  Remove useless
299         _MB_CAPABLE guards within other _MB_CAPABLE guards.  Add comment
300         to remaining #endif's.
301
302 2010-02-06  Corinna Vinschen  <corinna@vinschen.de>
303
304         * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
305         (_CTYPE_GEORGIAN_PS_255): Define.
306         (_CTYPE_PT154_128_254): Define.
307         (_CTYPE_PT154_255): Define.
308         (__ctype_cp): Add array members for above ctype definitions.
309         * libc/locale/locale.c (loadlocale): Make TIS-620 charset name
310         available for all targets.  Add guards for setting the conversion
311         function pointers.  Add support for GEORGIAN-PS and PT154 charsets.
312         Change documentation to reflect current behaviour more closely.
313         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
314         "CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
315         * libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
316         for GEORGIAN-PS and PT154.
317         (__cp_index): Map invalid Windows codepage number 101 to
318         GEORGIAN-PS conversion array, 102 to PT154 conversion array.
319
320 2010-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
321
322         * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
323
324 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
325
326         * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
327         so that the dashes are optional.  Align documentation.
328
329 2010-02-05  Corinna Vinschen  <corinna@vinschen.de>
330
331         * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
332         is defined.  Raise conversion buffer size to make sure it has enough
333         room for numbers plus grouping character.  Define GROUPING flag.
334         (_VFPRINTF_R): Add PRINTANDPAD macro.  Handle grouping flag character.
335         Handle grouping for decimal integer and float values.
336         * libc/stdio/vfwprintf.c: Ditto.
337
338 2010-02-01  Christopher Faylor  <me+cygwin@cgf.cx>
339
340         * libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for
341         atexit functions.
342         (__register_exitproc): Use __atexit_lock rather than a local static
343         lock.
344         * libc/stdlib/__call_atexit.c: Ditto.
345
346 2010-01-29  Jeff Johnston  <jjohnstn@redhat.com>
347
348         * libc/search/Makefile.am: Create .def files for bsearch and qsort.
349         * libc/search/Makefile.in: Regenerated.
350         * libc/stdlib/stdlib.tex: Add bsearch and qsort.
351
352 2010-01-24  Corinna Vinschen  <corinna@vinschen.de>
353
354         * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
355         SJIS on Cygwin.  Explain why.
356
357 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
358
359         * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
360         Add to documentation.  Add a few comments to #endif's for Cygwin.  
361
362 2010-01-23  Corinna Vinschen  <corinna@vinschen.de>
363
364         * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
365         Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.
366
367 2010-01-22  Corinna Vinschen  <corinna@vinschen.de>
368
369         * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
370         parameters for wide char to multibyte conversion.  Call
371         __set_lc_monetary_from_win on Cygwin.
372         * libc/locale/lmonetary.h: Make C++-safe.
373         (__monetary_load_locale): Change declaration.
374         * libc/locale/lnumeric.c (__numeric_load_locale): Take additional
375         parameters for wide char to multibyte conversion.  Call
376         __set_lc_numeric_from_win on Cygwin.
377         * libc/locale/lnumeric.h: Make C++-safe.
378         (__numeric_load_locale): Change declaration.
379         * libc/locale/locale.c (lconv): De-constify for Cygwin.
380         (__set_charset_from_locale): Rename from
381         __set_charset_from_codepage.  Take locale as parameter instead of
382         a codepage.
383         (loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
384         Change documnetation accordingly.  Enable LC_COLLATE, LC_MONETARY,
385         LC_NUMERIC, and LC_TIME handling on Cygwin.
386         (_localeconv_r): On Cygwin, copy values from monetary and numeric
387         domain if change has been noted.
388         * libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
389         am/pm layout in struct lc_time_T.
390         * libc/locale/timelocal.c (_C_time_locale): Accommodate
391         redefinition of am/pm members.
392         (__time_load_locale): Take additional parameters for wide char
393         to multibyte conversion.  Call __set_lc_time_from_win on Cygwin.
394         * libc/locale/timelocal.h: Make C++-safe.
395         (struct lc_time_T): Convert am and pm to a am_pm array for easier
396         consumption by strftime and strptime.
397         (__time_load_locale): Change declaration.
398         * libc/time/strftime.c: Change documentation to reflect changes to
399         strftime.  Remove locale constant strings in favor of access to
400         locale-specifc data.
401         (_ctloc): Define access method for locale-specifc data.
402         (TOLOWER): Define for tolower conversion.
403         (strftime): Throughout, convert locale-specific formats to use
404         locale-specific data.  Add GNU-specific "%P" format.
405         * libc/time/strptime.c: Remove locale constant strings in favor of
406         access to locale-specifc data.
407         (_ctloc): Define access method for locale-specifc data.
408         (strptime): Throughout, convert locale-specific formats to use
409         locale-specific data.
410
411 2010-01-20  Corinna Vinschen  <corinna@vinschen.de>
412
413         * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
414         often-used charsets into Linux compatible codesets.
415
416 2010-01-19  Andy Koppe  <andy.koppe@gmail.com>
417
418         * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
419         characters and allow invalid bytes in format string.
420
421 2010-01-19  Corinna Vinschen  <corinna@vinschen.de>
422
423         * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
424         correctly also in the s==NULL case.
425
426 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
427
428         * libc/locale/locale.c (loadlocale): Change comments to refer to
429         ISO 639-3 rather than 639-2.
430
431 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
432
433         * libc/locale/locale.c (loadlocale): Allow three character
434         language codes to accommodate ISO 639-2 codes.
435
436 2010-01-17  Corinna Vinschen  <corinna@vinschen.de>
437
438         * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
439         "UTF-8" on Cygwin.
440         (lc_message_charset): Ditto.
441         (loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
442         Cygwin.
443         * libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
444         * libc/stdlib/wctomb_r.c (__wctomb): Ditto.
445
446 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
447
448         * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
449         (F_DUPFD_CLOEXEC): Define for Cygwin.
450         * libc/include/sys/unistd.h (dup3): Define for Cygwin.
451         (pipe2): Ditto.
452
453 2010-01-14  Corinna Vinschen  <corinna@vinschen.de>
454
455         * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
456         the current charset through.
457
458 2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>
459
460         * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.
461
462 2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
463
464         * libc/include/math.h (log2, log2f): Disable macro versions for C++,
465         as they are incompatible with OpenMP/C++ headers.
466
467 2010-01-10  Corinna Vinschen  <corinna@vinschen.de>
468
469         * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
470         non-ASCII chars on Cygwin.
471         * libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.
472
473 2009-12-22  Eric Blake  <ebb9@byu.net>
474
475         * libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
476         * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
477
478 2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>
479
480         * NEWS: Update with 1.18.0 info.
481         * README: Ditto.
482         * acinclude.m4: Change version number to 1.18.0.
483         * aclocal.m4: Regenerated.
484         * configure: Ditto.
485         * doc/aclocal.m4: Ditto.
486         * doc/configure: Ditto.
487         * libc/*/aclocal.m4: Ditto.
488         * libc/*/configure: Ditto.
489         * libc/libc.texinfo: Ditto.
490         * libm/*/aclocal.m4: Ditto.
491         * libm/*/configure: Ditto.
492         * libm/libm.texinfo: Ditto.
493         * libc/sys/linux/shared.ld: Add VERS_1.18
494
495 2009-12-17  Jeff Johnston <jjohnstn@redhat.com>
496
497         * libc/include/_syslist.h: Add _mkdir transform.
498
499 2009-12-17  Jerker Back  <jerker.back@gmail.com>
500
501         * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
502         ICONV_ZERO_MB_STATE_T macro.
503         * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
504         temporary local variable nullstate to hold empty mbstate_t.
505
506 2009-12-17  Jerker Back  <jerker.back@gmail.com>
507
508         * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
509         function pointer arguments.
510         * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
511         * libc/iconv/lib/ucsconv.h: Ditto.
512         * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
513         * libc/include/sys/reent.h: Ditto.
514         * libc/include/sys/unistd.h: Ditto.
515         * libc/search/bsearch.c: Ditto.
516         * libc/stdio/fseek.c: Ditto.
517         * libc/stdio64/fseeko64.c: Ditto.
518         * libc/stdlib/atexit.c: Ditto.
519         * libc/stdlib/on_exit.c: Ditto.
520
521 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
522
523         * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
524         * libc/machine/arm/machine/endian.h: Remove (Conflicts with
525         libc/include/machine/endian.h)
526
527 2009-12-17  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
528
529         * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
530
531 2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>
532
533         * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
534         * libc/include/sys/stat.h: Use struct timespec st_*tim,
535         blksize_t st_blksize, blkcnt_t st_blocks.
536         Add st_*time compatibility macros.
537
538 2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
539
540         * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
541         for ALIGNBYTES on SPARC.
542
543 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
544
545         * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
546         and ETOOMANYREFS into general list as they are referenced
547         by OpenGroup and needed by RTEMS.
548
549 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
550
551         * libc/search/hcreate.c: Don't include <sys/queue.h> (Unused).
552
553 2009-12-16  Ralf CorsÃ\83©pius <ralf.corsepius@rtems.org>
554
555         * libc/sys/rtems/machine/_types.h: New (Derived from
556         machine/_default_types.h).
557         * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB.
558         * libc/sys/rtems/sys/param.h:
559         Update copyright notice from FreeBSD.
560         Remove HZ.
561         Add #include <sys/priority.h>
562         Remove priority handling (moved to sys/priority.h).
563         Remove CLBYTES (Unused, abandoned in BSD).
564         * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD).
565         Remove CIRCLEQ_*.
566
567 2009-12-15  Conny Marco Menebrocker  <c-m-m@gmx.de>
568
569         * libc/machine/xc16x/Makefile.am: Fix typo and refer
570         to puts.c instead of putc.c.
571         * libc/machine/xc16x/Makefile.in: Regenerated.
572
573 2009-12-14  Maxim Kuvyrkov <maxim@codesourcery.com>
574
575         * libc/machine/m68k/memcpy.S: Patch to support
576         boards which do not support unaligned read/write.
577
578 2009-12-10  Conny Marco Menebrocker  <c-m-m@gmx.de>
579
580         * configure.host: Add xc16x support.
581         * libc/include/machine/ieeefp.h: Ditto.
582         * libc/include/sys/config.h: Ditto.
583         * libc/machine/configure.in: Ditto.
584         * libc/machine/Makefile.in: Regenerated.
585         * libc/machine/aclocal.m4: Ditto.
586         * libc/machine/configure: Ditto.
587         * libc/machine/xc16x/Makefile.am: New file.
588         * libc/machine/xc16x/Makefile.in: Ditto.
589         * libc/machine/xc16x/aclocal.m4: Ditto.
590         * libc/machine/xc16x/configure: Ditto.
591         * libc/machine/xc16x/configure.in: Ditto.
592         * libc/machine/xc16x/putchar.c: Ditto.
593         * libc/machine/xc16x/puts.c: Ditto.
594         * libc/machine/xc16x/setjmp.S: Ditto.
595
596 2009-12-08  Eric Blake  <ebb9@byu.net>
597
598         Fix some *at declarations.
599         * libc/include/stdio.h (symlinkat): Move this...
600         * libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
601         * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
602         match POSIX.
603
604 2009-12-03  Craig Howland <howland@LGSInnovations.com>
605
606         * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
607         * libc/stdlib/wcstod.c:  Ditto.
608         * libc/stdlib/dtoastub.c:  Ditto.
609
610 2009-11-23  Corinna Vinschen  <corinna@vinschen.de>
611
612         Use NetBSD fix for CVE-2009-0689 security vulnerability.
613         * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof
614         size_t, as in latest NetBSD.
615         * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant
616         value 15.
617         * libc/stdlib/mprec.c (_Kmax): Don't define here.  Explain why.
618
619 2009-11-20  Nick Clifton  <nickc@redhat.com>
620
621         * libc/machine/rx/strncat.S (_strncat): Replace use of r6
622         (call-saved) with r14 (call-used).
623
624 2009-11-18  Dave Korn  <dave.korn.cygwin@googlemail.com>
625
626         * libm/machine/i386/f_tan.S (_f_tan): Free fp stack register
627         containing useless constant before advancing fp sp over it.
628         (_f_tanf): Likewise.
629
630 2009-11-18  Corinna Vinschen  <corinna@vinschen.de>
631
632         * libc/stdio/vfprintf.c: Include ../stdlib/local.h.  Replace call to
633         _mbtowc_r with direct call to __mbtowc.
634         * libc/stdio/vfscanf.c: Ditto.
635         * libc/stdlib/btowc.c: Include local.h.  Replace call to _mbtowc_r
636         with direct call to __mbtowc.
637         * libc/stdlib/mblen.c: Ditto.
638         * libc/stdlib/mblen_r.c: Ditto.
639         * libc/stdlib/mbrtowc.c: Ditto.
640         * libc/stdlib/mbstowcs_r.c: Ditto.
641         * libc/stdlib/mbtowc.c: Ditto.
642         * libc/stdlib/wcrtomb.c: Include local.h.  Replace call to _wctomb_r
643         with direct call to __wctomb.
644         * libc/stdlib/wcsnrtombs.c: Ditto.
645         (_wcsnrtombs_r): Ditto.
646         * libc/stdlib/wcstombs_r.c: Ditto.
647         * libc/stdlib/wctob.c: Ditto.
648         * libc/stdlib/wctomb.c: Ditto.
649
650         * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from
651         _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
652         defined.
653         * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from
654         _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are
655         defined.
656
657         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for
658         ch >= 0.
659
660 2009-11-17  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
661
662         * libm/common/fdlibm.h (logb, logbf): Move decls from here...
663         * libc/include/math.h (logb, logbf): ...to here.
664
665 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
666
667         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
668
669 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
670
671         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
672         low-level seek error condition.  Restore old errno in case of
673         success.  Don't use new position after seek as error condition,
674         rather check for return value of -1 and errno.  Handle EINVAL
675         just like ESPIPE.  Only set fp->_offset if errno is 0.
676
677 2009-10-27  Nick Clifton  <nickc@redhat.com>
678
679         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
680
681 2009-10-26  DJ Delorie  <dj@redhat.com>
682
683         * configure.host: Add support for RX architecture.
684         * libc/include/machine/ieeefp.h: Likewise.
685         * libc/include/machine/setjmp.h: Likewise.
686         * libc/include/machine/configure.in: Likewise.
687         * libc/include/machine/configure: Regenerate.
688         * libc/machine/rx: New directory.
689         * libc/machine/rx/*: New files to support RX architecture.
690
691 2009-10-24  Eric Blake  <ebb9@byu.net>
692
693         * libc/include/ctype.h (__ctype_lookup): New macro.
694         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
695         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
696         on 64-bit machines.
697
698 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
699
700         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
701         that to CFLAGS.
702         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
703         as it sets the same flags as we are using.
704         * aclocal.m4: Regenerated.
705         * configure: Ditto.
706         * Makefile.in: Ditto.
707         * iconvdata/aclocal.m4: Ditto.
708         * iconvdata/configure: Ditto.
709         * iconvdata/Makefile.in: Ditto.
710         * doc/aclocal.m4: Ditto.
711         * doc/configure: Ditto.
712         * doc/Makefile.in: Ditto.
713         * libc/aclocal.m4: Ditto.
714         * libc/configure: Ditto.
715         * libc/Makefile.in: Ditto.
716         * libc/*Makefile.in: Ditto.
717         * libc/*aclocal.m4: Ditto.
718         * libc/*configure: Ditto.
719         * libm/*Makefile.in: Ditto.
720         * libm/*aclocal.m4: Ditto.
721         * libm/*configure: Ditto.
722
723 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
724
725         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
726         if not __STRICT_ANSI__ or stdc version C99 or greater.
727         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
728         for fseeko and ftello prototypes.
729
730 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
731
732         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
733
734 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
735
736         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
737         exception for KOI8 charsets.
738
739 2009-10-13  Eric Blake  <ebb9@byu.net>
740
741         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
742         new to POSIX 2008.
743
744 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
745
746         * libc/include/sys/signal.h: Include <sys/types.h> always.
747         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
748         standards.
749
750 2009-10-09  Dave Korn  <dave.korn@artimi.com>
751
752         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
753         defining struct timeval.
754
755 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
756
757         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
758         (__default_locale): New global variable set to the default locale.
759         (__get_locale_env): Return __default_locale rather than fixed "C".
760
761 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
762
763         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
764         * libc/stdlib/assert.c (_assert_func): Do not specify
765         __assert_func if HAVE_ASSERT_FUNC flag is set.
766
767 2009-10-08  Eric Blake  <ebb9@byu.net>
768
769         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
770         (__getopt_long_only_r): Protect declarations, to avoid compiler
771         warning.
772
773 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
774
775         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
776         charset on Cygwin.
777
778 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
779
780         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
781         value encoding.
782         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
783         value decoding.
784
785 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
786
787         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
788         prefix.  Add some words to documentation.
789
790 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
791
792         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
793         characters to their corresponding Windows Unicode value.
794
795 2009-09-28  Michael Eager <eager@eagercon.com>
796
797         * configure.host: Add microblaze.
798         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
799         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
800         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
801         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
802         * libc/include/sys/types.h: Treat XMK like rtems, define
803         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
804         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
805         * libc/machine/configure.in: Add microblaze.
806         * libc/machine/configure: Add microblaze (not regenerated).
807         * libc/machine/microblaze/configure.in: NEW.
808         * libc/machine/microblaze/configure: Generate.
809         * libc/machine/microblaze/Makefile.am: NEW.
810         * libc/machine/microblaze/Makefile.in: Generate.
811         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
812         mallocr.c, longjmp.S, setjmp.S}: NEW.
813         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
814         mALLOc(): return malloc value.
815
816 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
817
818         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
819         (lc_message_charset): Ditto.
820         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
821         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
822         Cygwin.
823         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
824         Cygwin.
825
826 2009-09-26  Eric Blake  <ebb9@byu.net>
827
828         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
829         Add declarations.
830
831 2009-09-24  Eric Blake  <ebb9@byu.net>
832
833         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
834         Add declarations.
835
836 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
837
838         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
839         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
840
841 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
842
843         * libc/include/stdlib.h: Add posix_memalign.
844
845 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
846
847         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
848         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
849
850 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
851
852         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
853         "case $host".
854
855 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
856
857         * libc/include/sys/unistd.h: Declare getpagesize as returning
858         POSIX-mandated int.
859         * libc/sys/linux/sys/unistd.h: Ditto.
860
861 2009-08-31  Takaki Makino  <t@snowelm.com>
862
863         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
864         newer gcc versions.
865         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
866
867 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
868
869         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
870         numbers.
871         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
872         charsets.
873         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
874
875 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
876
877         * libc/locale/locale.c: Update documentation.
878         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
879
880 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
881
882         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
883         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
884         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
885
886 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
887
888         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
889         space" (U+00A0).
890         * libc/ctype/iswblank.c (iswblank): Likewise.
891
892 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
893
894         * libc/locale/locale.c (loadlocale): Throughout check charset string
895         case insensitive and store internal charset string uppercased.  Allow
896         "UTF8" additionally to "UTF-8".  Add this change to documentation.
897
898 2009-08-21  Eric Blake  <ebb9@byu.net>
899
900         * libc/include/iconv.h (iconv): Match POSIX prototype.
901         * libc/iconv/lib/iconv.c (iconv): Likewise.
902
903 2009-08-21  Craig Howland <howland@LGSInnovations.com>
904
905         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
906         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
907
908 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
909
910         * iconvdata/Makefile.am (all): Remove.
911         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
912         (all): ... this.
913         * libc/sys/arc/Makefile.am: Likewise.
914         * libc/sys/arm/Makefile.am: Likewise.
915         * libc/sys/d10v/Makefile.am: Likewise.
916         * libc/sys/decstation/Makefile.am: Likewise.
917         * libc/sys/h8300hms/Makefile.am: Likewise.
918         * libc/sys/h8500hms/Makefile.am: Likewise.
919         * libc/sys/linux/Makefile.am: Likewise.
920         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
921         * libc/sys/m88kbug/Makefile.am: Likewise.
922         * libc/sys/mmixware/Makefile.am: Likewise.
923         * libc/sys/netware/Makefile.am: Likewise.
924         * libc/sys/rdos/Makefile.am: Likewise.
925         * libc/sys/rtems/Makefile.am: Likewise.
926         * libc/sys/sh/Makefile.am: Likewise.
927         * libc/sys/sparc64/Makefile.am: Likewise.
928         * libc/sys/sun4/Makefile.am: Likewise.
929         * libc/sys/sysmec/Makefile.am: Likewise.
930         * libc/sys/sysnec810/Makefile.am: Likewise.
931         * libc/sys/sysnecv850/Makefile.am: Likewise.
932         * libc/sys/sysvi386/Makefile.am: Likewise.
933         * libc/sys/sysvnecv70/Makefile.am: Likewise.
934         * libc/sys/tic80/Makefile.am: Likewise.
935         * libc/sys/w65/Makefile.am: Likewise.
936         * libc/sys/z8ksim/Makefile.am: Likewise.
937         * iconvdata/Makefile.in: Regenerate.
938         * libc/sys/a29khif/Makefile.in: Likewise.
939         * libc/sys/arc/Makefile.in: Likewise.
940         * libc/sys/arm/Makefile.in: Likewise.
941         * libc/sys/d10v/Makefile.in: Likewise.
942         * libc/sys/decstation/Makefile.in: Likewise.
943         * libc/sys/h8300hms/Makefile.in: Likewise.
944         * libc/sys/h8500hms/Makefile.in: Likewise.
945         * libc/sys/linux/Makefile.in: Likewise.
946         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
947         * libc/sys/m88kbug/Makefile.in: Likewise.
948         * libc/sys/mmixware/Makefile.in: Likewise.
949         * libc/sys/netware/Makefile.in: Likewise.
950         * libc/sys/rdos/Makefile.in: Likewise.
951         * libc/sys/rtems/Makefile.in: Likewise.
952         * libc/sys/sh/Makefile.in: Likewise.
953         * libc/sys/sparc64/Makefile.in: Likewise.
954         * libc/sys/sun4/Makefile.in: Likewise.
955         * libc/sys/sysmec/Makefile.in: Likewise.
956         * libc/sys/sysnec810/Makefile.in: Likewise.
957         * libc/sys/sysnecv850/Makefile.in: Likewise.
958         * libc/sys/sysvi386/Makefile.in: Likewise.
959         * libc/sys/sysvnecv70/Makefile.in: Likewise.
960         * libc/sys/tic80/Makefile.in: Likewise.
961         * libc/sys/w65/Makefile.in: Likewise.
962         * libc/sys/z8ksim/Makefile.in: Likewise.
963
964         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
965         from newlib_ldbl_eq_dbl.
966         * configure: Regenerate.
967
968 2009-08-19  Eric Blake  <ebb9@byu.net>
969
970         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
971         * libc/libc.texinfo (Top): Add posix node to menu.
972
973 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
974
975         * newlib.hin: Add comment regarding file being manually edited.
976         * Makefile.am: Add no-op rule for newlib.hin.
977         * Makefile.in: Regenerated.
978
979 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
980
981         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
982
983 2009-08-18  Eric Blake  <ebb9@byu.net>
984
985         * libc/posix/popen.c (popen): Fix documented prototype.
986
987         Improve popen compatibility with glibc.
988         * libc/posix/popen.c (popen): The 2006-08-22 change to use
989         FD_CLOEXEC disagrees with other implementations; instead, use
990         pidlist to work even when fcntl is not available.  Meanwhile,
991         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
992         cygwin-specific code, now that cygwin has its own version.
993         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
994         * libc/posix/posix.tex: New file.
995
996 2009-08-17  Craig Howland <howland@LGSInnovations.com>
997
998         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
999         version of strncpy() (fixing two bugs).
1000
1001 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
1002
1003         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
1004
1005 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
1006
1007         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
1008         HAVE_MKDIR is defined.
1009
1010 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
1011
1012         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
1013         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
1014         (CHEWOUT_FILES): Add mkdirr.def.
1015         * libc/reent/Makefile.in: Regenerate.
1016         * libc/reent/mkdirr.c: New file.
1017
1018 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
1019
1020         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
1021         return type instead of int.
1022
1023 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
1024
1025         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
1026         when a lower-case character is detected.
1027
1028 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
1029
1030         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
1031         pair handling to be more bullet-proof even with incomplete UTF-8
1032         sequences.  Add check for 4 byte sequences resulting in values
1033         outside the valid Unicode range.  Add a comment to clarify checking
1034         for invalid CESU-8 sequences.
1035
1036 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
1037
1038         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
1039         of handling incomplete sequences.
1040
1041 2009-07-22  Eric Blake  <ebb9@byu.net>
1042
1043         Avoid a fault from locking a closed standard file.
1044         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
1045         been previously closed.
1046
1047 2009-07-09  Craig Howland <howland@LGSInnovations.com>
1048
1049         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
1050         isnan() (C99 macro).
1051         * libm/math/wf_log.c:  Ditto.
1052         * libm/math/wf_j0.c:  Ditto.
1053         * libm/math/wf_sqrt.c:  Ditto.
1054         * libm/math/wf_pow.c:  Ditto.
1055         * libm/math/wf_fmod.c:  Ditto.
1056         * libm/math/wf_remainder.c:  Ditto.
1057         * libm/math/wf_scalb.c:  Ditto.
1058         * libm/math/wf_atanh.c:  Ditto.
1059         * libm/math/wf_cosh.c:  Ditto.
1060         * libm/math/wf_acos.c:  Ditto.
1061         * libm/math/wf_acosh.c:  Ditto.
1062         * libm/math/wf_jn.c:  Ditto.
1063         * libm/math/wf_log10.c:  Ditto.
1064         * libm/math/wf_asin.c:  Ditto.
1065         * libm/math/wf_j1.c:  Ditto.
1066         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
1067         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
1068         match that from s_isinf.c.
1069         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
1070         remove un-necessary extension use (in a similar manner to as was
1071         recently done in math.h).
1072         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
1073         ieeefp.h).
1074         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
1075
1076 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
1077
1078         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
1079         for RTEMS.
1080
1081 2009-07-03  Eric Blake  <ebb9@byu.net>
1082
1083         Add mkdtemp, mkstemps.
1084         * libc/stdio/mktemp.c: Fix documentation.
1085         (_gettemp): Add domkdir and length parameters.  Check for
1086         insufficient 'X' suffix.  Drop cygwin-specific code.
1087         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
1088         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
1089         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
1090         (mkstemps): Declare them.
1091
1092         Add fpurge.
1093         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
1094         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
1095         Build it.
1096         * libc/stdio/Makefile.in: Regenerated.
1097         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
1098         * libc/stdio/stdio.tex: Build documentation.
1099
1100 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
1101
1102         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
1103         sf_fpclassify as these are now used for infinity testing.
1104         * Makefile.in: Regenerated.
1105
1106 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1107
1108         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
1109         so it can point to an aligned structure or double.
1110
1111 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
1112
1113         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
1114         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
1115         documentation.
1116
1117 2009-06-17  Michael Eager <eager@eagercon.com>
1118
1119         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
1120         PTHREAD_MUTEX_NORMAL.
1121         * libc/include/sys/features.h: Same.
1122         * libc/include/sys/types.h: Same.
1123
1124 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
1125
1126         * libc/include/locale.h (struct lconv): Add missing members required
1127         by POSIX.1-2008.
1128         * libc/locale/locale.c (lconv): Initialize new members to default
1129         values in "C" locale.
1130
1131 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
1132
1133         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
1134         radix char instead of assuming length 1.
1135         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
1136         (gethex): Allow multibyte decimal point.
1137         Fix compiler warnings due to different signedness of pointer types.
1138         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
1139         (_strtod_r): Allow multibyte decimal point.
1140         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
1141         endptr position if the decimal point is a multibyte char.
1142
1143 2009-06-16  Craig Howland <howland@LGSInnovations.com>
1144
1145         * libc/ctype/local.h (__locale_charset): Add arguments to
1146         prototype
1147         * libc/stdlib/local.h (__locale_charset): Ditto.
1148
1149 2009-06-16  Craig Howland <howland@LGSInnovations.com>
1150
1151         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
1152         macros to remove un-necessary extension use.  isinf and isnan also
1153         changed to use fpclassify.  isfinite macro modified to run faster by
1154         only calling fpclassify once instead of possibly twice.
1155
1156 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
1157
1158         * libc/ctype/tolower.c (tolower): Cast conversion result from
1159         mbtowc/wctomb to unsigned char to avoid negative return values.
1160         * libc/ctype/toupper.c (toupper): Ditto.
1161
1162 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
1163
1164         * libc/string/wcwidth.c: Optimize for speed.
1165
1166 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
1167
1168         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
1169         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
1170         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
1171         (__locale_cjk_lang): New function.
1172         * libc/string/local.h (__locale_cjk_lang): Declare.
1173         * libc/string/wcwidth.c: Fix comments.
1174         (__wcwidth): Handle CJK Ambiguous Width characters according
1175         to setting returned by __locale_cjk_lang.
1176
1177 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
1178
1179         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
1180         thumb2.
1181
1182 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
1183
1184         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
1185         (__jp2uc): Change the scope to static function.
1186         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
1187         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
1188
1189 2009-05-27  Neal H. Walfield  <neal@gnu.org>
1190
1191         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
1192         _JBTYPE and the size of sigset_t.
1193
1194 2009-05-15  Craig Howland <howland@LGSInnovations.com>
1195
1196         * configure.in:  Add configuration test for long double type existing
1197         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
1198         and _LDBL_EQ_DBL tests to not link so that will work with
1199         cross-compilers.
1200         * configure: Regenerated.
1201         * Makefile.in: Ditto.
1202         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
1203         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
1204         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
1205         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
1206         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
1207         *libm/common/s_infconst.c:  Change definitions to use values from
1208         float.h instead of non-so-portable integer forms.  Mark as being
1209         deprecated (because now removed from math.h, are not used anywhere
1210         in Newlib, itself).
1211
1212 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
1213
1214         * libc/string/local.h: New file.
1215         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
1216         characters to Unicode here.  Handle surrogate pairs for UTF-16
1217         systems.  Call __wcwidth rather than wcwidth.
1218         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
1219         wcwidth implementation for Unicode.
1220         (bisearch): New static function.
1221         (__wcwidth): New function.  Take wint_t rather than wchar_t as
1222         parameter to allow full Unicode handling on UTF-16 systems.
1223         Move old wcwidth implementation here for non-multibyte aware
1224         systems.
1225         (wcwidth): Convert japanese wide characters to Unicode here.
1226         Call __wcwidth rather than using iswprint/iswcntrl.
1227
1228 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
1229
1230         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
1231         to jp2uc.c.
1232         (__jp2uc): Remove declaration.
1233         (_jp2uc): Declare.
1234         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
1235         (__jp2uc): Remove Cygwin special case.
1236         (_jp2uc): New function.  On Cygwin, just return c.
1237         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
1238         * libc/ctype/iswblank.c (iswblank): Ditto.
1239         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1240         * libc/ctype/iswprint.c (iswprint): Ditto.
1241         * libc/ctype/iswpunct.c (iswpunt): Ditto.
1242         * libc/ctype/iswspace.c (iswspace): Ditto.
1243         * libc/ctype/towlower.c (towlower): Ditto.
1244         * libc/ctype/towupper.c (towupper): Ditto.
1245
1246 2009-05-13  Paul Brook  <paul@codesourcery.com>
1247
1248         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
1249         IP before saving.  Likewise when restoring.
1250
1251 2009-05-13  Paul Brook  <paul@codesourcery.com>
1252
1253         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
1254
1255 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
1256
1257         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
1258
1259 2009-05-11  Craig Howland <howland@LGSInnovations.com>
1260
1261         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
1262         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
1263
1264 2009-05-08  Nick Clifton  <nickc@redhat.com>
1265
1266         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
1267         the write-after-approval list.
1268
1269 2009-04-30  Anthony Green  <green@moxielogic.com>
1270
1271         * MAINTAINERS: Add myself as moxie maintainer and to the
1272         write-after-approval list.
1273
1274 2009-04-30  Eric Blake  <ebb9@byu.net>
1275
1276         Allow gcc warning for toupper even with extended charsets.
1277         * libc/include/ctype.h (toupper, tolower)
1278         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
1279         'char' even when we must call the function for correct behavior.
1280         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
1281
1282 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
1283
1284         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
1285         file lock and released before the file lock to avoid a deadlock
1286         scenario.
1287         * libc/stdio/fgets.c: Ditto.
1288         * libc/stdio/fgetwc.c: Ditto.
1289         * libc/stdio/fgetws.c: Ditto.
1290         * libc/stdio/fread.c: Ditto.
1291         * libc/stdio/fseek.c: Ditto.
1292         * libc/stdio/getc.c: Ditto.
1293         * libc/stdio/getdelim.c: Ditto.
1294         * libc/stdio/gets.c: Ditto.
1295
1296 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
1297
1298         * configure.in: Add configuration test for long double equals dbl
1299         and set flag _LDBL_EQ_DBL if true.
1300         * configure: Regenerated.
1301         * newlib.hin: Add _LDBL_EQ_DBL flag.
1302         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
1303         _HAVE_LDBL_MATH.
1304         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
1305         _HAVE_LDBL_STDLIB.
1306         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
1307         * libc/stdlib/local.h: Ditto.
1308
1309 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
1310
1311         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
1312         if __UINTPTR_MAX__ defined.
1313
1314 2009-04-24  Eric Blake  <ebb9@byu.net>
1315
1316         Be namespace clean in ctype.h.
1317         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
1318         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
1319         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
1320         (isascii, toascii): Don't use 'c' as macro parameter name.
1321
1322         Trigger gcc warning if isFoo macros are called with plain char.
1323         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
1324         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
1325         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
1326         warn when user calls macro with a char argument.
1327
1328 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
1329
1330         * libc/string/strcasecmp.c: Optimized rewrite.
1331         * libc/string/strncasecmp.c: Fix description.
1332         * libc/string/strlwr.c: Avoid passing signed char to tolower.
1333         * libc/string/strupr.c: Avoid passing signed char to tolower.
1334
1335 2009-04-23  Paul Brook  <paul@codesourcery.com>
1336             Kazu Hirata  <kazu@codesourcery.com>
1337
1338         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
1339         to malloc.  Allocate dynamically only if it is present.
1340         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
1341         reference to free.  Call free only if it is present.
1342
1343 2009-04-22 Anthony Green <green@moxielogic.com>
1344
1345         * configure.host: Add moxie support.
1346         * libc/machine/configure.in: Add moxie support.
1347         * libc/machine/configure: Rebuilt.
1348         * libc/machine/moxie/aclocal.m4: New file.
1349         * libc/machine/moxie/configure: New file.
1350         * libc/machine/moxie/configure.in: New file.
1351         * libc/machine/moxie/Makefile.am: New file.
1352         * libc/machine/moxie/Makefile.in: New file.
1353         * libc/machine/moxie/setjmp.S: New file.
1354         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
1355         * libc/include/machine/ieeefp.h: Add moxie support.
1356
1357 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
1358
1359         * libc/stdio/local.h (__chclass, __state_table, __action_table):
1360         Add extern to the declarations.
1361         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
1362
1363 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
1364
1365         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
1366         _CTYPE_DATA_128_256.
1367         * libc/ctype/ctype_cp.h: Split off all character class values for
1368         character 255 from the rest of the definitions.
1369         (__ctype_cp): Use the new definitions.  Make sure that the table
1370         always contains 0 for EOF (-1).
1371         * libc/ctype/ctype_iso.h: Ditto.
1372
1373 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
1374
1375         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
1376         (__sf_fake_stderr): Declare locally with weak attribute.
1377
1378 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
1379
1380         * libc/include/_ansi.h: Move C++ defines to top of file.
1381         (_NOTHROW): New macro.
1382         (_EXFUN_NOTHROW): Likewise.
1383         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
1384         (free): Likewise.
1385         (malloc): Likewise.
1386         (realloc): Likewise.
1387         (_malloc_r): Likewise.
1388         (_callor_r): Likewise.
1389         (_free_r): Likewise.
1390         (_realloc_r): Likewise.
1391
1392 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
1393
1394         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
1395         be _HAVE_LDBL_MATH.
1396         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
1397         be _HAVE_LDBL_STDLIB.
1398
1399 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
1400
1401         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
1402         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
1403         * libc/stdlib/strtold.c: Include local.h.
1404         * libc/stdlib/wcstold.c: Likewise.
1405         * libm/common/atanl.c: Likewise.
1406         * libm/common/cosl.c: Likewise.
1407         * libm/common/sinl.c: Likewise.
1408         * libm/common/modfl.c: Likewise.
1409         * libm/common/frexpl.c: Likewise.
1410         * libm/common/tanhl.c: Likewise.
1411         * libm/common/tanl.c: Likewise.
1412         * libm/common/expm1l.c: Likewise.
1413         * libm/common/log1pl.c: Likewise.
1414         * libm/common/ceill.c: Likewise.
1415         * libm/common/fabsl.c: Likewise.
1416         * libm/common/floorl.c: Likewise.
1417         * libm/common/acosl.c: Likewise.
1418         * libm/common/asinl.c: Likewise.
1419         * libm/common/atan2l.c: Likewise.
1420         * libm/common/coshl.c: Likewise.
1421         * libm/common/expl.c: Likewise.
1422         * libm/common/fmodl.c: Likewise.
1423         * libm/common/hypotl.c: Likewise.
1424         * libm/common/ldexpl.c: Likewise.
1425         * libm/common/log10l.c: Likewise.
1426         * libm/common/logl.c: Likewise.
1427         * libm/common/powl.c: Likewise.
1428         * libm/common/sqrtl.c: Likewise.
1429         * libm/common/copysignl.c: Likewise.
1430         * libm/common/ilogbl.c: Likewise.
1431         * libm/common/nanl.c: Likewise.
1432         * libm/common/cbrtl.c: Likewise.
1433         * libm/common/asinhl.c: Likewise.
1434         * libm/common/nextafterl.c: Likewise.
1435         * libm/common/rintl.c: Likewise.
1436         * libm/common/scalbnl.c: Likewise.
1437         * libm/common/exp2l.c: Likewise.
1438         * libm/common/fdiml.c: Likewise.
1439         * libm/common/fmal.c: Likewise.
1440         * libm/common/fmaxl.c: Likewise.
1441         * libm/common/fminl.c: Likewise.
1442         * libm/common/lrintl.c: Likewise.
1443         * libm/common/lroundl.c: Likewise.
1444         * libm/common/nearbyintl.c: Likewise.
1445         * libm/common/remquol.c: Likewise.
1446         * libm/common/roundl.c: Likewise.
1447         * libm/common/scalblnl.c: Likewise.
1448         * libm/common/truncl.c: Likewise.
1449         * libm/common/acoshl.c: Likewise.
1450         * libm/common/atanhl.c: Likewise.
1451         * libm/common/erfcl.c: Likewise.
1452         * libm/common/erfl.c: Likewise.
1453         * libm/common/lgammal.c: Likewise.
1454         * libm/common/remainderl.c: Likewise.
1455         * libm/common/tgammal.c: Likewise.
1456         * libm/common/sinhl.c: Likewise.
1457         * libm/common/llroundl.c: Likewise.
1458         * libm/common/llrintl.c: Likewise.
1459         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
1460
1461 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
1462
1463         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
1464         * libc/include/math.h (llrintl): Declare.
1465         * libm/common/llrintl.c: New File.
1466         * libm/common/Makefile.am: New File added.
1467         * libm/common/Makefile.in: Regenerate.
1468
1469 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
1470
1471         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1472         avoid executable test.
1473         * libc/configure: Regenerate.
1474
1475 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
1476
1477         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
1478         * configure: Regenerated.
1479         * Makefile.in: Regenerated.
1480         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
1481         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
1482         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
1483         avoid executable test.
1484         * libm/configure: Regenerated.
1485
1486 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
1487
1488         * libc/misc/init.c (__libc_fini_array): Process fini_array in
1489         reverse order as compliant with the ELF specification.
1490
1491 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
1492
1493         * libc/machine/spu/Makefile.am: Add new File.
1494         * libc/machine/spu/Makefile.in: Regenerate.
1495         * libc/machine/spu/fdopen.c: New file.
1496
1497 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
1498
1499         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
1500
1501 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
1502
1503         * libm/libm.texinfo: Add long double function support chapter.
1504         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
1505         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
1506         (strtold, wcstold): Declare.
1507         * libc/stdlib/strtold.c: New File.
1508         * libc/stdlib/wcstold.c: Likewise.
1509         * libc/configure.in: Add long double check.
1510         * libc/configure: Regenerate.
1511         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
1512         * libc/stdlib/Makefile.in: Regenerate.
1513         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
1514         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
1515         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
1516         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
1517         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
1518         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
1519         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
1520         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
1521         * libm/common/atanl.c: New File.
1522         * libm/common/cosl.c: Likewise.
1523         * libm/common/sinl.c: Likewise.
1524         * libm/common/modfl.c: Likewise.
1525         * libm/common/frexpl.c: Likewise.
1526         * libm/common/tanhl.c: Likewise.
1527         * libm/common/tanl.c: Likewise.
1528         * libm/common/expm1l.c: Likewise.
1529         * libm/common/log1pl.c: Likewise.
1530         * libm/common/ceill.c: Likewise.
1531         * libm/common/fabsl.c: Likewise.
1532         * libm/common/floorl.c: Likewise.
1533         * libm/common/acosl.c: Likewise.
1534         * libm/common/asinl.c: Likewise.
1535         * libm/common/atan2l.c: Likewise.
1536         * libm/common/coshl.c: Likewise.
1537         * libm/common/expl.c: Likewise.
1538         * libm/common/fmodl.c: Likewise.
1539         * libm/common/hypotl.c: Likewise.
1540         * libm/common/ldexpl.c: Likewise.
1541         * libm/common/log10l.c: Likewise.
1542         * libm/common/logl.c: Likewise.
1543         * libm/common/powl.c: Likewise.
1544         * libm/common/sqrtl.c: Likewise.
1545         * libm/common/copysignl.c: Likewise.
1546         * libm/common/ilogbl.c: Likewise.
1547         * libm/common/nanl.c: Likewise.
1548         * libm/common/cbrtl.c: Likewise.
1549         * libm/common/asinhl.c: Likewise.
1550         * libm/common/nextafterl.c: Likewise.
1551         * libm/common/rintl.c: Likewise.
1552         * libm/common/scalbnl.c: Likewise.
1553         * libm/common/exp2l.c: Likewise.
1554         * libm/common/fdiml.c: Likewise.
1555         * libm/common/fmal.c: Likewise.
1556         * libm/common/fmaxl.c: Likewise.
1557         * libm/common/fminl.c: Likewise.
1558         * libm/common/lrintl.c: Likewise.
1559         * libm/common/lroundl.c: Likewise.
1560         * libm/common/nearbyintl.c: Likewise.
1561         * libm/common/remquol.c: Likewise.
1562         * libm/common/roundl.c: Likewise.
1563         * libm/common/scalblnl.c: Likewise.
1564         * libm/common/truncl.c: Likewise.
1565         * libm/common/acoshl.c: Likewise.
1566         * libm/common/atanhl.c: Likewise.
1567         * libm/common/erfcl.c: Likewise.
1568         * libm/common/erfl.c: Likewise.
1569         * libm/common/lgammal.c: Likewise.
1570         * libm/common/remainderl.c: Likewise.
1571         * libm/common/tgammal.c: Likewise.
1572         * libm/common/sinhl.c: Likewise.
1573         * libm/common/llroundl.c: Likewise.
1574         * libm/configure.in: Add long double check.
1575         * libm/configure: Regenerate.
1576         * libm/common/Makefile.am: Add new files.
1577         * libm/common/Makefile.in: Regenerate.
1578
1579 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1580
1581         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
1582         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
1583         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
1584         class mappings.
1585         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
1586         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
1587         * libc/ctype/isblank.c (isblank): Special case TAB.
1588         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
1589         in (_U|_L).
1590         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
1591         * libc/include/ctype.h (islower): Same in macro.
1592         (isupper): Ditto.
1593         (isblank): Special case TAB.  Redefine macro for GCC only.
1594
1595 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1596
1597         * libc/stdlib/local.h (__mbtowc): Declare extern.
1598         (__wctomb): Ditto.
1599
1600 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
1601
1602         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
1603         recognizes 0x8e and 0x8f lead bytes.
1604         (_iseucjp2): Rename from _iseucjp.
1605         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
1606         triplebyte sequences as well.
1607         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
1608         triplebyte sequences as well.
1609
1610 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
1611
1612         * configure.in: Add square brackets for the array aliasing conftest.
1613         * configure: Regenerate.
1614
1615 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
1616
1617         * libc/string/strncasecmp.c: Optimized rewrite.
1618
1619 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
1620
1621         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
1622         * libc/include/machine/time.h (nanosleep): Declare.
1623
1624 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
1625
1626         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
1627
1628 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1629
1630         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
1631
1632 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
1633
1634         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
1635         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
1636
1637 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
1638
1639         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
1640         to avoid a warning with -Wmissing-prototypes.
1641
1642 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1643
1644         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
1645
1646 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1647
1648         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
1649         (linux_getpid, linux_gettid): Declare.
1650
1651 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1652
1653         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
1654         profiling.
1655
1656 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
1657
1658         * libc/include/math.h: Remove duplicate copysign prototype.
1659         Fix __math_68881 define typo.  Guard functions of the rint family.
1660
1661 2009-04-03  Craig Howland <howland@LGSInnovations.com>
1662
1663         * libm/common/s_llrint.c: New file, implementing llrint().
1664         * libm/common/sf_llrint.c: New file, implementing llrintf().
1665         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
1666         * libm/common/Makefile.in:  Regenerate.
1667
1668 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
1669
1670         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
1671         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
1672         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
1673         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
1674         (__set_ctype): Set __ctype_ptr__ pointer according to definition
1675         of ALLOW_NEGATIVE_CTYPE_INDEX.
1676         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
1677
1678 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
1679
1680         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
1681         source files.  Add a dependency rule for ctype_o to note
1682         changes in ctype_iso.h and ctype_cp.h.
1683         * libc/ctype/Makefile.in: Regenerate.
1684         * libc/ctype/_tolower.c: Remove file.
1685         * libc/ctype/_toupper.c: Remove file.
1686         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
1687         is always defined on Cygwin.
1688         (_ctype_b): Don't make `static const' on Cygwin.
1689         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
1690         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
1691         (__ctype_ptr): Drop definition.
1692         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
1693         (_ctype_): Add Cygwin-specifc asm define.
1694         (__set_ctype): New function to set __ctype_ptr__ according to
1695         current charset.
1696         * libc/ctype/ctype_cp.h: New file containing Windows codepage
1697         specific character class tables.
1698         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
1699         specific character class tables.
1700         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
1701         charset if one of the extended charsets is enabled.
1702         * libc/ctype/toupper.c (toupper): Ditto.
1703         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
1704         (_toupper): Ditto.
1705         (__ctype_ptr__): De-constify.
1706         (toupper): Disable macro on systems supporting extended charsets.
1707         (tolower): Ditto.
1708         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
1709         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
1710         (__set_ctype): Declare unconditionally.
1711         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
1712
1713 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1714
1715         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
1716         of "GB2312".  Fix documentation accordingly.
1717
1718 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1719
1720         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
1721         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
1722         marker in ctype array.
1723         * libc/include/ctype.h (isblank): Add macro.
1724
1725 2009-03-25  Craig Howland <howland@LGSInnovations.com>
1726
1727         * libc/include/math.h:  (llround, llroundf): Declare.
1728         * libm/common/s_llround.c: New file, implementing llround().
1729         * libm/common/sf_llround.c: New file, implementing llroundf().
1730         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
1731         version of function.
1732         * libm/common/sf_lrint.c: Ditto.
1733         * libm/common/sf_logb.c:  Corrected return for subnormal argument
1734         by replacing existing function with a version created from sf_ilogb.c.
1735         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
1736         added documentation for logb() and logbf().
1737         * libm/common/s_signbit.c:  Add signbit() documentation.
1738         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
1739         since log2 uses log(); add note about being derived instead of direct.
1740         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
1741         as well as comments pointing out problems with the implementation.
1742         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
1743         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
1744         corrected by discarding existing function and replacing with Sun
1745         verion, with some enhancements.
1746         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
1747         documentation.
1748         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
1749         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
1750         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
1751         documentation.
1752         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
1753         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
1754         * libm/common/s_rint.c: Add rint() and rintf() documentation.
1755         * libm/common/s_round.c: Add round() and roundf() documentation.
1756         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
1757         * libm/common/s_infinity.c: Add infinity() and infinityf()
1758         documentation.
1759         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
1760         llroundf() documentation.
1761         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
1762         documentation.
1763         * libm/common/isgreater.c: New file for documenting math.h function-like
1764         macros isgreater(), isgreaterequal(), isless(), islessequal(),
1765         islessgreater(), and isunordered().
1766         * libm/common/s_isnan.c: Add documentation for function-like macros
1767         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
1768         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
1769         documentation.
1770         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
1771         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1772         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1773         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1774         isgreater.def (chobj);
1775         re-name all existing chew files (chobj) to match source file base
1776         names (put in underscores), delete all special targets for chew files
1777         (leaving all to be generated by rule).
1778         * libm/common/Makefile.in: regenerate.
1779         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1780         delete TRAD_SYNOPSIS).
1781         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1782         with some history behind the function names.
1783         * libm/math/math.tex: Add includes for newly-added documentation (see
1784         .def additions to common/Makefile.am and math/Makefile.am in this
1785         ChangeLog list), adjusted existing .def file names to match source file
1786         base names (added underscores); add mention of HUGE_VALF; rename
1787         "Version of library" section to "Error Handling" and add some text
1788         about floating-point exception; added section "Standards Compliance And
1789         Portability".
1790         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1791         re-name all existing chew files (chobj) to match source file base
1792         names, delete all special targets for chew files (leaving all to be
1793         generated by rule).
1794         * libm/math/Makefile.in: regenerated
1795         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1796         to a failure when reading macro file for commands < 4 characters;
1797         add -v (verbose) option for printing some debugging information;
1798         get rid of spurious translation of "@*" to "*" (no source files used @*,
1799         so no existing doc pages were affected); clean up some compiler
1800         warnings.
1801         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1802         which has them); Remove ITEM command (redundant with makedoc built-in
1803         "o", not used in any present source file so nothing is lost, anyway).
1804         * HOWTO: New file to hold information for maintainers regarding how
1805         to do things.  Initial sections on documentation and ELIX levels.
1806
1807 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1808
1809         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1810         detect the nul-byte in a big-endian string.
1811
1812 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1813
1814         * libc/string/wcsdup.c: Fix documentation error.
1815         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1816         wcsdup.def rather than wcsdup.
1817         * libc/string/Makefile.in: Regenerated.
1818
1819 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1820
1821         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1822         pointers if category is LC_CTYPE.
1823
1824 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1825
1826         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1827         "GB2312".  Fix documentation accordingly.
1828
1829 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1830
1831         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1832         "eucKR".  Fix documentation accordingly.
1833
1834 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1835
1836         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1837         for "eucJP" charset support.
1838
1839 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1840
1841         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1842         it is used in libc/search.
1843
1844 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1845
1846         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1847         _MB_CAPABLE systems.
1848         * libc/ctype/iswblank.c: Ditto.
1849         * libc/ctype/iswcntrl.c: Ditto.
1850         * libc/ctype/iswprint.c: Ditto.
1851         * libc/ctype/iswpunct.c: Ditto.
1852         * libc/ctype/iswspace.c: Ditto.
1853         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1854         Explain why.
1855         * libc/ctype/towlower.c: Ditto.
1856         * libc/ctype/towupper.c: Ditto.
1857         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1858         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1859         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1860         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1861         and _current_locale as unused.
1862         * libc/locale/locale.c: Add new charset support to documentation.
1863         Include ../stdio/local.h from here.
1864         (lc_ctype_charset): Set to "ASCII" by default.
1865         (lc_message_charset): Ditto.
1866         (_setlocale_r): Don't set _current_category and _current_locale.
1867         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1868         systems, set __mbtowc and __wctomb function pointers to function
1869         corresponding with current charset.  Don't allow non-existant
1870         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1871         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1872         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1873         _current_category and _current_locale.
1874         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1875         * libc/stdlib/Makefile.in: Regenerate.
1876         * libc/stdlib/local.h: Add prototype for __locale_charset.
1877         Add prototypes for __mbtowc and __wctomb pointers.
1878         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1879         functions.
1880         Declare tables and functions from sb_charsets.c.
1881         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1882         by default.
1883         (_mbtowc_r): Just call __mbtowc from here.
1884         (__ascii_mbtowc): New function.
1885         (__iso_mbtowc): New function.
1886         (__cp_mbtowc): New function.
1887         (__utf8_mbtowc): New function.
1888         (__sjis_mbtowc): New function.  Disable on Cygwin.
1889         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1890         (__jis_mbtowc): New function.  Disable on Cygwin.
1891         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1892         conversion tables for all ISO and CP charsets.
1893         (__iso_8859_index): New function.
1894         (__cp_index): New function.
1895         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1896         by default.
1897         (_wctomb_r): Just call __wctomb from here.
1898         (__ascii_wctomb): New function.
1899         (__utf8_wctomb): New function.
1900         (__sjis_wctomb): New function.  Disable on Cygwin.
1901         (__eucjp_wctomb): New function.  Disable on Cygwin.
1902         (__jis_wctomb): New function.  Disable on Cygwin.
1903         (__iso_wctomb): New function.
1904         (__cp_wctomb): New function.
1905
1906 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1907
1908         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1909
1910 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1911
1912         * libc/locale/locale.c (loadlocale): Fix typo in language and
1913         territory evaluation.
1914
1915 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1916
1917         * libc/include/sys/errno.h: Protect various non-standard errnos
1918         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1919         * libc/include/sys/config.h[__CYGWIN__]: Define
1920         __LINUX_ERRNO_EXTENSIONS__.
1921
1922 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1923
1924         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1925         invalid character sequence.
1926
1927         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1928         missing declaration of __locale_charset.
1929         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1930
1931 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1932
1933         * libm/common/s_log2.c: New file.
1934         * libm/common/sf_log2.c: Ditto.
1935         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1936         * libm/common/Makefile.in: Regenerated.
1937         * libc/include/math.h: Add log2 and log2f function prototypes.
1938
1939 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1940
1941         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1942         string correctly.
1943
1944 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1945
1946         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1947
1948 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1949
1950         * libc/machine/arm/strlen.c (strlen): Correctly detect
1951         end-of-string.
1952         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1953         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1954
1955 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1956
1957         * libc/include/sys/errno.h (ESTRPIPE): Define.
1958         * libc/string/strerror.c (strerror): Decode it.
1959
1960 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1961
1962         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1963         * libc/string/Makefile.am: Add wcsdup.c.
1964         * libc/string/Makefile.in: Regenerate.
1965         * libc/string/strings.tex: Add wcsdup documentation reference.
1966         * libc/string/wcsdup.c: New file.
1967
1968 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1969
1970         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1971         !_REENT_ONLY section.
1972
1973 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1974
1975         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1976         to stdlib.h.
1977         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1978         * libc/stdio/mktemp.c: Explain the security risk when using
1979         mktemp.
1980
1981 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1982
1983         * libc/time/time.tex (wcsftime.def):  Include.
1984         * libc/time/wcsftime.c:  Clean up documentation a little.
1985
1986 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1987
1988         * libc/stdio/swscanf.c:  Some documentation corrections.
1989
1990 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1991
1992         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1993         correct how terminating L'\0' is added;
1994         change return to match standard for when output does not fit;
1995         some corrections and enhancements to the docs.
1996         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1997         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1998         enhancements to comments.  (No code changes.)
1999         * libc/time/strftime.c:  Correct some problems that made wcsftime()
2000         not work correctly:  work properly with swprintf returns that are
2001         different from snprintf returns, correct test vector lengths for
2002         when sizeof(wchar_t) > 1.
2003         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
2004         enhancements to match those done to swprintf.c.
2005
2006 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
2007
2008         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
2009         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
2010         * libc/stdio/Makefile.in: Regenerate.
2011         * libc/string/strings.tex: Add new documentation references.
2012         * libc/string/wcscasecmp.c: New file.
2013         * libc/string/wcsncasecmp.c: New file.
2014
2015 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
2016
2017         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
2018         wscanf): Declare.
2019         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
2020         _wscanf_r): Declare.
2021         * libc/stdio/Makefile.am: Add new wscanf files.
2022         * libc/stdio/Makefile.in: Regenerate.
2023         * libc/stdio/fwscanf.c: New file.
2024         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
2025         __ssvfiwscanf_r): Declare.
2026         * libc/stdio/stdio.tex: Add new documentation references.
2027         * libc/stdio/swscanf.c: New file.
2028         * libc/stdio/vfwscanf.c: New file.
2029         * libc/stdio/vswscanf.c: New file.
2030         * libc/stdio/vwscanf.c: New file.
2031         * libc/stdio/wscanf.c: New file.
2032
2033         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
2034         define if INTEGER_ONLY is defined.  Declare otherwise.
2035         (__ssrefill_r): Ditto.
2036         (_sfread_r): Ditto.
2037
2038         Remove static eofread/eofread1 functions and use __seofread
2039         function instead, throughout.
2040         * libc/stdio/local.h (__seofread): Declare.
2041         * libc/stdio/stdio.c (__seofread): Define.
2042
2043         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
2044         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
2045         * libc/stdio/fread.c (_fread_r): Ditto.
2046         * libc/stdio/vfprintf.c: Ditto.
2047         * libc/stdio/vswprintf.c: Ditto.
2048
2049 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
2050
2051         * libc/machine/arm/arm_asm.h: Fix typo.
2052
2053 2009-03-09  Craig Howland <howland@LGSInnovations.com>
2054
2055         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
2056         defines strftime(), but can also define wcsftime(); add optional
2057         test package; speed up %Y handling.
2058         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
2059         indirectly by including strftime.c) and its documentation.
2060         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
2061         description to match modified description in strftime.c
2062         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
2063         so that wcsftime.o gets rebuilt when strftime changes.
2064         * libc/time/Makefile.in:  Regenerate.
2065         * libc/include/wchar.h (wcsftime): Declare.
2066
2067 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
2068             Corinna Vinschen  <corinna@vinschen.de>
2069
2070         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
2071         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
2072         dereferencing it.
2073         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
2074
2075 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
2076
2077         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
2078         * libc/include/wchar.h: Include stdarg.h.
2079         (__VALIST): Define conditionally.
2080         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
2081         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
2082          _wprintf_r): Declare.
2083         * libc/stdio/Makefile.am: Add new files.
2084         * libc/stdio/Makefile.in: Regenerate.
2085         * libc/stdio/fwprintf.c: New file.
2086         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
2087         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
2088         and move to the __ namespace.
2089         (__chclass, __state_table, __action_table): Declare.
2090         * libc/stdio/stdio.tex: Add new documentation references.
2091         * libc/stdio/swprintf.c: New file.
2092         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
2093         __sprint_r function according to compilation unit.  Use throughout.
2094         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
2095         Make externaly available.  Only define if INTEGER_ONLY is defined.
2096         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
2097         is defined.  Handle stream orientation.
2098         (__sbprintf): Copy FILE's _flags2 member as well.
2099         (__chclass, __state_table, __action_table): Prepend __ to name and
2100         make externally available.
2101         * libc/stdio/vfwprintf.c: New file.
2102         * libc/stdio/vswprintf.c: New file.
2103         * libc/stdio/vwprintf.c: New file.
2104         * libc/stdio/wprintf.c: New file.
2105
2106 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
2107
2108         * libc/locale/locale.c (_setlocale_r): New implementation based on
2109         FreeBSD's setlocale.
2110         (currentlocale): New helper function.
2111         (loadlocale): Ditto.
2112         (__locale_charset): New function.
2113         (__locale_msgcharset): Rename from __locale_charset.
2114         * libc/ctype/local.h (__lc_ctype): Remove declaration.
2115         (__locale_charset): Declare.
2116         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
2117         using __lc_ctype directly.  Only compare against the charset alone.
2118         * libc/ctype/iswblank.c (iswblank): Ditto.
2119         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
2120         * libc/ctype/iswprint.c (iswprint): Ditto.
2121         * libc/ctype/iswpunct.c (iswpunct): Ditto.
2122         * libc/ctype/iswspace.c (iswspace): Ditto.
2123         * libc/ctype/towlower.c (towlower): Ditto.
2124         * libc/ctype/towupper.c (towupper): Ditto.
2125         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
2126         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
2127         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
2128         __locale_msgcharset instead of __locale_charset.
2129
2130 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
2131
2132         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
2133         charset, cast wchar to size_t in case wchar_t is signed.
2134         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
2135
2136 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
2137
2138         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
2139         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
2140         value in case of using a singlebyte charset.
2141
2142 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
2143
2144         * libc/machine/arm/strcpy.c: Add missing comma.
2145
2146 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
2147
2148         * libc/machine/lm32/configure.in: Let
2149         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
2150         * libs/machine/lm32/configure: Regenerate.
2151
2152 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
2153
2154         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
2155           mbsnrtowcs.def, wcsnrtombs.def.
2156         * libc/stdlib/Makefile.in: Regenerate.
2157         * libc/stdlib/stdlib.tex (@menu): Use correct section
2158           names for mbsrtowcs, wcsrtombs.
2159         * libc/stdlib/wcstod.c: Remove stray character in
2160           documentation.
2161
2162 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
2163
2164         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
2165         byte UTF-8 sequences since they are invalid in the Unicode standard.
2166         Handle surrogate pairs in case of wchar_t == UTF-16.
2167         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
2168         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
2169         pairs in case of wchar_t == UTF-16.
2170
2171 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
2172
2173         * libc/stdio/open_memstream.c (stdint.h): Include.
2174
2175 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
2176
2177         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
2178         coupling ttyname_r() and ttyname() due to the latter's large buffer).
2179         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
2180         ttyname.c.
2181         * libc/unix/ttyname.h:  New file (common size definition for the 2
2182         ttyname*c files that are now split).
2183         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
2184         * libc/unix/Makefile.in:  Regenerate.
2185
2186 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
2187
2188         * libc/include/wchar.h (mbsnrtowcs): Declare.
2189         (_mbsnrtowcs_r): Declare.
2190         (wcsnrtombs): Declare.
2191         (_wcsnrtombs_r): Declare.
2192         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
2193         and wcsnrtombs.c.
2194         * libc/stdlib/Makefile.in: Regenerate.
2195         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
2196         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
2197         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
2198         (mbsrtowcs): Ditto.
2199         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
2200         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
2201         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
2202         (wcsrtombs): Ditto.
2203         * libc/stdlib/stdlib.tex: Accommodate new documentation.
2204
2205 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
2206
2207         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
2208         buffer size to be in wchar_t units if wide == 1 is passed in.  In
2209         this case, also initialize the first character of the buffer to be
2210         wide char null.
2211         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
2212         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
2213         incrementing the size_t value n to first check that n is not already
2214         size_t -1.  Fix some compiler warnings.
2215         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
2216
2217 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
2218
2219         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
2220         (struct memstream): Add wide element.
2221         Change saved to a union to take char and wchar_t values.
2222         (memwriter): Accommodate wide-oriented oeprations.
2223         (memseeker): Ditto.
2224         (memseeker64): Ditto.
2225         (memcloser): Ditto.
2226         (internal_open_memstream_r): New static function.  Take functionality
2227         from former _open_memstream_r and handle additional "wide" parameter.
2228         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
2229         from here.
2230         (_open_wmemstream_r): New function.
2231         (open_wmemstream): Ditto.
2232         * libc/include/wchar.h (open_wmemstream): Declare.
2233         (_open_wmemstream_r): Declare.
2234
2235 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
2236
2237         * libc/stdio/fputwc.c: Fix typo in man page info.
2238
2239 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
2240
2241         * libc/include/wchar.h (_wcstod_r): Declare.
2242         (_wcstof_r): Declare.
2243         (wcstod): Declare.
2244         (wcstof): Declare.
2245         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
2246         (CHEWOUT_FILES): Add wcstod.def.
2247         * libc/stdlib/Makefile.in: Regenerate.
2248         * libc/stdlib/stdlib.tex: Add wcstod.
2249         * libc/stdlib/wcstod.c: New file.
2250
2251 2009-02-05  Neal H. Walfield  <neal@gnu.org>
2252
2253         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
2254
2255 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
2256
2257         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
2258         inf and nan processing to not proceed if we have already collected
2259         zeroes.
2260
2261 2009-01-26  DJ Delorie  <dj@redhat.com>
2262
2263         * configure.host (m32c-*-*): Add long long I/O support by default.
2264
2265 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
2266
2267         * libc/machine/arm/arm_asm.h: New file.
2268         * libc/machine/arm/strlen.c: New file.
2269         * libc/machine/arm/strcpy.c: New file.
2270         * libc/machine/arm/strcmp.c: New file.
2271         * libc/machine/arm/Makefile.am: Add new string routines.
2272
2273 2009-01-19  Neal H. Walfield  <neal@gnu.org>
2274
2275         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
2276         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
2277         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
2278         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
2279         not ll.
2280
2281 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
2282
2283         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
2284
2285 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
2286
2287         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
2288         each fp.  Let the function being called lock the fp, if necessary.
2289
2290 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
2291
2292         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
2293
2294 2009-01-05  Craig Howland <howland@LGSInnovations.com>
2295
2296         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
2297
2298 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
2299
2300         * NEWS: Update with 1.17.0 info.
2301         * README: Ditto.
2302         * acinclude.m4: Change version number to 1.17.0.
2303         * aclocal.m4: Regenerated.
2304         * configure: Ditto.
2305         * doc/aclocal.m4: Ditto.
2306         * doc/configure: Ditto.
2307         * libc/*/aclocal.m4: Ditto.
2308         * libc/*/configure: Ditto.
2309         * libc/libc.texinfo: Ditto.
2310         * libm/*/aclocal.m4: Ditto.
2311         * libm/*/configure: Ditto.
2312         * libm/libm.texinfo: Ditto.
2313         * libc/sys/linux/shared.ld: Add VERS_1.17
2314
2315 2008-12-17  Jon Beniston <jon@beniston.com>
2316
2317         * configure.host: Set syscall_dir for lm32 target.
2318
2319 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
2320
2321         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
2322         are included as part of fputwc and fgetwc, respectively.
2323
2324 2008-12-12  Craig Howland <howland@LGSInnovations.com>
2325
2326         * libc/include/wchar.h:  Added wcstok() declaration.
2327         * libc/string/wcstok.c: New file, implementing wcstok.
2328         * libc/string/Makefile.am: Add wcstok support.
2329         * libc/string/wcstrings.tex: Ditto.
2330         * libc/string/Makefile.in: Regenerated.
2331
2332 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
2333
2334         * libc/stdio/fputws.c: Fix documentation.
2335         * libc/stdio/getwchar.c: Ditto.
2336         * libc/stdio/putwchar.c: Ditto.
2337
2338 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
2339
2340         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
2341         200112L (SUSv3 compliance).
2342         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
2343
2344 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
2345
2346         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
2347         _execve(), _exit().
2348
2349 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
2350
2351         * configure.host: Let *rtems* default to c99-formats.
2352
2353 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
2354
2355         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
2356         * libc/stdio/fseek.c:  Ditto.
2357         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
2358
2359 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
2360
2361         * libc/include/sys/time.h (gettimeofday): Change prototype so
2362         2nd parameter is void *, matching SUSV2.
2363         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
2364
2365 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
2366
2367         * configure.host: Add lm32
2368         * libc/include/machine/ieeefp.h: Add __lm32__
2369         * libc/include/machine/setjmp.h: Add __lm32__
2370         * libc/machine/configure.in: Add lm32
2371         * libc/machine/configure: Regenerated.
2372         * libc/machine/lm32/aclocal.m4: New file.
2373         * libc/machine/lm32/configure.in: Ditto.
2374         * libc/machine/lm32/configure: Ditto.
2375         * libc/machine/lm32/Makefile.am: Ditto.
2376         * libc/machine/lm32/Makefile.in: Ditto.
2377         * libc/machine/lm32/setjmp.s: Ditto.
2378
2379 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
2380
2381         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
2382         effect" warnings from gcc.
2383         * libc/include/sys/stdio.h:  Ditto.
2384         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
2385         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
2386         * libc/stdlib/__ten_mu.c:  Ditto.
2387         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
2388         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
2389         already others in file without _ansi method, so did not bother.)
2390         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
2391         definitions.
2392         * libc/time/mktime.c:  Ditto.
2393         * libc/misc/__dprintf.c:  Ditto.
2394         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
2395         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
2396         _funopen_r, and _fopencookie_r.
2397         * libc/include/reent.h:  Add function prototype for _stat64_r, align
2398         _execve_r prototype with POSIX definition for execve.
2399         * libc/reent/execr.c:  Align function prototype with POSIX definition.
2400         * libc/stdio/asniprintf.c:  Add #include "local.h".
2401         * libc/stdio/vasniprintf.c:  Ditto.
2402         * libc/stdio/fread.c:  Remove unused variable newcount.
2403         * libc/stdio/local.h:  Add function prototype for __sccl.
2404         * libc/stdio/open_memstream.c:  Remove unused variable flags.
2405         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
2406         for __sccl since now in local.h.
2407         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
2408         traditional synopsis), remove extraneous stddef.h and limits.h.
2409         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
2410         * libc/syscalls/sysfork.c:  Ditto.
2411         * libc/syscalls/sysgetpid.c:  Ditto.
2412         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
2413         prototype with POSIX definition.
2414         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
2415         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
2416         * libc/syscalls/syskill.c:  Add #include <signal.h>.
2417         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
2418         * libc/syscalls/sysunlink.c:  Ditto.
2419         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
2420         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
2421
2422 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
2423
2424         Implement basic wide char stdio functionality, based on FreeBSD.
2425         * libc/include/stdio.h (__SORD): Define.
2426         (__SWID): Define.
2427         * libc/include/wchar.h: Add declarations for new wide char functions.
2428         (getwc): Define as macro.
2429         (getwchar): Ditto.
2430         (putwc): Ditto.
2431         (putwchar): Ditto.
2432         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
2433         (struct __sFILE64): Ditto.
2434         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
2435         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
2436         and ungetwc.c.
2437         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
2438         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
2439         ungetwc.def.
2440         Add header dependency rules for the new files.
2441         * libc/stdio/Makefile.in: Regenerate.
2442         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
2443         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
2444         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
2445         (__sfmoreglue): Ditto.
2446         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
2447         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
2448         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
2449         * libc/stdio/fread.c (_fread_r): Set stream orientation.
2450         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
2451         _mbstate.
2452         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
2453         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
2454         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
2455         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
2456         * libc/stdio/getwchar.c: New file, implementing getwchar and
2457         _getwchar_r.
2458         * libc/stdio/local.h (ORIENT): New macro.
2459         * libc/stdio/puts.c (_puts_r): Set stream orientation.
2460         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
2461         * libc/stdio/putwchar.c: New file, implementing putwchar and
2462         _putwchar_r.
2463         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
2464         * libc/stdio/stdio.tex: Add documentation for new functions.
2465         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
2466         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
2467         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
2468         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
2469
2470 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
2471
2472         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
2473         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
2474         constants with "long" types where appropriate.
2475         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
2476         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
2477         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
2478         Correct to match logic for defining corresponding types.
2479         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
2480         (SIZE_MAX): Define using __SIZE_MAX__ if available.
2481         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
2482         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
2483         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
2484         (UINT8_C, UINT16_C): Define to give signed values if corresponding
2485         types would promote to int.
2486
2487 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
2488
2489         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
2490         (_POSIX_V6_LP64_OFF64): Ditto.
2491         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
2492
2493 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
2494
2495         * libc/sys/linux/inode.c: Include <dirent.h> instead of
2496         <linux/dirent.h>.
2497         * libc/sys/linux/io64.c: Add weak alias for _stat64.
2498
2499 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
2500
2501         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
2502         to fix GCC warning.
2503
2504 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
2505
2506         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
2507         * libc/machine/spu/Makefile.in: Regenerated.
2508         * libc/machine/spu/spu-gmon.c: New file.
2509         * libc/machine/spu/spu-mcount.S: New file.
2510
2511 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
2512
2513         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
2514
2515 2008-11-27  Craig Howland <howland@LGSInnovations.com>
2516
2517         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
2518         prototypes.
2519         * libc/argz/argz_append.c: Ditto.
2520         * libc/argz/argz_count.c: Ditto.
2521         * libc/argz/argz_create.c: Ditto.
2522         * libc/argz/argz_create_sep.c: Ditto.
2523         * libc/argz/argz_delete.c: Ditto.
2524         * libc/argz/argz_next.c: Ditto.
2525         * libc/argz/argz_stringify.c: Ditto
2526         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
2527         prototypes.
2528         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
2529         prototypes, corrected traditional usage comment.
2530         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
2531
2532 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
2533
2534         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
2535         * libm/machine/spu/headers/asind2.h: Likewise.
2536         * libm/machine/spu/headers/asinhf4.h: Likewise.
2537         * libm/machine/spu/headers/divd2.h: Likewise.
2538         * libm/machine/spu/headers/erf_utils.h: Likewise.
2539         * libm/machine/spu/headers/erfcd2.h: Likewise.
2540         * libm/machine/spu/headers/erfcf4.h: Likewise.
2541         * libm/machine/spu/headers/erfd2.h: Likewise.
2542         * libm/machine/spu/headers/recipd2.h: Likewise.
2543
2544 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
2545
2546         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
2547         __sgetc_r instead of _getchar_r.
2548
2549 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
2550
2551         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
2552         include wchar.h for prototype, remove extraneous includes, use
2553         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
2554         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
2555         base value check noted above), remove extraneous includes.
2556         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
2557         prototype for _svfprintf_r().
2558         * libc/stdio/vasnprintf.c:  Ditto.
2559         * libc/stdio/local.h:  Add function prototype for __submore().
2560         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
2561         _ftello_r.
2562         * libc/posix/namespace.h:  Commented out define for write to
2563         eliminate write() prototype being missing for collate.c (which is
2564         the only file that presently includes namespace.h).
2565         * libc/include/reent.h:  Added _rename_r.
2566         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
2567         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
2568
2569 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2570
2571         * libc/search/hash_func.c: Comment out unused static hash functions.
2572         * libc/reent/stat64r.c: New file.
2573         * libc/reent/Makefile.am: Add stat64r.c support.
2574         * libc/reent/Makefile.in: Regenerated.
2575
2576 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2577
2578         * libc/posix/scandir.c: Fix memory leaks.
2579
2580 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
2581
2582         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
2583         * libc/posix/Makefile.in: Regenerated.
2584
2585 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
2586
2587         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
2588         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
2589         * libc/stdio/findfp.c (std): Initialize _flags2.
2590         (__sfp): Ditto.
2591         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
2592         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
2593         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
2594         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
2595
2596 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2597
2598         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
2599         be in sync with current kernels.
2600
2601 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
2602             Patrick Mansfield  <patmans@us.ibm.com>
2603             Joel Schopp   <jschopp@austin.ibm.com>
2604
2605         * libc/machine/spu/configure.in: Add __ea detection.
2606         * libc/machine/spu/Makefile.am: Add new files.
2607         * libc/machine/spu/include/ea.h: New file.
2608         * libc/machine/spu/ea_internal.h: Likewise.
2609         * libc/machine/spu/sys/mman.h: Likewise.
2610         * libc/machine/spu/mmap_ea.c: Likewise.
2611         * libc/machine/spu/munmap_ea.c: Likewise.
2612         * libc/machine/spu/mremap_ea.c: Likewise.
2613         * libc/machine/spu/msync_ea.c: Likewise.
2614         * libc/machine/spu/memchr_ea.c: Likewise.
2615         * libc/machine/spu/memcmp_ea.c: Likewise.
2616         * libc/machine/spu/memcpy_ea.c: Likewise.
2617         * libc/machine/spu/memmove_ea.c: Likewise.
2618         * libc/machine/spu/memset_ea.c: Likewise.
2619         * libc/machine/spu/malloc_ea.c: Likewise.
2620         * libc/machine/spu/realloc_ea.c: Likewise.
2621         * libc/machine/spu/calloc_ea.c: Likewise.
2622         * libc/machine/spu/free_ea.c: Likewise.
2623         * libc/machine/spu/posix_memalign_ea.c: Likewise.
2624         * libc/machine/spu/strcat_ea.c: Likewise.
2625         * libc/machine/spu/strchr_ea.c: Likewise.
2626         * libc/machine/spu/strcmp_ea.c: Likewise.
2627         * libc/machine/spu/strcpy_ea.c: Likewise.
2628         * libc/machine/spu/strcspn_ea.c: Likewise.
2629         * libc/machine/spu/strlen_ea.c: Likewise.
2630         * libc/machine/spu/strncat_ea.c: Likewise.
2631         * libc/machine/spu/strncmp_ea.c: Likewise.
2632         * libc/machine/spu/strncpy_ea.c: Likewise.
2633         * libc/machine/spu/strpbrk_ea.c: Likewise.
2634         * libc/machine/spu/strrchr_ea.c: Likewise.
2635         * libc/machine/spu/strspn_ea.c: Likewise.
2636         * libc/machine/spu/strstr_ea.c: Likewise.
2637         * libc/machine/spu/read_ea.c: Likewise.
2638         * libc/machine/spu/pread_ea.c: Likewise.
2639         * libc/machine/spu/readv_ea.c: Likewise.
2640         * libc/machine/spu/write_ea.c: Likewise.
2641         * libc/machine/spu/pwrite_ea.c: Likewise.
2642         * libc/machine/spu/writev_ea.c: Likewise.
2643
2644 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2645
2646         * libc/include/sys/config.h[__mips__]: Don't bother
2647         setting __ATTRIBUTE_IMPURE_PTR__ here.
2648         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
2649         macro anymore.
2650
2651 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
2652
2653         * libc/sys/linux/bits/dirent.h: New header file.
2654         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
2655         <linux/dirent.h>.
2656         * libc/posix/Makefile.am: Remove reallocf.
2657         * libc/posix/Makefile.in: Regenerated.
2658         * libc/posix/reallocf.c: Moved to...
2659         * libc/stdlib/reallocf.c: Here
2660         * libc/stdlib/malloc.c: Add reallocf documentation.
2661         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
2662         * libc/stdlib/Makefile.am: Add reallocf.
2663         * libc/stdlib/Makefile.in: Regenerated.
2664         * libc/posix/_isatty.c: Set errno.
2665
2666 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
2667
2668         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
2669         strdup() and strlen() calls, also getting rid of a compiler warning.
2670
2671 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
2672
2673         * libc/include/sys/config.h: Don't put
2674         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
2675
2676 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2677
2678         * libc/posix/runetype.h: Add include of stddef.h and remove
2679         defining standard types: size_t and wchar_t.
2680
2681 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2682
2683         * libc/include/pthread.h: Remove prototypes for
2684         pthread_attr_getcputime and pthread_attr_setcputime which
2685         were proposed but never approved by the POSIX standard.
2686
2687 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
2688
2689         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
2690
2691 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
2692
2693         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
2694         ignored if desired by a platform.
2695         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
2696         * libc/unix/getcwd.c: Ditto.
2697         * libc/unix/getlogin.c: Ditto.
2698         * libc/unix/getpass.c: Ditto.
2699         * libc/unix/getpwent.c: Ditto.
2700         * libc/unix/getut.c: Ditto.
2701         * libc/unix/pread.c: Ditto.
2702         * libc/unix/pwrite.c: Ditto.
2703         * libc/unix/sigset.c: Ditto.
2704
2705 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
2706
2707         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
2708         ttyname_r.
2709
2710 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2711
2712         * configure.host: RTEMS now uses posix subdirectory.
2713
2714 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2715
2716         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
2717         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
2718
2719 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2720
2721         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
2722         libhover docs generate properly.
2723         * libc/stdio/dprintf.c: Ditto.
2724         * libc/stdio/fflush.c: Ditto.
2725         * libc/stdio/fopencookie.c: Ditto.
2726         * libc/stdio/fread.c: Ditto.
2727         * libc/stdio/fsetpos.c: Ditto.
2728         * libc/stdio/getc_u.c: Ditto.
2729         * libc/stdio/getchar_u.c: Ditto.
2730         * libc/stdio/putc_u.c: Ditto.
2731         * libc/stdio/putchar_u.c: Ditto.
2732         * libc/stdio/remove.c: Ditto.
2733         * libc/stdio/siprintf.c: Ditto.
2734         * libc/stdio/siscanf.c: Ditto.
2735         * libc/stdio/sprintf.c: Ditto.
2736         * libc/stdio/sscanf.c: Ditto.
2737         * libc/stdio/vfprintf.c: Ditto.
2738         * libc/stdio/vfscanf.c: Ditto.
2739         * libc/stdio/viprintf.c: Ditto.
2740         * libc/stdio/viscanf.c: Ditto.
2741         * libc/stdlib/calloc.c: Ditto.
2742         * libc/stdlib/efgcvt.c: Ditto.
2743         * libc/stdlib/envlock.c: Ditto.
2744         * libc/time/asctime.c: Ditto.
2745         * libc/time/ctime.c: Ditto.
2746         * libc/time/gmtime.c: Ditto.
2747         * libc/time/lcltime.c: Ditto.
2748         * libc/time/tzset.c: Ditto.
2749         * libc/stdlib/envlock.h: Moved to libc/include.
2750
2751 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2752
2753         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
2754         * libc/include/envlock.h: New file.
2755         * libc/include/fnmatch.h: Ditto.
2756         * libc/include/glob.h: Ditto.
2757         * libc/include/regex.h: Ditto.
2758         * libc/include/wordexp.h: Ditto.
2759         * libc/posix/Makefile.am: Add new files moved from
2760         libc/sys/linux/stdlib.
2761         * libc/posix/Makefile.in: Regenerated.
2762         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
2763         * libc/posix/cclass.h: Ditto.
2764         * libc/posix/cname.h: Ditto.
2765         * libc/posix/collate.c: Ditto.
2766         * libc/posix/collate.h: Ditto.
2767         * libc/posix/collcmp.c: Ditto.
2768         * libc/posix/engine.c: Ditto.
2769         * libc/posix/fnmatch.3: Ditto.
2770         * libc/posix/glob.3: Ditto.
2771         * libc/posix/fnmatch.c: Ditto.
2772         * libc/posix/glob.c: Ditto.
2773         * libc/posix/namespace.h: Ditto.
2774         * libc/posix/reallocf.c: Ditto.
2775         * libc/posix/regcomp.c: Ditto.
2776         * libc/posix/regerror.c: Ditto.
2777         * libc/posix/regex.3: Ditto.
2778         * libc/posix/regex2.h: Ditto.
2779         * libc/posix/regexec.c: Ditto.
2780         * libc/posix/regfree.c: Ditto.
2781         * libc/posix/rune.h: Ditto.
2782         * libc/posix/runetype.h: Ditto.
2783         * libc/posix/scandir.c: Remove advertising clause which is not in
2784         effect.
2785         * libc/posix/sysexits.h: Ditto.
2786         * libc/posix/un-namespace.h: Ditto.
2787         * libc/posix/utils.h: Ditto.
2788         * libc/posix/wordexp.c: Ditto.
2789         * libc/posix/wordfree.c: Ditto.
2790         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2791         * libc/posix/execle.c: Ditto.
2792         * libc/posix/execlp.c: Ditto.
2793         * libc/posix/execv.c: Ditto.
2794         * libc/posix/execve.c: Ditto.
2795         * libc/posix/execvp.c: Ditto.
2796         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2797         * libc/sys/linux/configure: Regenerated.
2798         * libc/sys/linux/configure.in: Remove stdlib.
2799         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2800         * libc/sys/linux/stdlib/Makefile.am: Removed.
2801         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2802         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2803         * libc/sys/linux/stdlib/cclass.h: Ditto.
2804         * libc/sys/linux/stdlib/cname.h: Ditto.
2805         * libc/sys/linux/stdlib/collate.c: Ditto.
2806         * libc/sys/linux/stdlib/collate.h: Ditto.
2807         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2808         * libc/sys/linux/stdlib/engine.c: Ditto.
2809         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2810         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2811         * libc/sys/linux/stdlib/glob.3: Ditto.
2812         * libc/sys/linux/stdlib/glob.c: Ditto.
2813         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2814         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2815         * libc/sys/linux/stdlib/regerror.c: Ditto.
2816         * libc/sys/linux/stdlib/regex.3: Ditto.
2817         * libc/sys/linux/stdlib/regex2.h: Ditto.
2818         * libc/sys/linux/stdlib/regexec.c: Ditto.
2819         * libc/sys/linux/stdlib/regfree.c: Ditto.
2820         * libc/sys/linux/stdlib/utils.h: Ditto.
2821         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2822         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2823
2824 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2825
2826         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2827
2828 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2829
2830         * libc/include/time.h: Add CLOCK_MONOTONIC.
2831         * libc/include/sys/features.h: Define
2832         _POSIX_MONOTONIC_CLOCK for RTEMS.
2833
2834 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2835
2836         * newlib.hin: Restore to previous 1.14 version which has no
2837         PACKAGE_ macros.
2838
2839 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2840
2841         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2842
2843 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2844
2845         * libc/include/ctype.h (isblank):  isblank is C99.
2846         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2847         have a macro version (as was claimed in the description).
2848
2849 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2850
2851         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2852         %S conversions when the EL/IX level is 1.
2853
2854 2008-10-06  Eric Blake  <ebb9@byu.net>
2855
2856         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2857         is 0.5 or 0.75.
2858
2859 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2860
2861         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2862         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2863
2864 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2865
2866         * libc/string/str-two-way.h (critical_factorization): Cast the index
2867         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2868
2869 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2870
2871         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2872         be size of size_t, not int.
2873         (SIZE_MIN): Remove.
2874         * libc/sys/linux/sys/stdint.h: Ditto.
2875
2876 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2877
2878         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2879         initialization of _rand_next to 1.
2880
2881 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2882             Steve Ellcey  <sje@cup.hp.com>
2883
2884         * configure: Regenerate for new libtool.
2885         * aclocal.m4: Ditto.
2886         * Makefile.in: Ditto.
2887         * newlib.hin: Ditto.
2888         * doc/Makefile.in: Ditto.
2889         * doc/configure: Ditto.
2890         * iconvdata/Makefile.in: Ditto.
2891         * iconvdata/aclocal.m4: Ditto.
2892         * iconvdata/configure: Ditto.
2893         * libc/Makefile.in: Ditto.
2894         * libc/aclocal.m4: Ditto.
2895         * libc/configure: Ditto.
2896         * libc/argz/Makefile.in: Ditto.
2897         * libc/ctype/Makefile.in: Ditto.
2898         * libc/errno/Makefile.in: Ditto.
2899         * libc/iconv/Makefile.in: Ditto.
2900         * libc/iconv/ccs/Makefile.in: Ditto.
2901         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2902         * libc/iconv/ces/Makefile.in: Ditto.
2903         * libc/iconv/lib/Makefile.in: Ditto.
2904         * libc/locale/Makefile.in: Ditto.
2905         * libc/machine/Makefile.in: Ditto.
2906         * libc/machine/aclocal.m4: Ditto.
2907         * libc/machine/configure: Ditto.
2908         * libc/machine/a29k/Makefile.in: Ditto.
2909         * libc/machine/a29k/configure: Ditto.
2910         * libc/machine/arm/Makefile.in: Ditto.
2911         * libc/machine/arm/configure: Ditto.
2912         * libc/machine/bfin/Makefile.in: Ditto.
2913         * libc/machine/bfin/configure: Ditto.
2914         * libc/machine/cris/Makefile.in: Ditto.
2915         * libc/machine/cris/configure: Ditto.
2916         * libc/machine/crx/Makefile.in: Ditto.
2917         * libc/machine/crx/configure: Ditto.
2918         * libc/machine/d10v/Makefile.in: Ditto.
2919         * libc/machine/d10v/configure: Ditto.
2920         * libc/machine/d30v/Makefile.in: Ditto.
2921         * libc/machine/d30v/configure: Ditto.
2922         * libc/machine/fr30/Makefile.in: Ditto.
2923         * libc/machine/fr30/configure: Ditto.
2924         * libc/machine/frv/Makefile.in: Ditto.
2925         * libc/machine/frv/configure: Ditto.
2926         * libc/machine/h8300/Makefile.in: Ditto.
2927         * libc/machine/h8300/configure: Ditto.
2928         * libc/machine/h8500/Makefile.in: Ditto.
2929         * libc/machine/h8500/configure: Ditto.
2930         * libc/machine/hppa/Makefile.in: Ditto.
2931         * libc/machine/hppa/configure: Ditto.
2932         * libc/machine/i386/Makefile.in: Ditto.
2933         * libc/machine/i386/aclocal.m4: Ditto.
2934         * libc/machine/i386/configure: Ditto.
2935         * libc/machine/i960/Makefile.in: Ditto.
2936         * libc/machine/i960/configure: Ditto.
2937         * libc/machine/iq2000/Makefile.in: Ditto.
2938         * libc/machine/iq2000/configure: Ditto.
2939         * libc/machine/m32c/Makefile.in: Ditto.
2940         * libc/machine/m32c/configure: Ditto.
2941         * libc/machine/m32r/Makefile.in: Ditto.
2942         * libc/machine/m32r/configure: Ditto.
2943         * libc/machine/m68hc11/Makefile.in: Ditto.
2944         * libc/machine/m68hc11/configure: Ditto.
2945         * libc/machine/m68k/Makefile.in: Ditto.
2946         * libc/machine/m68k/configure: Ditto.
2947         * libc/machine/m88k/Makefile.in: Ditto.
2948         * libc/machine/m88k/configure: Ditto.
2949         * libc/machine/mep/Makefile.in: Ditto.
2950         * libc/machine/mep/configure: Ditto.
2951         * libc/machine/mips/Makefile.in: Ditto.
2952         * libc/machine/mips/configure: Ditto.
2953         * libc/machine/mn10200/Makefile.in: Ditto.
2954         * libc/machine/mn10200/configure: Ditto.
2955         * libc/machine/mn10300/Makefile.in: Ditto.
2956         * libc/machine/mn10300/configure: Ditto.
2957         * libc/machine/mt/Makefile.in: Ditto.
2958         * libc/machine/mt/configure: Ditto.
2959         * libc/machine/necv70/Makefile.in: Ditto.
2960         * libc/machine/necv70/configure: Ditto.
2961         * libc/machine/powerpc/Makefile.in: Ditto.
2962         * libc/machine/powerpc/configure: Ditto.
2963         * libc/machine/sh/Makefile.in: Ditto.
2964         * libc/machine/sh/configure: Ditto.
2965         * libc/machine/sparc/Makefile.in: Ditto.
2966         * libc/machine/sparc/configure: Ditto.
2967         * libc/machine/spu/Makefile.in: Ditto.
2968         * libc/machine/spu/configure: Ditto.
2969         * libc/machine/tic4x/Makefile.in: Ditto.
2970         * libc/machine/tic4x/configure: Ditto.
2971         * libc/machine/tic80/Makefile.in: Ditto.
2972         * libc/machine/tic80/configure: Ditto.
2973         * libc/machine/v850/Makefile.in: Ditto.
2974         * libc/machine/v850/configure: Ditto.
2975         * libc/machine/w65/Makefile.in: Ditto.
2976         * libc/machine/w65/configure: Ditto.
2977         * libc/machine/x86_64/Makefile.in: Ditto.
2978         * libc/machine/x86_64/configure: Ditto.
2979         * libc/machine/xscale/Makefile.in: Ditto.
2980         * libc/machine/xscale/configure: Ditto.
2981         * libc/machine/xstormy16/Makefile.in: Ditto.
2982         * libc/machine/xstormy16/configure: Ditto.
2983         * libc/machine/z8k/Makefile.in: Ditto.
2984         * libc/machine/z8k/configure: Ditto.
2985         * libc/misc/Makefile.in: Ditto.
2986         * libc/posix/Makefile.in: Ditto.
2987         * libc/reent/Makefile.in: Ditto.
2988         * libc/search/Makefile.in: Ditto.
2989         * libc/signal/Makefile.in: Ditto.
2990         * libc/stdio/Makefile.in: Ditto.
2991         * libc/stdio64/Makefile.in: Ditto.
2992         * libc/stdlib/Makefile.in: Ditto.
2993         * libc/string/Makefile.in: Ditto.
2994         * libc/sys/Makefile.in: Ditto.
2995         * libc/sys/aclocal.m4: Ditto.
2996         * libc/sys/configure: Ditto.
2997         * libc/sys/a29khif/Makefile.in: Ditto.
2998         * libc/sys/a29khif/configure: Ditto.
2999         * libc/sys/arc/Makefile.in: Ditto.
3000         * libc/sys/arc/configure: Ditto.
3001         * libc/sys/arm/Makefile.in: Ditto.
3002         * libc/sys/arm/configure: Ditto.
3003         * libc/sys/d10v/Makefile.in: Ditto.
3004         * libc/sys/d10v/configure: Ditto.
3005         * libc/sys/decstation/Makefile.in: Ditto.
3006         * libc/sys/decstation/configure: Ditto.
3007         * libc/sys/h8300hms/Makefile.in: Ditto.
3008         * libc/sys/h8300hms/configure: Ditto.
3009         * libc/sys/h8500hms/Makefile.in: Ditto.
3010         * libc/sys/h8500hms/configure: Ditto.
3011         * libc/sys/linux/Makefile.in: Ditto.
3012         * libc/sys/linux/aclocal.m4: Ditto.
3013         * libc/sys/linux/configure: Ditto.
3014         * libc/sys/linux/argp/Makefile.in: Ditto.
3015         * libc/sys/linux/cmath/Makefile.in: Ditto.
3016         * libc/sys/linux/dl/Makefile.in: Ditto.
3017         * libc/sys/linux/iconv/Makefile.in: Ditto.
3018         * libc/sys/linux/intl/Makefile.in: Ditto.
3019         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
3020         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
3021         * libc/sys/linux/linuxthreads/configure: Ditto.
3022         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
3023         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
3024         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
3025         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
3026         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
3027         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
3028         * libc/sys/linux/machine/Makefile.in: Ditto.
3029         * libc/sys/linux/machine/aclocal.m4: Ditto.
3030         * libc/sys/linux/machine/configure: Ditto.
3031         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
3032         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
3033         * libc/sys/linux/machine/i386/configure: Ditto.
3034         * libc/sys/linux/net/Makefile.in: Ditto.
3035         * libc/sys/linux/stdlib/Makefile.in: Ditto.
3036         * libc/sys/m88kbug/Makefile.in: Ditto.
3037         * libc/sys/m88kbug/configure: Ditto.
3038         * libc/sys/mmixware/Makefile.in: Ditto.
3039         * libc/sys/mmixware/configure: Ditto.
3040         * libc/sys/netware/Makefile.in: Ditto.
3041         * libc/sys/netware/configure: Ditto.
3042         * libc/sys/rdos/Makefile.in: Ditto.
3043         * libc/sys/rdos/configure: Ditto.
3044         * libc/sys/rtems/Makefile.in: Ditto.
3045         * libc/sys/rtems/configure: Ditto.
3046         * libc/sys/sh/Makefile.in: Ditto.
3047         * libc/sys/sh/configure: Ditto.
3048         * libc/sys/sparc64/Makefile.in: Ditto.
3049         * libc/sys/sparc64/configure: Ditto.
3050         * libc/sys/sun4/Makefile.in: Ditto.
3051         * libc/sys/sun4/configure: Ditto.
3052         * libc/sys/sysmec/Makefile.in: Ditto.
3053         * libc/sys/sysmec/configure: Ditto.
3054         * libc/sys/sysnec810/Makefile.in: Ditto.
3055         * libc/sys/sysnec810/configure: Ditto.
3056         * libc/sys/sysnecv850/Makefile.in: Ditto.
3057         * libc/sys/sysnecv850/configure: Ditto.
3058         * libc/sys/sysvi386/Makefile.in: Ditto.
3059         * libc/sys/sysvi386/configure: Ditto.
3060         * libc/sys/sysvnecv70/Makefile.in: Ditto.
3061         * libc/sys/sysvnecv70/configure: Ditto.
3062         * libc/sys/tic80/Makefile.in: Ditto.
3063         * libc/sys/tic80/configure: Ditto.
3064         * libc/sys/w65/Makefile.in: Ditto.
3065         * libc/sys/w65/configure: Ditto.
3066         * libc/sys/z8ksim/Makefile.in: Ditto.
3067         * libc/sys/z8ksim/configure: Ditto.
3068         * libc/syscalls/Makefile.in: Ditto.
3069         * libc/time/Makefile.in: Ditto.
3070         * libc/unix/Makefile.in: Ditto.
3071         * libm/Makefile.in: Ditto.
3072         * libm/aclocal.m4: Ditto.
3073         * libm/configure: Ditto.
3074         * libm/common/Makefile.in: Ditto.
3075         * libm/machine/Makefile.in: Ditto.
3076         * libm/machine/aclocal.m4: Ditto.
3077         * libm/machine/configure: Ditto.
3078         * libm/machine/i386/Makefile.in: Ditto.
3079         * libm/machine/i386/aclocal.m4: Ditto.
3080         * libm/machine/i386/configure: Ditto.
3081         * libm/machine/spu/Makefile.in: Ditto.
3082         * libm/machine/spu/configure: Ditto.
3083         * libm/math/Makefile.in: Ditto.
3084         * libm/mathfp/Makefile.in: Ditto.
3085
3086 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
3087
3088         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
3089         contains an equal sign.
3090
3091 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
3092
3093         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3094         new pthread_mutexattr_gettype and pthread_mutexattr_settype
3095         prototypes.
3096         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
3097         new mutex type values.
3098         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
3099         field.
3100
3101 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
3102
3103         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
3104         name is NULL, empty, or contains equal sign.
3105
3106 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
3107
3108         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
3109         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
3110         return types.
3111         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
3112         names that contain equal chars.
3113         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
3114         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
3115         EINVAL if name contains an equal sign.  Do not remove any equal signs
3116         from the value.
3117         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
3118         if name contains equal sign.  Return -1 if no variable(s) were found
3119         and return 0 otherwise.
3120
3121 2008-09-19  Eric Blake  <ebb9@byu.net>
3122
3123         Supply missing POSIX errno values.
3124         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
3125         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
3126
3127 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
3128
3129         * libc/machine/spu/strcpy.h: Add missing header.
3130         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
3131         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
3132
3133 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
3134
3135         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
3136         statement to use "m" instead of "0".
3137         (atomic_add): Ditto.
3138         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
3139         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
3140         * libc/sys/linux/stdlib/glob.c: Ditto.
3141
3142 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3143
3144         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
3145         * libm/machine/spu/headers/acosf4.h: Likewise.
3146         * libm/machine/spu/headers/acoshd2.h: Likewise.
3147         * libm/machine/spu/headers/acoshf4.h: Likewise.
3148         * libm/machine/spu/headers/asind2.h: Likewise.
3149         * libm/machine/spu/headers/asinf4.h: Likewise.
3150         * libm/machine/spu/headers/asinhd2.h: Likewise.
3151         * libm/machine/spu/headers/asinhf4.h: Likewise.
3152         * libm/machine/spu/headers/atan2d2.h: Likewise.
3153         * libm/machine/spu/headers/atan2f4.h: Likewise.
3154         * libm/machine/spu/headers/atand2.h: Likewise.
3155         * libm/machine/spu/headers/atanf4.h: Likewise.
3156         * libm/machine/spu/headers/atanhd2.h: Likewise.
3157         * libm/machine/spu/headers/atanhf4.h: Likewise.
3158         * libm/machine/spu/headers/cos_sin.h: Likewise.
3159         * libm/machine/spu/headers/cosd2.h: Likewise.
3160         * libm/machine/spu/headers/cosf4.h: Likewise.
3161         * libm/machine/spu/headers/coshd2.h: Likewise.
3162         * libm/machine/spu/headers/coshf4.h: Likewise.
3163         * libm/machine/spu/headers/divd2.h: Likewise.
3164         * libm/machine/spu/headers/divf4.h: Likewise.
3165         * libm/machine/spu/headers/erf_utils.h: Likewise.
3166         * libm/machine/spu/headers/erfcd2.h: Likewise.
3167         * libm/machine/spu/headers/erfcf4.h: Likewise.
3168         * libm/machine/spu/headers/erfd2.h: Likewise.
3169         * libm/machine/spu/headers/erff4.h: Likewise.
3170         * libm/machine/spu/headers/exp2d2.h: Likewise.
3171         * libm/machine/spu/headers/exp2f4.h: Likewise.
3172         * libm/machine/spu/headers/expd2.h: Likewise.
3173         * libm/machine/spu/headers/expf4.h: Likewise.
3174         * libm/machine/spu/headers/expm1d2.h: Likewise.
3175         * libm/machine/spu/headers/expm1f4.h: Likewise.
3176         * libm/machine/spu/headers/floord2.h: Likewise.
3177         * libm/machine/spu/headers/floorf4.h: Likewise.
3178         * libm/machine/spu/headers/hypotd2.h: Likewise.
3179         * libm/machine/spu/headers/hypotf4.h: Likewise.
3180         * libm/machine/spu/headers/isnand2.h: Likewise.
3181         * libm/machine/spu/headers/isnanf4.h: Likewise.
3182         * libm/machine/spu/headers/ldexpd2.h: Likewise.
3183         * libm/machine/spu/headers/ldexpf4.h: Likewise.
3184         * libm/machine/spu/headers/lgammad2.h: Likewise.
3185         * libm/machine/spu/headers/lgammaf4.h: Likewise.
3186         * libm/machine/spu/headers/log10d2.h: Likewise.
3187         * libm/machine/spu/headers/log1pd2.h: Likewise.
3188         * libm/machine/spu/headers/log1pf4.h: Likewise.
3189         * libm/machine/spu/headers/log2d2.h: Likewise.
3190         * libm/machine/spu/headers/log2f4.h: Likewise.
3191         * libm/machine/spu/headers/logbf4.h: Likewise.
3192         * libm/machine/spu/headers/logd2.h: Likewise.
3193         * libm/machine/spu/headers/logf4.h: Likewise.
3194         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
3195         * libm/machine/spu/headers/nextafterd2.h: Likewise.
3196         * libm/machine/spu/headers/nextafterf4.h: Likewise.
3197         * libm/machine/spu/headers/powd2.h: Likewise.
3198         * libm/machine/spu/headers/powf4.h: Likewise.
3199         * libm/machine/spu/headers/recipd2.h: Likewise.
3200         * libm/machine/spu/headers/recipf4.h: Likewise.
3201         * libm/machine/spu/headers/rintf4.h: Likewise.
3202         * libm/machine/spu/headers/scalbnf4.h: Likewise.
3203         * libm/machine/spu/headers/signbitd2.h: Likewise.
3204         * libm/machine/spu/headers/sincosd2.h: Likewise.
3205         * libm/machine/spu/headers/sincosf4.h: Likewise.
3206         * libm/machine/spu/headers/sind2.h: Likewise.
3207         * libm/machine/spu/headers/sinf4.h: Likewise.
3208         * libm/machine/spu/headers/sinhd2.h: Likewise.
3209         * libm/machine/spu/headers/sinhf4.h: Likewise.
3210         * libm/machine/spu/headers/sqrtd2.h: Likewise.
3211         * libm/machine/spu/headers/sqrtf4.h: Likewise.
3212         * libm/machine/spu/headers/tand2.h: Likewise.
3213         * libm/machine/spu/headers/tanf4.h: Likewise.
3214         * libm/machine/spu/headers/tanhd2.h: Likewise.
3215         * libm/machine/spu/headers/tanhf4.h: Likewise.
3216         * libm/machine/spu/headers/tgammad2.h: Likewise.
3217         * libm/machine/spu/headers/tgammaf4.h: Likewise.
3218         * libm/machine/spu/headers/truncd2.h: Likewise.
3219         * libm/machine/spu/headers/truncf4.h: Likewise.
3220         * libm/machine/spu/headers/simdmath.h: Likewise.
3221
3222 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3223
3224         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
3225         * libm/machine/spu/headers/asinhd2.h: Likewise.
3226         * libm/machine/spu/headers/atanhd2.h: Likewise.
3227         * libm/machine/spu/headers/atanhf4.h: Likewise.
3228         * libm/machine/spu/headers/erff4.h: Likewise.
3229         * libm/machine/spu/headers/expd2.h: Likewise.
3230         * libm/machine/spu/headers/ldexpd2.h: Likewise.
3231         * libm/machine/spu/headers/lgammaf4.h: Likewise.
3232         * libm/machine/spu/headers/logbf4.h: Likewise.
3233         * libm/machine/spu/headers/nextafterd2.h: Likewise.
3234         * libm/machine/spu/headers/nextafterf4.h: Likewise.
3235         * libm/machine/spu/headers/recipd2.h: Likewise.
3236         * libm/machine/spu/headers/simdmath.h: Likewise.
3237         * libm/machine/spu/headers/acoshd2.: Likewise.
3238
3239 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
3240
3241         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
3242         * libm/machine/spu/headers/cbrtf.h: Likewise.
3243
3244 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
3245
3246         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
3247         * libc/machine/spu/spu_timebase.c: New file.
3248         * libc/machine/spu/Makefile.am: Add new file.
3249         * libc/machine/spu/Makefile.in: Regenerated.
3250
3251 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
3252
3253         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
3254         any positive value from user (per std) rather than depending
3255         upon 1).
3256
3257 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
3258
3259         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
3260         for accepting a converted character.
3261
3262 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
3263
3264         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
3265         from building pdfs.
3266         * libm/libm.texinfo: Likewise.
3267
3268 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
3269
3270         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
3271         accepting a converted character and continuing the loop.
3272
3273 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
3274
3275         * libc/include/ctype.h (_ctype_): Restore for C++ backward
3276         compatability only.
3277
3278 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
3279
3280         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
3281         less than the old __ctype_ptr.
3282         * libc/ctype/isalnum.c: Use __ctype_ptr__.
3283         * libc/ctype/isalpha.c: Ditto.
3284         * libc/ctype/iscntrl.c: Ditto.
3285         * libc/ctype/isdigit.c: Ditto.
3286         * libc/ctype/islower.c: Ditto.
3287         * libc/ctype/isprint.c: Ditto.
3288         * libc/ctype/ispunct.c: Ditto.
3289         * libc/ctype/isspace.c: Ditto.
3290         * libc/ctype/isupper.c: Ditto.
3291         * libc/ctype/isxdigit.c: Ditto.
3292         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
3293         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
3294         from here even though they can still work.
3295
3296 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
3297
3298         * libc/machine/spu/strcpy.h: Fix error in previous patch.
3299
3300 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
3301
3302         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
3303         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
3304
3305 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
3306
3307         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
3308
3309 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
3310
3311         * libc/machine/mn10300/memset.S: Fix bug where return value is
3312         incorrectly set if number of bytes set is a multiple of 4.
3313
3314 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
3315
3316         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
3317         (strncpy): Cast src to uintptr_t before checking alignment with "&".
3318
3319 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3320
3321         * libc/argz/argz_count.c: Include stddef.h to get size_t.
3322         * libc/argz/argz_extract.c: Ditto.
3323         * libc/argz/argz_stringify.c: Ditto.
3324         * libc/search/hash.h: Ditto.
3325         * libc/sys/linux/include/sched.h: Ditto.
3326         * libc/sys/linux/sys/types.h: Ditto.
3327
3328 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3329
3330         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
3331         source data is taken care of before loop unrolling.
3332
3333 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3334
3335         Fix strict-aliasing issues with _strtod_r and Storeinc.
3336         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
3337         rv, rv0 from double to type U.  Use accessor macros dval, dword0
3338         and dword1 for all accesses except for the ULtod call, where rv.i
3339         replaces the pointer cast.
3340         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
3341         of access macros.  Tweak comment.
3342         Remove #ifdef'd YES_ALIAS code.
3343         (dword0, dword1, dval): Define in terms of uncast union member
3344         access.  Ditto for _DOUBLE_IS_32BITS variants.
3345         (Storeinc): Replace aliasing-flawed microoptimized definition with
3346         alternative suggested in comment.  Remove now stale comment.
3347
3348 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
3349
3350         * libc/include/machine/setjmp.h (_longjmp): Define as function on
3351         Cygwin.
3352         (_setjmp): Ditto.
3353
3354 2008-06-18  Eric Blake  <ebb9@byu.net>
3355
3356         Per Posix, strsignal returns non-const char*.
3357         * libc/include/string.h (strsignal): Fix return type.
3358
3359 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
3360
3361         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
3362         support.
3363
3364 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
3365
3366         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
3367         * libc/machine/spu/sys/sched.h: Likewise.
3368         * libc/machine/spu/sys/syscall.h: Likewise.
3369
3370 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
3371
3372         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
3373         in generated assembler files.
3374         * libc/machine/spu/fprintf.S: Regenerate.
3375         * libc/machine/spu/fscanf.S: Regenerate.
3376         * libc/machine/spu/printf.S: Regenerate.
3377         * libc/machine/spu/scanf.S: Regenerate.
3378         * libc/machine/spu/snprintf.S: Regenerate.
3379         * libc/machine/spu/sprintf.S: Regenerate.
3380         * libc/machine/spu/sscanf.S: Regenerate.
3381         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
3382         and .size directives.
3383         * libc/machine/spu/setjmp.S (setjmp): Likewise.
3384         (longjmp): Likewise.
3385
3386 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3387
3388         * libc/include/machine/_default_types.h: Fix GNUC check to
3389         handle 4.0 and greater.
3390
3391 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
3392
3393         * libc/machine/spu/Makefile.am: Add new files.
3394         * libc/machine/spu/Makefile.in: Likewise.
3395         * libc/machine/spu/include/spu_timer.h: New file to add timer support
3396         using interrupts.
3397         * libc/machine/spu/spu_clock_stop.c: Likewise.
3398         * libc/machine/spu/spu_clock_svcs.c: Likewise.
3399         * libc/machine/spu/spu_timer_flih.S: Likewise.
3400         * libc/machine/spu/spu_timer_free.c: Likewise.
3401         * libc/machine/spu/spu_timer_internal.h: Likewise.
3402         * libc/machine/spu/spu_timer_slih.c: Likewise.
3403         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
3404         * libc/machine/spu/spu_timer_stop.c: Likewise.
3405         * libc/machine/spu/spu_timer_svcs.c: Likewise.
3406
3407 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
3408
3409         * libc/machine/spu/strcat.c: Return value fixed.
3410         * libc/machine/spu/strncat.c: Likewise.
3411
3412 2008-05-28  Eric Blake  <ebb9@byu.net>
3413
3414         Fix bug in previous patch.
3415         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
3416
3417 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
3418
3419         * libc/string/memset.c: Fix documented prototype to remove
3420         erroneous const attribute on first parameter.
3421
3422 2008-05-26  Eric Blake  <ebb9@byu.net>
3423
3424         Optimize the generic and x86 memchr.
3425         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
3426         Pre-align pointer so unaligned searches aren't penalized.
3427         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
3428         operations are faster than repnz byte searches.
3429
3430 2008-05-26  Eric Blake  <ebb9@byu.net>
3431
3432         Optimize the generic and x86 memset.
3433         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
3434         Pre-align pointer so unaligned stores aren't penalized.
3435         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
3436         Pre-align pointer so unaligned stores aren't penalized.  Prefer
3437         8-byte over 4-byte alignment.  Reduce register pressure.
3438
3439 2008-05-26  Eric Blake  <ebb9@byu.net>
3440
3441         Optimize the generic and x86 strlen.
3442         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
3443         data so unaligned searches aren't penalized.
3444         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
3445         Word operations are faster than repnz byte searches.
3446
3447 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
3448
3449         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
3450
3451 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
3452
3453         * libc/include/sys/reent.h: Add _h_errno field.
3454         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
3455         now used in net directory.
3456         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
3457         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
3458         in net directory.
3459         * libc/sys/linux/include/netdb.h: Ditto.
3460         * libc/sys/linux/include/resolv.h: Ditto.
3461         * libc/sys/linux/include/stdint.h: Ditto.
3462         * libc/sys/linux/include/arpa/nameser.h: Ditto.
3463         * libc/sys/linux/include/net/ethernet.h: Ditto.
3464         * libc/sys/linux/include/net/if_ppp.h: Ditto.
3465         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
3466         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
3467         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
3468         flags to avoid duplicate definition.
3469         * libc/sys/linux/machine/i386/include/param.h: Ditto.
3470         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
3471         added files.
3472         * libc/sys/linux/net/Makefile.in: Regenerated.
3473         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
3474         * libc/sys/linux/net/getaddrinfo.c: Ditto.
3475         * libc/sys/linux/net/getnameinfo.c: Ditto.
3476         * libc/sys/linux/net/getproto.c: Ditto.
3477         * libc/sys/linux/net/getservent.c: Ditto.
3478         * libc/sys/linux/net/inet_netof.c: Ditto.
3479         * libc/sys/linux/net/inet_lnaof.c: Ditto.
3480         * libc/sys/linux/net/ns_name.c: Ditto.
3481         * libc/sys/linux/net/ns_netint.c: Ditto.
3482         * libc/sys/linux/net/inet_ntoa.c: Ditto.
3483         * libc/sys/linux/net/ns_parse.c: Ditto.
3484         * libc/sys/linux/net/ns_print.c: Ditto.
3485         * libc/sys/linux/net/ns_ttl.c: Ditto.
3486         * libc/sys/linux/net/nsap_addr.c: Ditto.
3487         * libc/sys/linux/net/rcmd.c: Ditto.
3488         * libc/sys/linux/net/res_comp.c: Ditto.
3489         * libc/sys/linux/net/res_data.c: Ditto.
3490         * libc/sys/linux/net/res_debug.c: Ditto.
3491         * libc/sys/linux/net/res_init.c: Ditto.
3492         * libc/sys/linux/net/res_mkquery.c: Ditto.
3493         * libc/sys/linux/net/res_query.c: Ditto.
3494         * libc/sys/linux/net/res_send.c: Ditto.
3495         * libc/sys/linux/net/send.c: Ditto.
3496         * libc/sys/linux/stdlib/collate.c: Ditto.
3497         * libc/sys/linux/sys/ioctl.h: Ditto.
3498         * libc/sys/linux/sys/socket.h: Ditto.
3499         * libc/sys/linux/sys/unistd.h: Ditto.
3500         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
3501         used or because licensing includes advertising clause that cannot be
3502         ignored.
3503         * libc/sys/linux/iconv/strtab.c: Ditto.
3504         * libc/sys/linux/include/libc_private.h: Ditto.
3505         * libc/sys/linux/include/nsswitch.h: Ditto.
3506         * libc/sys/linux/include/net/if_atm.h: Ditto.
3507         * libc/sys/linux/include/net/if_media.h: Ditto.
3508         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
3509         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
3510         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
3511         * libc/sys/linux/intl/locale.alias: Ditto.
3512         * libc/sys/linux/net/addr2ascii.3: Ditto.
3513         * libc/sys/linux/net/bindresvport.c: Ditto.
3514         * libc/sys/linux/net/byteorder.3: Ditto.
3515         * libc/sys/linux/net/res_config.h: Ditto.
3516         * libc/sys/linux/net/ether_addr.c: Ditto.
3517         * libc/sys/linux/net/ethers.3: Ditto.
3518         * libc/sys/linux/net/getaddrinfo.3: Ditto.
3519         * libc/sys/linux/net/gethostbydns.c: Ditto.
3520         * libc/sys/linux/net/gethostbyht.c: Ditto.
3521         * libc/sys/linux/net/gethostbyname.3: Ditto.
3522         * libc/sys/linux/net/gethostbynis.c: Ditto.
3523         * libc/sys/linux/net/gethostnamadr.c: Ditto.
3524         * libc/sys/linux/net/getifaddrs.3: Ditto.
3525         * libc/sys/linux/net/getifaddrs.c: Ditto.
3526         * libc/sys/linux/net/getipnodebyname.3: Ditto.
3527         * libc/sys/linux/net/getnameinfo.3: Ditto.
3528         * libc/sys/linux/net/getnetbydns.c: Ditto.
3529         * libc/sys/linux/net/getnetbyht.c: Ditto.
3530         * libc/sys/linux/net/getnetbynis.c: Ditto.
3531         * libc/sys/linux/net/getnetent.3: Ditto.
3532         * libc/sys/linux/net/getnetnamadr.c: Ditto.
3533         * libc/sys/linux/net/getprotoent.3: Ditto.
3534         * libc/sys/linux/net/getprotoent.c: Ditto.
3535         * libc/sys/linux/net/getprotoname.c: Ditto.
3536         * libc/sys/linux/net/getservbyname.c: Ditto.
3537         * libc/sys/linux/net/getservbyport.c: Ditto.
3538         * libc/sys/linux/net/getservent.3: Ditto.
3539         * libc/sys/linux/net/herror.c: Ditto.
3540         * libc/sys/linux/net/hesiod.3: Ditto.
3541         * libc/sys/linux/net/hesiod.c: Ditto.
3542         * libc/sys/linux/net/if_indextoname.3: Ditto.
3543         * libc/sys/linux/net/inet.3: Ditto.
3544         * libc/sys/linux/net/inet6_option_space.3: Ditto.
3545         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
3546         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
3547         * libc/sys/linux/net/inet_net.3: Ditto.
3548         * libc/sys/linux/net/inet_network.c: Ditto.
3549         * libc/sys/linux/net/innetgr-stub.c: Ditto.
3550         * libc/sys/linux/net/ip6opt.c: Ditto.
3551         * libc/sys/linux/net/iso_addr.3: Ditto.
3552         * libc/sys/linux/net/iso_addr.c: Ditto.
3553         * libc/sys/linux/net/linkaddr.3: Ditto.
3554         * libc/sys/linux/net/linkaddr.c: Ditto.
3555         * libc/sys/linux/net/map_v4v6.c: Ditto.
3556         * libc/sys/linux/net/name6.c: Ditto.
3557         * libc/sys/linux/net/namespace.h: Ditto.
3558         * libc/sys/linux/net/ns.3: Ditto.
3559         * libc/sys/linux/net/ns_addr.c: Ditto.
3560         * libc/sys/linux/net/ns_ntoa.c: Ditto.
3561         * libc/sys/linux/net/nsdispatch.3: Ditto.
3562         * libc/sys/linux/net/nsdispatch.c: Ditto.
3563         * libc/sys/linux/net/nslexer.c: Ditto.
3564         * libc/sys/linux/net/nslexer.l: Ditto.
3565         * libc/sys/linux/net/nsparser.c: Ditto.
3566         * libc/sys/linux/net/nsparser.h: Ditto.
3567         * libc/sys/linux/net/nsparser.y: Ditto.
3568         * libc/sys/linux/net/rcmd.3: Ditto.
3569         * libc/sys/linux/net/rcmdsh.3: Ditto.
3570         * libc/sys/linux/net/res_mkupdate.c: Ditto.
3571         * libc/sys/linux/net/res_update.c: Ditto.
3572         * libc/sys/linux/net/resolver.3: Ditto.
3573         * libc/sys/linux/net/rthdr.c: Ditto.
3574         * libc/sys/linux/net/vars.c: Ditto.
3575         * libc/sys/linux/shlib-compat.h: New file.
3576         * libc/sys/linux/machine/i386/atomic.h: Ditto.
3577         * libc/sys/linux/net/XXX-lookup.c: Ditto.
3578         * libc/sys/linux/net/alias-lookup.c: Ditto.
3579         * libc/sys/linux/net/res_libc.c: Ditto.
3580         * libc/sys/linux/net/aliases.h: Ditto.
3581         * libc/sys/linux/net/check_pf.c: Ditto.
3582         * libc/sys/linux/net/databases.def: Ditto.
3583         * libc/sys/linux/net/digits_dots.c: Ditto.
3584         * libc/sys/linux/net/ether_aton.c: Ditto.
3585         * libc/sys/linux/net/ether_aton_r.c: Ditto.
3586         * libc/sys/linux/net/ether_hton.c: Ditto.
3587         * libc/sys/linux/net/ether_line.c: Ditto.
3588         * libc/sys/linux/net/ether_ntoa.c: Ditto.
3589         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
3590         * libc/sys/linux/net/ether_ntoh.c: Ditto.
3591         * libc/sys/linux/net/etherent.h: Ditto.
3592         * libc/sys/linux/net/ethers-lookup.c: Ditto.
3593         * libc/sys/linux/net/function.def: Ditto.
3594         * libc/sys/linux/net/getXXbyYY.c: Ditto.
3595         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
3596         * libc/sys/linux/net/getXXent.c: Ditto.
3597         * libc/sys/linux/net/getXXent_r.c: Ditto.
3598         * libc/sys/linux/net/getaliasent.c: Ditto.
3599         * libc/sys/linux/net/getaliasent_r.c: Ditto.
3600         * libc/sys/linux/net/getaliasname.c: Ditto.
3601         * libc/sys/linux/net/getaliasname_r.c: Ditto.
3602         * libc/sys/linux/net/gethstbyad.c: Ditto.
3603         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
3604         * libc/sys/linux/net/gethstbynm.c: Ditto.
3605         * libc/sys/linux/net/gethstbynm2.c: Ditto.
3606         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
3607         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
3608         * libc/sys/linux/net/gethstent.c: Ditto.
3609         * libc/sys/linux/net/gethstent_r.c: Ditto.
3610         * libc/sys/linux/net/getnetbyad.c: Ditto.
3611         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
3612         * libc/sys/linux/net/getnetbynm.c: Ditto.
3613         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
3614         * libc/sys/linux/net/getnetent.c: Ditto.
3615         * libc/sys/linux/net/getnetent_r.c: Ditto.
3616         * libc/sys/linux/net/getnetgrent.c: Ditto.
3617         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
3618         * libc/sys/linux/net/getnssent.c: Ditto.
3619         * libc/sys/linux/net/getnssent_r.c: Ditto.
3620         * libc/sys/linux/net/getproto_r.c: Ditto.
3621         * libc/sys/linux/net/getprtent.c: Ditto.
3622         * libc/sys/linux/net/getprtent_r.c: Ditto.
3623         * libc/sys/linux/net/getprtname.c: Ditto.
3624         * libc/sys/linux/net/getprtname_r.c: Ditto.
3625         * libc/sys/linux/net/getrpcbyname.c: Ditto.
3626         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
3627         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
3628         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
3629         * libc/sys/linux/net/getrpcent.c: Ditto.
3630         * libc/sys/linux/net/getrpcent_r.c: Ditto.
3631         * libc/sys/linux/net/getservent_r.c: Ditto.
3632         * libc/sys/linux/net/getsrvbynm.c: Ditto.
3633         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
3634         * libc/sys/linux/net/getsrvbypt.c: Ditto.
3635         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
3636         * libc/sys/linux/net/grp-lookup.c: Ditto.
3637         * libc/sys/linux/net/herrno.c: Ditto.
3638         * libc/sys/linux/net/hosts-lookup.c: Ditto.
3639         * libc/sys/linux/net/ifaddrs.h: Ditto.
3640         * libc/sys/linux/net/ifreq.c: Ditto.
3641         * libc/sys/linux/net/ifreq.h: Ditto.
3642         * libc/sys/linux/net/in6_addr.c: Ditto.
3643         * libc/sys/linux/net/inet6_option.c: Ditto.
3644         * libc/sys/linux/net/inet_mkadr.c: Ditto.
3645         * libc/sys/linux/net/inet_net.c: Ditto.
3646         * libc/sys/linux/net/key-lookup.c: Ditto.
3647         * libc/sys/linux/net/local.h: Ditto.
3648         * libc/sys/linux/net/netgroup.h: Ditto.
3649         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
3650         * libc/sys/linux/net/network-lookup.c: Ditto.
3651         * libc/sys/linux/net/not-cancel.h: Ditto.
3652         * libc/sys/linux/net/ns_samedomain.c: Ditto.
3653         * libc/sys/linux/net/nscd-types.h: Ditto.
3654         * libc/sys/linux/net/nss.h: Ditto.
3655         * libc/sys/linux/net/nsswitch.c: Ditto.
3656         * libc/sys/linux/net/nsswitch.h: Ditto.
3657         * libc/sys/linux/net/opensock.c: Ditto.
3658         * libc/sys/linux/net/proto-lookup.c: Ditto.
3659         * libc/sys/linux/net/pwd-lookup.c: Ditto.
3660         * libc/sys/linux/net/res_debug.h: Ditto.
3661         * libc/sys/linux/net/res_hconf.c: Ditto.
3662         * libc/sys/linux/net/res_hconf.h: Ditto.
3663         * libc/sys/linux/net/rexec.c: Ditto.
3664         * libc/sys/linux/net/rpc-lookup.c: Ditto.
3665         * libc/sys/linux/net/ruserpass.c: Ditto.
3666         * libc/sys/linux/net/service-lookup.c: Ditto.
3667         * libc/sys/linux/net/spwd-lookup.c: Ditto.
3668         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
3669         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
3670
3671 2008-05-21  Eric Blake  <ebb9@byu.net>
3672
3673         Optimize the generic strchr.
3674         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
3675         data so unaligned searches aren't penalized.  Special-case
3676         searching for 0.
3677
3678         Optimize strchr for x86.
3679         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
3680         Pre-align data so unaligned searches aren't penalized.
3681         Special-case searching for 0.
3682
3683 2008-05-20  Nick Clifton  <nickc@redhat.com>
3684
3685         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
3686
3687 2008-05-20  DJ Delorie  <dj@redhat.com>
3688
3689         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
3690
3691 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
3692
3693         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
3694         access macro parameter with parentheses around it.
3695
3696 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
3697
3698         * libc/include/stdint.h (SIZE_MIN): Remove.
3699         (SIZE_MAX): Define.
3700         * testsuite/newlib.stdlib/stdlib.exp: New.
3701         * testsuite/newlib.stdlib/size_max.c: Likewise.
3702
3703 2008-04-29  Eric Blake  <ebb9@byu.net>
3704
3705         Fix 2008-04-14 regression in asprintf(ptr,"").
3706         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
3707         baggage.
3708         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
3709         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
3710         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
3711         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
3712         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
3713         an initial buffer for asprintf.
3714
3715 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3716
3717         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
3718         (fstatat): Fix type of third parameter.
3719
3720 2008-04-25  Nick Clifton  <nickc@redhat.com>
3721
3722         * libc/machine/arm/setjmp.S: Fix thumb2 support.
3723
3724 2008-04-24  Nick Clifton  <nickc@redhat.com>
3725
3726         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
3727         should be _DOUBLE_IS_32BITS.
3728
3729 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3730
3731         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
3732         (UTIME_OMIT): Ditto.
3733         (utimensat): Declare for Cygwin.
3734         (futimens): Ditto.
3735
3736 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
3737
3738         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
3739         * libc/include/math.h: Likewise.
3740
3741 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
3742
3743         * libc/include/stdio.h (renameat): Declare for Cygwin.
3744         (symlinkat): Ditto.
3745         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
3746         (faccessat): Declare for Cygwin.
3747         (fchownat): Ditto.
3748         (linkat): Ditto.
3749         (readlinkat): Ditto.
3750         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
3751         (AT_EACCESS): Ditto.
3752         (AT_SYMLINK_NOFOLLOW): Ditto.
3753         (AT_SYMLINK_FOLLOW): Ditto.
3754         (AT_REMOVEDIR): Ditto.
3755         (futimesat): Declare for Cygwin.
3756         (openat): Ditto.
3757         (unlinkat): Ditto.
3758         * libc/include/sys/stat.h (fchmodat): Ditto.
3759         (fstatat): Ditto.
3760         (mkdirat): Ditto.
3761         (mkfifoat): Ditto.
3762         (mknodat): Ditto.
3763
3764 2008-04-22  Nick Clifton  <nickc@redhat.com>
3765
3766         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
3767         register load/store instructions.
3768
3769 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3770
3771         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3772
3773 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3774
3775         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3776
3777 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3778
3779         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3780         * libc/machine/spu/Makefile.am: Add new file impure.c.
3781         * libc/machine/spu/Makefile.in: Regenerate.
3782         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3783
3784 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3785
3786         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3787         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3788         to build special versions for sprintf/sscanf family functions.
3789         * libc/stdio/Makefile.in: Regenerated.
3790         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3791         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3792         family of functions (i.e. no I/O) and does not support floating-point.
3793         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3794         _svfprintf_r which is optimized to work with sprintf family of
3795         functions and not use I/O.
3796         [STRING_ONLY](__sprint_r): New string only version of static function.
3797         designed to work with sprintf family of functions.
3798         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3799         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3800         family of functions (i.e. no I/O) and no float-point support.
3801         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3802         __ssvfscanf_r which is optimized to work with sscanf family of
3803         functions and does not require I/O functions.
3804         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3805         * libc/stdio/snprintf.c: Ditto.
3806         * libc/stdio/sprintf.c: Ditto.
3807         * libc/stdio/vasnprintf.c: Ditto.
3808         * libc/stdio/vasprintf.c: Ditto.
3809         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3810         * libc/stdio/sniprintf.c: Ditto.
3811         * libc/stdio/vasiprintf.c: Ditto.
3812         * libc/stdio/vsiprintf.c: Ditto.
3813         * libc/stdio/vsniprintf.c: Ditto.
3814         * libc/stdio/vsprintf.c: Ditto.
3815         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3816         _ssvfscanf_r, and _ssvfiscanf_r.
3817         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3818         * libc/stdio/vsscanf.c: Ditto.
3819         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3820         * libc/stdio/vsiscanf.c: Ditto.
3821
3822 2008-04-04  DJ Delorie  <dj@redhat.com>
3823
3824         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3825         * libc/sys/configure: Regenerate with autoconf 2.61.
3826         * libc/machine/configure: Regenerate with autoconf 2.61.
3827
3828 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3829
3830         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3831         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3832         * libc/machine/spu/Makefile.am: Add memcmp.c.
3833         * libc/machine/spu/Makefile.in: Rebuild.
3834         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3835
3836 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3837
3838         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3839           -DMISSING_SYSCALL_NAMES.
3840
3841 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3842
3843         * libc/machine/spu/Makefile.am: Add assert.c.
3844         * libc/machine/spu/Makefile.in: Regenerate.
3845         * libc/machine/spu/assert.c: New file.
3846
3847 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3848
3849         * libc/include/reent.h: Define _func_r functions in this file to
3850         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3851         defined.
3852
3853 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3854
3855         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3856         constants when building for Cygwin.
3857
3858 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3859
3860         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3861         stdin gets resolved properly before refilling.
3862
3863 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3864
3865         * libc/include/getopt.h: Hide newlib extensions under
3866         the __need_getopt_newlib flag.
3867         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3868         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3869         with their own getopt implementation.
3870         * configure.host: Specify HAVE_GETOPT for x86-linux.
3871
3872 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3873
3874         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3875         this macro completely instead of referring to CHECK_STD_INIT which
3876         is only found in libc/stdio/local.h.
3877         * libc/stdio/dprintf.c: Add include of local.h.
3878         * libc/stdio/vdprintf.c: Ditto.
3879         * libc/stdio/vdiprintf.c: Ditto.
3880
3881 2008-03-04  Eric Blake  <ebb9@byu.net>
3882
3883         Fix strtod("nan()", ptr).
3884         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3885         n-char-sequence is omitted, still parse the ().
3886
3887 2008-03-03  Eric Blake  <ebb9@byu.net>
3888
3889         Fix ftell bug after ungetc.
3890         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3891         ftell.
3892         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3893         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3894         repositioning underlying fd offset.
3895
3896 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3897
3898         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3899         (required_argument, optional_argument): Ditto.
3900
3901 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3902
3903         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3904         data area so as to support reentrant calls.  Change all callers
3905         to fill in data area with global values and restore any changes
3906         to the global values after call.
3907         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3908         to support reentrancy that add a data area argument.
3909         * libc/include/getopt.h: Add new _r routines and provide macros
3910         so they can be called with using double-underscores.
3911
3912 2008-02-21  Eric Blake  <ebb9@byu.net>
3913
3914         Fix strtod("-0x", NULL).
3915         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3916         fails.
3917
3918 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3919
3920         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3921         for user specifying --disable-newlib-io-long-long on configure.
3922         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3923         reentrant pointer passed in rather than _REENT.
3924
3925 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3926
3927         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3928         arguments better for long options and short options not
3929         appearing as the first option in a sequence.
3930
3931 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3932
3933         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3934         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3935         * libc/machine/spu/strcpy.c: Use _strcpy.
3936         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3937         str[n]cpy and str[n]cat.
3938         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3939         * libc/machine/spu/strncpy.c: Use _strcpy.
3940
3941 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3942
3943         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3944         calculation of its value.
3945
3946 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3947
3948         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3949         Make ISO C.
3950
3951 2008-01-21  DJ Delorie  <dj@redhat.com>
3952
3953         * libc/sys/sh/syscalls.c (_isatty): New.
3954
3955 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3956
3957         * Makefile.am (crt1.o): Use correct source.
3958         * Makefile.in: Regenerated.
3959
3960 2008-01-15  Eric Blake  <ebb9@byu.net>
3961
3962         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3963         * libc/string/Makefile: Regenerate.
3964
3965 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3966
3967         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3968         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3969         (sigsetjmp): Use __SIGMASK_FUNC.
3970         (siglongjmp): Ditto.
3971         (_setjmp): Define as macro.
3972         (_longjmp): Ditto.
3973
3974 2008-01-11  Eric Blake  <ebb9@byu.net>
3975
3976         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3977         * libc/string/str-two-way.h: New file.
3978         * libc/string/memmem.c (memmem): New file.
3979         * libc/include/string.h (memmem): Declare for all platforms.
3980         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3981         not optimizing for space.
3982         * libc/string/strcasestr.c (strcasestr): Likewise.
3983         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3984         (ELIX_2_SOURCES): ...this.
3985         (ELIX_4_SOURCES): New category, for memmem.
3986         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3987         (CHEWOUT_FILES): Build documentation for memmem.
3988         * libc/string/strings.tex: Include new docs.
3989
3990 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3991
3992         * libc/machine/m68k/memcpy.S: Remove % from register references
3993         as this is already handled by m68kasm.h.
3994         * libc/machine/m68k/memset.S: Ditto.
3995
3996 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3997
3998         * libc/machine/m68k/m68kasm.h: New file.
3999         * libc/machine/m68k/setjmp.S: Remove common definitions and
4000         place in m68kasm.h.  Include "m68kasm.h".
4001         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
4002         SYM() macro when referencing function name.
4003         * libc/machine/m68k/memset.S: Ditto.
4004
4005 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
4006
4007         Make isatty syscall handling consistent with other newlib syscalls.
4008
4009         * libc/include/_syslist.h: Add _isatty.
4010         * libc/include/reent.h: Add _isatty_r.
4011         * libc/include/sys/unistd.h: Add _isatty.
4012         * libc/posix/Makefile.am: Add new _isatty.c file.
4013         * libc/posix/Makefile.in: Regenerated.
4014         * libc/posix/_isatty.c: New file.
4015         * libc/posix/isatty.c: Changed to call _isatty().
4016         * libc/reent/Makefile.am: Add new isattyr.c file.
4017         * libc/reent/Makefile.in: Regenerated.
4018         * libc/reent/isattyr.c: New file.
4019         * libc/stdio/freopen.c: Changed to call _isatty_r().
4020         * libc/stdio/makebuf.c: Ditto.
4021         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
4022         * libc/sys/arc/isatty.c: Ditto.
4023         * libc/sys/arm/syscalls.c: Ditto.
4024         * libc/sys/d10v/syscalls.c: Ditto.
4025         * libc/sys/h8300hms/syscalls.c: Ditto.
4026         * libc/sys/h8500hms/syscalls.c: Ditto.
4027         * libc/sys/linux/Makefile.am: Add new isatty.c file.
4028         * libc/sys/linux/Makefile.in: Regenerated.
4029         * libc/sys/linux/isatty.c: New file.
4030         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
4031         * libc/syscalls/Makefile.in: Regenerated.
4032         * libc/syscalls/sysisatty.c: New file.
4033
4034 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
4035
4036         * libc/syscalls/sysclose.c: Always call reentrant version of the
4037         underlying syscall since one is guaranteed to exist in libc/reent.
4038         * libc/syscalls/sysexecve.c: Ditto.
4039         * libc/syscalls/sysfcntl.c: Ditto.
4040         * libc/syscalls/sysfork.c: Ditto.
4041         * libc/syscalls/sysfstat.c: Ditto.
4042         * libc/syscalls/sysgetpid.c: Ditto.
4043         * libc/syscalls/sysgettod.c: Ditto.
4044         * libc/syscalls/syskill.c: Ditto.
4045         * libc/syscalls/syslink.c: Ditto.
4046         * libc/syscalls/syslseek.c: Ditto.
4047         * libc/syscalls/sysopen.c: Ditto.
4048         * libc/syscalls/sysread.c: Ditto.
4049         * libc/syscalls/syssbrk.c: Ditto.
4050         * libc/syscalls/sysstat.c: Ditto.
4051         * libc/syscalls/systimes.c: Ditto.
4052         * libc/syscalls/sysunlink.c: Ditto.
4053         * libc/syscalls/syswait.c: Ditto.
4054         * libc/syscalls/syswrite.c: Ditto.
4055
4056 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4057
4058         * NEWS: Update with 1.16.0 info.
4059         * README: Ditto.
4060         * acinclude.m4: Change version number to 1.16.0.
4061         * aclocal.m4: Regenerated.
4062         * configure: Ditto.
4063         * doc/aclocal.m4: Ditto.
4064         * doc/configure: Ditto.
4065         * libc/*/aclocal.m4: Ditto.
4066         * libc/*/configure: Ditto.
4067         * libc/libc.texinfo: Ditto.
4068         * libm/*/aclocal.m4: Ditto.
4069         * libm/*/configure: Ditto.
4070         * libm/libm.texinfo: Ditto.
4071         * libc/sys/linux/shared.ld: Add VERS_1.16.
4072
4073 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4074
4075         * libc/string/strcasestr.c: Remove id macro.
4076         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
4077         field reference to be __sched_priority.
4078         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4079         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4080         * libc/sys/linux/stdlib/collate.c: Remove id macro.
4081         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4082         * libc/sys/linux/stdlib/engine.c: Ditto.
4083         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4084         * libc/sys/linux/stdlib/glob.c: Ditto.
4085         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4086         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4087         * libc/sys/linux/stdlib/regerror.c: Ditto.
4088         * libc/sys/linux/stdlib/regexec.c: Ditto.
4089         * libc/sys/linux/stdlib/regfree.c: Ditto.
4090         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
4091         * libc/sys/linux/include/argp.h: Ditto.
4092         * libc/sys/linux/sys/libc-lock.h: New file.
4093         * libc/sys/linux/sys/stdint.h: Ditto.
4094         * libc/sys/linux/include/sched.h: New file.
4095
4096 2007-12-19  Dave Korn  <dave.korn@artimi.com>
4097             Jeff Johnston  <jjohnstn@redhhat.com>
4098
4099         * libc/include/_ansi.h: Add _LONG_LONG definition.
4100         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
4101         prototypes.
4102         * libc/machine/i386/machine/fastmath.h: Add support for new i386
4103         fast math versions of rint, lrint, and llrint family functions.
4104         * libm/machine/i386/Makefile.am: Add new files.
4105         * libm/machine/i386/Makefile.in: Regenerated.
4106         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
4107         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
4108         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
4109         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
4110         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
4111
4112 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
4113
4114         * libc/include/sys/features.h: Add checks for C90 compilers using
4115         -ansi.
4116
4117 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
4118
4119         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
4120         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
4121         wcpncpy.c.
4122         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
4123         * libc/string/Makefile.in: Regenerate.
4124         * libc/string/wcpcpy.c: New file.
4125         * libc/string/wcpncpy.c: New file.
4126         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
4127
4128 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
4129
4130         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
4131         _wcsrtombs_r.
4132
4133 2007-11-19  Nick Clifton  <nickc@redhat.com>
4134
4135         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
4136         * libc/machine/mn10300/Makefile.in: Regenerate.
4137         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
4138         .debug_frame section.
4139         * libc/machine/mn10300/memcmp.S: Likewise.
4140         * libc/machine/mn10300/memcpy.S: Likewise.
4141         * libc/machine/mn10300/memset.S: Likewise.
4142         * libc/machine/mn10300/strchr.S: Likewise.
4143         * libc/machine/mn10300/strcmp.S: Likewise.
4144         * libc/machine/mn10300/strcpy.S: Likewise.
4145         * libc/machine/mn10300/strlen.S: Likewise.
4146
4147 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
4148
4149         * libc/include/sys/_default_fcntl.h: New header file that
4150         is the default version of sys/fcntl.h.
4151         * libc/include/sys/fcntl.h: Changed to simply include
4152         sys/_default_fcntl.h.
4153         * libc/sys/arm/sys/fcntl.h: New file that includes
4154         sys/_default_fcntl.h and defines O_BINARY.
4155
4156 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
4157
4158         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
4159
4160 2007-11-07  Dave Brolley  <brolley@redhat.com>
4161
4162         * libc/machine/configure: Regenerated to pick up mep-elf changes.
4163
4164         * Contribute mep-elf from Red Hat
4165         2006-10-27  DJ Delorie  <dj@redhat.com>
4166
4167         * libc/include/machine/setjmp.h: Add MeP support.
4168
4169         2003-04-17  DJ Delorie  <dj@redhat.com>
4170
4171         * configure.host (mep-*-*): Support "long long" type.
4172
4173         2001-06-06  DJ Delorie  <dj@redhat.com>
4174
4175         * libc/include/machine/ieeefp.h (mep): Support little endian too.
4176
4177         2001-05-14  DJ Delorie  <dj@redhat.com>
4178
4179         * configure.host: Add mep's machine_dir.
4180         * libc/include/setjmp.h: Add mep support.
4181         * libc/machine/mep: New.
4182         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
4183
4184         2001-05-04  DJ Delorie  <dj@redhat.com>
4185
4186         * configure.host: Add mep.
4187         * libc/include/machine/ieeefp.h: Ditto.
4188
4189 2007-10-31  DJ Delorie  <dj@redhat.com>
4190
4191         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
4192         signal table, just use a default, in case initialization cause
4193         recursion.
4194
4195 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
4196
4197         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
4198         size if output buffer is NULL.
4199
4200 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4201
4202         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
4203         fix when handling negative input values.  Make function
4204         consistent with math directory and glibc version such that
4205         inf and nan values return inf and nan respectively with no
4206         errno setting.
4207         * libm/mathfp/sf_logarithm.c: Ditto.
4208         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
4209         * libm/math/wf_log.c: Ditto.
4210         * libm/math/w_log10.c: Ditto.
4211         * libm/math/wf_log10.c: Ditto.
4212
4213 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4214
4215         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
4216         return -inf.
4217         * libm/mathfp/sf_logarithm.c: Ditto.
4218
4219 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
4220
4221         * libc/machine/i386/machine/fastmath.h: New file.
4222
4223 2007-10-13  Eric Blake  <ebb9@byu.net>
4224
4225         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
4226         Correctly nest else within conditionals.
4227         Reported by Artur Lipowski.
4228
4229 2007-10-09  Nick Clifton  <nickc@redhat.com>
4230
4231         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
4232         the STT_COMMON type.
4233
4234 2007-10-09  Ben Elliston  <bje@au.ibm.com>
4235
4236         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
4237         before simdmath.h to get a definition for `vector'.
4238         * libm/machine/spu/headers/asind2.h: Likewise.
4239
4240 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
4241
4242         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
4243         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
4244         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
4245         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
4246         * libm/machine/spu/headers/acos.h: Add domain check.
4247         * libm/machine/spu/headers/acosf.h: Ditto.
4248         * libm/machine/spu/headers/acosh.h: Ditto.
4249         * libm/machine/spu/headers/acoshf.h: Ditto.
4250         * libm/machine/spu/headers/asin.h: Ditto.
4251         * libm/machine/spu/headers/asinf.h: Ditto.
4252         * libm/machine/spu/headers/atanh.h: Ditto.
4253         * libm/machine/spu/headers/atanhf.h: Ditto.
4254         * libm/machine/spu/headers/fmod.h: Ditto.
4255         * libm/machine/spu/headers/fmodf.h: Ditto.
4256         * libm/machine/spu/headers/log.h: Ditto.
4257         * libm/machine/spu/headers/log10.h: Ditto.
4258         * libm/machine/spu/headers/log1p.h: Ditto.
4259         * libm/machine/spu/headers/log1pf.h: Ditto.
4260         * libm/machine/spu/headers/log2.h: Ditto.
4261         * libm/machine/spu/headers/log2f.h: Ditto.
4262         * libm/machine/spu/headers/sqrt.h: Ditto.
4263         * libm/machine/spu/headers/sqrtf.h: Ditto.
4264         * libm/machine/spu/headers/tgamma.h: Ditto.
4265         * libm/machine/spu/headers/tgammaf.h: Ditto.
4266
4267 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
4268
4269         * libm/machine/spu/Makefile.am: Add new C files.
4270         * libm/machine/spu/Makefile.in: Regenerate.
4271         * libm/machine/spu/headers/acos.h: New file.
4272         * libm/machine/spu/headers/acosd2.h: Ditto.
4273         * libm/machine/spu/headers/acosf.h: Ditto.
4274         * libm/machine/spu/headers/acosf4.h: Ditto.
4275         * libm/machine/spu/headers/acosh.h: Ditto.
4276         * libm/machine/spu/headers/acoshd2.h: Ditto.
4277         * libm/machine/spu/headers/acoshf.h: Ditto.
4278         * libm/machine/spu/headers/acoshf4.h: Ditto.
4279         * libm/machine/spu/headers/asin.h: Ditto.
4280         * libm/machine/spu/headers/asind2.h: Ditto.
4281         * libm/machine/spu/headers/asinf.h: Ditto.
4282         * libm/machine/spu/headers/asinf4.h: Ditto.
4283         * libm/machine/spu/headers/asinh.h: Ditto.
4284         * libm/machine/spu/headers/asinhd2.h: Ditto.
4285         * libm/machine/spu/headers/asinhf.h: Ditto.
4286         * libm/machine/spu/headers/asinhf4.h: Ditto.
4287         * libm/machine/spu/headers/atan.h: Ditto.
4288         * libm/machine/spu/headers/atan2.h: Ditto.
4289         * libm/machine/spu/headers/atan2d2.h: Ditto.
4290         * libm/machine/spu/headers/atan2f.h: Ditto.
4291         * libm/machine/spu/headers/atan2f4.h: Ditto.
4292         * libm/machine/spu/headers/atand2.h: Ditto.
4293         * libm/machine/spu/headers/atanf4.h: Ditto.
4294         * libm/machine/spu/headers/atanh.h: Ditto.
4295         * libm/machine/spu/headers/atanhd2.h: Ditto.
4296         * libm/machine/spu/headers/atanhf.h: Ditto.
4297         * libm/machine/spu/headers/atanhf4.h: Ditto.
4298         * libm/machine/spu/headers/cos.h: Ditto.
4299         * libm/machine/spu/headers/cos_sin.h: Ditto.
4300         * libm/machine/spu/headers/cosd2.h: Ditto.
4301         * libm/machine/spu/headers/cosf.h: Ditto.
4302         * libm/machine/spu/headers/cosf4.h: Ditto.
4303         * libm/machine/spu/headers/cosh.h: Ditto.
4304         * libm/machine/spu/headers/coshd2.h: Ditto.
4305         * libm/machine/spu/headers/coshf.h: Ditto.
4306         * libm/machine/spu/headers/coshf4.h: Ditto.
4307         * libm/machine/spu/headers/divd2.h: Ditto.
4308         * libm/machine/spu/headers/divf4.h: Ditto.
4309         * libm/machine/spu/headers/erf.h: Ditto.
4310         * libm/machine/spu/headers/erf_utils.h: Ditto.
4311         * libm/machine/spu/headers/erfc.h: Ditto.
4312         * libm/machine/spu/headers/erfcd2.h: Ditto.
4313         * libm/machine/spu/headers/erfcf.h: Ditto.
4314         * libm/machine/spu/headers/erfcf4.h: Ditto.
4315         * libm/machine/spu/headers/erfd2.h: Ditto.
4316         * libm/machine/spu/headers/erff.h: Ditto.
4317         * libm/machine/spu/headers/erff4.h: Ditto.
4318         * libm/machine/spu/headers/exp.h: Ditto.
4319         * libm/machine/spu/headers/exp2.h: Ditto.
4320         * libm/machine/spu/headers/exp2d2.h: Ditto.
4321         * libm/machine/spu/headers/exp2f4.h: Ditto.
4322         * libm/machine/spu/headers/expd2.h: Ditto.
4323         * libm/machine/spu/headers/expf4.h: Ditto.
4324         * libm/machine/spu/headers/expm1.h: Ditto.
4325         * libm/machine/spu/headers/expm1d2.h: Ditto.
4326         * libm/machine/spu/headers/expm1f.h: Ditto.
4327         * libm/machine/spu/headers/expm1f4.h: Ditto.
4328         * libm/machine/spu/headers/floord2.h: Ditto.
4329         * libm/machine/spu/headers/floorf4.h: Ditto.
4330         * libm/machine/spu/headers/hypot.h: Ditto.
4331         * libm/machine/spu/headers/hypotd2.h: Ditto.
4332         * libm/machine/spu/headers/hypotf.h: Ditto.
4333         * libm/machine/spu/headers/hypotf4.h: Ditto.
4334         * libm/machine/spu/headers/isnan.h: Ditto.
4335         * libm/machine/spu/headers/isnand2.h: Ditto.
4336         * libm/machine/spu/headers/isnanf.h: Ditto.
4337         * libm/machine/spu/headers/isnanf4.h: Ditto.
4338         * libm/machine/spu/headers/ldexpd2.h: Ditto.
4339         * libm/machine/spu/headers/ldexpf4.h: Ditto.
4340         * libm/machine/spu/headers/lgamma.h: Ditto.
4341         * libm/machine/spu/headers/lgammad2.h: Ditto.
4342         * libm/machine/spu/headers/lgammaf.h: Ditto.
4343         * libm/machine/spu/headers/lgammaf4.h: Ditto.
4344         * libm/machine/spu/headers/log.h: Ditto.
4345         * libm/machine/spu/headers/log10.h: Ditto.
4346         * libm/machine/spu/headers/log10d2.h: Ditto.
4347         * libm/machine/spu/headers/log1p.h: Ditto.
4348         * libm/machine/spu/headers/log1pd2.h: Ditto.
4349         * libm/machine/spu/headers/log1pf.h: Ditto.
4350         * libm/machine/spu/headers/log1pf4.h: Ditto.
4351         * libm/machine/spu/headers/log2.h: Ditto.
4352         * libm/machine/spu/headers/log2d2.h: Ditto.
4353         * libm/machine/spu/headers/log2f4.h: Ditto.
4354         * libm/machine/spu/headers/logbf.h: Ditto.
4355         * libm/machine/spu/headers/logbf4.h: Ditto.
4356         * libm/machine/spu/headers/logd2.h: Ditto.
4357         * libm/machine/spu/headers/logf4.h: Ditto.
4358         * libm/machine/spu/headers/nearbyintf.h: Ditto.
4359         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
4360         * libm/machine/spu/headers/nextafter.h: Ditto.
4361         * libm/machine/spu/headers/nextafterd2.h: Ditto.
4362         * libm/machine/spu/headers/nextafterf.h: Ditto.
4363         * libm/machine/spu/headers/nextafterf4.h: Ditto.
4364         * libm/machine/spu/headers/pow.h: Ditto.
4365         * libm/machine/spu/headers/powd2.h: Ditto.
4366         * libm/machine/spu/headers/powf.h: Ditto.
4367         * libm/machine/spu/headers/powf4.h: Ditto.
4368         * libm/machine/spu/headers/recipd2.h: Ditto.
4369         * libm/machine/spu/headers/recipf4.h: Ditto.
4370         * libm/machine/spu/headers/rintf.h: Ditto.
4371         * libm/machine/spu/headers/rintf4.h: Ditto.
4372         * libm/machine/spu/headers/scalbnf4.h: Ditto.
4373         * libm/machine/spu/headers/signbit.h: Ditto.
4374         * libm/machine/spu/headers/signbitd2.h: Ditto.
4375         * libm/machine/spu/headers/simdmath.h: Ditto.
4376         * libm/machine/spu/headers/sin.h: Ditto.
4377         * libm/machine/spu/headers/sincos.h: Ditto.
4378         * libm/machine/spu/headers/sincosd2.h: Ditto.
4379         * libm/machine/spu/headers/sincosf.h: Ditto.
4380         * libm/machine/spu/headers/sincosf4.h: Ditto.
4381         * libm/machine/spu/headers/sind2.h: Ditto.
4382         * libm/machine/spu/headers/sinf.h: Ditto.
4383         * libm/machine/spu/headers/sinf4.h: Ditto.
4384         * libm/machine/spu/headers/sinh.h: Ditto.
4385         * libm/machine/spu/headers/sinhd2.h: Ditto.
4386         * libm/machine/spu/headers/sinhf.h: Ditto.
4387         * libm/machine/spu/headers/sinhf4.h: Ditto.
4388         * libm/machine/spu/headers/sqrtd2.h: Ditto.
4389         * libm/machine/spu/headers/sqrtf.h: Ditto.
4390         * libm/machine/spu/headers/sqrtf4.h: Ditto.
4391         * libm/machine/spu/headers/tan.h: Ditto.
4392         * libm/machine/spu/headers/tand2.h: Ditto.
4393         * libm/machine/spu/headers/tanf.h: Ditto.
4394         * libm/machine/spu/headers/tanf4.h: Ditto.
4395         * libm/machine/spu/headers/tanh.h: Ditto.
4396         * libm/machine/spu/headers/tanhd2.h: Ditto.
4397         * libm/machine/spu/headers/tanhf.h: Ditto.
4398         * libm/machine/spu/headers/tanhf4.h: Ditto.
4399         * libm/machine/spu/headers/tgamma.h: Ditto.
4400         * libm/machine/spu/headers/tgammad2.h: Ditto.
4401         * libm/machine/spu/headers/tgammaf.h: Ditto.
4402         * libm/machine/spu/headers/tgammaf4.h: Ditto.
4403         * libm/machine/spu/headers/truncd2.h: Ditto.
4404         * libm/machine/spu/headers/truncf4.h: Ditto.
4405         * libm/machine/spu/log2.c: Ditto.
4406         * libm/machine/spu/s_asinh.c: Ditto.
4407         * libm/machine/spu/s_atan.c: Ditto.
4408         * libm/machine/spu/s_cos.c: Ditto.
4409         * libm/machine/spu/s_erf.c: Ditto.
4410         * libm/machine/spu/s_expm1.c: Ditto.
4411         * libm/machine/spu/s_isnan.c: Ditto.
4412         * libm/machine/spu/s_log1p.c: Ditto.
4413         * libm/machine/spu/s_nextafter.c: Ditto.
4414         * libm/machine/spu/s_sin.c: Ditto.
4415         * libm/machine/spu/s_tan.c: Ditto.
4416         * libm/machine/spu/s_tanh.c: Ditto.
4417         * libm/machine/spu/sf_asinh.c: Ditto.
4418         * libm/machine/spu/sf_cos.c: Ditto.
4419         * libm/machine/spu/sf_erf.c: Ditto.
4420         * libm/machine/spu/sf_expm1.c: Ditto.
4421         * libm/machine/spu/sf_log1p.c: Ditto.
4422         * libm/machine/spu/sf_logb.c: Ditto.
4423         * libm/machine/spu/sf_nearbyint.c: Ditto.
4424         * libm/machine/spu/sf_nextafter.c: Ditto.
4425         * libm/machine/spu/sf_rint.c: Ditto.
4426         * libm/machine/spu/sf_sin.c: Ditto.
4427         * libm/machine/spu/sf_tan.c: Ditto.
4428         * libm/machine/spu/sf_tanh.c: Ditto.
4429         * libm/machine/spu/w_acos.c: Ditto.
4430         * libm/machine/spu/w_acosh.c: Ditto.
4431         * libm/machine/spu/w_asin.c: Ditto.
4432         * libm/machine/spu/w_atan2.c: Ditto.
4433         * libm/machine/spu/w_atanh.c: Ditto.
4434         * libm/machine/spu/w_cosh.c: Ditto.
4435         * libm/machine/spu/w_exp.c: Ditto.
4436         * libm/machine/spu/w_exp2.c: Ditto.
4437         * libm/machine/spu/w_hypot.c: Ditto.
4438         * libm/machine/spu/w_lgamma.c: Ditto.
4439         * libm/machine/spu/w_log.c: Ditto.
4440         * libm/machine/spu/w_log10.c: Ditto.
4441         * libm/machine/spu/w_pow.c: Ditto.
4442         * libm/machine/spu/w_sincos.c: Ditto.
4443         * libm/machine/spu/w_sinh.c: Ditto.
4444         * libm/machine/spu/w_tgamma.c: Ditto.
4445         * libm/machine/spu/wf_acos.c: Ditto.
4446         * libm/machine/spu/wf_acosh.c: Ditto.
4447         * libm/machine/spu/wf_asin.c: Ditto.
4448         * libm/machine/spu/wf_atan2.c: Ditto.
4449         * libm/machine/spu/wf_atanh.c: Ditto.
4450         * libm/machine/spu/wf_cosh.c: Ditto.
4451         * libm/machine/spu/wf_hypot.c: Ditto.
4452         * libm/machine/spu/wf_lgamma.c: Ditto.
4453         * libm/machine/spu/wf_pow.c: Ditto.
4454         * libm/machine/spu/wf_sincos.c: Ditto.
4455         * libm/machine/spu/wf_sinh.c: Ditto.
4456         * libm/machine/spu/wf_sqrt.c: Ditto.
4457         * libm/machine/spu/wf_tgamma.c: Ditto.
4458
4459 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
4460
4461         * configure.host: Define _POSIX_MODE to match the existing vector
4462         math code, as we don't support the matherr callout.
4463         * libm/machine/spu/Makefile.am: New file.
4464         * libm/machine/spu/Makefile.in: Auto-generated.
4465         * libm/machine/spu/headers/atanf.h: New file.
4466         * libm/machine/spu/headers/cbrt.h: Ditto.
4467         * libm/machine/spu/headers/cbrtf.h: Ditto.
4468         * libm/machine/spu/headers/ceil.h: Ditto.
4469         * libm/machine/spu/headers/ceilf.h: Ditto.
4470         * libm/machine/spu/headers/copysign.h: Ditto.
4471         * libm/machine/spu/headers/copysignf.h: Ditto.
4472         * libm/machine/spu/headers/exp2f.h: Ditto.
4473         * libm/machine/spu/headers/expf.h: Ditto.
4474         * libm/machine/spu/headers/fabs.h: Ditto.
4475         * libm/machine/spu/headers/fabsf.h: Ditto.
4476         * libm/machine/spu/headers/fdim.h: Ditto.
4477         * libm/machine/spu/headers/fdimf.h: Ditto.
4478         * libm/machine/spu/headers/floor.h: Ditto.
4479         * libm/machine/spu/headers/floorf.h: Ditto.
4480         * libm/machine/spu/headers/fma.h: Ditto.
4481         * libm/machine/spu/headers/fmaf.h: Ditto.
4482         * libm/machine/spu/headers/fmax.h: Ditto.
4483         * libm/machine/spu/headers/fmaxf.h: Ditto.
4484         * libm/machine/spu/headers/fmin.h: Ditto.
4485         * libm/machine/spu/headers/fminf.h: Ditto.
4486         * libm/machine/spu/headers/fmod.h: Ditto.
4487         * libm/machine/spu/headers/fmodf.h: Ditto.
4488         * libm/machine/spu/headers/frexp.h: Ditto.
4489         * libm/machine/spu/headers/frexpf.h: Ditto.
4490         * libm/machine/spu/headers/ilogb.h: Ditto.
4491         * libm/machine/spu/headers/ilogbf.h: Ditto.
4492         * libm/machine/spu/headers/ldexp.h: Ditto.
4493         * libm/machine/spu/headers/ldexpf.h: Ditto.
4494         * libm/machine/spu/headers/llrint.h: Ditto.
4495         * libm/machine/spu/headers/llrintf.h: Ditto.
4496         * libm/machine/spu/headers/llround.h: Ditto.
4497         * libm/machine/spu/headers/llroundf.h: Ditto.
4498         * libm/machine/spu/headers/log10f.h: Ditto.
4499         * libm/machine/spu/headers/log2f.h: Ditto.
4500         * libm/machine/spu/headers/logf.h: Ditto.
4501         * libm/machine/spu/headers/lrint.h: Ditto.
4502         * libm/machine/spu/headers/lrintf.h: Ditto.
4503         * libm/machine/spu/headers/lround.h: Ditto.
4504         * libm/machine/spu/headers/lroundf.h: Ditto.
4505         * libm/machine/spu/headers/nearbyint.h: Ditto.
4506         * libm/machine/spu/headers/remainder.h: Ditto.
4507         * libm/machine/spu/headers/remainderf.h: Ditto.
4508         * libm/machine/spu/headers/remquo.h: Ditto.
4509         * libm/machine/spu/headers/remquof.h: Ditto.
4510         * libm/machine/spu/headers/rint.h: Ditto.
4511         * libm/machine/spu/headers/round.h: Ditto.
4512         * libm/machine/spu/headers/roundf.h: Ditto.
4513         * libm/machine/spu/headers/scalbn.h: Ditto.
4514         * libm/machine/spu/headers/scalbnf.h: Ditto.
4515         * libm/machine/spu/headers/sqrt.h: Ditto.
4516         * libm/machine/spu/headers/trunc.h: Ditto.
4517         * libm/machine/spu/headers/truncf.h: Ditto.
4518         * libm/machine/spu/headers/vec_literal.h: Ditto.
4519         * libm/machine/spu/llrint.c: Ditto.
4520         * libm/machine/spu/llrintf.c: Ditto.
4521         * libm/machine/spu/llround.c: Ditto.
4522         * libm/machine/spu/llroundf.c: Ditto.
4523         * libm/machine/spu/log2f.c: Ditto.
4524         * libm/machine/spu/s_cbrt.c: Ditto.
4525         * libm/machine/spu/s_ceil.c: Ditto.
4526         * libm/machine/spu/s_copysign.c: Ditto.
4527         * libm/machine/spu/s_fabs.c: Ditto.
4528         * libm/machine/spu/s_fdim.c: Ditto.
4529         * libm/machine/spu/s_floor.c: Ditto.
4530         * libm/machine/spu/s_fma.c: Ditto.
4531         * libm/machine/spu/s_fmax.c: Ditto.
4532         * libm/machine/spu/s_fmin.c: Ditto.
4533         * libm/machine/spu/s_frexp.c: Ditto.
4534         * libm/machine/spu/s_ilogb.c: Ditto.
4535         * libm/machine/spu/s_ldexp.c: Ditto.
4536         * libm/machine/spu/s_lrint.c: Ditto.
4537         * libm/machine/spu/s_lround.c: Ditto.
4538         * libm/machine/spu/s_nearbyint.c: Ditto.
4539         * libm/machine/spu/s_remquo.c: Ditto.
4540         * libm/machine/spu/s_rint.c: Ditto.
4541         * libm/machine/spu/s_round.c: Ditto.
4542         * libm/machine/spu/s_scalbn.c: Ditto.
4543         * libm/machine/spu/s_trunc.c: Ditto.
4544         * libm/machine/spu/sf_atan.c: Ditto.
4545         * libm/machine/spu/sf_cbrt.c: Ditto.
4546         * libm/machine/spu/sf_ceil.c: Ditto.
4547         * libm/machine/spu/sf_copysign.c: Ditto.
4548         * libm/machine/spu/sf_fabs.c: Ditto.
4549         * libm/machine/spu/sf_fdim.c: Ditto.
4550         * libm/machine/spu/sf_floor.c: Ditto.
4551         * libm/machine/spu/sf_fma.c: Ditto.
4552         * libm/machine/spu/sf_fmax.c: Ditto.
4553         * libm/machine/spu/sf_fmin.c: Ditto.
4554         * libm/machine/spu/sf_frexp.c: Ditto.
4555         * libm/machine/spu/sf_ilogb.c: Ditto.
4556         * libm/machine/spu/sf_ldexp.c: Ditto.
4557         * libm/machine/spu/sf_lrint.c: Ditto.
4558         * libm/machine/spu/sf_lround.c: Ditto.
4559         * libm/machine/spu/sf_remquo.c: Ditto.
4560         * libm/machine/spu/sf_round.c: Ditto.
4561         * libm/machine/spu/sf_scalbn.c: Ditto.
4562         * libm/machine/spu/sf_trunc.c: Ditto.
4563         * libm/machine/spu/w_fmod.c: Ditto.
4564         * libm/machine/spu/w_remainder.c: Ditto.
4565         * libm/machine/spu/w_sqrt.c: Ditto.
4566         * libm/machine/spu/wf_exp.c: Ditto.
4567         * libm/machine/spu/wf_exp2.c: Ditto.
4568         * libm/machine/spu/wf_fmod.c: Ditto.
4569         * libm/machine/spu/wf_log.c: Ditto.
4570         * libm/machine/spu/wf_log10.c: Ditto.
4571         * libm/machine/spu/wf_remainder.c: Ditto.
4572
4573 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4574
4575         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
4576
4577 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4578
4579         * libc/include/sched.h: New file, just include sys/sched.h.
4580         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
4581         prototype.
4582         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
4583         struct utimbuf definition.
4584
4585 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
4586
4587         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
4588         specific struct and typedef.
4589
4590 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
4591
4592         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
4593         typedef dev_t, gid_t, and uid_t.
4594         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
4595         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
4596         Change to lower case for all __foo_t_defined names.
4597         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
4598         __uid_t, and __gid_t making them all four bytes. Change to lower case
4599         for all __foo_t_defined names.
4600
4601 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
4602
4603         * libc/reent/renamer.c: New file.
4604         * libc/reent/Makefile.am: Add new file.
4605         * libc/reent/Makefile.in: Regenerated.
4606         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
4607         and add check for rename syscall.
4608
4609 2007-09-17  Eric Blake  <ebb9@byu.net>
4610
4611         Obey POSIX on printf("%.s", (char*)NULL).
4612         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
4613         for %s on NULL.  Skip NULL check when optimizing for size.
4614
4615 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4616
4617         * libc/include/sys/_types.h: Protect all types with flag
4618         checks to allow definition in machine/_types.h.
4619
4620 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4621
4622         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
4623         definitions in light of the previous change.
4624
4625 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
4626
4627         * libc/include/machine/_default_types.h: New file, contains what
4628         was previously in libc/include/machine/_types.h.
4629         * libc/include/machine/_types.h: Now only includes
4630         machine/_default_types.h.
4631         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
4632         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
4633         with conditional declarations.
4634         * libc/machine/spu/machine/_types.h: New file, add SPU specific
4635         typedefs for _fpos_t and _fpos64_t.
4636
4637 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
4638
4639         * libc/include/math.h (_M_LOG2E): Replace with..
4640         (_M_LOG2_E): New macro.
4641         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
4642
4643 2007-09-06  Brian Dessent  <brian@dessent.net>
4644
4645         * libc/reent/getreent.c: Allow for case where __getreent is
4646         defined as a macro.
4647
4648 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
4649
4650         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
4651         (log2): Use _M_LOG2E instead of M_LOG2E.
4652         (log2f): Ditto.
4653         (M_LOG2E): Define to be _M_LOG2E.
4654
4655 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
4656
4657         * libm/math/wf_tgamma.c: Add missing include.
4658
4659 2007-08-31  Antony King  <antony.king@st.com>
4660
4661         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
4662         bits and redefine associated dword0 macro (rvalue issue).
4663         * libc/stdio/vfieeefp.h: Ditto.
4664         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
4665         to prevent setting dword1 which is an rvalue only.
4666
4667 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
4668
4669         * configure.host: Added support for x86_64.
4670         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
4671         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
4672         * libc/machine/x86_64/aclocal.m4: Generated.
4673         * libc/machine/x86_64/configure.in: New.
4674         * libc/machine/x86_64/configure: Generated.
4675         * libc/machine/x86_64/Makefile.am: New.
4676         * libc/machine/x86_64/Makefile.in: Generated.
4677         * libc/machine/x86_64/setjmp.S: New.
4678         * libc/machine/x86_64/memcpy.S: New.
4679         * libc/machine/x86_64/memset.S: New.
4680         * libc/machine/configure.in: Added support for x86_64.
4681         * libc/machine/configure: Regenerated.
4682
4683 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
4684
4685         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
4686         to int before comparing it to a signed int value.
4687
4688 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
4689
4690         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
4691         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
4692         Define.
4693
4694 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
4695
4696         Reduce the memory consumption of variable argument functions
4697         for SPU (cell):
4698         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
4699           to assembler sources.
4700         * libc/machine/spu/Makefile.in: Regenerated.
4701         * libc/machine/spu/stdio.c: Add __check_init function wrapping
4702           CHECK_INIT macro to use from assembler routines.
4703         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
4704         * libc/machine/spu/fiprintf.S: New file.
4705         * libc/machine/spu/fiscanf.S: Ditto.
4706         * libc/machine/spu/fprintf.S: Ditto.
4707         * libc/machine/spu/fscanf.S: Ditto.
4708         * libc/machine/spu/iprintf.S: Ditto.
4709         * libc/machine/spu/iscanf.S: Ditto.
4710         * libc/machine/spu/printf.S: Ditto.
4711         * libc/machine/spu/scanf.S: Ditto.
4712         * libc/machine/spu/siprintf.S: Ditto.
4713         * libc/machine/spu/siscanf.S: Ditto.
4714         * libc/machine/spu/sniprintf.S: Ditto.
4715         * libc/machine/spu/snprintf.S: Ditto.
4716         * libc/machine/spu/sprintf.S: Ditto.
4717         * libc/machine/spu/sscanf.S: Ditto.
4718         * libc/machine/spu/stack_reg_va.S: Ditto.
4719         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
4720         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
4721         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
4722         * libc/machine/spu/fiscanf.c: Ditto.
4723         * libc/machine/spu/fprintf.c: Ditto.
4724         * libc/machine/spu/fscanf.c: Ditto.
4725         * libc/machine/spu/iprintf.c: Ditto.
4726         * libc/machine/spu/iscanf.c: Ditto.
4727         * libc/machine/spu/printf.c: Ditto.
4728         * libc/machine/spu/scanf.c: Ditto.
4729         * libc/machine/spu/siprintf.c: Ditto.
4730         * libc/machine/spu/siscanf.c: Ditto.
4731         * libc/machine/spu/sniprintf.c: Ditto.
4732         * libc/machine/spu/snprintf.c: Ditto.
4733         * libc/machine/spu/sprintf.c: Ditto.
4734         * libc/machine/spu/sscanf.c: Ditto.
4735
4736 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
4737
4738         * libc/include/tar.h: New.
4739
4740 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
4741
4742         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
4743         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
4744         * libc/sys/linux/intl/Makefile.in: Regenerated.
4745         * libc/sys/linux/intl/stpcpy.c: Renamed to...
4746         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
4747
4748 2007-08-02  Eric Blake  <ebb9@byu.net>
4749
4750         Implement fmemopen and open_memstream.
4751         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
4752         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
4753         New file.
4754         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
4755         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
4756         functions together.
4757         (fmemopen, open_memstream): Declare new functions.
4758         * libc/stdio/stdio.tex: Document them.
4759         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
4760         fmemopen and open_memstream.
4761         * libc/stdio/Makefile.in: Regenerate.
4762
4763 2007-07-31  Eric Blake  <ebb9@byu.net>
4764
4765         More POSIX stream corner cases.
4766         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
4767         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
4768         requested.
4769         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
4770
4771 2007-07-18  Eric Blake  <ebb9@byu.net>
4772
4773         Fix 'make info'.
4774         * libc/stdio/stdio.tex: Add missing include.
4775         * libc/stdio/vfprintf.c: Use expected node name.
4776         * libc/stdio/vfscanf.c: Likewise.
4777         * libc/stdio/sscanf.c: Likewise.
4778         * libc/stdio/sprintf.c: Likewise.
4779         * libc/stdio/siscanf.c: Likewise.
4780         * libc/stdio/siprintf.c: Likewise.
4781         * libc/stdio/fopencookie.c: Quote raw {}.
4782         Reported by DJ Delorie.
4783
4784 2007-07-13  Eric Blake  <ebb9@byu.net>
4785
4786         Fix fflush issues.
4787         * libc/stdio/fflush.c (_fflush_r): New function.
4788         (fflush): Fix reentrancy and large offset behavior.
4789         * libc/include/stdio.h (_fflush_r): Add prototype.
4790         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4791         * libc/stdio/freopen.c (_freopen_r): Likewise.
4792         * libc/stdio/fseek.c (_fseek_r): Likewise.
4793         * libc/stdio/ftell.c (_ftell_r): Likewise.
4794         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4795         * libc/stdio/refill.c (__srefill_r): Likewise.
4796         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4797         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4798         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4799         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4800         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4801         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4802         32-bit version if not large file.
4803         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4804         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4805
4806         Documentation updates.
4807         * libc/stdio/ungetc.c: Document ungetc.
4808         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4809         of files with documentation.
4810         * libc/stdio/Makefile.in: Regenerate.
4811         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4812
4813 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4814
4815         * libc/include/math.h: Fix so C99 functions/macros are accessible
4816         when -std=c99 is used when compiling and not when using C89.
4817
4818 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4819
4820         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4821         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4822         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4823         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4824         wcstoull_r.c.
4825         (CHEWOUT_FILES): Add .def files accordingly.
4826         * libc/stdlib/Makefile.in: Regenerate.
4827         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4828         * libc/stdlib/strtoll.c: Fix portability note.
4829         * libc/stdlib/strtoull.c: Ditto.
4830         * libc/stdlib/wcstol.c: New file.
4831         * libc/stdlib/wcstoll.c: New file.
4832         * libc/stdlib/wcstoll_r.c: New file.
4833         * libc/stdlib/wcstoul.c: New file.
4834         * libc/stdlib/wcstoull.c: New file.
4835         * libc/stdlib/wcstoull_r.c: New file.
4836
4837 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4838
4839         * libc/include/sys/time.h (gettimeofday): Change to proper
4840         prototype where second parameter is void *.
4841         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4842         accordingly.
4843         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4844         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4845         * libc/sys/rdos/gettod.c: Ditto.
4846         * libc/sys/sh/syscalls.c: Ditto.
4847         * libc/time/time.c (time): Change call to _gettimeofday_r
4848         to pass NULL as 2nd argument.
4849
4850 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4851
4852         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4853         * libc/sys/linux/intl/l10nflist.c: Ditto.
4854
4855 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4856
4857         * libc/include/wchar.h: Add prototype for wcsxfrm.
4858         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4859         (CHEWOUT_FILES): Add wcsxfrm.def.
4860         * libc/string/Makefile.in: Regenerate.
4861         * libc/string/wcsxfrm.c: New file.
4862         * libc/string/wcstrings.tex: Add wcsxfrm.
4863
4864 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4865
4866         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4867         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4868         stpncpy.c.
4869         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4870         * libc/string/Makefile.in: Regenerate.
4871         * libc/string/stpcpy.c: New file.
4872         * libc/string/stpncpy.c: New file.
4873         * libc/string/strings.tex: Add stpcpy and stpncpy.
4874
4875 2007-06-27  Eric Blake  <ebb9@byu.net>
4876
4877         Support __func__ in assert, as required by C99.
4878         * libc/stdlib/assert.c (__assert_func): New function.
4879         (__assert): Use __assert_func.
4880         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4881         possible.
4882
4883 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4884
4885         * libc/machine/spu/perror.c: Pass errno as the second argument to
4886         the assist call.
4887
4888 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4889
4890         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4891         defines; expose ftruncate, truncate and sync prototypes.
4892
4893 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4894
4895         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4896         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4897         visible.
4898
4899 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4900
4901         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4902         from a dropped patch.
4903         * libc/machine/spu/Makefile.in: Regenerate.
4904
4905 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4906
4907         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4908         it just calls open with appropriate arguments.
4909         * libc/machine/spu/Makefile.am: Add creat.c.
4910         * libc/machine/spu/Makefile.in: Regenerate.
4911
4912 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4913
4914         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4915         I accidentally dropped.
4916         * libc/machine/spu/Makefile.in: Regenerated.
4917
4918 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4919
4920         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4921         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4922         form and move outside of OS flag checks.
4923         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4924         * libc/machine/spu/Makefile.in: Regenerate.
4925         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4926         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4927
4928 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4929
4930         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4931         Define confstr constants for Cygwin.  Add comment.
4932
4933 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4934
4935         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4936         file-handle and a direct syscall, just use _open.
4937         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4938         file-handle.
4939
4940         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4941         passing on the exit value.
4942
4943 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4944
4945         * libc/string/strcasestr.c: New file.
4946         * libc/include/string.h: Add strcasestr.
4947         * libc/string/strings.tex: Add strcasestr.
4948         * libc/string/Makefile.am: Ditto.
4949         * libc/string/Makefile.in: Regenerated.
4950
4951 2007-06-06  Christian Groessler  <chris@groessler.org>
4952
4953         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4954         rnd is done after the last local variable declaration.
4955
4956 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4957
4958         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4959
4960 2007-06-05  Christian Groessler  <chris@groessler.org>
4961
4962         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4963         declaration to top of function in keeping with C89 standard.
4964
4965 2007-06-04  Eric Blake  <ebb9@byu.net>
4966
4967         Implement funopen, fopencookie.
4968         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4969         Switch to reentrant callbacks.
4970         * libc/include/stdio.h (funopen): Fix declaration.
4971         (fopencookie): Declare.
4972         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4973         (__sseek64, __swrite64): Fix prototypes.
4974         [__SCLE]: Pull in setmode declaration.
4975         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4976         reentrancy.
4977         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4978         (__sseek64, __swrite64): Fix reentrancy.
4979         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4980         reentrancy.
4981         * libc/stdio/ftell.c (_ftell_r): Likewise.
4982         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4983         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4984         * libc/stdio/freopen.c (_freopen_r): Likewise.
4985         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4986         * libc/stdio/refill.c (__srefill_r): Likewise.
4987         * libc/stdio/siscanf.c (eofread): Likewise.
4988         * libc/stdio/sscanf.c (eofread): Likewise.
4989         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4990         * libc/stdio/vsscanf.c (eofread1): Likewise.
4991         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4992         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4993         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4994         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4995         could be fixed.
4996         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4997         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4998         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4999         new files.
5000         * libc/stdio/Makefile.in: Regenerate.
5001
5002 2007-05-29  Eric Blake  <ebb9@byu.net>
5003
5004         Avoid more compiler warnings.
5005         * libc/stdlib/btowc.c: Add missing header.
5006         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
5007         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
5008         * libc/stdlib/wctob.c: Add missing header.
5009         * libc/string/strcpy.c (strcpy): Avoid warnings.
5010         * libc/string/strrchr.c (strrchr): Likewise.
5011
5012 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
5013
5014         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
5015         argument.
5016         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
5017         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
5018         on empty input strings.
5019         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
5020         looping through argz.
5021         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
5022
5023 2007-05-27  Brian Dessent  <brian@dessent.net>
5024
5025         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
5026         handling %p.
5027
5028 2007-05-25  Eric Blake  <ebb9@byu.net>
5029
5030         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
5031
5032 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
5033             Charles Wilson  <libtool@cwilson.fastmail.fm>
5034
5035         * libtool.m4: removed
5036         * configure.in: invoke _LD_DECL_SED before conditionally initializing
5037         libtool.  Move AC_PROG_AWK outside conditional.
5038         * libc/sys/linux/configure.in: Ditto.
5039         * libc/sys/linux/linuxthreads/configure.in: Ditto.
5040         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
5041         * libc/sys/linux/machine/i386/configure.in: Ditto.
5042
5043         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
5044         initializing libtool.
5045         * libc/configure.in: Ditto.
5046         * libc/machine/configure.in: Ditto.
5047         * libc/machine/i386/configure.in: Ditto.
5048         * libc/sys/configure.in: Ditto.
5049         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
5050         * libc/sys/linux/machine/configure.in: Ditto.
5051         * libm/configure.in: Ditto.
5052         * libm/machine/configure.in: Ditto.
5053
5054         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
5055         * doc/Makefile.am: Ditto.
5056         * iconvdata/Makefile.am: Ditto.
5057         * libc/Makefile.am: Ditto.
5058         * libc/machine/Makefile.am: Ditto.
5059         * libc/machine/a29k/Makefile.am: Ditto.
5060         * libc/machine/arm/Makefile.am: Ditto.
5061         * libc/machine/bfin/Makefile.am: Ditto.
5062         * libc/machine/cris/Makefile.am: Ditto.
5063         * libc/machine/crx/Makefile.am: Ditto.
5064         * libc/machine/d10v/Makefile.am: Ditto.
5065         * libc/machine/d30v/Makefile.am: Ditto.
5066         * libc/machine/fr30/Makefile.am: Ditto.
5067         * libc/machine/frv/Makefile.am: Ditto.
5068         * libc/machine/h8300/Makefile.am: Ditto.
5069         * libc/machine/h8500/Makefile.am: Ditto.
5070         * libc/machine/hppa/Makefile.am: Ditto.
5071         * libc/machine/i386/Makefile.am: Ditto.
5072         * libc/machine/i960/Makefile.am: Ditto.
5073         * libc/machine/iq2000/Makefile.am: Ditto.
5074         * libc/machine/m32c/Makefile.am: Ditto.
5075         * libc/machine/m32r/Makefile.am: Ditto.
5076         * libc/machine/m68hc11/Makefile.am: Ditto.
5077         * libc/machine/m68k/Makefile.am: Ditto.
5078         * libc/machine/m88k/Makefile.am: Ditto.
5079         * libc/machine/mips/Makefile.am: Ditto.
5080         * libc/machine/mn10200/Makefile.am: Ditto.
5081         * libc/machine/mn10300/Makefile.am: Ditto.
5082         * libc/machine/mt/Makefile.am: Ditto.
5083         * libc/machine/necv70/Makefile.am: Ditto.
5084         * libc/machine/powerpc/Makefile.am: Ditto.
5085         * libc/machine/sh/Makefile.am: Ditto.
5086         * libc/machine/sparc/Makefile.am: Ditto.
5087         * libc/machine/spu/Makefile.am: Ditto.
5088         * libc/machine/tic4x/Makefile.am: Ditto.
5089         * libc/machine/tic80/Makefile.am: Ditto.
5090         * libc/machine/v850/Makefile.am: Ditto.
5091         * libc/machine/w65/Makefile.am: Ditto.
5092         * libc/machine/xscale/Makefile.am: Ditto.
5093         * libc/machine/xstormy16/Makefile.am: Ditto.
5094         * libc/machine/z8k/Makefile.am: Ditto.
5095         * libc/sys/Makefile.am: Ditto.
5096         * libc/sys/a29khif/Makefile.am: Ditto.
5097         * libc/sys/arc/Makefile.am: Ditto.
5098         * libc/sys/arm/Makefile.am: Ditto.
5099         * libc/sys/d10v/Makefile.am: Ditto.
5100         * libc/sys/decstation/Makefile.am: Ditto.
5101         * libc/sys/h8300hms/Makefile.am: Ditto.
5102         * libc/sys/h8500hms/Makefile.am: Ditto.
5103         * libc/sys/linux/Makefile.am: Ditto.
5104         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
5105         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
5106         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
5107         * libc/sys/linux/machine/Makefile.am: Ditto.
5108         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
5109         * libc/sys/m88kbug/Makefile.am: Ditto.
5110         * libc/sys/mmixware/Makefile.am: Ditto.
5111         * libc/sys/netware/Makefile.am: Ditto.
5112         * libc/sys/rdos/Makefile.am: Ditto.
5113         * libc/sys/rtems/Makefile.am: Ditto.
5114         * libc/sys/sh/Makefile.am: Ditto.
5115         * libc/sys/sparc64/Makefile.am: Ditto.
5116         * libc/sys/sun4/Makefile.am: Ditto.
5117         * libc/sys/sysmec/Makefile.am: Ditto.
5118         * libc/sys/sysnec810/Makefile.am: Ditto.
5119         * libc/sys/sysnecv850/Makefile.am: Ditto.
5120         * libc/sys/sysvi386/Makefile.am: Ditto.
5121         * libc/sys/sysvnecv70/Makefile.am: Ditto.
5122         * libc/sys/tic80/Makefile.am: Ditto.
5123         * libc/sys/w65/Makefile.am: Ditto.
5124         * libc/sys/z8ksim/Makefile.am: Ditto.
5125         * libm/Makefile.am: Ditto.
5126         * libm/machine/Makefile.am: Ditto.
5127         * libm/machine/i386/Makefile.am: Ditto.
5128         * libm/machine/spu/Makefile.am: Ditto.
5129
5130         * aclocal.m4: Regenerate.
5131         * iconvdata/aclocal.m4: Regenerate.
5132         * libc/aclocal.m4: Regenerate.
5133         * libc/machine/aclocal.m4: Regenerate.
5134         * libc/machine/i386/aclocal.m4: Regenerate.
5135         * libc/sys/aclocal.m4: Regenerate.
5136         * libc/sys/linux/aclocal.m4: Regenerate.
5137         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
5138         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
5139         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
5140         * libc/sys/linux/machine/aclocal.m4: Regenerate.
5141         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
5142         * libm/aclocal.m4: Regenerate.
5143         * libm/machine/aclocal.m4: Regenerate.
5144         * libm/machine/i386/aclocal.m4: Regenerate.
5145
5146         * Makefile.in: Regenerate.
5147         * doc/Makefile.in: Regenerate.
5148         * iconvdata/Makefile.in: Regenerate.
5149         * libc/Makefile.in: Regenerate.
5150         * libc/argz/Makefile.in: Regenerate.
5151         * libc/ctype/Makefile.in: Regenerate.
5152         * libc/errno/Makefile.in: Regenerate.
5153         * libc/iconv/Makefile.in: Regenerate.
5154         * libc/iconv/ccs/Makefile.in: Regenerate.
5155         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
5156         * libc/iconv/ces/Makefile.in: Regenerate.
5157         * libc/iconv/lib/Makefile.in: Regenerate.
5158         * libc/locale/Makefile.in: Regenerate.
5159         * libc/machine/Makefile.in: Regenerate.
5160         * libc/machine/a29k/Makefile.in: Regenerate.
5161         * libc/machine/arm/Makefile.in: Regenerate.
5162         * libc/machine/bfin/Makefile.in: Regenerate.
5163         * libc/machine/cris/Makefile.in: Regenerate.
5164         * libc/machine/crx/Makefile.in: Regenerate.
5165         * libc/machine/d10v/Makefile.in: Regenerate.
5166         * libc/machine/d30v/Makefile.in: Regenerate.
5167         * libc/machine/fr30/Makefile.in: Regenerate.
5168         * libc/machine/frv/Makefile.in: Regenerate.
5169         * libc/machine/h8300/Makefile.in: Regenerate.
5170         * libc/machine/h8500/Makefile.in: Regenerate.
5171         * libc/machine/hppa/Makefile.in: Regenerate.
5172         * libc/machine/i386/Makefile.in: Regenerate.
5173         * libc/machine/i960/Makefile.in: Regenerate.
5174         * libc/machine/iq2000/Makefile.in: Regenerate.
5175         * libc/machine/m32c/Makefile.in: Regenerate.
5176         * libc/machine/m32r/Makefile.in: Regenerate.
5177         * libc/machine/m68hc11/Makefile.in: Regenerate.
5178         * libc/machine/m68k/Makefile.in: Regenerate.
5179         * libc/machine/m88k/Makefile.in: Regenerate.
5180         * libc/machine/mips/Makefile.in: Regenerate.
5181         * libc/machine/mn10200/Makefile.in: Regenerate.
5182         * libc/machine/mn10300/Makefile.in: Regenerate.
5183         * libc/machine/mt/Makefile.in: Regenerate.
5184         * libc/machine/necv70/Makefile.in: Regenerate.
5185         * libc/machine/powerpc/Makefile.in: Regenerate.
5186         * libc/machine/sh/Makefile.in: Regenerate.
5187         * libc/machine/sparc/Makefile.in: Regenerate.
5188         * libc/machine/spu/Makefile.in: Regenerate.
5189         * libc/machine/tic4x/Makefile.in: Regenerate.
5190         * libc/machine/tic80/Makefile.in: Regenerate.
5191         * libc/machine/v850/Makefile.in: Regenerate.
5192         * libc/machine/w65/Makefile.in: Regenerate.
5193         * libc/machine/xscale/Makefile.in: Regenerate.
5194         * libc/machine/xstormy16/Makefile.in: Regenerate.
5195         * libc/machine/z8k/Makefile.in: Regenerate.
5196         * libc/misc/Makefile.in: Regenerate.
5197         * libc/posix/Makefile.in: Regenerate.
5198         * libc/reent/Makefile.in: Regenerate.
5199         * libc/search/Makefile.in: Regenerate.
5200         * libc/signal/Makefile.in: Regenerate.
5201         * libc/stdio/Makefile.in: Regenerate.
5202         * libc/stdio64/Makefile.in: Regenerate.
5203         * libc/stdlib/Makefile.in: Regenerate.
5204         * libc/string/Makefile.in: Regenerate.
5205         * libc/sys/Makefile.in: Regenerate.
5206         * libc/sys/a29khif/Makefile.in: Regenerate.
5207         * libc/sys/arc/Makefile.in: Regenerate.
5208         * libc/sys/arm/Makefile.in: Regenerate.
5209         * libc/sys/d10v/Makefile.in: Regenerate.
5210         * libc/sys/decstation/Makefile.in: Regenerate.
5211         * libc/sys/h8300hms/Makefile.in: Regenerate.
5212         * libc/sys/h8500hms/Makefile.in: Regenerate.
5213         * libc/sys/linux/Makefile.in: Regenerate.
5214         * libc/sys/linux/argp/Makefile.in: Regenerate.
5215         * libc/sys/linux/cmath/Makefile.in: Regenerate.
5216         * libc/sys/linux/dl/Makefile.in: Regenerate.
5217         * libc/sys/linux/iconv/Makefile.in: Regenerate.
5218         * libc/sys/linux/intl/Makefile.in: Regenerate.
5219         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
5220         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
5221         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
5222         * libc/sys/linux/machine/Makefile.in: Regenerate.
5223         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
5224         * libc/sys/linux/net/Makefile.in: Regenerate.
5225         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
5226         * libc/sys/m88kbug/Makefile.in: Regenerate.
5227         * libc/sys/mmixware/Makefile.in: Regenerate.
5228         * libc/sys/netware/Makefile.in: Regenerate.
5229         * libc/sys/rdos/Makefile.in: Regenerate.
5230         * libc/sys/rtems/Makefile.in: Regenerate.
5231         * libc/sys/sh/Makefile.in: Regenerate.
5232         * libc/sys/sparc64/Makefile.in: Regenerate.
5233         * libc/sys/sun4/Makefile.in: Regenerate.
5234         * libc/sys/sysmec/Makefile.in: Regenerate.
5235         * libc/sys/sysnec810/Makefile.in: Regenerate.
5236         * libc/sys/sysnecv850/Makefile.in: Regenerate.
5237         * libc/sys/sysvi386/Makefile.in: Regenerate.
5238         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
5239         * libc/sys/tic80/Makefile.in: Regenerate.
5240         * libc/sys/w65/Makefile.in: Regenerate.
5241         * libc/sys/z8ksim/Makefile.in: Regenerate.
5242         * libc/syscalls/Makefile.in: Regenerate.
5243         * libc/time/Makefile.in: Regenerate.
5244         * libc/unix/Makefile.in: Regenerate.
5245         * libm/Makefile.in: Regenerate.
5246         * libm/common/Makefile.in: Regenerate.
5247         * libm/machine/Makefile.in: Regenerate.
5248         * libm/machine/i386/Makefile.in: Regenerate.
5249         * libm/machine/spu/Makefile.in: Regenerate.
5250         * libm/math/Makefile.in: Regenerate.
5251         * libm/mathfp/Makefile.in: Regenerate.
5252
5253         * configure: Regenerate.
5254         * iconvdata/configure: Regenerate.
5255         * libc/configure: Regenerate.
5256         * libc/machine/configure: Regenerate.
5257         * libc/machine/i386/configure: Regenerate.
5258         * libc/sys/configure: Regenerate.
5259         * libc/sys/linux/configure: Regenerate.
5260         * libc/sys/linux/linuxthreads/configure: Regenerate.
5261         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
5262         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
5263         * libc/sys/linux/machine/configure: Regenerate.
5264         * libc/sys/linux/machine/i386/configure: Regenerate.
5265         * libm/configure: Regenerate.
5266         * libm/machine/configure: Regenerate.
5267         * libm/machine/i386/configure: Regenerate.
5268
5269 2007-05-23  Eric Blake  <ebb9@byu.net>
5270
5271         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
5272         sizeof(void*) is 8 but sizeof(long) is 4.
5273         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
5274         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
5275         to fix reentrancy and bug on encoding error in multibyte locales.
5276         Always return EOF on read error.
5277
5278 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
5279
5280         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
5281         prototype.
5282         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
5283         instead of the slot 0 value, remove any now unused variables, and
5284         for some cases, now store the result in an int vs int*.
5285         * libc/machine/spu/feof.c: Ditto.
5286         * libc/machine/spu/ferror.c: Ditto.
5287         * libc/machine/spu/fflush.c: Ditto.
5288         * libc/machine/spu/fgetc.c: Ditto.
5289         * libc/machine/spu/fgetpos.c: Ditto.
5290         * libc/machine/spu/fgets.c: Ditto.
5291         * libc/machine/spu/fileno.c: Ditto.
5292         * libc/machine/spu/fopen.c: Ditto.
5293         * libc/machine/spu/fprintf.c: Ditto.
5294         * libc/machine/spu/fputc.c: Ditto.
5295         * libc/machine/spu/fputs.c: Ditto.
5296         * libc/machine/spu/fread.c: Ditto.
5297         * libc/machine/spu/freopen.c: Ditto.
5298         * libc/machine/spu/fscanf.c: Ditto.
5299         * libc/machine/spu/fseek.c: Ditto.
5300         * libc/machine/spu/fsetpos.c: Ditto.
5301         * libc/machine/spu/ftell.c: Ditto.
5302         * libc/machine/spu/fwrite.c: Ditto.
5303         * libc/machine/spu/getc.c: Ditto.
5304         * libc/machine/spu/getchar.c: Ditto.
5305         * libc/machine/spu/gets.c: Ditto.
5306         * libc/machine/spu/printf.c: Ditto.
5307         * libc/machine/spu/putc.c: Ditto.
5308         * libc/machine/spu/putchar.c: Ditto.
5309         * libc/machine/spu/puts.c: Ditto.
5310         * libc/machine/spu/remove.c: Ditto.
5311         * libc/machine/spu/rename.c: Ditto.
5312         * libc/machine/spu/scanf.c: Ditto.
5313         * libc/machine/spu/setvbuf.c: Ditto.
5314         * libc/machine/spu/snprintf.c: Ditto.
5315         * libc/machine/spu/sprintf.c: Ditto.
5316         * libc/machine/spu/sscanf.c: Ditto.
5317         * libc/machine/spu/tmpfile.c: Ditto.
5318         * libc/machine/spu/tmpnam.c: Ditto.
5319         * libc/machine/spu/ungetc.c: Ditto.
5320         * libc/machine/spu/vfprintf.c: Ditto.
5321         * libc/machine/spu/vfscanf.c: Ditto.
5322         * libc/machine/spu/vprintf.c: Ditto.
5323         * libc/machine/spu/vscanf.c: Ditto.
5324         * libc/machine/spu/vsnprintf.c: Ditto.
5325         * libc/machine/spu/vsprintf.c: Ditto.
5326         * libc/machine/spu/vsscanf.c: Ditto.
5327
5328 2007-05-23  Eric Blake  <ebb9@byu.net>
5329
5330         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
5331         Avoid warning when !FLOATING_POINT.
5332         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
5333         slightly.
5334
5335 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
5336
5337         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
5338         to zero.
5339         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
5340         use with C++.
5341
5342 2007-05-18  Eric Blake  <ebb9@byu.net>
5343
5344         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
5345         compilers.
5346         * libc/stdio/vfscanf.c: Likewise.
5347
5348 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
5349
5350         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
5351         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
5352         * libm/math/wf_atan2.c: Ditto.
5353
5354 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
5355
5356         * libm/common/Makefile.am: Add support for exp10, exp10f,
5357         pow10, and pow10f functions.
5358         * libm/common/Makefile.in: Regenerated.
5359         * libm/common/s_pow10.c: New file.
5360         * libm/common/sf_pow10.c: Ditto.
5361         * libm/common/s_exp10.c: Ditto.
5362         * libm/common/sf_exp10.c: Ditto.
5363         * libc/include/math.h [!pow10]: New pow10 prototype.
5364         [!pow10f]: New pow10f prototype.
5365         [!exp10]: New exp10 prototype.
5366         [!exp10f]: New exp10f prototype.
5367
5368 2007-05-17  Charles Wilson  <cygwin@...>
5369
5370         * stdio/tmpfile.c: Include <sys/stat.h>.
5371         * stdio64/tmpfile64.c: Ditto.
5372
5373 2007-05-16  Eric Blake  <ebb9@byu.net>
5374
5375         Close security hole in tmpfile.
5376         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
5377         generation and opening the fd.
5378         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
5379
5380         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
5381         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
5382         required by POSIX.
5383         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
5384         avoid clash with <math.h>.
5385
5386         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
5387         * libc/search/hash.c (__hash_open): Likewise.
5388
5389 2007-05-14 Eric Blake <ebb9@byu.net>
5390
5391         Reduce stack size of *printf.
5392         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
5393         in %f.  Avoid malloc when possible for %S.
5394         (BUF): Improve stack locality by using smaller size.
5395         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
5396         (exponent): Use smaller stack size.
5397
5398 2007-05-11  Eric Blake  <ebb9@byu.net>
5399
5400         Minimize printf/scanf size on platforms that don't need C99.
5401         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
5402         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
5403         * configure.in (newlib-io-c99-formats): New configure option.
5404         (_WANT_IO_C99_FORMATS): Define appropriately.
5405         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
5406         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
5407         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
5408         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
5409         Likewise.
5410         * configure: Regenerate.
5411
5412         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
5413         (get_arg): Support '%a' and '%A'.
5414
5415 2007-05-09  Eric Blake  <ebb9@byu.net>
5416
5417         Allow zero size with non-null buf in *asnprintf.
5418         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
5419         user's buf.
5420         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
5421         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
5422         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
5423
5424 2007-05-07  Charles Wilson  <cygwin@...>
5425
5426         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
5427
5428 2007-05-03  Eric Blake  <ebb9@byu.net>
5429
5430         Add support for asnprintf, and improve *printf documentation.
5431         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
5432         (ELIX_2_SOURCES): ...to this.
5433         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
5434         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
5435         (CHEWOUT_FILES): Include diprintf in documentation.
5436         * libc/stdio/Makefile.in: Regenerate.
5437         * libc/stdio/diprintf.c: Improve documentation.
5438         * libc/stdio/dprintf.c: Likewise.
5439         * libc/stdio/siprintf.c: Likewise.
5440         * libc/stdio/sprintf.c: Likewise.
5441         * libc/stdio/vfprintf.c: Likewise.
5442         * libc/stdio/viprintf.c: Likewise.
5443         * libc/stdio/vsniprintf.c: Consolidate documentation.
5444         * libc/stdio/asiprintf.c: Refer to documentation.
5445         * libc/stdio/asprintf.c: Likewise.
5446         * libc/stdio/fiprintf.c: Likewise.
5447         * libc/stdio/fprintf.c: Likewise.
5448         * libc/stdio/iprintf.c: Likewise.
5449         * libc/stdio/printf.c: Likewise.
5450         * libc/stdio/sniprintf.c: Likewise.
5451         * libc/stdio/vdiprintf.c: Likewise.
5452         * libc/stdio/vdprintf.c: Likewise.
5453         * libc/stdio/vsiprintf.c: Likewise.
5454         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
5455         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
5456         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
5457         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
5458         file.
5459         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
5460         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
5461         typical case.
5462         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
5463         * libc/include/stdio.h: Add prototypes for new functions; sort
5464         existing functions.
5465
5466 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
5467
5468         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5469         and memset.S.
5470         * libc/machine/m68k/Makefile.in: Regenerate.
5471         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
5472         * libc/machine/m68k/memset.S: Likewise.
5473
5474 2007-05-01  Eric Blake  <ebb9@byu.net>
5475
5476         * libc/stdio64/local64.h: Delete, move contents to...
5477         * libc/stdio/local.h: ...here.
5478         * libc/stdio64/fdopen64.c: Update includes.
5479         * libc/stdio64/fopen64.c: Likewise.
5480         * libc/stdio64/freopen64.c: Likewise.
5481         * libc/stdio64/fseeko64.c: Likewise.
5482         * libc/stdio64/ftello64.c: Likewise.
5483         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
5484         and stderr with 64-bit offset.
5485         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
5486         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
5487         * libc/stdio/mktemp.c (_gettemp): Likewise.
5488
5489 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
5490
5491         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
5492         to treatment of NaN and +-inf arguments.
5493         * libm/math/ef_pow.c: Ditto.
5494         * libm/math/w_pow.c: Ditto.
5495         * libm/math/wf_pow.c: Ditto.
5496         * libm/math/w_acos.c: Fix domain errors to return NaN.
5497         * libm/math/w_asin.c: Ditto.
5498         * libm/math/wf_acos.c: Ditto.
5499         * libm/math/wf_asin.c: Ditto.
5500         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
5501         * libm/math/wf_log.c: Ditto.
5502         * libm/math/wf_log10.c: Ditto.
5503         * libm/math/w_log10.c: Ditto.
5504
5505 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
5506
5507         * libc/machine/m68k/Makefile.am: Temporarily remove
5508         memcpy.S and memset.S until logic can be confirmed for
5509         !(__mcoldfile__) case.
5510         * libc/machine/m68k/Makefile.in: Regenerated.
5511
5512 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
5513
5514         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
5515         and memset.S.
5516         * libc/machine/m68k/Makefile.in: Regenerate.
5517         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
5518
5519 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
5520
5521         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
5522         overridden via machine/ieeefp.h.
5523         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
5524         macros for isnan and related macros.
5525         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
5526         overridden via machine/ieeefp.h.
5527         * libm/machine/spu/Makefile.am: Add new files.
5528         * libm/machine/spu/Makefile.in: Autogenerate with new files.
5529         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
5530         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
5531         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
5532         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
5533         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
5534         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
5535         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
5536
5537 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
5538
5539         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
5540         * libm/common/sf_fpclassify.c: ...here.  New file.
5541         * libm/common/Makefile.am: Add sf_fpclassify.c.
5542         * libm/common/Makefile.in: Regenerated.
5543
5544 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5545
5546         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
5547         ppu linux values. This file is a copy of the cris/sys/errno.h plus
5548         a few changes (see spu errno.h comments).
5549
5550 2007-04-25  Eric Blake  <ebb9@byu.net>
5551
5552         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
5553         that promote to int.
5554
5555 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
5556
5557         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
5558         we clear the proper bits in the fpscr, and don't set some random ones.
5559
5560 2007-04-24  Eric Blake  <ebb9@byu.net>
5561
5562         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
5563         or NaN with %05f.
5564
5565         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
5566         _MB_CAPABLE.
5567
5568         * libc/include/limits.h (NL_ARGMAX): Define a default value.
5569         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
5570         NL_ARGMAX, if present.
5571
5572 2007-04-23  Brian Dessent  <brian@dessent.net>
5573
5574         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
5575         has been specified with types 'f', 'F', 'g', or 'G', ensure the
5576         trailing decimal is printed.
5577
5578 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
5579
5580         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
5581         file.  Override Autoconf-2.59's version of these macros with
5582         fixed handling of multiple adjacent whitespace in arguments.
5583         * aclocal.m4: Regenerated forcefully.
5584         * configure: Ditto.
5585         * Makefile.in: Ditto.
5586         * libc/*Makefile.in: Ditto.
5587         * libc/*aclocal.m4: Ditto.
5588         * libc/*configure: Ditto.
5589         * libm/*Makefile.in: Ditto.
5590         * libm/*aclocal.m4: Ditto.
5591         * libm/*configure: Ditto.
5592
5593 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
5594
5595         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
5596         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
5597         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
5598         * libc/sys/arc/Makefile.in: Regenerated.
5599
5600 2007-04-17  Brian Dessent  <brian@dessent.net>
5601
5602         * libc/stdio/sscanf.c: Update documentation comments.
5603         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
5604
5605 2007-04-12  Eric Blake  <ebb9@byu.net>
5606
5607         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
5608         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
5609         (get_arg): Handle %1$F, %1$n.
5610
5611 2007-04-10  Eric Blake  <ebb9@byu.net>
5612
5613         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
5614         CFLAGS=-O0.
5615
5616 2007-04-09  Eric Blake  <ebb9@byu.net>
5617
5618         * libc/include/stdio.h: Add gcc format attributes to printf and
5619         scanf families.
5620
5621 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
5622
5623         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
5624         even if the passed in length n is shorter than the source string.
5625         This matches both the non-spu specific and the glibc strxfrm
5626         behaviour.
5627
5628 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
5629
5630         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
5631         functions registering additional atexit functions.
5632
5633         * testsuite/lib/flags.exp (newlib_include_flags): Drop
5634         -I${newlib_dir}.
5635
5636 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
5637
5638         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
5639         prototype.
5640         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
5641         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
5642         * libc/machine/spu/fclose.c: Ditto.
5643         * libc/machine/spu/feof.c: Ditto.
5644         * libc/machine/spu/ferror.c: Ditto.
5645         * libc/machine/spu/fflush.c: Ditto.
5646         * libc/machine/spu/fgetc.c: Ditto.
5647         * libc/machine/spu/fgetpos.c: Ditto.
5648         * libc/machine/spu/fgets.c: Ditto.
5649         * libc/machine/spu/fileno.c: Ditto.
5650         * libc/machine/spu/fopen.c: Ditto.
5651         * libc/machine/spu/fprintf.c: Ditto.
5652         * libc/machine/spu/fputc.c: Ditto.
5653         * libc/machine/spu/fputs.c: Ditto.
5654         * libc/machine/spu/fread.c: Ditto.
5655         * libc/machine/spu/freopen.c: Ditto.
5656         * libc/machine/spu/fscanf.c: Ditto.
5657         * libc/machine/spu/fseek.c: Ditto.
5658         * libc/machine/spu/fsetpos.c: Ditto.
5659         * libc/machine/spu/ftell.c: Ditto.
5660         * libc/machine/spu/fwrite.c: Ditto.
5661         * libc/machine/spu/getc.c: Ditto.
5662         * libc/machine/spu/getchar.c: Ditto.
5663         * libc/machine/spu/gets.c: Ditto.
5664         * libc/machine/spu/perror.c: Ditto.
5665         * libc/machine/spu/printf.c: Ditto.
5666         * libc/machine/spu/putc.c: Ditto.
5667         * libc/machine/spu/putchar.c: Ditto.
5668         * libc/machine/spu/puts.c: Ditto.
5669         * libc/machine/spu/remove.c: Ditto.
5670         * libc/machine/spu/rename.c: Ditto.
5671         * libc/machine/spu/rewind.c: Ditto.
5672         * libc/machine/spu/scanf.c: Ditto.
5673         * libc/machine/spu/setbuf.c: Ditto.
5674         * libc/machine/spu/setvbuf.c: Ditto.
5675         * libc/machine/spu/snprintf.c: Ditto.
5676         * libc/machine/spu/sprintf.c: Ditto.
5677         * libc/machine/spu/sscanf.c: Ditto.
5678         * libc/machine/spu/tmpfile.c: Ditto.
5679         * libc/machine/spu/tmpnam.c: Ditto.
5680         * libc/machine/spu/ungetc.c: Ditto.
5681         * libc/machine/spu/vfprintf.c: Ditto.
5682         * libc/machine/spu/vfscanf.c: Ditto.
5683         * libc/machine/spu/vprintf.c: Ditto.
5684         * libc/machine/spu/vscanf.c: Ditto.
5685         * libc/machine/spu/vsnprintf.c: Ditto.
5686         * libc/machine/spu/vsprintf.c: Ditto.
5687         * libc/machine/spu/vsscanf.c: Ditto.
5688
5689 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
5690
5691         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
5692
5693 2007-04-04  Eric Blake  <ebb9@byu.net>
5694
5695         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
5696         (asiprintf): Avoid overhead.
5697         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
5698         (asprintf): Avoid overhead.
5699         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
5700         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
5701         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
5702         (fiprintf): Avoid overhead.
5703         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
5704         (fprintf): Avoid overhead.
5705         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
5706         (iprintf): Avoid overhead.
5707         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
5708         (printf): Avoid overhead.
5709         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
5710         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
5711         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
5712         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
5713         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
5714         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
5715         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
5716         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
5717         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
5718         vdiprintf.c.
5719         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
5720         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
5721
5722 2007-03-30  Dave Korn  <dave.korn@artimi.com>
5723
5724         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
5725         conflicting inline semantics between C99 and GNU89.
5726         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
5727         compatible with -fkeep-inline-functions usage.
5728         (__sputc_r):  Likewise for consistency even though disabled.
5729
5730 2007-03-29  Nick Clifton  <nickc@redhat.com>
5731
5732         Reflect changes made to generic vfprintf.c:
5733         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5734         and add a "struct reent *" argument.
5735         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5736         argument and call _VFPRINTF_R instead of VFPRINTF.
5737         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5738         Fix uses of __sprint() and __sbprintf.
5739
5740 2007-03-20  Nick Clifton  <nickc@redhat.com>
5741
5742         Reflect changes made to generic vfprintf.c:
5743         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5744         and add a "struct reent *" argument.
5745         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5746         argument and call _VFPRINTF_R instead of VFPRINTF.
5747         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5748         Fix uses of __sprint() and __sbprintf.
5749
5750 2007-03-16  Charles Wilson  <cygwin@...>
5751
5752         * libc/argz/argz_insert.c: "before" pointer is
5753         invalid after *argz realloc.  Compute offset
5754         between "before" and *argz, and use it after
5755         reallocation instead.
5756
5757 2007-03-16  Eric Blake  <ebb9@byu.net>
5758
5759         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
5760         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5761
5762 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
5763
5764         * configure.in: Add new --enable-newlib-reent-small option.
5765         * configure: Regenerated.
5766         * acconfig.h: Add _WANT_REENT_SMALL.
5767         * newlib.hin: Regenerated minus PACKAGE macros to add
5768         _WANT_REENT_SMALL macro.
5769         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
5770         if not already set.
5771         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5772         there is no buffer.
5773         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5774         use reentrant pointer passed in when resetting the file
5775         pointer to one of the std streams.
5776
5777 2007-03-15  Eric Blake  <ebb9@byu.net>
5778
5779         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5780         (__smakebuf): Rename...
5781         (__smakebuf_r): to this.
5782         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5783         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5784         allocation, then rename...
5785         (__smakebuf_r): ...to this and fix reentrancy.
5786         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5787         allocation, then rename...
5788         (__swsetup_r): ...to this and fix reentrancy.
5789         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5790         * libc/stdio/refill.c (__srefill_r): Likewise.
5791         * libc/stdio/fclose.c (_fclose_r): Likewise.
5792         * libc/stdio/fread.c (_fread_r): Likewise.
5793         * libc/stdio/freopen.c (_freopen_r): Likewise.
5794         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5795         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5796         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5797         failed asprintf allocation, and fix reentrancy.
5798         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5799         as required by POSIX.
5800         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5801         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5802         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5803
5804 2007-03-12  Eric Blake  <ebb9@byu.net>
5805
5806         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5807         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5808         allocation to caller.
5809         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5810         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5811         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5812
5813 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5814
5815         * libm/math/w_pow.c: Fix typo in documentation comment.
5816
5817 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5818
5819         * libc/reent/timer.c: Removed (split into two new files).
5820         * libc/reent/timesr.c: New file for _times_r.
5821         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5822         * reent/Makefile.in: Remove timer.c, add timesr.c and
5823         gettimeofdayr.c.
5824         * libc/reent/Makefile.am: Regenerate.
5825
5826 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5827
5828         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5829
5830 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5831
5832         * libc/machine/spu/Makefile.am: Add new objects.
5833         * libc/machine/spu/Makefile.in: Regenerated.
5834         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5835         integer-only version.
5836         * libc/machine/spu/fiscanf.c: Ditto.
5837         * libc/machine/spu/iprintf.c: Ditto.
5838         * libc/machine/spu/iscanf.c: Ditto.
5839         * libc/machine/spu/siprintf.c: Ditto.
5840         * libc/machine/spu/siscanf.c: Ditto.
5841         * libc/machine/spu/sniprintf.c: Ditto.
5842         * libc/machine/spu/vfiprintf.c: Ditto.
5843         * libc/machine/spu/vfiscanf.c: Ditto.
5844         * libc/machine/spu/viprintf.c: Ditto.
5845         * libc/machine/spu/viscanf.c: Ditto.
5846         * libc/machine/spu/vsiprintf.c: Ditto.
5847         * libc/machine/spu/vsiscanf.c: Ditto.
5848         * libc/machine/spu/vsniprintf.c: Ditto.
5849         * libc/machine/spu/fprintf.c: Add support for integer-only
5850         version.
5851         * libc/machine/spu/fscanf.c: Ditto.
5852         * libc/machine/spu/printf.c: Ditto.
5853         * libc/machine/spu/scanf.c: Ditto.
5854         * libc/machine/spu/snprintf.c: Ditto.
5855         * libc/machine/spu/sprintf.c: Ditto.
5856         * libc/machine/spu/sscanf.c: Ditto.
5857         * libc/machine/spu/vfprintf.c: Ditto.
5858         * libc/machine/spu/vfscanf.c: Ditto.
5859         * libc/machine/spu/vprintf.c: Ditto.
5860         * libc/machine/spu/vscanf.c: Ditto.
5861         * libc/machine/spu/vsnprintf.c: Ditto.
5862         * libc/machine/spu/vsprintf.c: Ditto.
5863         * libc/machine/spu/vsscanf.c: Ditto.
5864
5865 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5866
5867         * libc/include/stdio.h: Add declaration for vsiprintf.
5868
5869 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5870
5871         Add a floating point environment for SPU (cell):
5872
5873         * configure.host: add libm_machine_dir=spu.
5874         * libm/machine/configure: Add spu.
5875         * libm/machine/configure.in: regenerated with spu added.
5876         * libc/machine/spu/include/fenv.h: New file.
5877         * libc/machine/spu/sys/fenv.h: Ditto.
5878         * libm/machine/spu/Makefile.am: Ditto.
5879         * libm/machine/spu/Makefile.in: Ditto.
5880         * libm/machine/spu/aclocal.m4: Ditto.
5881         * libm/machine/spu/configure: Ditto.
5882         * libm/machine/spu/configure.in: Ditto.
5883         * libm/machine/spu/fe_dfl_env.c: Ditto.
5884         * libm/machine/spu/feclearexcept.c: Ditto.
5885         * libm/machine/spu/fegetenv.c: Ditto.
5886         * libm/machine/spu/fegetexceptflag.c: Ditto.
5887         * libm/machine/spu/fegetround.c: Ditto.
5888         * libm/machine/spu/feholdexcept.c: Ditto.
5889         * libm/machine/spu/feraiseexcept.c: Ditto.
5890         * libm/machine/spu/fesetenv.c: Ditto.
5891         * libm/machine/spu/fesetexceptflag.c: Ditto.
5892         * libm/machine/spu/fesetround.c: Ditto.
5893         * libm/machine/spu/fetestexcept.c: Ditto.
5894         * libm/machine/spu/feupdateenv.c: Ditto.
5895         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5896         * libm/machine/spu/headers/fefpscr.h: Ditto.
5897         * libm/machine/spu/headers/fegetenv.h: Ditto.
5898         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5899         * libm/machine/spu/headers/fegetround.h: Ditto.
5900         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5901         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5902         * libm/machine/spu/headers/fesetenv.h: Ditto.
5903         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5904         * libm/machine/spu/headers/fesetround.h: Ditto.
5905         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5906         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5907
5908 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5909
5910         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5911         Cygwin.
5912
5913 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5914
5915         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5916         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5917
5918 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5919
5920         * libc/include/sys/features.h: Add definition of all supported
5921         _POSIX_xxx values for Cygwin.
5922         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5923         on Cygwin.
5924         (pthread_rwlockattr_t): Ditto.
5925         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5926         required by SUSv3.  Unify formatting.
5927
5928 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5929
5930         * libc/include/sys/errno.h: Add ECANCELED.
5931
5932 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5933             Kazunori Asayama <asayama@sm.sony.co.jp>
5934
5935         * libc/machine/spu/Makefile.am: Add objects.
5936         * libc/machine/spu/Makefile.in: Regenerated.
5937         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5938         implementation.
5939         * libc/machine/spu/snprintf.c: Ditto.
5940         * libc/machine/spu/sprintf.c: Ditto.
5941         * libc/machine/spu/sscanf.c: Ditto.
5942         * libc/machine/spu/remove.c: Ditto.
5943         * libc/machine/spu/rename.c: Ditto.
5944         * libc/machine/spu/tmpnam.c: Ditto.
5945         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5946         stdio stuffs.
5947         * libc/machine/spu/vsprintf.c: Ditto.
5948
5949 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5950             Kazunori Asayama <asayama@sm.sony.co.jp>
5951
5952         * configure.host: Enable SPU specific stdio directory.
5953         * libc/machine/spu/Makefile.am: Add objects.
5954         * libc/machine/spu/Makefile.in: Regenerated.
5955         * libc/machine/spu/c99ppe.h: Add macros and function
5956         declarations to initialize SPU specific stdio stuffs.
5957         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5958         specific FILE structures.
5959         * libc/machine/spu/perror.c: Add initialization routine of
5960         stdio stuffs.
5961         * libc/machine/spu/printf.c: Ditto.
5962         * libc/machine/spu/putchar.c: Ditto.
5963         * libc/machine/spu/puts.c: Ditto.
5964         * libc/machine/spu/vprintf.c: Ditto.
5965         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5966         implementation.
5967         * libc/machine/spu/feof.c: Ditto.
5968         * libc/machine/spu/ferror.c: Ditto.
5969         * libc/machine/spu/fileno.c: Ditto.
5970         * libc/machine/spu/fopen.c: Ditto.
5971         * libc/machine/spu/fclose.c: Ditto.
5972         * libc/machine/spu/freopen.c: Ditto.
5973         * libc/machine/spu/fflush.c: Ditto.
5974         * libc/machine/spu/fseek.c: Ditto.
5975         * libc/machine/spu/ftell.c: Ditto.
5976         * libc/machine/spu/rewind.c: Ditto.
5977         * libc/machine/spu/fgetpos.c: Ditto.
5978         * libc/machine/spu/fsetpos.c: Ditto.
5979         * libc/machine/spu/fread.c: Ditto.
5980         * libc/machine/spu/fwrite.c: Ditto.
5981         * libc/machine/spu/getc.c: Ditto.
5982         * libc/machine/spu/getchar.c: Ditto.
5983         * libc/machine/spu/gets.c: Ditto.
5984         * libc/machine/spu/fgetc.c: Ditto.
5985         * libc/machine/spu/fgets.c: Ditto.
5986         * libc/machine/spu/ungetc.c: Ditto.
5987         * libc/machine/spu/putc.c: Ditto.
5988         * libc/machine/spu/fputc.c: Ditto.
5989         * libc/machine/spu/fputs.c: Ditto.
5990         * libc/machine/spu/vfprintf.c: Ditto.
5991         * libc/machine/spu/vfscanf.c: Ditto.
5992         * libc/machine/spu/fprintf.c: Ditto.
5993         * libc/machine/spu/fscanf.c: Ditto.
5994         * libc/machine/spu/scanf.c: Ditto.
5995         * libc/machine/spu/vscanf.c: Ditto.
5996         * libc/machine/spu/setbuf.c: Ditto.
5997         * libc/machine/spu/setvbuf.c: Ditto.
5998         * libc/machine/spu/tmpfile.c: Ditto.
5999
6000 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
6001
6002         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
6003         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
6004         around stdio macros that manipulate fields in the normal file
6005         structure.
6006         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
6007         <sys/custom_file.h> to define custom FILE structure.
6008         * libc/include/sys/custom_file.h: New default header file
6009         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
6010         * libc/machine/spu/sys/custom_file.h: New file.
6011
6012 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
6013
6014         * configure.host: Define stdio directory as a variable.
6015         * libc/Makefile.am: Define stdio related names
6016         as macros.
6017         * libc/configure.in: Add detection routine of stdio directory.
6018         * libc/Makefile.in: Regenerated.
6019         * libc/configure: Ditto.
6020         * libc/argz/Makefile.in: Ditto.
6021         * libc/ctype/Makefile.in: Ditto.
6022         * libc/errno/Makefile.in: Ditto.
6023         * libc/iconv/Makefile.in: Ditto.
6024         * libc/iconv/ccs/Makefile.in: Ditto.
6025         * libc/iconv/ccs/binary/Makefile.in: Ditto.
6026         * libc/iconv/ces/Makefile.in: Ditto.
6027         * libc/iconv/lib/Makefile.in: Ditto.
6028         * libc/locale/Makefile.in: Ditto.
6029         * libc/misc/Makefile.in: Ditto.
6030         * libc/posix/Makefile.in: Ditto.
6031         * libc/reent/Makefile.in: Ditto.
6032         * libc/search/Makefile.in: Ditto.
6033         * libc/signal/Makefile.in: Ditto.
6034         * libc/stdio/Makefile.in: Ditto.
6035         * libc/stdio64/Makefile.in: Ditto.
6036         * libc/stdlib/Makefile.in: Ditto.
6037         * libc/string/Makefile.in: Ditto.
6038         * libc/syscalls/Makefile.in: Ditto.
6039         * libc/time/Makefile.in: Ditto.
6040         * libc/unix/Makefile.in: Ditto.
6041
6042 2007-01-30  Ben Elliston  <bje@au.ibm.com>
6043
6044         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
6045         fmt member.
6046         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
6047         (printf): Pass fmt to va_start to suppress a warning.
6048
6049         * libc/search/hash.c (init_hash): Make `info' parameter const.
6050
6051 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
6052
6053         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
6054         * libc/machine/spu/vec_literal.h: Ditto.
6055         * libc/machine/spu/strncmp.c: Ditto.
6056
6057 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
6058             Kazu Hirata  <kazu@codesourcery.com>
6059
6060         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
6061         for E500V1 and E500V2.
6062
6063 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6064
6065         * libm/configure.in: Always configure machine directory.
6066         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
6067         unconditionally.
6068         * libm/configure: Regenerated.
6069         * libm/Makefile.in: Ditto.
6070         * libm/*/Makefile.in: Ditto.
6071
6072 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
6073
6074         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
6075
6076 2007-01-02  Ben Elliston  <bje@au.ibm.com>
6077
6078         * doc/makedoc.c: Include <stdlib.h>.
6079         (malloc, realloc): Remove extern declarations.
6080
6081 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6082
6083         * NEWS: Update with 1.15.0 info.
6084         * README: Ditto.
6085         * acinclude.m4: Change version number to 1.15.0.
6086         * aclocal.m4: Regenerated.
6087         * configure: Ditto.
6088         * doc/aclocal.m4: Ditto.
6089         * doc/configure: Ditto.
6090         * libc/*/aclocal.m4: Ditto.
6091         * libc/*/configure: Ditto.
6092         * libc/libc.texinfo: Ditto.
6093         * libm/*/aclocal.m4: Ditto.
6094         * libm/*/configure: Ditto.
6095         * libm/libm.texinfo: Ditto.
6096         * libc/sys/linux/shared.ld: Add VERS_1.15.
6097
6098 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
6099
6100         Merge from newlib-csl-20060320-branch:
6101         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
6102                     Kazu Hirata  <kazu@codesourcery.com>
6103
6104         * configure.host: Recognize fido.
6105
6106 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
6107
6108         * libc/machine/spu/c99ppe.h: New file
6109         * libc/machine/spu/perror.c: New file to override libc/stdio version.
6110         * libc/machine/spu/printf.c: New file
6111         * libc/machine/spu/putchar.c: New file
6112         * libc/machine/spu/puts.c: New file
6113         * libc/machine/spu/vprintf.c: New file
6114         * libc/machine/spu/vsnprintf.c: New file
6115         * libc/machine/spu/vsprintf.c: New file
6116         * libc/machine/spu/Makefile.am: Add new targets.
6117         * libc/machine/spu/Makefile.in: Regenerated.
6118
6119 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6120
6121         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
6122         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
6123
6124 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
6125
6126         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
6127         2.6.5 version of Doug Lea's malloc which is the basis of
6128         this code.
6129
6130 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
6131
6132         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
6133
6134 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
6135             Eric Blake  <ebb9@byu.net>
6136
6137         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
6138         read but unused data.
6139         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
6140         even read streams may have side effects that must happen.
6141
6142 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
6143
6144         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
6145         correctly.
6146
6147 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
6148
6149         * libc/include/alloca.h: Add undef alloca to work with xlc.
6150
6151 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
6152
6153         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
6154         cell spu.
6155
6156 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
6157
6158         * libc/machine/spu/strncpy.c: Add padding.
6159
6160 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
6161
6162         * testsuite/newlib.string/tstring.c:
6163
6164 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
6165
6166         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
6167         * libc/machine/spu/strrchr.c: Ditto.
6168
6169 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
6170
6171         * libc/include/math.h: Allow C99 functions/macros to be
6172         defined for C++ even when __STRICT_ANSI__.
6173
6174 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
6175
6176         * libc/stdio/makebuf.c (__smakebuf): If dealing with
6177         an asprintf-family buffer, make the default initial size 64.
6178
6179 2006-11-29  Eric Blake  <ebb9@byu.net>
6180
6181         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
6182         asprintf, as well as quadratic realloc behavior.
6183
6184 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
6185
6186         * libc/machine/spu/memset.c: Fix type of explicit cast.
6187         * libc/machine/spu/strncmp.c: Add explicit cast.
6188         * libc/machine/spu/strrchr.c: Ditto.
6189         * libc/machine/spu/strspn.c: Ditto.
6190
6191 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
6192
6193         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
6194         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
6195         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
6196         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
6197         * libc/machine/spu/strncat.c: Explicit cast.
6198         * libc/machine/spu/strncmp.c: Use spu_splats.
6199         * libc/machine/spu/strncpy.c: Explicit cast.
6200         * libc/machine/spu/strrchr.c: Use spu_splats.
6201         * libc/machine/spu/strspn.c: Use spu_splats.
6202
6203 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
6204
6205         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
6206
6207 2006-11-14  Eric Blake  <ebb9@byu.net>
6208
6209         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
6210         (chclass): ' is a flag.  j, t, and z are modifiers.
6211
6212 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
6213
6214         * configure.host: Add support for bfin.
6215         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
6216         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
6217         * libc/machine/bfin/aclocal.m4: Generate.
6218         * libc/machine/bfin/configure.in: New.
6219         * libc/machine/bfin/configure: Generate.
6220         * libc/machine/bfin/Makefile.am: New.
6221         * libc/machine/bfin/Makefile.in: Generate.
6222         * libc/machine/bfin/setjmp.S: New.
6223         * libc/machine/bfin/longjmp.S: New.
6224         * libc/machine/configure.in: Add bfin support.
6225         * libc/machine/configure: Generate.
6226
6227 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
6228
6229         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
6230         (_PC_FILESIZEBITS): Add definition.
6231         (_PC_2_SYMLINKS): Ditto.
6232         (_PC_SYMLINK_MAX): Ditto.
6233
6234 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
6235
6236         * libc/machine/spu/memcpy.c: Override generic function with vectorized
6237         version optimized for the cell spu.
6238         * libc/machine/spu/memmove.c: Ditto.
6239         * libc/machine/spu/memset.c: Ditto.
6240         * libc/machine/spu/strcat.c: Ditto.
6241         * libc/machine/spu/strchr.c: Ditto.
6242         * libc/machine/spu/strcmp.c: Ditto.
6243         * libc/machine/spu/strcpy.c: Ditto.
6244         * libc/machine/spu/strcspn.c: Ditto.
6245         * libc/machine/spu/strlen.c: Ditto.
6246         * libc/machine/spu/strncat.c: Ditto.
6247         * libc/machine/spu/strncmp.c: Ditto.
6248         * libc/machine/spu/strncpy.c: Ditto.
6249         * libc/machine/spu/strpbrk.c: Ditto.
6250         * libc/machine/spu/strrchr.c: Ditto.
6251         * libc/machine/spu/strspn.c: Ditto.
6252         * libc/machine/spu/strxfrm.c: Ditto.
6253         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
6254         removing altivec style initializers.
6255         * libc/machine/spu/Makefile.am: Add new files to list so they build
6256         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
6257
6258 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
6259
6260         * README: Add a brief section on how to regenerate
6261         configuration files in newlib.
6262
6263 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
6264
6265         * libc/include/math.h: (exception): Add a comment
6266         telling fixincludes that we handle C vs. C++ issue.
6267
6268 2006-10-11  Yang Tse  <yangsita@gmail.com>
6269
6270         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
6271         braced-groups.
6272
6273 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
6274
6275         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
6276
6277 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
6278
6279         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
6280         for clearerr, feof, or fileno.
6281         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
6282         the dummy std stream scheme to use pointers to const external
6283         fake files, one for each standard stream.
6284         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
6285         argument.  For _REENT_SMALL, reset the file pointer if it
6286         matches one of the fake std stream pointers.
6287         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
6288         argument.
6289         * libc/stdio/fclose.c: Ditto.
6290         * libc/stdio/feof.c: Ditto.
6291         * libc/stdio/ferror.c: Ditto.
6292         * libc/stdio/fflush.c: Ditto.
6293         * libc/stdio/fgetc.c: Ditto.
6294         * libc/stdio/fgets.c: Ditto.
6295         * libc/stdio/fileno.c: Ditto.
6296         * libc/stdio/findfp.c: Ditto.
6297         * libc/stdio/fputc.c: Ditto.
6298         * libc/stdio/fputs.c: Ditto.
6299         * libc/stdio/fread.c: Ditto.
6300         * libc/stdio/freopen.c: Ditto.
6301         * libc/stdio/fseek.c: Ditto.
6302         * libc/stdio/ftell.c: Ditto.
6303         * libc/stdio/fwrite.c: Ditto.
6304         * libc/stdio/getc.c: Ditto.
6305         * libc/stdio/getdelim.c: Ditto.
6306         * libc/stdio/putc.c: Ditto.
6307         * libc/stdio/refill.c: Ditto.
6308         * libc/stdio/setvbuf.c: Ditto.
6309         * libc/stdio/ungetc.c: Ditto.
6310         * libc/stdio/vfprintf.c: Ditto.
6311         * libc/stdio/vfscanf.c: Ditto.
6312         * libc/stdio/wbuf.c: Ditto.: Ditto.
6313         * libc/stdio/wsetup.c: Ditto.
6314         * libc/stdio64/freopen64.c: Ditto.
6315         * libc/stdio64/fseeko64.c: Ditto.
6316         * libc/stdio64/ftello64.c: Ditto.
6317         * libc/machine/powerpc/vfprintf.c: Ditto.
6318         * libc/machine/powerpc/vfscanf.c: Ditto.
6319
6320 2006-09-22  Paul Brook  <paul@codesourcery.com>
6321
6322         * libc/include/sys/reent.h: Define and use __reent_assert.
6323
6324 2006-09-13  Joel Sherrill <joel@oarcorp.com>
6325
6326         * libc/include/pthread.h: Add pthread barriers,
6327         rwlocks, and spinlocks.  Change const to
6328         _CONST and prefix parameter names with
6329         an underscore.
6330         * libc/include/sys/types.h: Add id and attribute
6331         types for barriers, wrlocks, and spinlocks.
6332         * libc/include/sys/features.h: Enable barriers,
6333         wrlocks, and spinlocks for RTEMS.
6334
6335 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
6336
6337         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
6338         supposed to be writable.
6339         * libm/common/s_lib_ver.c: Ditto.
6340
6341 2006-09-12  Paul Brook  <paul@codesourcery.com>
6342
6343         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
6344
6345 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
6346
6347
6348         * libc/machine/xstormy16/Makefile.am:
6349         Add $(lpfx) prefix to LIBADD objects.
6350         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
6351         * libc/machine/xstormy16/Makefile.in: Regenerated.
6352
6353 2006-09-06  Eric Blake  <ebb9@byu.net>
6354
6355         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
6356         't', and 'z' modifiers.
6357
6358 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
6359
6360         Merge from newlib-csl-20060320-branch:
6361         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
6362
6363         * configure.host: Tell it we have _rename and _system when
6364         building m68k-unknown-elf.
6365
6366 2006-08-29  Paul Brook  <paul@codesourcery.com>
6367
6368         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
6369
6370 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
6371
6372         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
6373         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
6374         This is needed to build all AVR and H8300 RTEMS multilib variants.
6375
6376 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
6377
6378         * libc/machine/configure.in: Add configuration for SPU.
6379         * libc/machine/configure: Regenerated.
6380         * libc/machine/spu/memcpy.c: Include string.h.
6381
6382 2006-08-22  Eric Blake  <ebb9@byu.net>
6383
6384         * libc/posix/popen.c (popen): Don't close output end of pipe in
6385         child if stdout was closed on entry.
6386         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
6387
6388 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
6389
6390         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
6391         line.
6392
6393 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
6394
6395         * libc/time/gmtime.c: Correct man page; clock is not a
6396         local time and no conversion occurs.
6397
6398 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
6399
6400         * configure.host (newlib_cflags) [spu]: Add special compiler
6401         options to reduce size.
6402
6403 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
6404
6405         * configure.host: Add spu support.
6406         * libc/include/stdint.h: Ditto.
6407         * libc/include/machine/ieeefp.h: Ditto.
6408         * libc/include/machine/setjmp.h: Ditto.
6409         * libc/include/sys/config.h: Ditto.
6410         * libc/include/sys/types.h: Ditto.
6411         * libc/machine/spu/Makefile.am: New file.
6412         * libc/machine/spu/Makefile.in: Ditto.
6413         * libc/machine/spu/aclocal.m4: Ditto.
6414         * libc/machine/spu/configure: Ditto.
6415         * libc/machine/spu/configure.in: Ditto.
6416         * libc/machine/spu/memcpy.c: Ditto.
6417         * libc/machine/spu/setjmp.S: Ditto.
6418
6419 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
6420
6421         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
6422         properly.
6423
6424 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
6425
6426         * libc/Makefile.am: Add libc_TEXINFOS dependency on
6427         generated .texi files.
6428         * libm/Makefile.am: Add libm_TEXINFOS dependency on
6429         generated .texi files.
6430         * libc/Makefile.in: Regenerated.
6431         * libm/Makefile.in: Ditto.
6432
6433 2006-08-01  Thiemo Seufer  <ths@mips.com>
6434             Nigel Stephens  <nigel@mips.com>
6435
6436         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
6437         define this to force _impure_ptr to live in the .sdata section.
6438
6439 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
6440
6441         * acinclude.m4: Check for readelf tool.
6442         * configure.in: Use ${READELF} instead of hard-coding.
6443         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6444
6445 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
6446
6447         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
6448         to avoid conflict with newer glibc's revision of mremap.
6449
6450 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
6451
6452         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
6453         floating-point format support.  Also redefine
6454         dword0 and dword1 macros.
6455         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
6456         to prevent setting dword1 which is an rvalue only.
6457
6458 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
6459
6460         * libc/stdlib/Makefile.am: Add new gdtoa routines.
6461         * libc/stdlib/Makefile.in: Regenerated.
6462         * libc/stdlib/gd_qnan.h: New file.
6463         * libc/stdlib/gdtoa-gethex.c: Ditto.
6464         * libc/stdlib/gdtoa-hexnan.c: Ditto.
6465         * libc/stdlib/gdtoa.h: Ditto.
6466         * libc/stdlib/mprec.c: Add new helper routines needed by
6467         the new gdtoa code.
6468         * libc/stdlib/mprec.h: Integrate some defines and prototypes
6469         used by gdtoa routines here.
6470         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
6471         which adds C99 support such as nan, inf, and hexadecimal input
6472         format.
6473
6474 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
6475
6476         * libc/include/stdio.h (__sgetc_r): Fix typo.
6477         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
6478         * libc/stdio/rget.c (__srbuf): Reinstantiate.
6479         * libc/stdio/wbuf.c (__swbuf): Ditto.
6480
6481 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
6482
6483         * libc/include/stdio.h: Add new reentrant I/O prototypes for
6484         read/write functions.  Change getc/putc macros to have reentrant underlying
6485         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
6486         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
6487         new reentrant I/O functions/macros for reading/writing.
6488         * libc/stdio/fgets.c: Ditto.
6489         * libc/stdio/fputc.c: Ditto.
6490         * libc/stdio/fputs.c: Ditto.
6491         * libc/stdio/fread.c: Ditto.
6492         * libc/stdio/fseek.c: Ditto.
6493         * libc/stdio64/fseeko64.c: Ditto.
6494         * libc/stdio/fwrite.c: Ditto.
6495         * libc/stdio/getc.c: Ditto.
6496         * libc/stdio/getc_u.c: Ditto.
6497         * libc/stdio/getchar.c: Ditto.
6498         * libc/stdio/getchar_u.c: Ditto.
6499         * libc/stdio/putc.c: Ditto.
6500         * libc/stdio/putc_u.c: Ditto.
6501         * libc/stdio/putchar.c: Ditto.
6502         * libc/stdio/puts.c: Ditto.
6503         * libc/stdio/vfprintf.c: Ditto.
6504         * libc/stdio/vfscanf.c: Ditto.
6505         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
6506         Change all previous callers of __sfvwrite.  Set errno to EBADF and
6507         set error flag on if attempt is made to write to file that does not
6508         allow writing.
6509         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
6510         * libc/stdio/local.h: Ditto.
6511         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
6512         Set errno to EBADF and the error flag on if attempt is made to
6513         read unreadable file.  Change all previous callers of __srefill.
6514         * libc/stdio/rget.c
6515         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
6516         all previous callers of __swbuf.
6517         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
6518         huge value macros are already defined correctly for i386 by <math.h>.
6519
6520 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
6521
6522         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
6523         Make them do something useful in the ARM_RDI_MONITOR case.
6524
6525 2006-06-07  Fred Fish  <fnf@specifix.com>
6526
6527         * libc/search/hash_bigkey.c (MIN,MAX): Remove
6528         defines that are already supplied by <sys/param.h>.
6529
6530 2006-06-07  Fred Fish  <fnf@specifix.com>
6531
6532         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
6533
6534 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
6535
6536         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
6537         usleep.c.
6538         * libc/posix/Makefile.in: Regenerate.
6539         * libc/posix/sleep.c: New file.
6540         * libc/posix/usleep.c: Ditto.
6541
6542 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
6543
6544         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
6545         -DABORT_PROVIDED flag.
6546         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
6547         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
6548
6549 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6550
6551         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
6552         * Makefile.in: Regenerated.
6553         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
6554         extraneous CFLAGS reference now that CCASFLAGS are being extended
6555         properly via multilib.
6556         * libc/machine/sh/Makefile.in: Regenerated.
6557
6558 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
6559
6560         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
6561         sigismember.
6562
6563 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6564
6565         * libc/misc/dprintf.c: Removed.
6566         * libc/misc/__dprintf.c: Renamed from dprintf.c.
6567         * libc/misc/Makefile.am: Changed appropriately for rename.
6568         * libc/misc/Makefile.in: Regenerated.
6569
6570 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6571
6572         * libc/include/stdio.h: Protect dprintf prototype
6573         with #ifndef dprintf so as to not interfere with
6574         historical code defining their own dprintf macro.
6575
6576 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
6577
6578         * libc/include/stdio.h: Add prototypes for fiscanf,
6579         iscanf, and siscanf.
6580
6581 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
6582
6583         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
6584         (DEF_NEWLIB_VERSION).
6585         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
6586         * configure: Regenerate.
6587
6588 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
6589
6590         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
6591         lib_a_SOURCES.
6592         * libc/ctype/Makefile.in: Regenerated.
6593
6594 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
6595
6596         * libc/machine/arm/Makefile.am: Fix a typo.
6597         * libc/machine/arm/Makefile.in: Regenerated.
6598
6599 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
6600
6601         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6602         * libc/machine/sh/Makefile.in: Regenerate.
6603
6604 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
6605
6606         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
6607         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
6608
6609 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
6610
6611         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
6612         .s.
6613         * libc/sys/sysnec810/Makefile.in: Regenerated.
6614         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
6615         * libc/sys/sysnec810/io.S: Ditto.
6616         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
6617         * libc/sys/sysnec810/io.s: Ditto.
6618
6619 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
6620
6621         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
6622         be specified instead of object, do so.
6623         * libc/ctype/Makefile.am: Ditto.
6624         * libc/iconv/ccs/Makefile.am: Ditto.
6625         * libc/iconv/ces/Makefile.am: Ditto.
6626         * libc/iconv/lib/Makefile.am: Ditto.
6627         * libc/locale/Makefile.am: Ditto.
6628         * libc/posix/Makefile.am: Ditto.
6629         * libc/reent/Makefile.am: Ditto.
6630         * libc/search/Makefile.am: Ditto.
6631         * libc/stdio/Makefile.am: Ditto.
6632         * libc/stdio64/Makefile.am: Ditto.
6633         * libc/stdlib/Makefile.am: Ditto.
6634         * libc/string/Makefile.am: Ditto.
6635         * libc/syscalls/Makefile.am: Ditto.
6636         * libc/unix/Makefile.am: Ditto.
6637         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
6638         prefix added automatically.  Any specified rules must use $(lpfx) for
6639         object file names.
6640         * libc/machine/arm/Makefile.am: Ditto.
6641         * libc/machine/cris/Makefile.am: Ditto.
6642         * libc/machine/crx/Makefile.am: Ditto.
6643         * libc/machine/d10v/Makefile.am: Ditto.
6644         * libc/machine/d30v/Makefile.am: Ditto.
6645         * libc/machine/fr30/Makefile.am: Ditto.
6646         * libc/machine/frv/Makefile.am: Ditto.
6647         * libc/machine/h8300/Makefile.am: Ditto.
6648         * libc/machine/h8500/Makefile.am: Ditto.
6649         * libc/machine/hppa/Makefile.am: Ditto.
6650         * libc/machine/i386/Makefile.am: Ditto.
6651         * libc/machine/i960/Makefile.am: Ditto.
6652         * libc/machine/iq2000/Makefile.am: Ditto.
6653         * libc/machine/m32c/Makefile.am: Ditto.
6654         * libc/machine/m32r/Makefile.am: Ditto.
6655         * libc/machine/m68hc11/Makefile.am: Ditto.
6656         * libc/machine/m68k/Makefile.am: Ditto.
6657         * libc/machine/m88k/Makefile.am: Ditto.
6658         * libc/machine/mips/Makefile.am: Ditto.
6659         * libc/machine/mn10200/Makefile.am: Ditto.
6660         * libc/machine/mn10300/Makefile.am: Ditto.
6661         * libc/machine/mt/Makefile.am: Ditto.
6662         * libc/machine/necv70/Makefile.am: Ditto.
6663         * libc/machine/powerpc/Makefile.am: Ditto.
6664         * libc/machine/sh/Makefile.am: Ditto.
6665         * libc/machine/sh/Makefile.in: Ditto.
6666         * libc/machine/sparc/Makefile.am: Ditto.
6667         * libc/machine/tic4x/Makefile.am: Ditto.
6668         * libc/machine/tic80/Makefile.am: Ditto.
6669         * libc/machine/v850/Makefile.am: Ditto.
6670         * libc/machine/w65/Makefile.am: Ditto.
6671         * libc/machine/xscale/Makefile.am: Ditto.
6672         * libc/machine/xstormy16/Makefile.am: Ditto.
6673         * libc/machine/z8k/Makefile.am: Ditto.
6674         * libc/sys/a29khif/Makefile.am: Ditto.
6675         * libc/sys/arm/Makefile.am: Ditto.
6676         * libc/sys/d10v/Makefile.am: Ditto.
6677         * libc/sys/h8300hms/Makefile.am: Ditto.
6678         * libc/sys/h8500hms/Makefile.am: Ditto.
6679         * libc/sys/linux/Makefile.am: Ditto.
6680         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6681         * libc/sys/linux/net/Makefile.am: Ditto.
6682         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6683         * libc/sys/m88kbug/Makefile.am: Ditto.
6684         * libc/sys/mmixware/Makefile.am: Ditto.
6685         * libc/sys/rdos/Makefile.am: Ditto.
6686         * libc/sys/rtems/Makefile.am: Ditto.
6687         * libc/sys/sh/Makefile.am: Ditto.
6688         * libc/sys/sun4/Makefile.am: Ditto.
6689         * libc/sys/sysmec/Makefile.am: Ditto.
6690         * libc/sys/sysnec810/Makefile.am: Ditto.
6691         * libc/sys/sysnecv850/Makefile.am: Ditto.
6692         * libc/sys/sysvi386/Makefile.am: Ditto.
6693         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6694         * libc/sys/tic80/Makefile.am: Ditto.
6695         * libc/sys/w65/Makefile.am: Ditto.
6696         * libc/sys/z8ksim/Makefile.am: Ditto.
6697         * libc/machine/necv70/fastmath.S: Renamed from .s file.
6698         * libc/machine/necv70/setjmp.S: Ditto.
6699         * libc/machine/necv70/fastmath.s: Removed.
6700         * libc/machine/necv70/setjmp.s: Ditto.
6701         * libc/machine/w65/*.S: New files renamed from .s files.
6702         * libc/machine/w65/*.s: Renamed and removed.
6703         * libc/sys/a29khif/*.S: New files renamed from .s files.
6704         * libc/sys/a29khif/*.s: Renamed and removed.
6705         * libc/sys/sysvi386/*.S: New files renamed from .s files.
6706         * libc/sys/sysvi386/*.s: Renamed and removed.
6707         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
6708         * libc/sys/sysvnecv70/*.s: Renamed and removed.
6709         * libc/*Makefile.in: Regenerated as appropriate.
6710
6711 2006-04-24  DJ Delorie  <dj@redhat.com>
6712
6713         * libc/machine/sh/configure.in: Avoid link tests.
6714         * libc/machine/sh/configure: Regenerate.
6715
6716 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
6717
6718         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
6719         (sigaddset, sigemptyset): Add return code.
6720
6721 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
6722
6723         * acinclude.m4: New _NEWLIB_VERSION.
6724         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
6725         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
6726         Use new form of AC_INIT_AUTOMAKE.
6727         * configure.in: AC_PREREQ(2.59).
6728         Use autoconf-2.5.x version of AC_INIT.
6729         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
6730         autoconf-2.13's AC_OUTPUT.
6731         * libm/configure.in: Ditto.
6732         * libm/machine/configure.in: Ditto.
6733         * libm/machine/i386/configure.in: Ditto.
6734         * libc/configure.in: Ditto.
6735         * libc/machine/a29k/configure.in: Ditto.
6736         * libc/machine/arm/configure.in: Ditto.
6737         * libc/machine/configure.in: Ditto.
6738         * libc/machine/mn10300/configure.in: Ditto.
6739         * libc/machine/powerpc/configure.in: Ditto.
6740         * libc/machine/z8k/configure.in: Ditto.
6741         * libc/machine/h8300/configure.in: Ditto.
6742         * libc/machine/mips/configure.in: Ditto.
6743         * libc/machine/crx/configure.in: Ditto.
6744         * libc/machine/m68hc11/configure.in: Ditto.
6745         * libc/machine/h8500/configure.in: Ditto.
6746         * libc/machine/xscale/configure.in: Ditto.
6747         * libc/machine/d10v/configure.in: Ditto.
6748         * libc/machine/fr30/configure.in: Ditto.
6749         * libc/machine/sh/configure.in: Ditto.
6750         * libc/machine/tic80/configure.in: Ditto.
6751         * libc/machine/m32r/configure.in: Ditto.
6752         * libc/machine/xstormy16/configure.in: Ditto.
6753         * libc/machine/i386/configure.in: Ditto.
6754         * libc/machine/d30v/configure.in: Ditto.
6755         * libc/machine/mn10200/configure.in: Ditto.
6756         * libc/machine/frv/configure.in: Ditto.
6757         * libc/machine/mt/configure.in: Ditto.
6758         * libc/machine/i960/configure.in: Ditto.
6759         * libc/machine/v850/configure.in: Ditto.
6760         * libc/machine/necv70/configure.in: Ditto.
6761         * libc/machine/tic4x/configure.in: Ditto.
6762         * libc/machine/cris/configure.in: Ditto.
6763         * libc/machine/m68k/configure.in: Ditto.
6764         * libc/machine/m32c/configure.in: Ditto.
6765         * libc/machine/hppa/configure.in: Ditto.
6766         * libc/machine/w65/configure.in: Ditto.
6767         * libc/machine/iq2000/configure.in: Ditto.
6768         * libc/machine/sparc/configure.in: Ditto.
6769         * libc/machine/m88k/configure.in: Ditto.
6770         * libc/sys/linux/configure.in: Ditto.
6771         * libc/sys/linux/machine/configure.in: Ditto.
6772         * libc/sys/linux/machine/i386/configure.in: Ditto.
6773         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6774         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6775         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6776         * libc/sys/arm/configure.in: Ditto.
6777         * libc/sys/configure.in: Ditto.
6778         * libc/sys/decstation/configure.in: Ditto.
6779         * libc/sys/a29khif/configure.in: Ditto.
6780         * libc/sys/sysnecv850/configure.in: Ditto.
6781         * libc/sys/d10v/configure.in: Ditto.
6782         * libc/sys/netware/configure.in: Ditto.
6783         * libc/sys/mmixware/configure.in: Ditto.
6784         * libc/sys/h8500hms/configure.in: Ditto.
6785         * libc/sys/sh/configure.in: Ditto.
6786         * libc/sys/tic80/configure.in: Ditto.
6787         * libc/sys/rdos/configure.in: Ditto.
6788         * libc/sys/sysmec/configure.in: Ditto.
6789         * libc/sys/sysvi386/configure.in: Ditto.
6790         * libc/sys/h8300hms/configure.in: Ditto.
6791         * libc/sys/sparc64/configure.in: Ditto.
6792         * libc/sys/arc/configure.in: Ditto.
6793         * libc/sys/sysnec810/configure.in: Ditto.
6794         * libc/sys/m88kbug/configure.in: Ditto.
6795         * libc/sys/sysvnecv70/configure.in: Ditto.
6796         * libc/sys/z8ksim/configure.in: Ditto.
6797         * libc/sys/rtems/configure.in: Ditto.
6798         * libc/sys/w65/configure.in: Ditto.
6799         * libc/sys/sun4/configure.in: Ditto.
6800         * doc/configure.in: Ditto.
6801         * iconvdata/configure.in: Ditto.
6802         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6803
6804 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6805
6806         * acinclude.m4: Properly add square brackets for
6807         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6808         macros no longer available.  Add LIB_AM_PROG_AS to
6809         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6810         macro.  Substitute lpfx (library object prefix).
6811         * configure.host: Set lpfx depending on whether
6812         libtool is used or not.
6813         * configure.in: Individually specify libc and libm
6814         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6815         necessary.
6816         * Makefile.am: Use $(lpfx) to get object names for
6817         math-library functions that should also be in libc.
6818         * libc/machine/configure.in: Use case statement to determine
6819         AC_CONFIG_SUBDIRS statement.
6820         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6821         * libc/sys/linux/machine/configure.in: Ditto.
6822         * libc/sys/configure.in: Ditto.
6823         * libm/machine/configure.in: Ditto.
6824         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6825         * libm/configure.in: Add AM_CONDITIONAL statement
6826         for HAVE_LIBM_MACHINE_DIR.
6827         * libc/machine/a29k/Makefile.am: Modified to work with
6828         latest automake.  Change includes setting AM_CCASFLAGS
6829         so building .S files will properly pick up flags used
6830         to build C files.
6831         * libc/machine/arm/Makefile.am: Ditto.
6832         * libc/machine/crx/Makefile.am: Ditto.
6833         * libc/machine/d10v/Makefile.am: Ditto.
6834         * libc/machine/d30v/Makefile.am: Ditto.
6835         * libc/machine/fr30/Makefile.am: Ditto.
6836         * libc/machine/frv/Makefile.am: Ditto.
6837         * libc/machine/h8300/Makefile.am: Ditto.
6838         * libc/machine/h8500/Makefile.am: Ditto.
6839         * libc/machine/hppa/Makefile.am: Ditto.
6840         * libc/machine/i386/Makefile.am: Ditto.
6841         * libc/machine/iq2000/Makefile.am: Ditto.
6842         * libc/machine/m32c/Makefile.am: Ditto.
6843         * libc/machine/m32r/Makefile.am: Ditto.
6844         * libc/machine/m68hc11/Makefile.am: Ditto.
6845         * libc/machine/m68k/Makefile.am: Ditto.
6846         * libc/machine/m88k/Makefile.am: Ditto.
6847         * libc/machine/mips/Makefile.am: Ditto.
6848         * libc/machine/mn10200/Makefile.am: Ditto.
6849         * libc/machine/mn10300/Makefile.am: Ditto.
6850         * libc/machine/mt/Makefile.am: Ditto.
6851         * libc/machine/necv70/Makefile.am: Ditto.
6852         * libc/machine/powerpc/Makefile.am: Ditto.
6853         * libc/machine/sh/Makefile.am: Ditto.
6854         * libc/machine/sparc/Makefile.am: Ditto.
6855         * libc/machine/tic4x/Makefile.am: Ditto.
6856         * libc/machine/tic80/Makefile.am: Ditto.
6857         * libc/machine/v850/Makefile.am: Ditto.
6858         * libc/machine/w65/Makefile.am: Ditto.
6859         * libc/machine/xscale/Makefile.am: Ditto.
6860         * libc/machine/xstormy16/Makefile.am: Ditto.
6861         * libc/machine/z8k/Makefile.am: Ditto.
6862         * libc/sys/a29khif/Makefile.am: Ditto.
6863         * libc/sys/arc/Makefile.am: Ditto.
6864         * libc/sys/arm/Makefile.am: Ditto.
6865         * libc/sys/d10v/Makefile.am: Ditto.
6866         * libc/sys/decstation/Makefile.am: Ditto.
6867         * libc/sys/h8300hms/Makefile.am: Ditto.
6868         * libc/sys/h8500hms/Makefile.am: Ditto.
6869         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6870         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6871         * libc/sys/m88kbug/Makefile.am: Ditto.
6872         * libc/sys/mmixware/Makefile.am: Ditto.
6873         * libc/sys/netware/Makefile.am: Ditto.
6874         * libc/sys/rdos/Makefile.am: Ditto.
6875         * libc/sys/rtems/Makefile.am: Ditto.
6876         * libc/sys/sh/Makefile.am: Ditto.
6877         * libc/sys/sparc64/Makefile.am: Ditto.
6878         * libc/sys/sysmec/Makefile.am: Ditto.
6879         * libc/sys/sysnec810/Makefile.am: Ditto.
6880         * libc/sys/sysnecv850/Makefile.am: Ditto.
6881         * libc/sys/sysvi386/Makefile.am: Ditto.
6882         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6883         * libc/sys/tic80/Makefile.am: Ditto.
6884         * libc/sys/w65/Makefile.am: Ditto.
6885         * libc/sys/z8ksim/Makefile.am: Ditto.
6886         * libm/machine/i386/Makefile.am: Ditto.
6887         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6888         trap.S so that automake will generate a .S.o suffix rule.
6889         * libc/argz/Makefile.am: Modified to work with
6890         latest automake.  Change includes adding lib_a_CFLAGS
6891         so automake doesn't complain about libtool and non-libtool
6892         libraries sharing objects.
6893         * libc/ctype/Makefile.am: Ditto.
6894         * libc/errno/Makefile.am: Ditto.
6895         * libc/iconv/ccs/Makefile.am: Ditto.
6896         * libc/iconv/ces/Makefile.am: Ditto.
6897         * libc/iconv/lib/Makefile.am: Ditto.
6898         * libc/locale/Makefile.am: Ditto.
6899         * libc/misc/Makefile.am: Ditto.
6900         * libc/posix/Makefile.am: Ditto.
6901         * libc/reent/Makefile.am: Ditto.
6902         * libc/search/Makefile.am: Ditto.
6903         * libc/signal/Makefile.am: Ditto.
6904         * libc/stdio/Makefile.am: Ditto.
6905         * libc/stdio64/Makefile.am: Ditto.
6906         * libc/stdlib/Makefile.am: Ditto.
6907         * libc/string/Makefile.am: Ditto.
6908         * libc/sys/linux/Makefile.am: Ditto.
6909         * libc/sys/linux/argp/Makefile.am: Ditto.
6910         * libc/sys/linux/cmath/Makefile.am: Ditto.
6911         * libc/sys/linux/dl/Makefile.am: Ditto.
6912         * libc/sys/linux/iconv/Makefile.am: Ditto.
6913         * libc/sys/linux/intl/Makefile.am: Ditto.
6914         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6915         * libc/sys/linux/net/Makefile.am: Ditto.
6916         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6917         * libc/syscalls/Makefile.am: Ditto.
6918         * libc/time/Makefile.am: Ditto.
6919         * libc/unix/Makefile.am: Ditto.
6920         * libm/Makefile.am: Ditto.
6921         * libm/common/Makefile.am: Ditto.
6922         * libm/math/Makefile.am: Ditto.
6923         * libm/mathfp/Makefile.am: Ditto.
6924         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6925
6926 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6927
6928         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6929         anymore.  Assume there is a gettimeofday syscall.
6930
6931 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6932
6933         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6934         for the declaration of n_long.
6935
6936 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6937
6938         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6939         struct sockaddr.
6940         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6941         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6942         (IFF_NOTRAILERS): New define.
6943         (struct ifreq): Add ifru_netmask.
6944         (ifr_netmask): New define.
6945
6946 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6947
6948         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6949         match sys/ioctl.h.
6950
6951 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6952
6953         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6954         linux-newlib libc implementations.
6955
6956 2006-03-29  Eric Blake  <ebb9@byu.net>
6957
6958         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6959         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6960
6961 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6962
6963         * libc/sys/linux/io.c (__mknod): Fix declaration of
6964         syscall to pass a dev_t as third argument rather than
6965         a pointer to dev_t.
6966
6967 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6968
6969         * libc/sys/linux/net/name6.c: Fix struct references.
6970
6971 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6972
6973         * configure.host: Allow hosts to set the default
6974         newlib_atexit_dynamic_alloc value.
6975         * configure.in: Likewise.
6976         * configure: Regenerated.
6977
6978 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6979
6980         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6981         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6982         option.
6983         * configure: Regenerated.
6984         * newlib.hin: Regenerated.
6985         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6986         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6987         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6988         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6989
6990 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6991
6992         * libc/sys/linux/linuxthreads/config.h: Remove definition
6993         of UINT32_C.
6994
6995 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6996
6997         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6998         for a string I/O file that isn't using the asprintf family.
6999
7000 2006-03-07  Eric Blake  <ebb9@byu.net>
7001
7002         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
7003         filename, allow read-only or write-only FILE atop O_RDWR file
7004         descriptor.
7005         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
7006
7007 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
7008
7009         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
7010         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
7011
7012 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
7013
7014         * libm/math/math.tex: Fix reference to sisnan.def which
7015         is now in common subdirectory.
7016         * libm/mathfp/mathfp.tex: Ditto.
7017
7018 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7019
7020         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
7021         s_isnand, and sf_isnanf object files.
7022         * Makefile.in: Regenerated.
7023         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
7024         conflict if <math.h> has previously been included.
7025         * libc/include/math.h
7026         * libc/include/math.h: Make isnan and isinf macros to
7027         conform to C99.
7028         (__isinfd, __isinff, __isnand, __isnanf): New functions.
7029         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
7030         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
7031         sf_isinf files which have been moved from math/mathfp directories.
7032         * libm/common/Makefile.in: Regenerated.
7033         * libm/common/s_isinfd.c: New file.
7034         * libm/common/s_isnand.c: Ditto.
7035         * libm/common/sf_isinff.c: Ditto.
7036         * libm/common/sf_isnanf.c: Ditto.
7037         * libm/common/s_isinf.c: Moved from libm/math directory.
7038         * libm/common/s_isnan.c: Ditto.
7039         * libm/common/sf_isinf.c: Ditto.
7040         * libm/common/sf_isnan.c: Ditto.
7041         * libm/math/Makefile.am: Remove isinf and isnan family functions
7042         which have been moved into common directory.
7043         * libm/mathfp/Makefile.am: Ditto.
7044         * libm/math/Makefile.in: Regenerated.
7045         * libm/mathfp/Makefile.in: Ditto.
7046         * libm/math/s_isinf.c: Removed.
7047         * libm/math/s_isnan.c: Ditto.
7048         * libm/math/sf_isinf.c: Ditto.
7049         * libm/math/sf_isnan.c: Ditto.
7050         * libm/mathfp/s_isinf.c: Ditto.
7051         * libm/mathfp/s_isnan.c: Ditto.
7052         * libm/mathfp/sf_isinf.c: Ditto.
7053         * libm/mathfp/sf_isnan.c: Ditto.
7054
7055 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
7056
7057         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
7058         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
7059         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
7060         seek, turn off the __SNPT no-optimization flag.
7061
7062 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
7063
7064         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
7065         will be defined.
7066         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
7067         <features.h> to preset special flags.
7068
7069 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
7070
7071         * libc/include/sys/time.h (struct timeval): Change member types
7072         according to SUSv3.
7073         * libc/include/sys/types.h (useconds_t): Change to unsigned
7074         according to SUSv3.
7075         (suseconds_t): Define type.
7076
7077 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
7078             David Carne  <davidcarne@gmail.com>
7079
7080         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
7081         instead of strlen to determine number of bytes to copy.
7082         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
7083         before looking at storage location.
7084
7085 2006-02-07  Paul Brook  <paul@codesourcery.com>
7086
7087         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
7088         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
7089         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
7090         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
7091         * libc/sys/arm/trap.S: Disable for Thumb-2.
7092
7093 2006-01-31  Leif Ekblad  <leif@rdos.net>
7094
7095         * configure.host: RDOS support added
7096         * libc/include/sys/config.h: Ditto.
7097         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
7098         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
7099         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
7100         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
7101         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
7102         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
7103         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
7104         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
7105         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
7106         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
7107         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
7108         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
7109         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
7110         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
7111         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
7112         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
7113         * libc/sys/rdos/write.c: Ditto.
7114
7115 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7116
7117         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
7118         so as not to define PACKAGE and VERSION in newlib.h.
7119         * aclocal.m4: Regenerated.
7120         * configure: Ditto.
7121         * newlib.hin: Ditto.
7122
7123 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7124
7125         * acconfig.h: New file to generate newlib.hin from.
7126         * newlib.hin: Regenerated.
7127         * stamp-h.in: Regenerated.
7128         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
7129         called automatically.
7130         * Makefile.in: Regenerated.
7131         * acinclude.m4: Add proper comment for hack in previous change.
7132         * aclocal.m4 */aclocal.m4: Regenerated.
7133         * configure */configure: Regenerated.
7134
7135 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
7136
7137         * acinclude.m4: Add hack to prevent INSTALL in subdirs
7138         from being set to "../".
7139         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
7140         * aclocal.m4: Regenerated.
7141         * configure: Ditto.
7142         * Makefile.in: Ditto.
7143         * doc/aclocal.m4: Ditto.
7144         * doc/configure: Ditto.
7145         * iconvdata/aclocal.m4: Ditto.
7146         * iconvdata/configure: Ditto.
7147         * libc/*/aclocal.m4: Ditto.
7148         * libc/*/configure: Ditto.
7149         * libc/libc.texinfo: Ditto.
7150         * libm/*/aclocal.m4: Ditto.
7151         * libm/*/configure: Ditto.
7152
7153 2006-01-10  Eric Blake  <ebb9@byu.net>
7154
7155         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
7156         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7157
7158 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
7159
7160         * libm/mathfp/s_frexp.c: Check for special values on
7161         the original input, not the manipulated output value.
7162         * libm/mathfp/sf_frexp.c: Ditto.
7163         * libm/mathfp/s_atangent.c: Don't use local value branch
7164         when checking for quadrant.
7165         * libm/mathfp/sf_atangent.c: Ditto.
7166
7167 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
7168
7169         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
7170         * libc/stdio64/freopen64.c: Ditto.
7171
7172 2006-01-09  Eric Blake  <ebb9@byu.net>
7173
7174         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
7175         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
7176
7177 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7178
7179         * libc/sys/linux/include/getopt.h: Add macros needed by
7180         new version of getopt.c in libc/stdlib.
7181
7182 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
7183
7184         * libc/stdlib/getopt.c: Replaced with version
7185         that adds getopt_long and getopt_long_only support.
7186         * libc/include/getopt.h: New file.
7187
7188 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
7189
7190         * NEWS: Update with 1.14.0 info.
7191         * README: Ditto.
7192         * acinclude.m4: Change version number to 1.14.0.
7193         * aclocal.m4: Regenerated.
7194         * configure: Ditto.
7195         * doc/aclocal.m4: Ditto.
7196         * doc/configure: Ditto.
7197         * libc/*/aclocal.m4: Ditto.
7198         * libc/*/configure: Ditto.
7199         * libc/libc.texinfo: Ditto.
7200         * libm/*/aclocal.m4: Ditto.
7201         * libm/*/configure: Ditto.
7202         * libm/libm.texinfo: Ditto.
7203         * libc/sys/linux/shared.ld: Add VERS_1.14.
7204
7205 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
7206
7207         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
7208         take a pointer to struct stat64 rather than struct stat.
7209
7210 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
7211
7212         * libc/include/stdint.h: Prefer long over int for int32_t.
7213         Use __have_long32 to set up int32_t.
7214         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
7215         (Sync with stdint.h).
7216
7217 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
7218
7219         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
7220         typo in O_NDELAY comment.
7221
7222 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
7223
7224         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
7225         * libc/include/machine/setjmp.h (__mt__): Likewise.
7226         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
7227         * libc/machine/configure.in: Ditto.
7228
7229 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
7230
7231         * configure.host: Replace ms1 arch with mt arch.
7232         * libc/machine/mt: Renamed from ms1 dir.
7233
7234 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
7235
7236         * libc/include/sys/types.h: Remove the ifdef armour around
7237         standard POSIX types.
7238
7239 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
7240
7241         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
7242         rtems_gxx_key_delete, rtems_gxx_getspecific,
7243         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
7244         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
7245         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
7246
7247 2005-12-05  Christopher Faylor  <cgf@timesys.com>
7248
7249         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
7250         file.  Declare unsetenv and _unsetenv_r when not cygwin.
7251
7252 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
7253
7254         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
7255         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
7256
7257 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7258
7259         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
7260
7261 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7262
7263         * include/time.h: Remove more cygwin-specific stuff.
7264
7265 2005-11-18  Christopher Faylor  <cgf@timesys.com>
7266
7267         * include/time.h: Move cygwin declarations to cygwin-specific header.
7268         * include/sys/time.h: Rename cygwin include to "sys_time.h".
7269
7270 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
7271
7272         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
7273         in libc/sys/linux/include.
7274         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
7275         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
7276         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
7277         in libc/sys/linux/dl.
7278
7279 2005-11-11  Christopher Faylor  <cgf@timesys.com>
7280
7281         * libc/include/sys/time.h: For cygwin, use general header rather than
7282         specific "sys/select.h".
7283
7284 2005-11-08  Tom Walsh  <tom@openhardware.net>
7285
7286         * libc/time/tzvars.c: New file.
7287         * libc/time/tzset_r.c: Moved globals into tzvars.c
7288         so other time functions needn't link in __tzset_r and its
7289         dependencies.
7290         * libc/time/Makefile.am: Add the new file.
7291         * libc/time/Makefile.in: Regenerated.
7292
7293 2005-11-08  Christopher Faylor  <cgf@timesys.com>
7294
7295         * libc/include/string.h: Add cygwin-specific function declaration.
7296
7297 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
7298
7299         * libc/include/ieeefp.h: Add C++ guards.
7300
7301 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
7302
7303         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
7304         * libc/unix/getlogin.c: Ditto.
7305         * libc/unix/getpass.c: Ditto.
7306         * libc/unix/getut.c: Ditto.
7307         * libc/unix/ttyname.c: Ditto.
7308
7309 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
7310
7311         * libc/include/sys/unistd.h (readlink, symlink): Provide these
7312         prototypes by default.
7313         * libc/sys/linux/include/unistd.h (readlink): Remove this
7314         prototype.
7315         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
7316         prototypes.
7317
7318 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
7319
7320         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
7321
7322 2005-10-31  Darin Johnson  <darin@usa.net>
7323
7324         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
7325         correct for constants.
7326
7327 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
7328
7329         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
7330         * libc/stdio/siscanf.c: Likewise.
7331         * libc/stdio/sprintf.c: Likewise.
7332         * libc/stdio/sscanf.c: Likewise.
7333         * libc/stdio/vfprintf.c: Likewise.
7334         * libc/stdio/vfscanf.c: Likewise.
7335         * libc/stdio/viprintf.c: Likewise.
7336         * libc/stdio/viscanf.c: Likewise.
7337
7338 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
7339
7340         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
7341         example to use "_end" symbol instead of "end".  Change write  example
7342         to use "outbyte" instead of "writechar".
7343
7344 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
7345
7346         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
7347         * libc/ctype/islower.c: Likewise.
7348         * libc/ctype/isupper.c: Likewise.
7349         * libc/ctype/iswalnum.c: Likewise.
7350         * libc/ctype/iswalpha.c: Likewise.
7351         * libc/ctype/iswblank.c: Likewise.
7352         * libc/ctype/iswcntrl.c: Likewise.
7353         * libc/ctype/iswdigit.c: Likewise.
7354         * libc/ctype/iswgraph.c: Likewise.
7355         * libc/ctype/iswlower.c: Likewise.
7356         * libc/ctype/iswprint.c: Likewise.
7357         * libc/ctype/iswpunct.c: Likewise.
7358         * libc/ctype/iswspace.c: Likewise.
7359         * libc/ctype/iswupper.c: Likewise.
7360         * libc/ctype/iswxdigit.c: Likewise.
7361         * libc/ctype/tolower.c: Likewise.
7362         * libc/ctype/toupper.c: Likewise.
7363         * libc/ctype/towctrans.c: Likewise.
7364         * libc/ctype/towlower.c: Likewise.
7365         * libc/ctype/towupper.c: Likewise.
7366         * libc/string/strcasecmp.c: Likewise.
7367         * libc/string/strcoll.c: Likewise.
7368         * libc/string/strings.tex: Likewise.
7369         * libc/string/strlwr.c: Likewise.
7370         * libc/string/strncasecmp.c: Likewise.
7371         * libc/string/strupr.c: Likewise.
7372         * libc/string/wcscoll.c: Likewise.
7373         * libc/string/wcslcat.c: Likewise.
7374         * libc/string/wcslcpy.c: Likewise.
7375         * libc/string/wcsnlen.c: Likewise.
7376         * libc/string/wcsstr.c: Likewise.
7377         * libc/string/wcstrings.tex: Likewise.
7378         * libc/string/wmemchr.c: Likewise.
7379         * libc/string/wmemcmp.c: Likewise.
7380         * libc/string/wmemcpy.c: Likewise.
7381         * libc/string/wmemmove.c: Likewise.
7382         * libc/string/wmemset.c: Likewise.
7383
7384 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
7385
7386         * libc/misc/unctrl.c: Replace FUNCTION description.
7387         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
7388         * libc/stdio/getdelim.c: Fix spelling errors.
7389         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
7390         * libc/stdio/putw.c: Likewise.
7391         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
7392         documentation.
7393         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
7394         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
7395         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
7396         * libc/stdlib/mlock.c: Likewise.
7397         * libc/stdlib/mstats.c: Likewise.
7398         * libc/time/tzlock.c: Likewise.
7399         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
7400         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
7401         and hyphenate "pseudo-random".
7402         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
7403         * libc/string/strncat.c: Likewise.
7404         * libc/string/memchr.c: Remove extra ">" character in  documentation.
7405         * libc/string/strcspn.c: Use "characters" instead of "chars".
7406         * libc/string/strpbrk.c: Likewise.
7407         * libc/string/strerror_r.c: Capitalize "GNU".
7408         * libc/string/strnlen.c: Likewise.
7409         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
7410         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
7411         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
7412         * libc/string/wcschr.c: Likewise.
7413         * libc/string/wcscmp.c: Likewise.
7414         * libc/string/wcscpy.c: Likewise.
7415         * libc/string/wcscspn.c: Likewise.
7416         * libc/string/wcslen.c: Likewise.
7417         * libc/string/wcsncat.c: Likewise.
7418         * libc/string/wcsncmp.c: Likewise.
7419         * libc/string/wcsncpy.c: Likewise.
7420         * libc/string/wcsnlen.c: Likewise.
7421         * libc/string/wcspbrk.c: Likewise.
7422         * libc/string/wcsrchr.c: Likewise.
7423         * libc/string/wcsspn.c: Likewise.
7424         * libc/string/wmemchr.c: Likewise.
7425         * libc/string/wmemcmp.c: Likewise.
7426         * libc/string/wmemcpy.c: Likewise.
7427         * libc/string/wmemset.c: Likewise.
7428         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
7429         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
7430         * libc/string/wcwidth.c: Likewise.
7431         * libm/common/s_modf.c: Remove extra period from documentation.
7432         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
7433         documentation.
7434         * libm/mathfp/s_isnan.c: Likewise.
7435         * libm/math/s_ldexp.c: Fix punctuation.
7436         * libm/mathfp/s_ldexp.c: Likewise.
7437         * libm/math/w_log.c: Likewise.
7438         * libm/mathfp/s_logarithm.c: Likewise.
7439         * libm/math/w_j0.c: Add spaces to FUNCTION description.
7440         * libm/mathfp/w_jn.c: Likewise.
7441
7442 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
7443
7444         * libc/posix/scandir.c (scandir): Update the function
7445         prototype to match the header.
7446         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
7447         extraneous #endif.
7448         * libc/sys/linux/sys/lock.h: Do not include
7449         machine/weakalias.h, since it's not used by this file.
7450
7451 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
7452
7453         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
7454         directories can override properly.
7455
7456 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
7457
7458         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
7459         gcc is 3.3 or greater, use special gcc builtins.
7460
7461 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
7462
7463         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
7464
7465 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
7466
7467         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
7468
7469 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7470
7471         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
7472         * libm/common/Makefile.am: Add s_infconst.c support.
7473         * libm/common/Makefile.in: Regenerated.
7474         * libm/common/s_infconst.c: New file with float and
7475         long double infinity support added.
7476         * libm/math/Makefile.am: Remove s_infconst.c support.
7477         * libm/math/Makefile.in: Regenerated.
7478         * libm/math/s_infconst.c: Moved to common directory.
7479         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
7480         * libm/mathfp/Makefile.in: Regenerated.
7481         * libm/mathfp/s_infconst.c: Moved to common directory.
7482
7483 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7484
7485         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
7486         dbgprintf to prevent conflict with new dprintf function.
7487
7488 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7489
7490         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
7491         "nan" processing for systems that have long double support.
7492
7493 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
7494
7495         * libc/sys/linux/sys/types.h (int8_t): Add type.
7496
7497 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7498
7499         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
7500         * libm/common/Makefile.in: Regenerate.
7501         * libm/common/common.tex: Delete file.
7502         * libm/math/math.tex: Include .def files from common/.
7503         * libm/mathfp/mathfp.tex: Likewise.
7504
7505 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7506
7507         * libc/libc.texinfo (Top): Surround this node with @ifnottex
7508         instead of @ifinfo.  Update menu to add Introduction and match
7509         SUBDIRS order.
7510         (Introduction): New section.
7511
7512 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
7513
7514         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
7515         with "Red Hat newlib C Library".
7516         * libc/sys.tex (Stubs): Likewise.
7517         * libm/math/math.tex (Math): Likewise.
7518         * libm/mathfp/mathfp.tex (Math): Likewise.
7519
7520 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
7521
7522         * libc/include/stdio.h (dprintf): New declaration.
7523         (vdprintf): Ditto.
7524         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
7525         and vdprintf.c.
7526         * libc/stdio/Makefile.in: Regenerate.
7527         * libc/stdio/dprintf.c: New file.
7528         * libc/stdio/vdprintf.c: New file.
7529         * libc/stdio/stdio.tex (dprintf): New entry.
7530
7531 2005-10-11  David Weatherford  <weath@tensilica.com>
7532
7533         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
7534         Print "inf" and "nan" in lowercase for e/f/g formats and in
7535         uppercase for E/F/G formats.
7536
7537 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
7538
7539         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
7540         to ENOMEM on failure.
7541
7542 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
7543
7544         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
7545
7546 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
7547
7548         * libc/include/stdint.h: Move magic to set __have_long* to the
7549         beginning.  Use #if __have* instead of #if defined(__have*).
7550         Minor typo fixes.
7551
7552 2005-10-04  James E Wilson  <wilson@specifix.com>
7553
7554         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
7555         #error.
7556
7557 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
7558
7559         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
7560         incorporate Ralf's change below.
7561
7562 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
7563
7564         * libc/include/stdint.h:
7565         Use __INTMAX_TYPE__ to derive intmax_t.
7566         Use __UINTMAX_TYPE__ to derive uintmax_t.
7567         Fix minor typo.
7568
7569 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
7570
7571         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
7572         handling GCC >= 4.
7573
7574 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7575
7576         * libc/sys/linux/include/stdint.h: Update to match functionality
7577         of generic newlib stdint.h.
7578
7579 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7580
7581         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
7582         and do not #undef the macro after it is used.  Fix typos.
7583         Also change 64-bit constants to use the __have_long64 and
7584         __have_longlong64 flags to determine if long or long long
7585         constants should be used.
7586         * libc/include/inttypes.h: Include stddef.h to get wchar_t
7587         type defined.
7588
7589 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
7590
7591         * libc/include/stdint.h: Fix typo in names of
7592         LEAST macros.
7593
7594 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
7595
7596         * libc/sys/rtems/include/inttypes.h: Moved to...
7597         * libc/include/inttypes.h: ...here.
7598
7599 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
7600
7601         * libc/sys/rtems/include/stdint.h: Moved to...
7602         * libc/include/stdint.h: ...here.
7603
7604 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
7605
7606         * Makefile.am: Add include files under bits sub-directory.
7607         * Makefile.in: Regenerated.
7608         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
7609         actual value of 1 to be compatible with newer glibc headers.
7610         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
7611         glibc headers.
7612         * libc/sys/linux/sys/dirent.h: Ditto.
7613         * libc/sys/linux/argp/argp-xinl.c: Ditto.
7614         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
7615         profile_fixup routines are marked used so they won't be
7616         optimized away.
7617         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
7618         to mark functions as weak.
7619         * libc/sys/linux/dl/dl-open.c: Ditto.
7620         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
7621         rules about lvalues.
7622         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
7623         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
7624         weak_extern macro to mark functions as weak.  Instead always
7625         use #pragma weak.
7626         * iconvdata/jis0208.h: Fix to work with gcc4.
7627         * libc/sys/linux/dl/dl-load.c: Ditto.
7628         * libc/sys/linux/dl/dl-reloc.c: Ditto.
7629         * libc/sys/linux/dl/do-rel.h: Ditto.
7630         * libc/sys/linux/dl/dynamic-link.h: Ditto.
7631         * libc/sys/linux/include/ltdl.h: Ditto.
7632         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
7633         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
7634         * libc/sys/linux/net/ns_ntoa.c: Ditto.
7635         * libc/sys/linux/bits/initspin.h: New file.
7636         * libc/sys/linux/bits/libc-lock.h: Ditto.
7637         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
7638         * libc/sys/linux/bits/typesizes.h: Ditto.
7639
7640 2005-09-08  Eric Blake  <ebb9@byu.net>
7641
7642         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
7643         before is NULL.
7644
7645 2005-09-08  Brian Dessent  <brian@dessent.net>
7646
7647         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
7648         mantissa.
7649         * s_lrint.c: Ditto.
7650
7651 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
7652
7653         * libc/include/stdio.h: Add prototype for viprintf.
7654
7655 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
7656
7657         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
7658         any positive power results in 0.
7659         * libm/mathfp/sf_pow.c (powf): Ditto.
7660
7661 2005-08-31  Paul Brook  <paul@codesourcery.com>
7662
7663         * configure.host: Set have_crt0 to no for Arm targts when not
7664         providing syscalls.  Set sys_dir=arm unconditionally.
7665         Default have_crt0 based on sys_dir.
7666         * configure.in: Use have_crt0.
7667         * libc/configure.in: Ditto.
7668         * libc/sys/configure.in: Ditto.
7669         * configure: Regenerate.
7670         * libc/configure: Regenerate.
7671         * libc/sys/configure: Regenerate.
7672         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
7673         Only build other files when providing syscalls.
7674         * libc/sys/arm/Makefile.in: Regenerate.
7675         * libc/sys/arm/aeabi_atexit.c: New file.
7676
7677 2005-08-26  Christopher Faylor  <cgf@timesys.com>
7678
7679         * libc/include/string.h: Revert previous change.
7680
7681 2005-08-25  Christopher Faylor  <cgf@timesys.com>
7682
7683         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
7684
7685 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
7686
7687         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
7688         define _opendir as opendir, _readdir as readdir, and
7689         _closedir as closedir so that the implementations in
7690         libc/posix will be used.
7691
7692 2005-08-10  DJ Delorie  <dj@redhat.com>
7693
7694         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
7695
7696 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
7697
7698         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
7699         * libm/common/s_max.c: Ditto.
7700         * libm/common/sf_fmin.c: Ditto.
7701         * libm/common/s_min.c: Ditto.
7702
7703 2005-08-10  DJ Delorie  <dj@redhat.com>
7704
7705         * configure.host: Add m32c support.
7706         * libc/include/machine/ieeefp.h: Likewise.
7707         * libc/include/machine/setjmp.h: Likewise.
7708         * libc/include/sys/config.h: Likewise.
7709         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
7710         * libc/machine/m32c/aclocal.m4: New file.
7711         * libc/machine/m32c/configure: Ditto.
7712         * libc/machine/m32c/configure.in: Ditto.
7713         * libc/machine/m32c/Makefile.am: Ditto.
7714         * libc/machine/m32c/Makefile.in: Ditto.
7715         * libc/machine/m32c/setjmp.S: Ditto.
7716
7717 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
7718
7719         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
7720         to the value for 2^126.
7721
7722 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
7723
7724         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
7725         used.
7726
7727 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
7728            Darin Petkov <darin@tensilica.com>
7729
7730        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
7731
7732 2005-07-19  Paul Brook  <paul@codesourcery.com>
7733
7734         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
7735
7736 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
7737
7738         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
7739         names after PASS and FAIL which do not depend on source directory
7740         name or on whether test passed or failed.
7741         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
7742
7743 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
7744
7745         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
7746
7747 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
7748
7749         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
7750         twice for the same directory. _closedir calls free, and freeing
7751         the same pointer twice may cause a crash.
7752
7753 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
7754
7755         * configure.host: Added entry for ms1*.
7756         * libc/include/machine/ieeefp.h: Handle ms1.
7757         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
7758         * libc/machine/ms1/aclocal.m4: New.
7759         * libc/machine/ms1/configure: New.
7760         * libc/machine/ms1/configure.in: New.
7761         * libc/machine/ms1/Makefile.am: New.
7762         * libc/machine/ms1/Makefile.in: New.
7763         * libc/machine/ms1/setjmp.S: New.
7764
7765 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
7766
7767         * Makefile.am (site.exp): Set tmpdir.
7768         * Makefile.in: Regenerated.
7769         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
7770         executables in $tmpdir.
7771         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7772         libgloss version if not running in the build directory.
7773         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7774         $tmpdir.
7775         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7776         in $tmpdir.
7777
7778 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7779
7780         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7781         and miscalculation caused by fp representation of zero.
7782         * libm/common/sf_lrint.c (lrintf):  Likewise.
7783
7784 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7785
7786         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7787         determine characteristics of long double.  Use a union instead.
7788         * ldtoa.c (_ldtoa_r): Ditto.
7789         (_ldcheck): Ditto.
7790         (_strtold): Ditto.
7791         (union uconv): New union.
7792
7793 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7794
7795         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7796         instead of memcpy.
7797
7798 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7799
7800         * configure.host (mn10300-*): Add long long I/O support by default.
7801
7802 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7803
7804         * libc/sys/linux/getpwuid.c: Removed.
7805         * libc/sys/linux/getpwnam.c: Removed.
7806         * libc/sys/linux/getpwent.c: New file containing logic
7807         from files removed above.  This allows overriding of file
7808         in libc/unix.
7809         * libc/sys/linux/Makefile.am: Support changes above.
7810         * libc/sys/linux/Makefile.in: Regenerated.
7811
7812 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7813
7814         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7815         when checking for multiple flags.
7816
7817 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7818
7819         * configure.host <cris-*-* | crisv32-*-*>: Set
7820         default_newlib_io_long_long="yes".
7821
7822 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7823
7824         * libc/include/libgen.h: New file.
7825
7826 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7827
7828         * libc/unix/Makefile.am: Add support for basename and dirname.
7829         * libc/unix/Makefile.in: Regenerated.
7830         * libc/unix/basename.c: New file.
7831         * libc/unix/dirname.c: New file.
7832
7833 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7834
7835         * libc/sys/linux/inode.c (lchown): New function.
7836
7837 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7838
7839         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7840         ELIX level is defined.
7841         * libc/unix/Makefile.in: Regenerated.
7842
7843 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7844
7845         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7846         something that looks like a "NaN", put back the characters processed.
7847
7848 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7849
7850         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7851
7852 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7853
7854         * configure.host: For cygwin, redefine CC with cygwin include directory
7855         first to mimic the behavior of the top-level configury.  Move include
7856         directory out of newlib_cflags.
7857
7858 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7859
7860         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7861         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7862         than errno.
7863
7864 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7865
7866         * libc/include/machine/_types.h: Make trivial change to comment to
7867         avoid a spurious warning from gcc.
7868
7869 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7870
7871         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7872         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7873         reent.h include.
7874
7875 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7876             Corinna Vinschen  <corinna@vinschen.de>
7877
7878         * libc/include/ctype.h: Remove invalid +1 offset from
7879         ctype macro references to __ctype_ptr.
7880         (_ctype_): Move declaration outside #ifndef __cplusplus.
7881
7882 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7883
7884         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7885         evaluate first parameter only once.
7886         (siglongjmp): Ditto.
7887
7888 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7889
7890         * configure.in: Add new check to see if compiler supports
7891         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7892         * configure: Regenerated.
7893         * Makefile.in: Ditto.
7894         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7895         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7896         aliasing the _ctype_ array to _ctype_b.
7897         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7898         _ctype_ as deprecated.
7899
7900 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7901
7902         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7903         -DCOMPACT_CTYPE.
7904
7905 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7906
7907         * libc/sys/rtems/include/inttypes.h: New file.
7908         * libc/sys/rtems/include/stdint.h: Ditto.
7909
7910 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7911
7912         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7913
7914 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7915
7916         * libc/include/machine/_types.h: New file.
7917         * libc/include/sys/types.h: Do not check for __rtems__
7918         when including <machine/_types.h>.  Remove some redundant
7919         declarations now that <machine/_types.h> is included.
7920         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7921         shared header file.
7922
7923 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7924
7925         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7926         L qualifier for these long constants.
7927
7928 2005-02-25  Eric Blake  <ebb9@byu.net>
7929
7930         * libc/include/time.h (__tzrule_struct): Make offset long, since
7931         a 16-bit int overflows on a 12-hour offset.
7932         * libc/sys/linux/include/time.h: Ditto.
7933         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7934         * libc/time/mktm_r.c: Ditto.
7935         * libc/time/gettzinfo.c: Ditto.
7936         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7937         years.  Fix '%z' to use long, not int.
7938
7939 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7940
7941         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7942         manipulate float values in integer form.
7943         * libm/common/sf_round.c: Ditto.
7944
7945 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7946
7947         * libc/include/sys/types.h [__rtems__]: Include new
7948         header file machine/_types.h.
7949         * libc/include/machine/types.h: Ditto.
7950         * libc/sys/rtems/machine/_types.h: New file.
7951
7952 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7953
7954         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7955         (timezone): Drop cast from definition.
7956
7957 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7958
7959         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7960         (__tzrule_type, __tzinfo_type): New types.
7961         (__gettzinfo): New function.
7962         * libc/sys/linux/include/time.h: Ditto.
7963         * libc/time/Makefile.am: Add gettzinfo.c.
7964         * libc/time/Makefile.in: Regenerated.
7965         * libc/time/local.h: Moved __tzrule_type to time.h.
7966         * libc/time/mktime.c: Call __gettzinfo to reference
7967         __tznorth, __tzyear, and __tzrule array.
7968         * libc/time/mktm_r.c: Ditto.
7969         * libc/time/strftime.c: Ditto.
7970         * libc/time/tzset_r.c: Ditto.  Also remove definition
7971         of __tzrule which is now in gettzinfo.c.  Change _timezone
7972         references to not cast to time_t.
7973         * libc/time/gettzinfo.c: New file.
7974
7975 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7976
7977         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7978
7979 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7980
7981         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7982
7983 2005-02-16  Eric Blake  <ebb9@byu.net>
7984
7985         * libc/time/time.tex: Improve the documentation.
7986         * libc/time/strftime.c: Improve the documentation.
7987         (iso_year_adjust): New helper function.
7988         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7989         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7990         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7991         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7992         Avoid core dumps on valid inputs (maxsize == 0, or
7993         tim_p->tm_isdst > 1).
7994
7995 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7996
7997         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7998         members to uid_t and gid_t according to SUSv3.
7999         * libc/include/sys/time.h (utimes):  Change second parameter
8000         to const according to SUSv3.
8001
8002 2005-02-07  Antony King  <antony.king@st.com>
8003
8004         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
8005         called before _flockfile to prevent lock object use before
8006         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
8007         take a struct _reent * instead of a FILE *.
8008         * libc/stdio/fclose.c (_fclose_r): Ditto.
8009         * libc/stdio/feof.c (feof): Ditto.
8010         * libc/stdio/ferror.c (ferror): Ditto.
8011         * libc/stdio/fflush.c (fflush): Ditto.
8012         * libc/stdio/fgetc.c (fgetc): Ditto.
8013         * libc/stdio/fgets.c (fgets): Ditto.
8014         * libc/stdio/fileno.c (fileno): Ditto.
8015         * libc/stdio/fputc.c (fputc): Ditto.
8016         * libc/stdio/fputs.c (fputs): Ditto.
8017         * libc/stdio/fread.c (fread): Ditto.
8018         * libc/stdio/freopen.c (_freopen_r): Ditto.
8019         * libc/stdio/fseek.c (_fseek_r): Ditto.
8020         * libc/stdio/ftell.c (_ftell_r): Ditto.
8021         * libc/stdio/fwrite.c (fwrite): Ditto.
8022         * libc/stdio/getc.c (getc): Ditto.
8023         * libc/stdio/getdelim.c (__getdelim): Ditto.
8024         * libc/stdio/putc.c (putc): Ditto.
8025         * libc/stdio/setvbuf.c (setvbuf): Ditto.
8026         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
8027         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
8028         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
8029         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
8030         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
8031         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
8032         _reent * instead of a FILE * and so replace incorrect use of
8033         _REENT with argument.
8034         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
8035         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
8036         CHECK_INIT() take a struct _reent * instead of a FILE *.
8037         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
8038         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
8039         * libc/stdio/perror.c (perror): Ditto.
8040         * libc/stdio/printf.c (printf, _printf_r): Ditto.
8041         * libc/stdio/putchar.c (putchar): Ditto.
8042         * libc/stdio/puts.c (puts): Ditto.
8043         * libc/stdio/refill.c (__srefill): Ditto.
8044         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
8045         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
8046         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
8047         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
8048         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
8049         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
8050         * libc/stdio/wbuf.c (__swbuf): Ditto.
8051         * libc/stdio/wsetup.c (__swsetup): Ditto.
8052         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
8053         * libc/stdlib/mstats.c (_mstats_r): Ditto.
8054         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
8055         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
8056         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
8057         to _flockfile and _funlockfile; rely on locking in _ftell_r.
8058         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
8059         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
8060         initialision of _data field in FILE structure.
8061         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
8062
8063 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8064
8065         * libc/stdio/findfp.c (__sinit): Protect with new lock.
8066         (__sinit_lock): New lock.
8067         (__sinit_lock_acquire, __sinit_lock_release): New functions.
8068         * libc/stdio/local.h: Add reference to new __sinit locking
8069         functions.
8070
8071 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8072
8073         * libc/include/math.h (isfinite, isnormal, isunordered): Change
8074         input variable names to avoid mixups with nesting macros.
8075
8076 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8077
8078         * configure.host: Add support for cris-*-* and crisv32-*-*.
8079         * libc/include/machine/ieeefp.h: Ditto.
8080         * libc/include/machine/setjmp.h: Ditto.
8081         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
8082         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
8083         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
8084         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
8085         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
8086         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
8087         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
8088         files.
8089
8090 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8091
8092         * testsuite/newlib.string/memmove1.c: New test.
8093
8094 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8095
8096         * testsuite/include/check.h: Include stdlib.h.
8097
8098 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
8099
8100         * Makefile.am (stmp-targ-include): Support include header files
8101         from machine directories.
8102         (install-data-local): Ditto.
8103         * Makefile.in: Regenerate.
8104
8105 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
8106
8107         * libc/include/string.h: Remove Linux-specific declaration of
8108         strsignal and add #include <sys/string.h>.
8109         * libc/include/sys/string.h: New file.
8110         * libc/include/sys/linux/sys/string.h: New file with strsignal
8111         declaration deleted above.
8112
8113 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
8114
8115         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
8116         to POSIX standard for "C" locale.  Allow %E and %O modifiers
8117         to be ignored as long as they precede valid specifiers according
8118         to POSIX.
8119
8120 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
8121
8122         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
8123         environment variable is set.
8124
8125 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
8126
8127         * tzset_r.c (_tzname): Add a comma.
8128
8129 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
8130
8131         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
8132         _VFPRINTF_R.
8133
8134 2005-01-07  Paul Brook  <paul@codesourcery.com>
8135
8136         * configure.in: Add test for .init_array.
8137         * configure: Regenerate.
8138         * newlib.hin: Add HAVE_INITFINI_ARRAY.
8139         * libc/misc/Makefile.am: Add init.c
8140         * libc/misc/Makefile.in: Regenerate.
8141         * libc/misc/init.c: New file.
8142         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
8143         _init/_fini if they exist.
8144
8145 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8146
8147         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
8148         * (strtof): Ditto.
8149         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
8150         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
8151         functions for use by strtod and strtof.
8152         * Makefile.in: Regenerated.
8153
8154 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
8155
8156         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
8157         bit-test in combination with NULL test.
8158
8159 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
8160
8161         * README: Fix typo of LGPL.  Change "license" to "copyright".
8162
8163 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
8164
8165         * NEWS: Update with 1.13.0 info.
8166         * README: Ditto.
8167         * acinclude.m4: Change version number to 1.13.0.
8168         * aclocal.m4: Regenerated.
8169         * configure: Ditto.
8170         * doc/aclocal.m4: Ditto.
8171         * doc/configure: Ditto.
8172         * libc/*/aclocal.m4: Ditto.
8173         * libc/*/configure: Ditto.
8174         * libc/libc.texinfo: Ditto.
8175         * libm/*/aclocal.m4: Ditto.
8176         * libm/*/configure: Ditto.
8177         * libm/libm.texinfo: Ditto.
8178         * libc/sys/linux/shared.ld: Add VERS_1.13.
8179
8180 2004-12-17  Christian Groessler  <chris@groessler.org>
8181
8182         * libc/machine/z8k/memcmp.S: New file.
8183         * libc/machine/z8k/memcpy.S: Ditto.
8184         * libc/machine/z8k/memmove.S: Ditto.
8185         * libc/machine/z8k/memset.S: Ditto.
8186         * libc/machine/z8k/Makefile.am: Add new files.
8187         * libc/machine/z8k/Makefile.in: Regenerated.
8188         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
8189         part.  Implement Z8002 stdcall version.
8190
8191 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8192
8193         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
8194         a low-level read if we don't get the full amount of bytes so
8195         EOF or error flags will be set.
8196
8197 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
8198
8199         * libc/time/tzset_r (_tzset_r): Properly skip over
8200         '/' when it is detected.
8201
8202 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
8203
8204         * libc/time/tzset_r (_tzset_r): Fix loop.
8205
8206 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
8207
8208         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
8209         m_day.
8210         (__tzcalc_limits): Fix reference to month array to be zero-based.
8211
8212 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
8213
8214         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
8215         and usleep.
8216
8217 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
8218
8219         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
8220         libgcc dependencies.
8221         (libm_la_LDFLAGS): Ditto.
8222         * Makefile.in: Regenerated.
8223
8224 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
8225
8226         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
8227         our link to use readlink so as to preserve any relative link created
8228         by install-toollibLIBRARIES.
8229         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
8230
8231 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
8232
8233         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
8234         time_t before including sys/stat.h, which uses it.
8235         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
8236         <linux/time.h> just prior to definition of __KERNEL__ so as to
8237         allow building on Debian Linux where otherwise, mktime would
8238         be redefined.
8239
8240 2004-11-26  Paul Brook  <paul@codesourcery.com>
8241
8242         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
8243
8244 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
8245
8246         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
8247         const for value string parameter to match Single Unix and glibc.
8248         * libc/stdlib/putenv.c: Ditto.
8249         * libc/stdlib/putenv_r.c: Ditto.
8250
8251 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
8252
8253         * libc/stdio/Makefile.am: Fix missing vfscanf.
8254         * libc/stdio/Makefile.in: Regenerated.
8255
8256 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
8257
8258         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
8259         do some reordering.
8260         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
8261         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
8262         family functions.
8263         * libc/stdio/Makefile.in: Regenerated.
8264         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
8265         * libc/stdio/iprintf.c: Ditto.
8266         * libc/stdio/local.h (__svfiscanf_r): New prototype.
8267         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
8268         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
8269         * libc/stdio/stdio.tex: Add new functions.
8270         * libc/stdio/vfscanf.c: Split out __sccl function to separate
8271         file and add special name defines so this file can be used
8272         to build vfiscanf.o.
8273         * libc/stdio/asiprintf.c: New file.
8274         * libc/stdio/fiscanf.c: Ditto.
8275         * libc/stdio/iscanf.c: Ditto.
8276         * libc/stdio/sccl.c: Ditto.
8277         * libc/stdio/siscanf.c: Ditto.
8278         * libc/stdio/vasiprintf.c: Ditto.
8279         * libc/stdio/viprintf.c: Ditto.
8280         * libc/stdio/viscanf.c: Ditto.
8281         * libc/stdio/vsiprintf.c: Ditto.
8282         * libc/stdio/vsiscanf.c: Ditto.
8283         * libc/stdio/vsniprintf.c: Ditto.
8284
8285 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
8286
8287         * libc/include/stdio.h: Add sniprintf.
8288         * libc/stdio/Makefile.am: Add sniprintf.c.
8289         * libc/stdio/Makefile.in: Regenerated.
8290         * libc/stdio/sniprintf.c: New file.
8291         * libc/stdio/stdio.tex: Add sniprintf.
8292
8293 2004-11-17  Christopher Faylor  <cgf@timesys.com>
8294
8295         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
8296         EOF flag if successful.
8297
8298 2004-10-28  Christopher Faylor  <cgf@timesys.com>
8299
8300         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
8301         so that all relevant definitions have been performed for use in the
8302         include.
8303
8304 2004-10-26  Jason Tishler  <jason@tishler.net>
8305
8306         * libc/stdio/fread.c (fread): Fix return value for unbuffered
8307         fread.
8308
8309 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8310
8311         * libc/include/machine/setjmp.h: Add AVR support.
8312         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
8313
8314 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
8315
8316         * libc/include/sys/signal.h: If <signal.h> didn't include
8317         this header file, include <signal.h> to account for
8318         applications that take advantage that the two header
8319         files are the same in glibc.
8320
8321 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
8322
8323         * configure.host: Add support for crx.
8324         * libc/include/machine/ieeefp.h: Ditto.
8325         * libc/include/machine/setjmp.h: Ditto.
8326         * libc/machine/crx/Makefile.am: New file.
8327         * libc/machine/crx/configure.in: Ditto.
8328         * libc/machine/crx/setjmp.S: Ditto.
8329         * libc/machine/crx/getenv.c: Ditto.
8330         * libc/machine/crx/aclocal.m4: Generate.
8331         * libc/machine/crx/configure: Ditto.
8332         * libc/machine/crx/Makefile.in: Ditto.
8333         * libc/machine/crx/sys/asm.h: New file.
8334         * libc/machine/crx/sys/libh.h: Ditto.
8335         * libc/machine/crx/sys/syscall.h: Ditto.
8336
8337 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
8338
8339         * Makefile.am (stmp-targ-include): Support sys header files
8340         from machine directories.
8341         * Makefile.in: Regenerated.
8342
8343 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
8344
8345         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
8346         count skipped zero characters as part of the nread count for %n.
8347         * libc/machine/powerpc/vfscanf.c: Ditto.
8348
8349 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
8350
8351         * libc/stdio/local.h: Include <stdlib.h>.
8352
8353 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
8354
8355         * libc/stdio/fread.c (fread): Include <malloc.h>.
8356
8357 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
8358
8359         * libc/stdio/fread.c (fread):  For non-space-optimized case,
8360         add special code for unbuffered files to use user buffer and
8361         only require one low-level system read.
8362
8363 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
8364
8365         * libc/machine/xscale/setjmp.S: New file, copied from
8366         libc/machine/arm/setjmp.S.
8367         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
8368         * libc/machine/xscale/Makefile.in: Regenerate.
8369
8370 2004-09-16  Antony King  <antony.king@st.com>
8371
8372         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
8373         with locking API.
8374         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
8375         check for__SSTR in _flags and if set, skip lock request.
8376         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8377         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
8378         not NULL.
8379         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
8380         initialisation of _file to -1 in local FILE.
8381         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
8382         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
8383         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
8384         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
8385         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
8386         _flags in local FILE to prevent locking.
8387         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
8388
8389 2004-09-16  Antony King  <antony.king@st.com>
8390
8391         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
8392         and only walk the reentrancy parameter.
8393         (_fwalk_reent): Ditto.
8394         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
8395
8396 2004-09-16  Antony King  <antony.king@st.com>
8397
8398         * libc/stdio64/freopen64.c: Remove casting of fp lock to
8399         _LOCK_RECURSIVE_T.
8400
8401 2004-09-16  Antony King  <antony.king@st.com>
8402
8403         * libc/time/tzlock.c: Add default stubs that use generic
8404         locking code.
8405
8406 2004-09-16  Antony King  <antony.king@st.com>
8407
8408         * libc/ctype/ctype.tex: Added missing documentation.
8409         * libc/stdio/stdio.tex Ditto.
8410         * libc/stdlib/stdlib.tex Ditto.
8411         * libc/string/strings.tex Ditto.
8412         * libc/time/time.tex: Ditto.
8413         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
8414
8415 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
8416
8417         * libc/reent/impure.c (reent_data): Define as alias to impure_data
8418         when building for Cygwin.
8419         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
8420         _global_impure_ptr.
8421
8422 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
8423
8424         * configure.host: Reverting 2004-09-14 change as fix has occurred on
8425         Cygwin side.
8426         * configure.in: Ditto.
8427         * libc/configure.in: Ditto.
8428         * libc/sys/configure.in: Ditto.
8429         * configure: Ditto.
8430         * libc/configure: Ditto.
8431         * libc/sys/configure: Ditto.
8432         * libc/include/sys/reent.h: Ditto.
8433         * libc/stdlib/__atexit.c: Ditto.
8434         * libc/stdlib/__call_atexit.c: Ditto.
8435         * libc/stdlib/cxa_atexit.c: Ditto.
8436         * libc/stdlib/cxa_finalize.c: Ditto.
8437         * libc/sys/cygwin/Makefile.am: Removed again.
8438         * libc/sys/cygwin/Makefile.in: Ditto.
8439         * libc/sys/cygwin/aclocal.m4: Ditto.
8440         * libc/sys/cygwin/configure: Ditto.
8441         * libc/sys/cygwin/configure.in: Ditto.
8442         * libc/sys/cygwin/dummy.c: Ditto.
8443         * libc/sys/cygwin/sys/reent.h: Ditto.
8444
8445 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
8446
8447         * configure.host: Add Cygwin sys directory.
8448         * configure.in: Do not set CRT0 for cygwin.
8449         * libc/configure.in: Ditto.
8450         * libc/sys/configure.in: Ditto.
8451         * configure: Regenerated.
8452         * libc/configure: Ditto.
8453         * libc/sys/configure: Ditto.
8454         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
8455         * libc/stdlib/__atexit.c: Keep cxa support protected by new
8456         __REENT_HAS_CXA_SUPPORT flag.
8457         * libc/stdlib/__call_atexit.c: Ditto.
8458         * libc/stdlib/cxa_atexit.c: Ditto.
8459         * libc/stdlib/cxa_finalize.c: Ditto.
8460         * libc/sys/cygwin/Makefile.am: New file.
8461         * libc/sys/cygwin/Makefile.in: Ditto.
8462         * libc/sys/cygwin/aclocal.m4: Ditto.
8463         * libc/sys/cygwin/configure: Ditto.
8464         * libc/sys/cygwin/configure.in: Ditto.
8465         * libc/sys/cygwin/dummy.c: Ditto.
8466         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
8467         version of reent.h.
8468
8469 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8470
8471         * libc/iconv/iconv.tex: Updated with new content.
8472         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
8473         instead of NLS_DEFAULT_NLSPATH.
8474         * libc/iconv/lib/iconvnls.h: Fix typo.
8475         * libc/include/sys/iconvnls.h: New file.
8476
8477 2004-09-09  Paul Brook  <paul@codesourcery.com>
8478
8479         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
8480         and _is_cxa.
8481         (struct _atexit): Add _next when _REENT_SMALL.
8482         (struct _reent): Add _atexit0 when _REENT_SMALL.
8483         (_REENT_INIT_PTR): Adjust.
8484         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
8485         __call_exit.c.
8486         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
8487         * libc/stdlib/Makefile.in: Regenerate.
8488         * libc/stdlib/__atexit.c: New file.
8489         * libc/stdlib/__call_atexit.c: New file.
8490         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
8491         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
8492         * libc/stdlib/cxa_atexit.c: New file.
8493         * libc/stdlib/cxa_finalize.c: New file.
8494         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
8495         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
8496         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
8497         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
8498         _on_exit_args_ptr.
8499
8500 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
8501
8502         * libc/include/sys/unistd.h (getpass): Change prototype to use
8503         const instead of __const.
8504
8505 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
8506
8507         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
8508         #if.
8509
8510 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
8511
8512         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
8513         on linux systems with glibc 2.3.3 installed.
8514         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
8515         profile_fixup so newlib can build on fc3 system.
8516
8517 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
8518
8519         Introduce SH2a support.
8520         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
8521         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
8522         __SH2A_SINGLE_ONLY__, too.
8523         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
8524         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
8525         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
8526         2004-02-10  DJ Delorie  <dj@redhat.com>
8527         * libc/sys/sh/crt0.S (start_l): Support sh2a.
8528
8529 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
8530
8531         * libc/time/strptime.c: Correct full-name of "March" typo.
8532
8533 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
8534
8535         * configure.host (h8300*-*-*): Default long long printing support.
8536
8537 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
8538
8539         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
8540         calls, if realloc fails, free up buffer as it is no longer
8541         used.
8542
8543 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8544
8545         * libc/iconv/iconv.tex: Updated to represent recent changes.
8546         * libc/iconv/lib/iconv.c: Documentation updated.
8547
8548 2004-07-07  Nick Clifton  <nickc@redhat.com>
8549
8550         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
8551         for xStormy16.
8552
8553 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
8554
8555         * configure.host (mips*-*-elf*): Default long long printing
8556         support.
8557
8558 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
8559
8560         * libc/Makefile.am (libc.dvi): Add target and specify
8561         same dependencies as libc.info.
8562         * libc/Makefile.in: Regenerated.
8563         * libm/Makefile.am (libm.dvi): Add target and specify
8564         same dependencies as libm.info.
8565         * libm/Makefile.in: Regenerated.
8566
8567 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8568
8569         * acinclude.m4: Move --enable-newlib-iconv option back here.
8570         * configure.in: Remove --enable-newlib-iconv option.  Don't
8571         tie iconv support to --enable-newlib-mb.
8572         * aclocal.m4: Regenerated.
8573         * configure: Ditto.
8574         * doc/aclocal.m4, doc/configure: Ditto.
8575         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
8576         * libm/*/aclocal.m4: Ditto.
8577         * libm/*/configure: Ditto.
8578         * libc/*/aclocal.m4: Ditto.
8579         * libc/*/configure: Ditto.
8580
8581 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
8582
8583         * acinclude.m4: Move iconv options into configure.in.
8584         * aclocal.m4: Regenerated.
8585         * configure: Ditto.
8586         * configure.in: Add iconv options.
8587         * newlib.hin: Add new iconv encodings and remove deleted ones.
8588         * doc/aclocal.m4: Regenerated.
8589         * doc/configure: Ditto.
8590         * iconvdata/aclocal.m4: Ditto.
8591         * iconvdata/configure: Ditto.
8592         * libc/iconv: Design change.  New size-optimized ccs format.
8593         * libc/iconv/AUTHORS: Removed.
8594         * libc/iconv/COPYING: Ditto.
8595         * libc/iconv/README.ORIGINAL: Ditto.
8596         * libc/iconv/README.TODO: Ditto.
8597         * libc/iconv/charset.aliases: Ditto.
8598         * libc/iconv/encoding.aliases: New file.
8599         * libc/iconv/Makefile.am: Updated.
8600         * libc/iconv/Makefile.in: Regenerated.
8601         * libc/iconv/iconv.tex: Updated.
8602         * libc/iconv/ccs/Makefile.am: Ditto.
8603         * libc/iconv/ccs/Makefile.in: Regenerated.
8604         * libc/iconv/ccs/big5.c: Updated.
8605         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8606         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8607         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8608         * libc/iconv/ccs/cp775.c: Ditto.
8609         * libc/iconv/ccs/cp850.c: Ditto.
8610         * libc/iconv/ccs/cp852.c: Ditto.
8611         * libc/iconv/ccs/cp855.c: Ditto.
8612         * libc/iconv/ccs/cp866.c: Ditto.
8613         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8614         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
8615         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8616         * libc/iconv/ccs/iconv_mktbl: Ditto.
8617         * libc/iconv/ccs/jis_x0201.c: Ditto.
8618         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8619         * libc/iconv/ccs/shift_jis.c: Ditto.
8620         * libc/iconv/ccs/us_ascii.c: Ditto.
8621         * libc/iconv/ccs/ccs.h: New file.
8622         * libc/iconv/ccs/ccsbi.c: Ditto.
8623         * libc/iconv/ccs/ccsbi.h: Ditto.
8624         * libc/iconv/ccs/ccsnames.h: Ditto.
8625         * libc/iconv/ccs/iso_8859_10.c: Ditto.
8626         * libc/iconv/ccs/iso_8859_11.c: Ditto.
8627         * libc/iconv/ccs/iso_8859_13.c: Ditto.
8628         * libc/iconv/ccs/iso_8859_14.c: Ditto.
8629         * libc/iconv/ccs/iso_8859_3.c: Ditto.
8630         * libc/iconv/ccs/iso_8859_6.c: Ditto.
8631         * libc/iconv/ccs/iso_8859_7.c: Ditto.
8632         * libc/iconv/ccs/iso_8859_8.c: Ditto.
8633         * libc/iconv/ccs/iso_8859_9.c: Ditto.
8634         * libc/iconv/ccs/iso_ir_111.c: Ditto.
8635         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
8636         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
8637         * libc/iconv/ccs/koi8_ru.c: Ditto.
8638         * libc/iconv/ccs/koi8_uni.c: Ditto.
8639         * libc/iconv/ccs/mktbl.pl: Ditto.
8640         * libc/iconv/ccs/win_1250.c: Ditto.
8641         * libc/iconv/ccs/win_1251.c: Ditto.
8642         * libc/iconv/ccs/win_1252.c: Ditto.
8643         * libc/iconv/ccs/win_1253.c: Ditto.
8644         * libc/iconv/ccs/win_1254.c: Ditto.
8645         * libc/iconv/ccs/win_1255.c: Ditto.
8646         * libc/iconv/ccs/win_1256.c: Ditto.
8647         * libc/iconv/ccs/win_1257.c: Ditto.
8648         * libc/iconv/ccs/win_1258.c: Ditto.
8649         * libc/iconv/ccs/iso_8859_15.c: Updated.
8650         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8651         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8652         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8653         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8654         * libc/iconv/ccs/koi8_r.c: Ditto.
8655         * libc/iconv/ccs/koi8_u.c: Ditto.
8656         * libc/iconv/ccs/ksx1001.c: Ditto.
8657         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
8658         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8659         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8660         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8661         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8662         * libc/iconv/ccs/binary/Makefile.am: Updated.
8663         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
8664         * libc/iconv/ccs/binary/big5.cct: Updated.
8665         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8666         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8667         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8668         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
8669         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
8670         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
8671         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
8672         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
8673         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8674         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8675         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8676         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8677         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8678         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8679         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8680         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8681         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8682         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
8683         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
8684         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
8685         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
8686         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
8687         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
8688         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
8689         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
8690         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
8691         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
8692         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
8693         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
8694         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
8695         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
8696         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
8697         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
8698         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
8699         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
8700         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
8701         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
8702         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
8703         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
8704         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
8705         * libc/iconv/ces/Makefile.am: Updated.
8706         * libc/iconv/ces/Makefile.in: Regenerated.
8707         * libc/iconv/ces/ucs-2-internal.c: Updated.
8708         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8709         * libc/iconv/ces/utf-16.c: Ditto.
8710         * libc/iconv/ces/utf-8.c: Ditto.
8711         * libc/iconv/ces/cesbi.c: New file.
8712         * libc/iconv/ces/cesbi.h: Ditto.
8713         * libc/iconv/ces/cesdeps.h: Ditto.
8714         * libc/iconv/ces/euc.c: Ditto.
8715         * libc/iconv/ces/mkdeps.pl: Ditto.
8716         * libc/iconv/ces/table-pcs.c: Ditto.
8717         * libc/iconv/ces/table.c: Ditto.
8718         * libc/iconv/ces/ucs-2.c: Ditto.
8719         * libc/iconv/ces/ucs-4.c: Ditto.
8720         * libc/iconv/ces/us-ascii.c: Ditto.
8721         * libc/iconv/ces/euc-jp.c: Removed.
8722         * libc/iconv/ces/euc-kr.c: Ditto.
8723         * libc/iconv/ces/euc-tw.c: Ditto.
8724         * libc/iconv/ces/gb2312.c: Ditto.
8725         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
8726         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8727         * libc/iconv/lib/Makefile.am: Updated.
8728         * libc/iconv/lib/Makefile.in: Regenerated.
8729         * libc/iconv/lib/endian.h: Updated.
8730         * libc/iconv/lib/iconv.c: Ditto.
8731         * libc/iconv/lib/local.h: Ditto.
8732         * libc/iconv/lib/aliases.c: Removed.
8733         * libc/iconv/lib/bialiasesi.c: Ditto.
8734         * libc/iconv/lib/biccs.c: Ditto.
8735         * libc/iconv/lib/bices.c: Ditto.
8736         * libc/iconv/lib/ccs.c: Ditto.
8737         * libc/iconv/lib/ces.c: Ditto.
8738         * libc/iconv/lib/ces_euc.c: Ditto.
8739         * libc/iconv/lib/ces_iso2022.c: Ditto.
8740         * libc/iconv/lib/ces_table.c: Ditto.
8741         * libc/iconv/lib/converter.c: Ditto.
8742         * libc/iconv/lib/deps.h: Ditto.
8743         * libc/iconv/lib/loaddata.c: Ditto.
8744         * libc/iconv/lib/aliasesbi.c: New file.
8745         * libc/iconv/lib/aliasesi.c: Ditto.
8746         * libc/iconv/lib/conv.h: Ditto.
8747         * libc/iconv/lib/encnames.h: Ditto.
8748         * libc/iconv/lib/encoding.deps: Ditto.
8749         * libc/iconv/lib/iconvnls.c: Ditto.
8750         * libc/iconv/lib/iconvnls.h: Ditto.
8751         * libc/iconv/lib/nullconv.c: Ditto.
8752         * libc/iconv/lib/ucsconv.c: Ditto.
8753         * libc/iconv/lib/ucsconv.h: Ditto.
8754         * libc/include/iconv.h: Update copyright.
8755         * libc/*/aclocal.m4: Regenerated.
8756         * libc/*/configure: Ditto.
8757         * libm/*/aclocal.m4: Ditto.
8758         * libm/*/configure: Ditto.
8759
8760 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
8761
8762         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
8763         instead of typedefing jmp_buf.
8764
8765         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
8766         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
8767         * libc/machine/h8300/defines.h (LEN): New macro.
8768         * libc/machine/h8300/memcpy.S: Add h8sx version.
8769         * libc/machine/h8300/memset.S: Likewise.
8770         * libc/machine/h8300/strcmp.S: Likewise.
8771         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8772         * libc/machine/h8300/h8sx_strcpy.S: New file.
8773         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8774         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8775         __H8300SX__.
8776         * libc/include/machine/setjmp.h: Likewise.
8777         * libc/include/sys/config.h: Likewise.
8778         * libc/machine/h8300/defines.h: Likewise.
8779         * libc/machine/h8300/setjmp.S: Likewise.
8780         * libc/machine/h8300/strcmp.S: Likewise.
8781         * libc/sys/h8300hms/close.S: Likewise.
8782         * libc/sys/h8300hms/fstat.S: Likewise.
8783         * libc/sys/h8300hms/lseek.S: Likewise.
8784         * libc/sys/h8300hms/read.S: Likewise.
8785         * libc/sys/h8300hms/write.S: Likewise.
8786         * libc/sys/h8300hms/crt0.S: Likewise.
8787         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8788         __H8300SX__ is defined.
8789         * libc/sys/h8300hms/setarch.h: Likewise.
8790
8791 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8792
8793         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8794         out change which set _GLOBAL_REENT to _global_impure_ptr until
8795         we understand why Cygwin breaks because of it.
8796
8797 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8798
8799         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8800         __syscall_return macro for systems with vsyscall.
8801
8802 2004-06-11  Antony King  <antony.king@st.com>
8803
8804         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8805         _flock_t to be of type _LOCK_RECURSIVE_T.
8806         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8807         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8808         (_global_impure_ptr): New declaration.
8809         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8810         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8811         <sys/reent.h>.
8812         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8813         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8814         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8815         * libc/stdio/fclose.c: Remove casting of fp lock to
8816         _LOCK_RECURSIVE_T.
8817         * libc/stdio/findfp.c: Ditto.
8818         * libc/stdio/fopen.c: Ditto.
8819         * libc/stdio/freopen.c: Ditto.
8820         * libc/stdio/vfprintf.c: Ditto.
8821         * libc/stdio64/fopen64.c: Ditto.
8822         * libc/stdlib/envlock.c: Add default stubs that use generic
8823         locking code.
8824         * libc/stdlib/mlock.c: Ditto.
8825
8826         Jeff Johnston  <jjohnstn@redhat.com>
8827         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8828         (_flock_t): Change to be a struct containing a single member
8829         named mutex which is of type __flock_mutex_t.
8830
8831 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8832
8833         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8834         from /usr/include/asm/signal.h instead of kernel sources.  Also
8835         default max to 32 if not found in header file.
8836         * libc/sys/linux/Makefile.in: Regenerated.
8837         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8838         systems where __syscall_return is not defined.
8839         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8840         systems to use syscall() function instead of assembler interrupt.
8841
8842 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8843
8844         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8845         files from libc/sys/arm to libc/machine/arm.
8846         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8847         library build support for files moved from libc/sys/arm.
8848         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8849         references to access and setjmp.
8850         * configure.host: Add checks for newlib_may_supply_syscalls to
8851         determine whether or not to use sys/arm directory and use
8852         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8853
8854 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8855
8856         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8857         reset digit flags appropriately after we have discovered "0x".
8858         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8859
8860 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8861
8862         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8863         from here ...
8864         (_VFPRINTF_R): ... to here so all I/O printf routines
8865         are covered.
8866
8867 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8868
8869         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8870         redefinition.
8871         * libc/search/hash.c: Ditto.
8872
8873 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8874
8875         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8876         (_WANT_IO_LONG_LONG): Ditto.
8877         (_WANT_IO_LONG_DOUBLE): Ditto.
8878         * configure.in: Add new configuration options
8879         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8880         which tie to new defines in newlib.hin.
8881         * configure: Regenerated.
8882         * configure.host: Add checks for new configuration options.  Also
8883         fix up check for --enable-newlib-io-pos-args so configuration
8884         option will override any default for a given platform.
8885         Remove defining compiler flags for the _WANT_IO* options.
8886         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8887         instead of looking for old compiler flags.
8888         * libc/stdio/vfscanf.c: Ditto.
8889         * libc/stdio/vfieeefp.h: Ditto.
8890         * libc/machine/powerpc/vfprintf.c: Ditto.
8891         * libc/machine/powerpc/vfscanf.c: Ditto.
8892
8893 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8894
8895         * testsuite/include/check.h: Add include of <stdio.h>.
8896
8897 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8898
8899         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8900
8901 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8902
8903         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8904         of free.
8905
8906 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8907
8908         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8909         list for reentrant pointer.  Call _vfiprintf_r.
8910         * libc/stdio/siprintf.c (_siprintf_r): New function.
8911         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8912         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8913         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8914         prototypes.
8915
8916 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8917
8918         * libc/include/sys/param.h: Remove endian info and include
8919         <machine/endian.h> instead.
8920         * libc/include/machine/endian.h: New file.
8921         * libc/include/machine/param.h: Ditto.
8922         * libc/machine/arm/machine/endian.h: Ditto.
8923         * libc/machine/arm/machine/param.h: Ditto.
8924         * libc/sys/arm/sys/param.h: Removed.
8925         * libc/sys/sysvi386/sys/param.h: Ditto.
8926         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8927
8928 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8929
8930         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8931         multibyte functions return failure for %C, %S, %lc, and %ls
8932         format specifiers.
8933
8934 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8935
8936         * testsuite/include/check.h (CHECK): Add flush of stdout.
8937
8938 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8939
8940         * libc/include/stdio.h (_ungetc_r): New prototype.
8941         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8942         (__submore): Add reentrant struct pointer argument.
8943         (ungetc): Change to call _ungetc_r.
8944
8945 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8946
8947         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8948         function pointer argument.
8949         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8950         to specify function pointer arguments.
8951         (__fwalk, __fwalk_reent): Ditto.
8952
8953 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8954
8955         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8956         CT_INT case.
8957
8958 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8959
8960         * configure.in: Define _MB_CAPABLE if mb supported.
8961         * configure: Regenerated.
8962         * configure.host: Remove manual setting of MB_CAPABLE compiler
8963         flag.
8964         * newlib.hin: Add _MB_CAPABLE flag.
8965         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8966         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8967         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8968         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8969         * libc/ctype/jp2uc.c: Ditto.
8970         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8971         * libc/locale/locale.c: Ditto
8972         * libc/machine/powerpc/vfscanf.c: Ditto
8973         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8974         * libc/stdlib/mblen.c: Ditto
8975         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8976         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8977         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8978         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8979         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8980         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8981         * libc/sys/linux/intl/explodename.c: Ditto
8982         * libc/sys/linux/intl/finddomain.c: Ditto
8983         * libc/sys/linux/intl/l10nflist.c: Ditto
8984         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8985         * libc/sys/linux/intl/localealias.c: Ditto
8986
8987 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8988
8989         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8990         (__svfscanf_r): In integer conversions, leave out leading zeroes
8991         which are not part of a base prefix.
8992         Keep track of width truncation to fit into buf, not counting left-out
8993         zeroes against width till the truncation has been compensated for.
8994         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8995
8996 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8997
8998         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8999
9000 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9001
9002         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
9003         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
9004         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
9005         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
9006         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
9007         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
9008         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
9009         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
9010         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
9011         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
9012         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
9013         libc/stdio/getchar.c libc/stdio/getchar_u.c,
9014         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
9015         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
9016         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
9017         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
9018         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
9019         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
9020         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
9021         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
9022         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
9023         libc/stdio/siprintf.c libc/stdio/snprintf.c,
9024         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
9025         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
9026         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
9027         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
9028         libc/stdio/vprintf.c libc/stdio/vscanf.c,
9029         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
9030         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
9031         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
9032         copyright notices to top of file, ensure that <_ansi.h> is
9033         included, be consistent with open parentheses, use _DEFUN macro,
9034         include "local.h" where needed, and remove various compiler
9035         warnings.
9036
9037 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
9038
9039         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
9040         (__svfscanf_r): In integer conversions, leave out leading zeroes
9041         which are not part of a base prefix.
9042         Keep track of width truncation to fit into buf, not counting left-out
9043         zeroes against width till the truncation has been compensated for.
9044
9045 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
9046
9047         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
9048
9049 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
9050
9051         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
9052
9053 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
9054
9055         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
9056         to SUSv3.
9057
9058 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9059
9060         * libc/stdio/fclose.c (_fclose_r): New function.
9061         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
9062         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
9063         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
9064         * libc/include/stdio.h (_fclose_r): New prototype.
9065         * libc/stdio/fopen.c: Fix typo in comment.
9066
9067 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
9068
9069         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
9070         to handle _r reentrant functions.
9071
9072 2004-04-08  Eric Christopher  <echristo@redhat.com>
9073
9074         * libc/include/machine/setjmp.h: Fix endif locations.
9075
9076 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9077
9078         * libc/time/strptime.c: Add standard includes to avoid
9079         warning messages at compilation time.
9080
9081 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
9082
9083         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
9084         of file.
9085
9086 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
9087
9088         * libc/machine/h8300/Makefile.am: Reformat slightly.
9089         * libc/machine/h8300/Makefile.in: Regenerate.
9090
9091 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
9092
9093         * libc/stdio/findfp.c (__fp_lock_all): Add call to
9094         __sfp_lock_acquire.
9095         (__fp_unlock_all): Add call to __sfp_lock_release.
9096
9097 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
9098
9099         * libc/stdio/fclose.c (fclose): Protect file pointer list when
9100         releasing a file.
9101          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
9102         fwalk.
9103         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
9104         _flockfile/_funlockfile.
9105         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
9106         to recursive.
9107         Change __lock_acquire/__lock_release calls for __sfp_lock to
9108         __sfp_lock_acquire/__sfp_lock_release throughout.
9109         (std): Make sure that file lock is only initialized once.
9110         (__sfp): Move _file initialization. Initialize file lock.
9111         (__sfp_lock_acquire): New function.
9112         (__sfp_lock_release): Ditto.
9113         (__fp_lock_all): Remove __sfp_lock_acquire call.
9114         (__fp_unlock_all): Remove __sfp_lock_release call.
9115         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
9116         Add calls to _flockfile/_funlockfile. Remove
9117         __lock_init_recursive call.
9118         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
9119         * libc/stdio/fwalk.c (__fwalk): New static function.
9120         (_fwalk): Protect file pointer list. Use __fwalk to walk through
9121         file pointers.
9122         * libc/stdio/local.h: Add defines for
9123         __sfp_lock_acquire/__sfp_lock_release when
9124         single threaded. Add function prototypes otherwise.
9125         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
9126         _flockfile/_funlockfile.
9127         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
9128         Add calls to _flockfile/_funlockfile. Remove
9129          __lock_init_recursive call.
9130         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
9131         list.
9132
9133 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
9134
9135         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
9136         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
9137         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
9138         to be __LOCK_INIT_RECURSIVE.
9139
9140 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
9141
9142         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
9143         _exit.c with _exit.S.
9144         * libc/sys/h8300hms/Makefile.in: Regenerate.
9145         * libc/sys/h8300hms/_exit.c: Remove.
9146         * libc/sys/h8300hms/_exit.S: New.
9147
9148 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
9149
9150         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
9151         Change __sfp_lock to static global.
9152         (__fp_lock): New static function.
9153         (__fp_unlock): Ditto.
9154         (__fp_lock_all): New function.
9155         (__fp_unlock_all): Ditto.
9156
9157 2004-02-10  Christopher Faylor  <cgf@redhat.com>
9158
9159         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
9160         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
9161         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
9162         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
9163
9164 2004-02-09  Christopher Faylor  <cgf@redhat.com>
9165
9166         * libc/include/time.h (TIMER_RELTIME): New define.
9167
9168 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
9169
9170         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
9171         * libc/stdlib/Makefile.in: Regenerated.
9172
9173 2004-02-08  Christopher Faylor  <cgf@redhat.com>
9174
9175         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
9176         * libc/include/sys/reent.h (__getreent): Protect against possibly being
9177         defined.
9178         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
9179
9180 2004-02-05  Paul Brook  <paul@codesourcery.com>
9181
9182         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
9183         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
9184
9185 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
9186
9187         * NEWS: Update with 1.12.0 info.
9188         * README: Ditto.
9189         * acinclude.m4: Change version number to 1.12.0.
9190         * aclocal.m4: Regenerated.
9191         * configure: Ditto.
9192         * doc/aclocal.m4: Ditto.
9193         * doc/configure: Ditto.
9194         * libc/*/aclocal.m4: Ditto.
9195         * libc/*/configure: Ditto.
9196         * libc/libc.texinfo: Ditto.
9197         * libm/*/aclocal.m4: Ditto.
9198         * libm/*/configure: Ditto.
9199         * libm/libm.texinfo: Ditto.
9200         * libc/sys/linux/shared.ld: Add VERS_1.12.
9201
9202 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
9203
9204         * configure.host: Add support for tic4x.
9205         * libc/include/machine/ieeefp.h: Ditto.
9206         * libc/include/machine/setjmp.h: Ditto.
9207         * libc/machine/tic4x/Makefile.am: New file.
9208         * libc/machine/tic4x/configure.in: Ditto.
9209         * libc/machine/tic4x/setjmp.S: Ditto.
9210         * libc/machine/tic4x/aclocal.m4: Generated.
9211         * libc/machine/tic4x/configure: Ditto.
9212         * libc/machine/tic4x/Makefile.in: Ditto.
9213
9214 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
9215
9216         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
9217         file chain on the passed in reentrancy struct if it
9218         is _GLOBAL_REENT.
9219
9220 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9221             Jeff Johnston  <jjohnstn@redhat.com>
9222
9223         * libc/iconv/iconv.tex: Updated with more information.
9224
9225 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
9226             Jeff Johnston  <jjohnstn@redhat.com>
9227
9228         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
9229         struct for std streams and traverse the global reeentrancy
9230         struct for all other streams.
9231
9232 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
9233
9234         * libc/stdlib/atexit.c: Protect global atexit list with a
9235         lock when newlib is multithreaded.
9236
9237 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9238
9239         * configure.in: Add support to generate iconv converter flags
9240         for newlib.h
9241         * newlib.hin: Add iconv converter flags.
9242         * configure: Regenerated.
9243         * libc/Makefile.in: Ditto.
9244         * libc/configure.in: Moved iconv converter parsing logic to
9245         top level newlib configure.in.
9246         * libc/configure: Regenerated.
9247         * libc/iconv/Makefile.in: Ditto.
9248         * libc/iconv/README.TODO
9249         * libc/iconv/charset.aliases: Remove wrong BE aliases for
9250         UCS2/UCS4/UTF8.
9251         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
9252         newlib.h can be used.
9253         * libc/iconv/ces/Makefile.am: Ditto.
9254         * libc/iconv/lib/Makefile.am: Ditto.
9255         * libc/iconv/ccs/Makefile.in: Regenerated.
9256         * libc/iconv/ces/Makefile.in: Ditto.
9257         * libc/iconv/lib/Makefile.in: Ditto.
9258         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
9259         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
9260         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
9261         defined in newlib.h.
9262         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
9263         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
9264         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
9265         * libc/iconv/ccs/cp775.c: Ditto.
9266         * libc/iconv/ccs/cp850.c: Ditto.
9267         * libc/iconv/ccs/cp852.c: Ditto.
9268         * libc/iconv/ccs/cp855.c: Ditto.
9269         * libc/iconv/ccs/cp866.c: Ditto.
9270         * libc/iconv/ccs/gb_2312_80.c: Ditto.
9271         * libc/iconv/ccs/iso_8859_1.c: Ditto.
9272         * libc/iconv/ccs/iso_8859_15.c: Ditto.
9273         * libc/iconv/ccs/iso_8859_2.c: Ditto.
9274         * libc/iconv/ccs/iso_8859_4.c: Ditto.
9275         * libc/iconv/ccs/iso_8859_5.c: Ditto.
9276         * libc/iconv/ccs/jis_x0201.c: Ditto.
9277         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
9278         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
9279         * libc/iconv/ccs/koi8_r.c: Ditto.
9280         * libc/iconv/ccs/koi8_u.c: Ditto.
9281         * libc/iconv/ccs/ksx1001.c: Ditto.
9282         * libc/iconv/ccs/shift_jis.c: Ditto.
9283         * libc/iconv/ccs/us_ascii.c: Ditto.
9284         * libc/iconv/ccs/binary/big5.cct: Newly generated.
9285         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
9286         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
9287         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
9288         * libc/iconv/ccs/binary/cp775.cct: Ditto.
9289         * libc/iconv/ccs/binary/cp850.cct: Ditto.
9290         * libc/iconv/ccs/binary/cp852.cct: Ditto.
9291         * libc/iconv/ccs/binary/cp855.cct: Ditto.
9292         * libc/iconv/ccs/binary/cp866.cct: Ditto.
9293         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
9294         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
9295         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
9296         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
9297         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
9298         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
9299         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
9300         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
9301         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
9302         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
9303         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
9304         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
9305         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
9306         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
9307         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
9308         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
9309         * libc/iconv/ces/euc-kr.c: Ditto.
9310         * libc/iconv/ces/euc-tw.c: Ditto.
9311         * libc/iconv/ces/gb2312.c: Ditto.
9312         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
9313         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
9314         * libc/iconv/ces/ucs-2-internal.c: Ditto.
9315         * libc/iconv/ces/ucs-4-internal.c: Ditto.
9316         * libc/iconv/ces/utf-16.c: Ditto.
9317         * libc/iconv/ces/utf-8.c: Ditto.
9318         * libc/iconv/lib/aliases.c: Ditto.
9319         * libc/iconv/lib/biccs.c: Ditto.
9320         * libc/iconv/lib/bices.c: Ditto.
9321         * libc/iconv/lib/ccs.c: Ditto.
9322         * libc/iconv/lib/ces.c: Ditto.
9323         * libc/iconv/lib/ces_euc.c: Ditto.
9324         * libc/iconv/lib/ces_iso2022.c: Ditto.
9325         * libc/iconv/lib/ces_table.c: Ditto.
9326         * libc/iconv/lib/converter.c: Ditto.
9327         * libc/iconv/lib/deps.h: Ditto.
9328         * libc/iconv/lib/endian.h: Ditto.
9329         * libc/iconv/lib/iconv.c: Ditto.
9330         * libc/iconv/lib/loaddata.c: Ditto.
9331         * libc/iconv/lib/local.h: Include newlib.h.
9332         * libc/argz/Makefile.in: Regenerated.
9333         * libc/ctype/Makefile.in: Ditto.
9334         * libc/errno/Makefile.in: Ditto.
9335         * libc/iconv/ccs/binary/Makefile.in: Ditto.
9336         * libc/locale/Makefile.in: Ditto.
9337         * libc/misc/Makefile.in: Ditto.
9338         * libc/posix/Makefile.in: Ditto.
9339         * libc/reent/Makefile.in: Ditto.
9340         * libc/search/Makefile.in: Ditto.
9341         * libc/signal/Makefile.in: Ditto.
9342         * libc/stdio/Makefile.in: Ditto.
9343         * libc/stdio64/Makefile.in: Ditto.
9344         * libc/stdlib/Makefile.in: Ditto.
9345         * libc/string/Makefile.in: Ditto.
9346         * libc/syscalls/Makefile.in: Ditto.
9347         * libc/time/Makefile.in: Ditto.
9348         * libc/unix/Makefile.in: Ditto.
9349         * testsuite/newlib.iconv/iconv.exp: New file.
9350         * testsuite/newlib.iconv/iconvjp.c: Ditto.
9351         * testsuite/newlib.iconv/iconvnm.c: Ditto.
9352         * testsuite/newlib.iconv/iconvru.c: Ditto.
9353
9354 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9355
9356         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
9357         (--enable-newlib-builtin-converters): Ditto.
9358         * configure.in: Add code to set _ICONV_ENABLED flag.
9359         Set _MB_LEN_MAX to 1 if not mb enabled.
9360         * configure: Regenerated.
9361         * aclocal.m4: Ditto.
9362         * Makefile.in: Ditto.
9363         * newlib.hin: Add _ICONV_ENABLED flag.
9364         * libc/Makefile.am: Add support for iconv.
9365         * libc/configure.in: Ditto.
9366         * libc/Makefile.in: Regenerated.
9367         * libc/aclocal.m4: Ditto.
9368         * libc/configure: Ditto.
9369         * libc/libc.texinfo: Add iconv documentation.
9370         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
9371         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
9372         libc/iconv/README.TODO, libc/iconv/charset.aliases,
9373         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
9374         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
9375         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
9376         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
9377         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
9378         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
9379         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
9380         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
9381         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
9382         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
9383         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
9384         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
9385         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
9386         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
9387         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
9388         libc/iconv/ccs/binary/big5.cct,
9389         libc/iconv/ccs/binary/cns11643_plane1.cct,
9390         libc/iconv/ccs/binary/cns11643_plane14.cct,
9391         libc/iconv/ccs/binary/cns11643_plane2.cct,
9392         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
9393         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
9394         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
9395         libc/iconv/ccs/binary/iso_8859_1.cct,
9396         libc/iconv/ccs/binary/iso_8859_15.cct,
9397         libc/iconv/ccs/binary/iso_8859_2.cct,
9398         libc/iconv/ccs/binary/iso_8859_4.cct,
9399         libc/iconv/ccs/binary/iso_8859_5.cct,
9400         libc/iconv/ccs/binary/jis_x0201.cct,
9401         libc/iconv/ccs/binary/jis_x0208_1983.cct,
9402         libc/iconv/ccs/binary/jis_x0212_1990.cct,
9403         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
9404         libc/iconv/ccs/binary/ksx1001.cct,
9405         libc/iconv/ccs/binary/shift_jis.cct,
9406         libc/iconv/ccs/binary/us_ascii.cct,
9407         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
9408         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
9409         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
9410         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
9411         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
9412         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
9413         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
9414         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
9415         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
9416         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
9417         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
9418         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
9419         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
9420         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
9421         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
9422         * libc/sys/linux/include/iconv.h: Ditto.
9423         * libc/include/sys/_types.h (_iconv_t): Added.
9424         * doc/aclocal.m4: Regenerated.
9425         * doc/configure: Ditto.
9426         * doc/Makefile.in: Ditto.
9427         * iconvdata/Makefile.in: Ditto.
9428         * iconvdata/aclocal.m4: Ditto.
9429         * iconvdata/configure: Ditto.
9430         * libc/*aclocal.m4: Ditto.
9431         * libc/*Makefile.in: Ditto.
9432         * libc/*configure: Ditto.
9433         * libm/*aclocal.m4: Ditto.
9434         * libm/*Makefile.in: Ditto.
9435         * libm/*configure: Ditto.
9436
9437 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
9438
9439         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
9440         by a lock when newlib is multithreaded.
9441
9442 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
9443
9444         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
9445         pointer to match C99 spec.
9446         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
9447         dst is NULL.  Also fix to not alter src pointer when dst is NULL
9448         and call _mbrtowc_r instead of _mbtowc_r.
9449         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
9450         of _wctomb_r.
9451
9452 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
9453
9454         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
9455         * libc/stdio/freopen.c (freopen): Ditto.
9456
9457 2004-01-16  Christopher Faylor  <cgf@redhat.com>
9458
9459         * libc/stdio/vfprintf.c: Add sys/lock.h include.
9460
9461 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
9462
9463         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
9464         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
9465         Add calls to __lock_init_recursive and __lock_close_recursive
9466         instead.
9467
9468 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
9469
9470         * libc/stdio/fclose.c: Include sys/lock.h.
9471         (fclose): Destroy lock when file is closed.
9472         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
9473         member.
9474         * libc/stdio/freopen.c: Include sys/lock.h.
9475         (_freopen_r): Destroy lock when file is closed.
9476         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
9477         _lock member.
9478
9479 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
9480
9481         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
9482         Remove warnings.
9483
9484 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
9485
9486         * libc/sys/rtems/sys/queue.h: New file.
9487         * libc/include/sys/signal.h: Reflect renumbering of signals to
9488         fit into 32-bit mask.
9489         * libc/include/sys/unistd.h: Add fdatasync() prototype.
9490         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
9491         required.  In particular, add the reentrant variants of libc calls.
9492         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
9493
9494 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
9495
9496         * libc/sys/arm/syscalls.c (unistd.h): Include it.
9497         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
9498         Similarly for stdout and stderr.
9499
9500 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
9501
9502         * libc/libc.texinfo: Correct escape character for @ sign
9503         so file will be processed by make info.  Update copyright years.
9504         * libm/libm.texinfo: Ditto.
9505
9506 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
9507
9508         * libc/include/sys/stat.h: No longer include stat-dj.h.
9509         * libc/include/sys/stat-dj.h: Removed.
9510
9511 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
9512
9513         * libc/include/wchar.h: Include <sys/reent.h>.
9514
9515 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9516
9517         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
9518         when defining _mbrtowc.
9519         * libc/stdlib/mbsinit.c: Ditto.
9520         * libc/stdlib/mbsrtowcs.c: Ditto.
9521         * libc/stdlib/wcrtomb.c: Ditto.
9522         * libc/stdlib/wcsrtombs.c: Ditto.
9523         * libc/stdlib/wctob.c: Ditto.
9524
9525 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9526
9527         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
9528         errors when defining _mbrtowc.
9529         * libc/stdlib/mbsinit.c: Ditto.
9530         * libc/stdlib/mbsrtowcs.c: Ditto.
9531
9532 2003-12-05  Christopher Faylor  <cgf@redhat.com>
9533
9534         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
9535         errors when defining _mbrtowc.
9536
9537 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9538
9539         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
9540         of mb routines for %lc and %ls support.
9541         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
9542         %ls, and %S support.  Remove CYGNUS_NEC markers and
9543         code within.
9544
9545 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
9546
9547         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
9548         _wcrtomb_r, and _wcsrtombs_r.
9549
9550 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
9551
9552         * libc/include/sys/fcntl.h: Don't define struct flock when on
9553         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
9554
9555 2003-11-28  Christopher Faylor  <cgf@redhat.com>
9556
9557         * libc/include/sys/signal.h: Use system specific signal file when
9558         building on cygwin.
9559
9560 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9561
9562         * libc/include/stdlib.h (_atoi_r): New prototype.
9563         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
9564
9565 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
9566
9567         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
9568         * libc/stdlib/atol.c (_atol_r): New reentrant function.
9569         * libc/stdlib/atoll.c (_atoll_r): Ditto.
9570
9571 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9572             Jeff Johnston  <jjohnstn@redhat.com>
9573
9574         * libc/include/stdlib.h (lldiv_t): New type.
9575         (atoll, llabs, lldiv): New prototypes.
9576         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
9577         * libc/stdlib/stdlib.tex: Ditto.
9578         * libc/stdlib/Makefile.in: Regenerated.
9579         * libc/stdlib/atoll.c: New file.
9580         * libc/stdlib/llabs.c: Ditto.
9581         * libc/stdlib/lldiv.c: Ditto.
9582
9583 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
9584
9585         * libc/include/fcntl.h: Declare syscalls only when building newlib.
9586         * libc/include/unistd.h: Ditto.
9587         * libc/include/stat.h: Ditto.  Also declare struct stat64.
9588
9589 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9590
9591         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
9592         specifier to use ch instead of *fmt.
9593
9594 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9595
9596         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
9597         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
9598         use simple byte logic.
9599
9600 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
9601
9602         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
9603         _strtold routine for processing floats and doubles since it
9604         is not as fast as _strtod_r.
9605
9606 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
9607
9608         * libc/machine/h8300/defines.h : Correct pointer register defines
9609         for normal mode.
9610         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
9611         for normal mode.
9612         * libc/machine/h8300/reg_memcpy.S : Likewise.
9613         * libc/machine/h8300/reg_memset.S : Likewise.
9614         * libc/machine/h8300/strcmp.S : Likewise.
9615
9616 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
9617
9618         * configure.host: Enable positional arguments for printf
9619         family for Cygwin.
9620         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
9621         pointer reference for quad_ptr_t.
9622
9623 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
9624
9625         * libc/stdio/scanf.c: Don't include local.h more than once.
9626
9627 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
9628
9629         * libc/include/sys/fcntl.h: Declare _open64.
9630         * libc/include/sys/stat.h: Declare _fstat64.
9631         * libc/include/sys/unistd.h: Declare _lseek64.
9632
9633 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
9634
9635         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
9636         (setprogname): Ditto.
9637
9638 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
9639
9640         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
9641         to use (Ebits + 1) which accounts for the sign-bit.
9642
9643 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9644
9645         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
9646         x86 build.
9647         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
9648         and set up default flags to pass to aclocal.
9649         * iconvdata/Makefile.in: Regenerated.
9650         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
9651         and getpwuid routines.
9652         * libc/sys/linux/Makefile.in: Regenerated.
9653         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
9654         applications to link with newlib's shared libc library.
9655         * libc/sys/linux/getpwnam.c: Ditto.
9656         * libc/sys/linux/getpwuid.c: Ditto.
9657         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
9658         that were formerly supplied by /usr/include/linux/types.h with
9659         kernel types.
9660         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
9661         test _ELIX_LEVEL macro.
9662
9663 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9664
9665         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
9666         referring to _NO_LONGLONG macro.
9667
9668 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
9669
9670         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
9671         in LOG() macro so this will compile on gcc 3.4 and up.
9672         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9673         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9674         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9675         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9676         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9677         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9678         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9679         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9680         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9681         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9682         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9683         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9684         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9685         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9686         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9687         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9688         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9689         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9690         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9691         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9692         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9693         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9694         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9695         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9696         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9697         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9698         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9699         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9700         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9701         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9702         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9703         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9704         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9705         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9706         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9707         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9708
9709 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9710             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9711
9712         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
9713         %ls, %S, %lc, and %C format specifiers.
9714         (get_arg): Ditto.
9715         * libc/stdio/sprintf.c: Add documentation regarding new
9716         format specifiers added in vfprintf.c.
9717
9718 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9719
9720         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
9721         to make code work as specified in standard.
9722
9723 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
9724
9725         * configure.in: Use absolute newlib basedir when forming
9726         CC_FOR_NEWLIB include options.
9727         * configure: Regenerated.
9728
9729 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9730
9731         * libc/string/wcsnlen.c: New file.
9732         * libc/include/wchar.h: Add wcsnlen prototype.
9733         * libc/string/Makefile.am: Add wcsnlen support.
9734         * libc/string/Makefile.in: Regenerated.
9735         * libc/string/wcstrings.tex: Add wcsnlen documentation.
9736
9737 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
9738
9739         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
9740
9741 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
9742
9743         * libc/locale/locale.c: Use double quotes in code.
9744         * libc/locale/locale.tex: Likewise.
9745         * libc/libc.texinfo: Hyphenate "floating-point".
9746         * libc/machine/necv70/necv70.tex: Likewise.
9747         * libc/stdio/sprintf.c: Likewise.
9748         * libc/stdio/sscanf.c: Likewise.
9749         * libc/stdlib/atof.c: Likewise.
9750         * libc/stdlib/ldtoa.c: Fix comment typo.
9751         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
9752         * libc/stdlib/ldiv.c: Likewise.
9753         * libm/common/s_expm1.c: Likewise.
9754         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
9755         * libm/common/s_infinity: Hyphenate "double- and single-precision".
9756         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
9757         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
9758         and "floating-point".
9759         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
9760         * libm/math/e_pow.c: Fix comment typo.
9761         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
9762         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
9763         * libm/math/s_atan.c: Likewise.
9764         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
9765         * libm/math/s_isnan.c: Hyphenate "single-precision" and
9766         "floating-point".  Use "nonzero".
9767         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9768         * libm/math/w_acos.c: Likewise.
9769         * libm/math/w_acosh.c: Likewise.
9770         * libm/math/w_asin.c: Likewise.
9771         * libm/math/w_atan2.c: Likewise.
9772         * libm/math/w_atanh.c: Likewise.
9773         * libm/math/w_cosh.c: Likewise.
9774         * libm/math/w_exp.c: Likewise.
9775         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9776         version of 2^x in the description.
9777         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9778         * libm/math/w_gamma.c: Likewise.
9779         * libm/math/w_hypot.c: Likewise.
9780         * libm/math/w_j0.c: Likewise.
9781         * libm/math/w_sinh.c: Likewise.
9782         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9783         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9784         "floating-point".
9785         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9786         * libm/mathfp/e_atanh.c: Likewise.
9787         * libm/mathfp/e_hypot.c: Likewise.
9788         * libm/mathfp/er_lgamma.c: Likewise.
9789         * libm/mathfp/s_acos.c: Likewise.
9790         * libm/mathfp/s_asine.c: Likewise.
9791         * libm/mathfp/s_asinh.c: Likewise.
9792         * libm/mathfp/s_atan.c: Likewise.
9793         * libm/mathfp/s_atan2.c: Likewise.
9794         * libm/mathfp/s_atangent.c: Likewise.
9795         * libm/mathfp/s_cosh.c: Likewise.
9796         * libm/mathfp/s_exp.c: Likewise.
9797         * libm/mathfp/s_fmod.c: Likewise.
9798         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9799         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9800         "floating-point".  Use "nonzero".
9801         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9802         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9803         * libm/mathfp/s_sineh.c: Likewise.
9804         * libm/mathfp/w_jn.c: Likewise.
9805
9806 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9807
9808         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9809         lines, to enable parallel make.
9810         * Makefile.in: Rebuilt.
9811
9812 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9813
9814         * libc/time/clock.c: Clarify documentation of return value when no
9815         measurement is available.
9816
9817 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9818
9819         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9820         * libm/configure: Regenerate.
9821         * libm/Makefile.in: Ditto.
9822
9823 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9824
9825         * libc/machine/sh/strncpy.S: New file.
9826         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9827         * libc/machine/sh/Makefile.in: Regenerate.
9828
9829 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9830
9831         * MAINTAINERS: Update my e-mail address.
9832
9833 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9834
9835         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9836
9837 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9838
9839         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9840         prototype.
9841         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9842         _simdldcheck().  Also add unsigned cast for index variable in
9843         for loop using sizeof operators.
9844         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9845         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9846         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9847         plus fix shift calculation for determining if there is a
9848         carry from word2.
9849
9850 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9851
9852         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9853         setgroupent for Cygwin.
9854
9855 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9856
9857         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9858         is different for _REENT_SMALL than when using regular reent
9859         struct.
9860
9861 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9862
9863         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9864         modern versions of GCC issue a warning.
9865
9866         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9867         after continuation characters that induces a warning from modern
9868         versions of GCC.
9869
9870 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9871
9872         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9873         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9874
9875 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9876
9877         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9878         * libc/stdlib/exit.c : Ditto.
9879         * libc/stdlib/on_exit.c: Ditto.
9880
9881 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9882
9883         * libc/include/reent.h: Define stat64 as __stat64 when
9884         compiling newlib for Cygwin.
9885
9886 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9887
9888         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9889         __stat64 when compiling newlib.
9890
9891 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9892
9893         * libc/include/stdio.h: Allow the io64 function prototypes for
9894         Cygwin when compiling newlib.
9895         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9896         to expose the Cygwin struct __stat64 type.
9897         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9898         pointer.
9899         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9900
9901 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9902
9903         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9904         definition to fseeko64.
9905
9906 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9907
9908         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9909         * libc/stdio: Globally remove/replace all references to fp->_data.
9910         Replace with _REENT or _GLOBAL_REENT where appropriate.
9911         * libc/stdio/asprintf.c: Ditto.
9912         * libc/stdio/fclose.c: Ditto.
9913         * libc/stdio/fvwrite.c: Ditto.
9914         * libc/stdio/makebuf.c: Ditto.
9915         * libc/stdio/refill.c: Ditto.
9916         * libc/stdio/local.h: Ditto.
9917         * libc/stdio/setvbuf.c: Ditto.
9918         * libc/stdio/sscanf.c: Ditto.
9919         * libc/stdio/stdio.c: Ditto.
9920         * libc/stdio/ungetc.c: Ditto.
9921         * libc/stdio/vfscanf.c: Ditto.
9922         * libc/stdio/vsscanf.c: Ditto.
9923         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9924         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9925         * libc/stdio/vsnprintf.c: Ditto.
9926         * libc/stdio/vsprintf.c: Ditto.
9927         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9928         instead of _REENT to walk file list.
9929         * libc/stdio/fflush.c: Ditto.
9930         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9931         version call reentrant version with _REENT argument.
9932         * libc/stdio/fsetpos.c: Ditto.
9933         * libc/stdio/fseek.c: Ditto.
9934         * libc/stdio/fseeko.c: Ditto.
9935         * libc/stdio/ftell.c: Ditto.
9936         * libc/stdio/ftello.c: Ditto.
9937         * libc/stdio/freopen.c: Ditto.
9938         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9939         new files to chain.  Also use _GLOBAL_REENT pointer for
9940         cleaning up.
9941         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9942         * libc/stdio/siprintf.c: Ditto.
9943         * libc/stdio/iprintf.c: Ditto.
9944         * libc/stdio/fprintf.c: Ditto.
9945         * libc/stdio/printf.c: Ditto.
9946         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9947         * libc/stdio/sprintf.c: Ditto.
9948         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9949         * libc/stdio/rewind.c: Call _fseek_r directly.
9950         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9951         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9952         data pointer.
9953         (get_arg): Add extra struct _reent pointer argument.
9954         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9955         to fp->_data.
9956         * libc/stdio64/fopen64.c: Ditto.
9957         * libc/stdio64/freopen64.c: Ditto.
9958         * libc/stdio64/fsetpos64.c: Ditto.
9959         * libc/stdio64/ftello64.c: Ditto.
9960         * libc/stdio64/local64.h: Ditto.
9961         * libc/stdio64/stdio64.c: Ditto.
9962         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9963         _fstat64_r for the meantime.
9964
9965 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9966
9967         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9968         overflow detection.
9969
9970 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9971
9972         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9973         extern "C".
9974
9975 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9976
9977         * libc/include/math.h: Add prototypes for __signbitf and
9978         __signbitd.
9979
9980 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9981
9982         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9983         correct type of conversion when dealing with EUCJP or SJIS.
9984         * libc/ctype/iswblank.c: Ditto.
9985         * libc/ctype/iswcntrl.c: Ditto.
9986         * libc/ctype/iswprint.c: Ditto.
9987         * libc/ctype/iswpunct.c: Ditto.
9988         * libc/ctype/iswspace.c: Ditto.
9989         * libc/ctype/towlower.c: Ditto.
9990         * libc/ctype/towupper.c: Ditto.
9991
9992 2003-07-31  Nick Clifton  <nickc@redhat.com>
9993
9994         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9995         before calling main, in case it saves its argument registers.
9996         Remove reference to deleted v850ea port.
9997         * configure.host: Remove reference to deleted v850ea port.
9998         Do not use -mv850 when building for v850e target.  This
9999         prevents the ctbp system register from being initialised.
10000
10001 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
10002
10003         * libc/stdio/vfprintf.c: Set output size to 1 when
10004         we have %f format with precision 0 and # flag not specified.
10005
10006 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
10007
10008         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
10009         .am33_2.
10010
10011 2003-07-25  Christopher Faylor  <cgf@redhat.com>
10012
10013         * libc/stdio64/fdopen64.c: Include sys/lock.h.
10014
10015 2003-07-25  Christopher Faylor  <cgf@redhat.com>
10016
10017         * configure.host: Find cygwin include directory, when appropriate.
10018
10019 2003-07-24  Christopher Faylor  <cgf@redhat.com>
10020
10021         * libc/stdio64/fdopen64.c: New file.
10022         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
10023         * libc/stdio64/Makefile.in: Regenerate.
10024         * libc/include/stdio.h (fdopen64): Define.
10025         * libc/include/stdio.h (_fdopen64_r): Ditto.
10026
10027 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
10028
10029         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
10030         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
10031         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
10032         restore callee-saved FP registers.
10033
10034 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
10035
10036         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
10037         for __sh__.
10038         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
10039         truncate.c.
10040         * libc/sys/sh/Makefile.in: Regenerate.
10041         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
10042         * libc/sys/sh/ftruncate.c: New file.
10043         * libc/sys/sh/truncate.c: Likewise.
10044
10045 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
10046
10047         * libc/include/math.h (nan, nanf): Update prototype to C99.
10048         * libm/common/s_nan.c (nan): Likewise.
10049         * libm/common/s_nanf.c (nanf, nan): Likewise.
10050         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
10051
10052 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
10053
10054         * libc/include/stdbool.h: Removed as this is defined by gcc.
10055
10056 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
10057
10058         * libc/include/stdbool.h: New header file defined by C99.
10059
10060 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
10061
10062         * libc/include/sys/types.h (int8_t): Make signed.
10063
10064 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
10065
10066         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
10067
10068 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
10069
10070         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
10071         on if we actually created the shared memory file exclusively.
10072
10073 2003-06-27  Joe Vornehm  <joev@mitre.org>
10074
10075         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
10076         comparisons to account for unsigned internal value w.
10077
10078 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
10079
10080         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
10081         wrbuf for a non-creating open.
10082
10083 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
10084
10085         * libc/machine/h8300/setarch.h: New.
10086         * libc/machine/h8300/memcpy.S: Use it.
10087         * libc/machine/h8300/memset.S: Likewise.
10088         * libc/machine/h8300/reg_memcpy.S: Likewise.
10089         * libc/machine/h8300/reg_memset.S: Likewise.
10090         * libc/machine/h8300/setjmp.S: Likewise.
10091         * libc/machine/h8300/strcmp.S: Likewise.
10092
10093 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
10094
10095         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
10096         to atexit().
10097
10098 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
10099
10100         * configure.host (iq2000): Add tabs.
10101
10102 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
10103
10104         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
10105         to handle latest on_exit change.
10106         * libc/sys/linux/Makefile.am: Remove special compilation
10107         for malloc.c and mcheck.c.
10108         * libc/sys/linux/Makefile.in: Regenerated.
10109         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
10110         after including <features.h>.
10111         * libc/sys/linux/mcheck.c: Ditto.
10112         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
10113         for <features.h>.
10114         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
10115         add -DNOT_IN_libc to C flags.
10116         * libc/sys/linux/intl/Makefile.in: Regenerated.
10117         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
10118         * libc/sys/linux/linuxthreads/semaphore.h: Include
10119         <bits/pthreadtypes.h>.
10120         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
10121         including <features.h>.
10122         * libc/sys/linux/sys/lock.h: Ditto.
10123
10124 2003-06-11  Nick Clifton  <nickc@redhat.com>
10125
10126         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
10127         _on_exit_args_ptr.
10128
10129 2003-06-10  Stan Cox  <scox@redhat.com>
10130             Anthony Green  <green@redhat.com>
10131
10132         * configure.host: Add iq2000 support.
10133         * newlib/libc/include/machine/ieeefp.h: Ditto.
10134         * newlib/libc/include/machine/setjmp.h: Ditto.
10135         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
10136         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
10137         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
10138         libc/machine/iq2000/Makefile.in: New files.
10139
10140 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
10141
10142         * libc/sys/h8300hms/setarch.h: New file.
10143         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
10144         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
10145         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
10146         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
10147
10148 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
10149
10150         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
10151         definition.
10152         * libc/argz/argz_add_sep.c: Ditto.
10153         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
10154         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
10155         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
10156         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
10157         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
10158         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
10159         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
10160         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
10161         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
10162         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
10163         * libc/posix/execl.c libc/posix/execle.c: Ditto.
10164         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
10165         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
10166         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
10167         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
10168         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
10169         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
10170         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
10171         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
10172         * libc/search/twalk.c libc/signal/signal.c: Ditto.
10173
10174 2003-06-05  Nick Clifton  <nickc@redhat.com>
10175
10176         * libc/include/sys/reent.h (struct _on_exit_args): New
10177         structure containing fields used by the on_exit() function.
10178         (struct _atexit): Include struct _on_exit_args.  For
10179         _REENT_SMALL do his via a pointer that is initialised when
10180         needed.
10181         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
10182         structure, if one has been allocated.
10183         * libc/stdlib/atexit.c (atexit): Update indirection to
10184         _fntypes field.
10185         * libc/stdlib/on_exit.c (on_exit): Indirect via the
10186         _on_exit_args structure.  For _REENT_SMALL, allocate a
10187         structure if one does not exist.
10188         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
10189         structure.
10190
10191 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
10192
10193         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
10194         * libc/sys/linux/net/Makefile.in: Regenerated.
10195
10196 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
10197
10198         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
10199         * libc/reent/fcntlr.c: Ditto.
10200         * libc/reent/fstat64r.c: Ditto.
10201         * libc/reent/linkr.c: Ditto.
10202         * libc/reent/lseek64r.c: Ditto.
10203         * libc/reent/lseekr.c: Ditto.
10204         * libc/reent/openr.c: Ditto.
10205         * libc/reent/readr.c: Ditto.
10206         * libc/reent/reent.c: Ditto.
10207         * libc/reent/sbrkr.c: Ditto.
10208         * libc/reent/signalr.c: Ditto.
10209         * libc/reent/signgam.c: Ditto.
10210         * libc/reent/statr.c: Ditto.
10211         * libc/reent/timer.c: Ditto.
10212         * libc/reent/unlinkr.c: Ditto.
10213         * libc/reent/writer.c: Ditto.
10214         * libc/syscalls/sysclose.c: Ditto.
10215         * libc/syscalls/sysexecve.c: Ditto.
10216         * libc/syscalls/sysfcntl.c: Ditto.
10217         * libc/syscalls/sysfork.c: Ditto.
10218         * libc/syscalls/sysfstat.c: Ditto.
10219         * libc/syscalls/sysgetpid.c: Ditto.
10220         * libc/syscalls/sysgettod.c: Ditto.
10221         * libc/syscalls/syskill.c: Ditto.
10222         * libc/syscalls/syslink.c: Ditto.
10223         * libc/syscalls/syslseek.c: Ditto.
10224         * libc/syscalls/sysopen.c: Ditto.
10225         * libc/syscalls/sysread.c: Ditto.
10226         * libc/syscalls/syssbrk.c: Ditto.
10227         * libc/syscalls/sysstat.c: Ditto.
10228         * libc/syscalls/systimes.c: Ditto.
10229         * libc/syscalls/sysunlink.c: Ditto.
10230         * libc/syscalls/syswait.c: Ditto.
10231         * libc/syscalls/syswrite.c: Ditto.
10232
10233 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
10234
10235         * libc/time/tzset_r.c: Change local variables that are
10236         set via sscanf using the %h format specifier to be unsigned short
10237         instead of int.
10238
10239 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
10240
10241         * configure.host:  Allow i[34567]86 variant.
10242         * configure.in: Likewise.
10243         * README: Likewise to the docs.
10244         * configure: Regenerated.
10245         * Makefile.in: Ditto.
10246
10247 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
10248             Tom Fitzsimmons  <fitzsim@redhat.com>
10249
10250         * configure.in: Add iconvdata support for x86 linux.
10251         * configure: Regenerated.
10252         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
10253         library, iconv, and linuxthreads support.
10254         * libc/sys/linux/configure.in: Ditto.
10255         * libc/sys/linux/Makefile.in: Regenerated.
10256         * libc/sys/linux/configure: Ditto.
10257         * iconvdata/EUC-JP.irreversible: New file.
10258         * iconvdata/Makefile.am: Ditto.
10259         * iconvdata/Makefile.in: Ditto.
10260         * iconvdata/SJIS.irreversible: Ditto.
10261         * iconvdata/aclocal.m4: Ditto.
10262         * iconvdata/configure: Ditto.
10263         * iconvdata/configure.in: Ditto.
10264         * iconvdata/dummy.c: Ditto.
10265         * iconvdata/euc-jp.c: Ditto.
10266         * iconvdata/gconv-modules: Ditto.
10267         * iconvdata/jis0201.c: Ditto.
10268         * iconvdata/jis0201.h: Ditto.
10269         * iconvdata/jis0208.c: Ditto.
10270         * iconvdata/jis0208.h: Ditto.
10271         * iconvdata/jis0212.c: Ditto.
10272         * iconvdata/jis0212.h: Ditto.
10273         * iconvdata/sjis.c: Ditto.
10274         * libc/include/errno.h: Protect definition of error_t.
10275         * libc/sys/linux/gethostid.c: New file.
10276         * libc/sys/linux/sethostid.c: Ditto.
10277         * libc/sys/linux/dl/Makefile.am: Ditto.
10278         * libc/sys/linux/dl/Makefile.in: Ditto.
10279         * libc/sys/linux/dl/abi-tag.h: Ditto.
10280         * libc/sys/linux/dl/atomicity.h: Ditto.
10281         * libc/sys/linux/dl/dl-addr.c: Ditto.
10282         * libc/sys/linux/dl/dl-cache.c: Ditto.
10283         * libc/sys/linux/dl/dl-cache.h: Ditto.
10284         * libc/sys/linux/dl/dl-close.c: Ditto.
10285         * libc/sys/linux/dl/dl-debug.c: Ditto.
10286         * libc/sys/linux/dl/dl-deps.c: Ditto.
10287         * libc/sys/linux/dl/dl-dst.h: Ditto.
10288         * libc/sys/linux/dl/dl-error.c: Ditto.
10289         * libc/sys/linux/dl/dl-fini.c: Ditto.
10290         * libc/sys/linux/dl/dl-init.c: Ditto.
10291         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
10292         * libc/sys/linux/dl/dl-libc.c: Ditto.
10293         * libc/sys/linux/dl/dl-librecon.h: Ditto.
10294         * libc/sys/linux/dl/dl-load.c: Ditto.
10295         * libc/sys/linux/dl/dl-lookup.c: Ditto.
10296         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
10297         * libc/sys/linux/dl/dl-minimal.c: Ditto.
10298         * libc/sys/linux/dl/dl-misc.c: Ditto.
10299         * libc/sys/linux/dl/dl-object.c: Ditto.
10300         * libc/sys/linux/dl/dl-open.c: Ditto.
10301         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
10302         * libc/sys/linux/dl/dl-profile.c: Ditto.
10303         * libc/sys/linux/dl/dl-profstub.c: Ditto.
10304         * libc/sys/linux/dl/dl-reloc.c: Ditto.
10305         * libc/sys/linux/dl/dl-runtime.c: Ditto.
10306         * libc/sys/linux/dl/dl-support.c: Ditto.
10307         * libc/sys/linux/dl/dl-sym.c: Ditto.
10308         * libc/sys/linux/dl/dl-version.c: Ditto.
10309         * libc/sys/linux/dl/dlfcn.h: Ditto.
10310         * libc/sys/linux/dl/do-lookup.h: Ditto.
10311         * libc/sys/linux/dl/do-rel.h: Ditto.
10312         * libc/sys/linux/dl/dynamic-link.h: Ditto.
10313         * libc/sys/linux/dl/kernel-features.h: Ditto.
10314         * libc/sys/linux/dl/ldsodefs.h: Ditto.
10315         * libc/sys/linux/dl/libintl.h: Ditto.
10316         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
10317         * libc/sys/linux/dl/unsecvars.h: Ditto.
10318         * libc/sys/linux/iconv/Makefile.am: Ditto.
10319         * libc/sys/linux/iconv/Makefile.in: Ditto.
10320         * libc/sys/linux/iconv/categories.def: Ditto.
10321         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
10322         * libc/sys/linux/iconv/gconv.c: Ditto.
10323         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
10324         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
10325         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
10326         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
10327         * libc/sys/linux/iconv/gconv_close.c: Ditto.
10328         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
10329         * libc/sys/linux/iconv/gconv_db.c: Ditto.
10330         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
10331         * libc/sys/linux/iconv/gconv_int.h: Ditto.
10332         * libc/sys/linux/iconv/gconv_open.c: Ditto.
10333         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
10334         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
10335         * libc/sys/linux/iconv/hash-string.h: Ditto.
10336         * libc/sys/linux/iconv/iconv.c: Ditto.
10337         * libc/sys/linux/iconv/iconv.h: Ditto.
10338         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
10339         * libc/sys/linux/iconv/iconv_close.c: Ditto.
10340         * libc/sys/linux/iconv/iconv_open.c: Ditto.
10341         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
10342         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
10343         * libc/sys/linux/iconv/loadinfo.h: Ditto.
10344         * libc/sys/linux/iconv/localeinfo.h: Ditto.
10345         * libc/sys/linux/iconv/loop.c: Ditto.
10346         * libc/sys/linux/iconv/skeleton.c: Ditto.
10347         * libc/sys/linux/iconv/strtab.c: Ditto.
10348         * libc/sys/linux/include/dl-hash.h: Ditto.
10349         * libc/sys/linux/include/dlfcn.h: Ditto.
10350         * libc/sys/linux/include/fnmatch.h: Ditto.
10351         * libc/sys/linux/include/gconv.h: Ditto.
10352         * libc/sys/linux/include/glob.h: Ditto.
10353         * libc/sys/linux/include/hesiod.h: Ditto.
10354         * libc/sys/linux/include/ifaddrs.h: Ditto.
10355         * libc/sys/linux/include/libc_private.h: Ditto.
10356         * libc/sys/linux/include/link.h: Ditto.
10357         * libc/sys/linux/include/namespace.h: Ditto.
10358         * libc/sys/linux/include/netconfig.h: Ditto.
10359         * libc/sys/linux/include/netdb.h: Ditto.
10360         * libc/sys/linux/include/nsswitch.h: Ditto.
10361         * libc/sys/linux/include/regex.h: Ditto.
10362         * libc/sys/linux/include/resolv.h: Ditto.
10363         * libc/sys/linux/include/rune.h: Ditto.
10364         * libc/sys/linux/include/runetype.h: Ditto.
10365         * libc/sys/linux/include/semaphore.h: Ditto.
10366         * libc/sys/linux/include/setlocale.h: Ditto.
10367         * libc/sys/linux/include/un-namespace.h: Ditto.
10368         * libc/sys/linux/include/wordexp.h: Ditto.
10369         * libc/sys/linux/include/arpa/ftp.h: Ditto.
10370         * libc/sys/linux/include/arpa/inet.h: Ditto.
10371         * libc/sys/linux/include/arpa/nameser.h: Ditto.
10372         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
10373         * libc/sys/linux/include/arpa/telnet.h: Ditto.
10374         * libc/sys/linux/include/arpa/tftp.h: Ditto.
10375         * libc/sys/linux/include/net/bpf.h: Ditto.
10376         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
10377         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
10378         * libc/sys/linux/include/net/bridge.h: Ditto.
10379         * libc/sys/linux/include/net/ethernet.h: Ditto.
10380         * libc/sys/linux/include/net/fddi.h: Ditto.
10381         * libc/sys/linux/include/net/if.h: Ditto.
10382         * libc/sys/linux/include/net/if_arc.h: Ditto.
10383         * libc/sys/linux/include/net/if_arp.h: Ditto.
10384         * libc/sys/linux/include/net/if_atm.h: Ditto.
10385         * libc/sys/linux/include/net/if_dl.h: Ditto.
10386         * libc/sys/linux/include/net/if_gif.h: Ditto.
10387         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
10388         * libc/sys/linux/include/net/if_llc.h: Ditto.
10389         * libc/sys/linux/include/net/if_media.h: Ditto.
10390         * libc/sys/linux/include/net/if_mib.h: Ditto.
10391         * libc/sys/linux/include/net/if_ppp.h: Ditto.
10392         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
10393         * libc/sys/linux/include/net/if_slvar.h: Ditto.
10394         * libc/sys/linux/include/net/if_sppp.h: Ditto.
10395         * libc/sys/linux/include/net/if_stf.h: Ditto.
10396         * libc/sys/linux/include/net/if_tap.h: Ditto.
10397         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
10398         * libc/sys/linux/include/net/if_tun.h: Ditto.
10399         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
10400         * libc/sys/linux/include/net/if_types.h: Ditto.
10401         * libc/sys/linux/include/net/if_var.h: Ditto.
10402         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
10403         * libc/sys/linux/include/net/intrq.h: Ditto.
10404         * libc/sys/linux/include/net/iso88025.h: Ditto.
10405         * libc/sys/linux/include/net/net_osdep.h: Ditto.
10406         * libc/sys/linux/include/net/netisr.h: Ditto.
10407         * libc/sys/linux/include/net/pfil.h: Ditto.
10408         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
10409         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
10410         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
10411         * libc/sys/linux/include/net/radix.h: Ditto.
10412         * libc/sys/linux/include/net/raw_cb.h: Ditto.
10413         * libc/sys/linux/include/net/route.h: Ditto.
10414         * libc/sys/linux/include/net/slcompress.h: Ditto.
10415         * libc/sys/linux/include/net/slip.h: Ditto.
10416         * libc/sys/linux/include/net/zlib.h: Ditto.
10417         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
10418         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
10419         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
10420         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
10421         * libc/sys/linux/include/netinet/igmp.h: Ditto.
10422         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
10423         * libc/sys/linux/include/netinet/in.h: Ditto.
10424         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
10425         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
10426         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
10427         * libc/sys/linux/include/netinet/in_var.h: Ditto.
10428         * libc/sys/linux/include/netinet/ip.h: Ditto.
10429         * libc/sys/linux/include/netinet/ip6.h: Ditto.
10430         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
10431         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
10432         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
10433         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
10434         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
10435         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
10436         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
10437         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
10438         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
10439         * libc/sys/linux/include/netinet/tcp.h: Ditto.
10440         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
10441         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
10442         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
10443         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
10444         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
10445         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
10446         * libc/sys/linux/include/netinet/udp.h: Ditto.
10447         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
10448         * libc/sys/linux/include/netinet6/ah.h: Ditto.
10449         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
10450         * libc/sys/linux/include/netinet6/esp.h: Ditto.
10451         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
10452         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
10453         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
10454         * libc/sys/linux/include/netinet6/in6.h: Ditto.
10455         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
10456         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
10457         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
10458         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
10459         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
10460         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
10461         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
10462         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
10463         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
10464         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
10465         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
10466         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
10467         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
10468         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
10469         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
10470         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
10471         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
10472         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
10473         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
10474         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
10475         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
10476         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
10477         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
10478         * libc/sys/linux/include/netns/idp.h: Ditto.
10479         * libc/sys/linux/include/netns/idp_var.h: Ditto.
10480         * libc/sys/linux/include/netns/ns.h: Ditto.
10481         * libc/sys/linux/include/netns/ns_error.h: Ditto.
10482         * libc/sys/linux/include/netns/ns_if.h: Ditto.
10483         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
10484         * libc/sys/linux/include/netns/sp.h: Ditto.
10485         * libc/sys/linux/include/netns/spidp.h: Ditto.
10486         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
10487         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
10488         * libc/sys/linux/include/netns/spp_var.h: Ditto.
10489         * libc/sys/linux/include/rpc/Makefile: Ditto.
10490         * libc/sys/linux/include/rpc/auth.h: Ditto.
10491         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
10492         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
10493         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
10494         * libc/sys/linux/include/rpc/clnt.h: Ditto.
10495         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
10496         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
10497         * libc/sys/linux/include/rpc/des.h: Ditto.
10498         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
10499         * libc/sys/linux/include/rpc/nettype.h: Ditto.
10500         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
10501         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
10502         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
10503         * libc/sys/linux/include/rpc/raw.h: Ditto.
10504         * libc/sys/linux/include/rpc/rpc.h: Ditto.
10505         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
10506         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
10507         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
10508         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
10509         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
10510         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
10511         * libc/sys/linux/include/rpc/svc.h: Ditto.
10512         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
10513         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
10514         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
10515         * libc/sys/linux/include/rpc/types.h: Ditto.
10516         * libc/sys/linux/include/rpc/xdr.h: Ditto.
10517         * libc/sys/linux/intl/Makefile.am: Ditto.
10518         * libc/sys/linux/intl/Makefile.in: Ditto.
10519         * libc/sys/linux/intl/bindtextdom.c: Ditto.
10520         * libc/sys/linux/intl/catgets.c: Ditto.
10521         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
10522         * libc/sys/linux/intl/config.h: Ditto.
10523         * libc/sys/linux/intl/dcgettext.c: Ditto.
10524         * libc/sys/linux/intl/dcigettext.c: Ditto.
10525         * libc/sys/linux/intl/dcngettext.c: Ditto.
10526         * libc/sys/linux/intl/dgettext.c: Ditto.
10527         * libc/sys/linux/intl/dngettext.c: Ditto.
10528         * libc/sys/linux/intl/explodename.c: Ditto.
10529         * libc/sys/linux/intl/finddomain.c: Ditto.
10530         * libc/sys/linux/intl/gettext.c: Ditto.
10531         * libc/sys/linux/intl/gettext.h: Ditto.
10532         * libc/sys/linux/intl/gettextP.h: Ditto.
10533         * libc/sys/linux/intl/hash-string.h: Ditto.
10534         * libc/sys/linux/intl/l10nflist.c: Ditto.
10535         * libc/sys/linux/intl/loadinfo.h: Ditto.
10536         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
10537         * libc/sys/linux/intl/locale.alias: Ditto.
10538         * libc/sys/linux/intl/localealias.c: Ditto.
10539         * libc/sys/linux/intl/ngettext.c: Ditto.
10540         * libc/sys/linux/intl/open_catalog.c: Ditto.
10541         * libc/sys/linux/intl/plural.c: Ditto.
10542         * libc/sys/linux/intl/plural.y: Ditto.
10543         * libc/sys/linux/intl/stpcpy.c: Ditto.
10544         * libc/sys/linux/intl/textdomain.c: Ditto.
10545         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
10546         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
10547         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
10548         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
10549         * libc/sys/linux/linuxthreads/attr.c: Ditto.
10550         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
10551         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
10552         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
10553         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
10554         * libc/sys/linux/linuxthreads/config.h: Ditto.
10555         * libc/sys/linux/linuxthreads/configure: Ditto.
10556         * libc/sys/linux/linuxthreads/configure.in: Ditto.
10557         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
10558         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
10559         * libc/sys/linux/linuxthreads/events.c: Ditto.
10560         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
10561         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
10562         * libc/sys/linux/linuxthreads/internals.h: Ditto.
10563         * libc/sys/linux/linuxthreads/join.c: Ditto.
10564         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
10565         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
10566         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
10567         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
10568         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
10569         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
10570         * libc/sys/linux/linuxthreads/manager.c: Ditto.
10571         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
10572         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
10573         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
10574         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
10575         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
10576         * libc/sys/linux/linuxthreads/prio.c: Ditto.
10577         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
10578         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
10579         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
10580         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
10581         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
10582         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
10583         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
10584         * libc/sys/linux/linuxthreads/queue.h: Ditto.
10585         * libc/sys/linux/linuxthreads/reent.c: Ditto.
10586         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
10587         * libc/sys/linux/linuxthreads/restart.h: Ditto.
10588         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
10589         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
10590         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
10591         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
10592         * libc/sys/linux/linuxthreads/signals.c: Ditto.
10593         * libc/sys/linux/linuxthreads/specific.c: Ditto.
10594         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
10595         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
10596         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
10597         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
10598         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
10599         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
10600         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
10601         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
10602         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
10603         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
10604         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
10605         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
10606         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
10607         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
10608         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
10609         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
10610         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
10611         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
10612         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
10613         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
10614         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
10615         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
10616         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
10617         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
10618         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
10619         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
10620         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
10621         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
10622         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
10623         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
10624         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
10625         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
10626         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
10627         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
10628         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
10629         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
10630         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
10631         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
10632         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
10633         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
10634         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
10635         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
10636         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
10637         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
10638         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
10639         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
10640         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
10641         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
10642         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
10643         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
10644         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
10645         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
10646         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
10647         * libc/sys/linux/linuxthreads/unload.c: Ditto.
10648         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
10649         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
10650         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
10651         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
10652         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
10653         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
10654         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
10655         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
10656         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
10657         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
10658         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
10659         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
10660         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
10661         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
10662         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
10663         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
10664         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
10665         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
10666         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
10667         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
10668         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
10669         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
10670         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
10671         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
10672         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
10673         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
10674         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
10675         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
10676         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
10677         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
10678         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
10679         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
10680         * libc/sys/linux/net/Makefile.am: Ditto.
10681         * libc/sys/linux/net/Makefile.in: Ditto.
10682         * libc/sys/linux/net/addr2ascii.3: Ditto.
10683         * libc/sys/linux/net/addr2ascii.c: Ditto.
10684         * libc/sys/linux/net/ascii2addr.c: Ditto.
10685         * libc/sys/linux/net/base64.c: Ditto.
10686         * libc/sys/linux/net/bindresvport.c: Ditto.
10687         * libc/sys/linux/net/byteorder.3: Ditto.
10688         * libc/sys/linux/net/ether_addr.c: Ditto.
10689         * libc/sys/linux/net/ethers.3: Ditto.
10690         * libc/sys/linux/net/getaddrinfo.3: Ditto.
10691         * libc/sys/linux/net/getaddrinfo.c: Ditto.
10692         * libc/sys/linux/net/gethostbydns.c: Ditto.
10693         * libc/sys/linux/net/gethostbyht.c: Ditto.
10694         * libc/sys/linux/net/gethostbyname.3: Ditto.
10695         * libc/sys/linux/net/gethostbynis.c: Ditto.
10696         * libc/sys/linux/net/gethostnamadr.c: Ditto.
10697         * libc/sys/linux/net/getifaddrs.3: Ditto.
10698         * libc/sys/linux/net/getifaddrs.c: Ditto.
10699         * libc/sys/linux/net/getipnodebyname.3: Ditto.
10700         * libc/sys/linux/net/getnameinfo.3: Ditto.
10701         * libc/sys/linux/net/getnameinfo.c: Ditto.
10702         * libc/sys/linux/net/getnetbydns.c: Ditto.
10703         * libc/sys/linux/net/getnetbyht.c: Ditto.
10704         * libc/sys/linux/net/getnetbynis.c: Ditto.
10705         * libc/sys/linux/net/getnetent.3: Ditto.
10706         * libc/sys/linux/net/getnetnamadr.c: Ditto.
10707         * libc/sys/linux/net/getproto.c: Ditto.
10708         * libc/sys/linux/net/getprotoent.3: Ditto.
10709         * libc/sys/linux/net/getprotoent.c: Ditto.
10710         * libc/sys/linux/net/getprotoname.c: Ditto.
10711         * libc/sys/linux/net/getservbyname.c: Ditto.
10712         * libc/sys/linux/net/getservbyport.c: Ditto.
10713         * libc/sys/linux/net/getservent.3: Ditto.
10714         * libc/sys/linux/net/getservent.c: Ditto.
10715         * libc/sys/linux/net/herror.c: Ditto.
10716         * libc/sys/linux/net/hesiod.3: Ditto.
10717         * libc/sys/linux/net/hesiod.c: Ditto.
10718         * libc/sys/linux/net/if_indextoname.3: Ditto.
10719         * libc/sys/linux/net/ifname.c: Ditto.
10720         * libc/sys/linux/net/inet.3: Ditto.
10721         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
10722         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
10723         * libc/sys/linux/net/inet_addr.c: Ditto.
10724         * libc/sys/linux/net/inet_lnaof.c: Ditto.
10725         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
10726         * libc/sys/linux/net/inet_net.3: Ditto.
10727         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
10728         * libc/sys/linux/net/inet_net_pton.c: Ditto.
10729         * libc/sys/linux/net/inet_neta.c: Ditto.
10730         * libc/sys/linux/net/inet_netof.c: Ditto.
10731         * libc/sys/linux/net/inet_network.c: Ditto.
10732         * libc/sys/linux/net/inet_ntoa.c: Ditto.
10733         * libc/sys/linux/net/inet_ntop.c: Ditto.
10734         * libc/sys/linux/net/inet_pton.c: Ditto.
10735         * libc/sys/linux/net/innetgr-stub.c: Ditto.
10736         * libc/sys/linux/net/ip6opt.c: Ditto.
10737         * libc/sys/linux/net/iso_addr.3: Ditto.
10738         * libc/sys/linux/net/iso_addr.c: Ditto.
10739         * libc/sys/linux/net/issetugid-stub.c: Ditto.
10740         * libc/sys/linux/net/linkaddr.3: Ditto.
10741         * libc/sys/linux/net/linkaddr.c: Ditto.
10742         * libc/sys/linux/net/map_v4v6.c: Ditto.
10743         * libc/sys/linux/net/name6.c: Ditto.
10744         * libc/sys/linux/net/namespace.h: Ditto.
10745         * libc/sys/linux/net/ns.3: Ditto.
10746         * libc/sys/linux/net/ns_addr.c: Ditto.
10747         * libc/sys/linux/net/ns_name.c: Ditto.
10748         * libc/sys/linux/net/ns_netint.c: Ditto.
10749         * libc/sys/linux/net/ns_ntoa.c: Ditto.
10750         * libc/sys/linux/net/ns_parse.c: Ditto.
10751         * libc/sys/linux/net/ns_print.c: Ditto.
10752         * libc/sys/linux/net/ns_ttl.c: Ditto.
10753         * libc/sys/linux/net/nsap_addr.c: Ditto.
10754         * libc/sys/linux/net/nsdispatch.3: Ditto.
10755         * libc/sys/linux/net/nsdispatch.c: Ditto.
10756         * libc/sys/linux/net/nslexer.c: Ditto.
10757         * libc/sys/linux/net/nslexer.l: Ditto.
10758         * libc/sys/linux/net/nsparser.c: Ditto.
10759         * libc/sys/linux/net/nsparser.h: Ditto.
10760         * libc/sys/linux/net/nsparser.y: Ditto.
10761         * libc/sys/linux/net/rcmd.3: Ditto.
10762         * libc/sys/linux/net/rcmd.c: Ditto.
10763         * libc/sys/linux/net/rcmdsh.3: Ditto.
10764         * libc/sys/linux/net/rcmdsh.c: Ditto.
10765         * libc/sys/linux/net/recv.c: Ditto.
10766         * libc/sys/linux/net/res_comp.c: Ditto.
10767         * libc/sys/linux/net/res_config.h: Ditto.
10768         * libc/sys/linux/net/res_data.c: Ditto.
10769         * libc/sys/linux/net/res_debug.c: Ditto.
10770         * libc/sys/linux/net/res_init.c: Ditto.
10771         * libc/sys/linux/net/res_mkquery.c: Ditto.
10772         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10773         * libc/sys/linux/net/res_query.c: Ditto.
10774         * libc/sys/linux/net/res_send.c: Ditto.
10775         * libc/sys/linux/net/res_update.c: Ditto.
10776         * libc/sys/linux/net/resolver.3: Ditto.
10777         * libc/sys/linux/net/rthdr.c: Ditto.
10778         * libc/sys/linux/net/send.c: Ditto.
10779         * libc/sys/linux/net/un-namespace.h: Ditto.
10780         * libc/sys/linux/net/vars.c: Ditto.
10781         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10782         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10783         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10784         * libc/sys/linux/stdlib/cclass.h: Ditto.
10785         * libc/sys/linux/stdlib/cname.h: Ditto.
10786         * libc/sys/linux/stdlib/collate.c: Ditto.
10787         * libc/sys/linux/stdlib/collate.h: Ditto.
10788         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10789         * libc/sys/linux/stdlib/engine.c: Ditto.
10790         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10791         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10792         * libc/sys/linux/stdlib/glob.3: Ditto.
10793         * libc/sys/linux/stdlib/glob.c: Ditto.
10794         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10795         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10796         * libc/sys/linux/stdlib/regerror.c: Ditto.
10797         * libc/sys/linux/stdlib/regex.3: Ditto.
10798         * libc/sys/linux/stdlib/regex2.h: Ditto.
10799         * libc/sys/linux/stdlib/regexec.c: Ditto.
10800         * libc/sys/linux/stdlib/regfree.c: Ditto.
10801         * libc/sys/linux/stdlib/utils.h: Ditto.
10802         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10803         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10804         * libc/sys/linux/sys/dlfcn.h: Ditto.
10805         * libc/sys/linux/sys/elfclass.h: Ditto.
10806         * libc/sys/linux/sys/event.h: Ditto.
10807         * libc/sys/linux/sys/ioccom.h: Ditto.
10808         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10809         * libc/sys/linux/sys/link.h: Ditto.
10810         * libc/sys/linux/sys/lock.h: Ditto.
10811         * libc/sys/linux/sys/param.h: Ditto.
10812         * libc/sys/linux/sys/socket.h: Ditto.
10813         * libc/sys/linux/sys/sockio.h: Ditto.
10814
10815 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10816
10817         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10818         normal mode
10819         * newlib/libc/machine/h8300/memset.S: Likewise
10820         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10821         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10822         * newlib/lib/machine/h8300/setjmp.S: Likewise
10823         * newlib/lib/machine/h8300/strcmp.S: Likewise
10824         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10825
10826 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10827
10828         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10829         * libc/include/stdio.h: Ditto.
10830         * libc/include/sys/config.h: Ditto.
10831         * libc/stdio/mktemp.c: Ditto.
10832
10833 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10834
10835         * libc/locale/ldpart.c (__part_load_locale): Substitute
10836         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10837         * libc/search/hash.c (__hash_open): Ditto.
10838         (init_hash): Ditto.
10839         * libc/stdio/fseek.c (fseek): Ditto.
10840         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10841         * libc/stdio/mktemp.c (_gettemp): Ditto.
10842
10843 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10844
10845         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10846
10847 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10848
10849         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10850         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10851         if __CYGWIN_USE_BIG_TYPES__ is set.
10852         * libc/search/hash.c (__hash_open): Ditto.
10853         (init_hash): Ditto.
10854         * libc/stdio/fseek.c (fseek): Ditto.
10855         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10856         * libc/stdio/mktemp.c (_gettemp): Ditto.
10857         * libc/sys/cygwin/Makefile.am: Remove.
10858         * libc/sys/cygwin/Makefile.in: Remove.
10859         * libc/sys/cygwin/aclocal.m4: Remove.
10860         * libc/sys/cygwin/configure: Remove.
10861         * libc/sys/cygwin/configure.in: Remove.
10862         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10863         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10864         directory.
10865         * libc/sys/cygwin/sys/param.h: Ditto.
10866         * libc/sys/cygwin/sys/utime.h: Ditto.
10867         * libc/sys/cygwin/sys/utmp.h: Ditto.
10868
10869 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10870
10871         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10872
10873 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10874
10875         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10876         64 bit inodes.
10877
10878 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10879
10880         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10881         Include cygwin/config.h instead.
10882
10883 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10884
10885         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10886         all code with #ifdef __SPE__ test.
10887         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10888
10889 2003-04-15  Chris January <chris@atomice.net>
10890
10891         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10892         Cygwin.
10893
10894 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10895
10896         * libc/machine/sh/memset.S: Avoid clobbering volatile
10897         objects following a tiny to-be-set array in the same quadword.
10898
10899 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10900
10901         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10902         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10903         * libc/string/Makefile.in: Regenerated.
10904         * libc/string/wcswidth.c: New file.
10905         * libc/string/wcwidth.c: New file.
10906         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10907
10908 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10909
10910         * libc/machine/sh/memset.S: Fix problem with alloco region
10911         exceeding destination region for length >= 88 bytes, start
10912         & 0x16 == 0, end & 0x1f == 18.
10913
10914 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10915
10916         * libc/string/wcscoll.c: Fix comment.
10917
10918 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10919
10920         * libc/include/wchar.h: Add definition for wcscoll.
10921         * libc/string/Makefile.am: Add wcscoll.c.
10922         * libc/string/Makefile.in: Regenerated.
10923         * libc/string/wcscoll.c: New file.
10924         * libc/string/wcstrings.tex: Add wcscoll.
10925
10926 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10927
10928         * libc/stdio/sscanf.c: Update flags description.
10929         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10930         type.
10931         (__svfscanf_r): Add 'hh' and 'll' handling.
10932
10933 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10934
10935         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10936         __d_position member to _off_t.
10937
10938 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10939
10940         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10941         count all characters used to create number against maximum width.
10942         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10943
10944 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10945
10946         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10947         support.
10948         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10949         flag to support simulator only extensions.
10950
10951 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10952
10953         * libc/string/wcschr.c: (wcschr): Look for character first,
10954         then for end of string, so you can do wcschr(x, '\0').
10955
10956 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10957
10958         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10959         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10960         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10961         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10962         * libc/stdio/fseeko.c (fseeko): Ditto.
10963         * libc/stdio/ftello.c (ftello): Ditto.
10964         * libc/stdio/stdio.c (__swrite): Ditto.
10965         (__sseek): Ditto.
10966         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10967         * libc/stdio/fseek.c (fseek): Ditto.
10968         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10969         * libc/stdio/ftell.c (ftell): Ditto.
10970         * libc/stdio/local.h: Declare __sseek using _off_t.
10971
10972 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10973
10974         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10975
10976 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10977
10978         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10979         Cygwin.
10980
10981 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10982
10983         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10984         Cygwin.
10985         * libc/include/sys/stat.h: Ditto.
10986         * libc/include/sys/unistd.h: Ditto.
10987         * libc/sys/cygwin/sys/dirent.h: Ditto.
10988
10989 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10990
10991         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10992         declaration of getopt and avoid getopt_long declaration.
10993         * libc/sys/cygwin/include/unistd.h: Remove.
10994
10995 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10996
10997         * configure.host: Define stdio64_dir for Cygwin.
10998         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10999         Cygwin 64bit file access requirements.
11000         Drop definition of f*64() functions when compiled for Cygwin.
11001         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
11002         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
11003         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
11004
11005 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
11006
11007         * libc/include/sys/reent.h: Remove extraneous _sig_func
11008         declaration.
11009
11010 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
11011
11012         * libc/sys/h8300hms/Makefile.am: Add support for new files.
11013         * libc/sys/h8300hms/Makefile.in: Regenerated.
11014         * libc/sys/h8300hms/close.S: New file.
11015         * libc/sys/h8300hms/fstat.S: Ditto.
11016         * libc/sys/h8300hms/lseek.S: Ditto.
11017         * libc/sys/h8300hms/open.S: Ditto.
11018         * libc/sys/h8300hms/stat.S: Ditto.
11019         * libc/sys/h8300hms/read.S: New file to replace read.c.
11020         * libc/sys/h8300hms/read.c: Removed.
11021         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
11022         _lseek, _close, _stat, _fstat.
11023         * libc/sys/h8300hms/write.S: New file to replace write.c.
11024         * libc/sys/h8300hms/write.c: Removed.
11025
11026 2003-02-20  Nick Clifton  <nickc@redhat.com>
11027
11028         * Add support for Cirrus Maverick ARM co-processor:
11029
11030         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
11031
11032                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
11033                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
11034
11035         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
11036
11037                 * configure.host: set sys_dir, syscall_dir, and
11038                 newlib_cflags for ep9312 host.
11039
11040         * configure.host: Restore alpha sorting of entries in case
11041         statements.
11042
11043 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
11044
11045         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
11046
11047 2003-02-18  Christian Groessler  <chris@groessler.org>
11048
11049         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
11050         support z8001 segmented mode.
11051
11052 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
11053
11054         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
11055         with a NULL value.
11056
11057 2003-02-10  Christopher Faylor  <cgf@redhat.com>
11058
11059         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
11060         Don't define some types under cygwin.
11061
11062 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
11063
11064         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
11065         option to allow disabling of syscalls being supplied in newlib.
11066         * aclocal.m4: Regenerated.
11067         * configure: Ditto.
11068         * configure.host: Add support of new configuration option and add
11069         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
11070         * doc/aclocal.m4: Regenerated.
11071         * doc/configure: Ditto.
11072         * libc/*aclocal.m4: Ditto.
11073         * libc/*configure: Ditto.
11074         * libm/*aclocal.m4: Ditto.
11075         * libm/*configure: Ditto.
11076         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
11077         is disabled.
11078         * libc/sys/arm/Makefile.in: Regenerated.
11079
11080 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
11081
11082         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
11083         -1 to be sure it cannot later match a valid file fd causing
11084         isatty() to return 1.
11085         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
11086         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
11087         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
11088
11089 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
11090
11091         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
11092         buffer based on the precision, after we have processed the input value
11093         in a local buffer and know its relative magnitude.
11094
11095 2003-01-31  Michael Snyder  <msnyder@redhat.com>
11096
11097         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
11098         into registers r1 and r2, so that the simulator can distinguish
11099         this trap from a breakpoint trap.  Copied from libgloss.
11100
11101 2003-01-31  Michael Snyder  <msnyder@redhat.com>
11102
11103         * libc/sys/h8300hms/crt0.S (_start): Change local label
11104         from .loop to .Loop, so that ld and gdb will ignore it.
11105
11106 2003-01-29  Jason Tishler  <jason@tishler.net>
11107
11108         * libc/include/time.h: Declare nanosleep() under Cygwin.
11109
11110 2003-01-24  Nick Clifton  <nickc@redhat.com>
11111
11112         * Add sh2e support:
11113
11114         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
11115
11116                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
11117                 * libc/machine/sh/setjmp.S: Likewise.
11118                 * libc/include/machine/ieeefp.h: Likewise.
11119
11120 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
11121
11122         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
11123         for Cygwin.
11124
11125 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
11126
11127         * libc/time/difftime.c : Typecast the result to double.
11128
11129 2003-01-20  Christopher Faylor  <cgf@redhat.com>
11130
11131         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
11132
11133 2003-01-18  Nick Clifton  <nickc@redhat.com>
11134
11135         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
11136         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
11137
11138 2003-01-16  Joel Sherrill <joel@OARcorp.com>
11139
11140         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
11141         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
11142         constants are defined in each file in the shared versions in
11143         libc/include.
11144         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
11145         autoconf can link programs.
11146         * libc/include/machine/types.h: Explicitly specify signed on
11147         intXX_t types to ensure they are signed.
11148
11149 2003-01-14  Christopher Faylor  <cgf@redhat.com>
11150
11151         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
11152         extensions.
11153
11154 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
11155
11156         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
11157
11158 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
11159
11160         * libc/stdio/sprintf.c: fix typo
11161         * libc/stdio/vfprintf.c: fix typo
11162
11163 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
11164
11165         * configure.host: Support long double I/O for x86-linux.
11166         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
11167         large enough to hold formatted result.
11168         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
11169
11170 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
11171
11172         * Makefile.am: Add vasprintf.
11173         * Makefile.in: Regenerated.
11174
11175 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
11176
11177         * asprintf.c (_asprintf_r): insure both declarations
11178         are the same.
11179
11180 2002-12-28  Christopher Faylor  <cgf@redhat.com>
11181
11182         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
11183         than defining getopt directly.
11184
11185 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11186
11187         * NEWS: Update with 1.11.0 info.
11188         * README: Ditto.
11189         * acinclude.m4: Change version number to 1.11.0.
11190         * aclocal.m4: Regenerated.
11191         * configure: Ditto.
11192         * doc/aclocal.m4: Ditto.
11193         * doc/configure: Ditto.
11194         * libc/*/aclocal.m4: Ditto.
11195         * libc/*/configure: Ditto.
11196         * libc/libc.texinfo: Ditto.
11197         * libm/*/aclocal.m4: Ditto.
11198         * libm/*/configure: Ditto.
11199         * libm/libm.texinfo: Ditto.
11200         * libc/sys/linux/shared.ld: Add VERS_1.11.
11201
11202 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11203
11204         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
11205         Solutions to Red Hat Inc.
11206         * libc/machine/i386/f_atan2f.S: Ditto.
11207         * libc/machine/i386/f_exp.c: Ditto.
11208         * libc/machine/i386/f_expf.c: Ditto.
11209         * libc/machine/i386/f_frexp.S: Ditto.
11210         * libc/machine/i386/f_frexpf.S: Ditto.
11211         * libc/machine/i386/f_ldexp.S: Ditto.
11212         * libc/machine/i386/f_ldexpf.S: Ditto.
11213         * libc/machine/i386/f_log.S: Ditto.
11214         * libc/machine/i386/f_log10.S: Ditto.
11215         * libc/machine/i386/f_log10f.S: Ditto.
11216         * libc/machine/i386/f_logf.S: Ditto.
11217         * libc/machine/i386/f_pow.c: Ditto.
11218         * libc/machine/i386/f_powf.c: Ditto.
11219         * libc/machine/i386/f_tan.S: Ditto.
11220         * libc/machine/i386/f_tanf.S: Ditto.
11221         * libc/machine/i386/memchr.S: Ditto.
11222         * libc/machine/i386/memcmp.S: Ditto.
11223         * libc/machine/i386/memcpy.S: Ditto.
11224         * libc/machine/i386/memmove.S: Ditto.
11225         * libc/machine/i386/memset.S: Ditto.
11226         * libc/machine/i386/strchr.S: Ditto.
11227         * libc/machine/i386/strlen.S: Ditto.
11228         * libm/machine/i386/f_atan2.S: Ditto.
11229         * libm/machine/i386/f_atan2f.S: Ditto.
11230         * libm/machine/i386/f_exp.c: Ditto.
11231         * libm/machine/i386/f_expf.c: Ditto.
11232         * libm/machine/i386/f_frexp.S: Ditto.
11233         * libm/machine/i386/f_frexpf.S: Ditto.
11234         * libm/machine/i386/f_ldexp.S: Ditto.
11235         * libm/machine/i386/f_ldexpf.S: Ditto.
11236         * libm/machine/i386/f_log.S: Ditto.
11237         * libm/machine/i386/f_log10.S: Ditto.
11238         * libm/machine/i386/f_log10f.S: Ditto.
11239         * libm/machine/i386/f_logf.S: Ditto.
11240         * libm/machine/i386/f_pow.c: Ditto.
11241         * libm/machine/i386/f_powf.c: Ditto.
11242         * libm/machine/i386/f_tan.S: Ditto.
11243         * libm/machine/i386/f_tanf.S: Ditto.
11244
11245 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
11246
11247         * libc/stdlib/environ.c: Update license to Red Hat.
11248         * libc/machine/hppa/setjmp.S: Ditto.
11249         * libm/test/Makefile.in: Ditto.
11250
11251 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
11252
11253         * configure.host: Remove references to go32.
11254         * libc/sys/go32/*: Removed.
11255
11256 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
11257
11258         * libc/include/sys/config.h: Change setting of INT_MAX
11259         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
11260         __H8300S__.  Also consolidate flag settings for these
11261         platforms.
11262
11263 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
11264
11265         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
11266         for i386-rtems targets.
11267
11268 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
11269
11270         * libc/include/stdlib.h (strtof): New prototype (from C99).
11271         (strtodf): Changed from prototype to macro which redefines
11272         to strtof.
11273         * libc/stdlib/atof.c: Change documentation to refer to strtof
11274         instead of strtodf.
11275         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
11276         strtodf.
11277         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
11278         (strtof): New function.
11279         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
11280         calls strtof.
11281
11282 2002-11-27  Christopher Faylor  <cgf@redhat.com>
11283
11284         * libc/string/memset.c (memset): Fix comment.
11285
11286 2002-11-26  Christopher Faylor  <cgf@redhat.com>
11287
11288         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
11289         function.
11290
11291 2002-11-25  Christopher Faylor  <cgf@redhat.com>
11292
11293         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
11294         variable, introduced below, everywhere.
11295
11296 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
11297
11298         * libc/string/memset.c (memset): Make it safe even if
11299         sizeof (int) = 2.
11300
11301 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
11302
11303         * configure.in: Change check for libc/include in ${CC} to
11304         use an intermediate value so as to work with different shells.
11305         * configure: Regenerated.
11306         * Makefile.in: Ditto.
11307
11308 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
11309
11310         * libc/sys/h8300hms/read.c: Add support for normal mode
11311         architecture.
11312
11313 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
11314
11315         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
11316         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
11317         when -mint32 is used.
11318
11319 2002-11-18  Nick Clifton  <nickc@redhat.com>
11320
11321         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
11322
11323 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
11324
11325         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
11326         only issue one pass/fail message for a compile/link/execute.
11327         * testsuite/newlib.elix/elix.exp: New file.
11328         * testsuite/newlib.elix/tmmap.c: Ditto.
11329
11330 2002-11-06  Christopher Faylor  <cgf@redhat.com>
11331
11332         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
11333         * libc/stdlib/mlock.c: Ditto.
11334         * libc/stdlib/msize.c: Ditto.
11335         * libc/stdlib/msize.c: Ditto.
11336         * libc/stdlib/mtrim.c: Ditto.
11337         * libc/stdlib/valloc.c: Ditto.
11338
11339 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
11340
11341         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
11342         for inf/nan, make sure that the check ignores the sign bit.
11343
11344 2002-11-07  Joel Sherrill <joel@OARcorp.com>
11345
11346         * libc/sys/rtems/machine: New directory.
11347         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
11348         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
11349         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
11350         targets more BSD like when installed without requiring files to
11351         be overwritten at install point when RTEMS itself is installed.
11352         * Makefile.am: Pick up system dependent machine .h files such as
11353         might be found on a BSD-ish system.
11354         * Makefile.in: Regenerate.
11355         * libc/include/machine/types.h: When on an RTEMS target, define a
11356         few BSD flavor types.
11357
11358 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
11359
11360         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
11361
11362 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11363
11364         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
11365         * libc/include/wctype.h: Ditto.
11366
11367 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
11368
11369         * libc/include/wchar.h: Add extern "C" specifier if C++.
11370         * libc/include/wctype.h: Ditto.
11371
11372 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
11373
11374         * testsuite/newlib.wctype/tiswctype.c: New test case.
11375         * testsuite/newlib.wctype/twctrans.c: Ditto.
11376
11377 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
11378
11379         * libc/sys/linux/machine/i386/include/endian.h: New file.
11380         * libc/sys/linux/machine/i386/include/param.h: Ditto.
11381
11382 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
11383
11384         * libm/machine/i386/aclocal.m4: Regenerated.
11385         * libm/machine/i386/configure: Ditto.
11386
11387 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
11388
11389         * testsuite/include/check.h: New header file to use with
11390         test cases.
11391         * testsuite/lib/newlib.exp: Add testsuite/include directory
11392         to list of header files to use.
11393         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
11394         * testsuite/newlib.wctype/wctype.exp: New file.
11395
11396 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
11397             Richard Sandiford  <rsandifo@redhat.com>
11398
11399         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
11400         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
11401         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
11402
11403 2002-10-07      Joel Sherrill <joel@OARcorp.com>
11404
11405         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
11406         dummy programs.
11407
11408 2002-10-07      Joel Sherrill <joel@OARcorp.com>
11409
11410         * libc/include/pthread.h: Define PTHREAD_CANCELED.
11411
11412 2002-10-07      Joel Sherrill <joel@OARcorp.com>
11413
11414         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
11415         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
11416         compile with current GNU tools.
11417
11418 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
11419
11420         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
11421         the build library.
11422         * configure.in: Ditto.
11423         * Makefile.in: Regenerated.
11424         * configure: Ditto.
11425         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
11426         for specifying configured libraries/directories.
11427         * libc/sys/linux/configure.in: Ditto.
11428         * libc/sys/linux/Makefile.in: Regenerated.
11429         * libc/sys/linux/configure: Ditto.
11430
11431 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
11432
11433         * libc/include/reent.h: Update documentation at start of file.
11434
11435 2002-09-27  Jim Wilson  <wilson@redhat.com>
11436
11437         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
11438         the ctbp register.
11439
11440 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
11441
11442         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
11443         Also convert to EUCJP before using arrays.  For values not in
11444         the conversion arrays, return WEOF.
11445         * libc/ctype/jp2uc.h: Change from one array to a number of
11446         arrays to account for the fact that the originating table
11447         is not contiguous for the input values since some are invalid.
11448
11449 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
11450
11451         * libc/time/ctime.c: Fix prototype documentation.
11452
11453 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
11454
11455         * libc/include/sys/errno.h: Add EOVERFLOW.
11456
11457 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
11458
11459         * libc/include/wctype.h: New file.
11460
11461 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
11462
11463         * libc/ctype/Makefile.am: Add new files.
11464         * libc/ctype/Makefile.in: Regenerated.
11465         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
11466         and wctrans functions to documentation index.
11467         * libc/ctype/iswalnum.c: New file.
11468         * libc/ctype/iswalpha.c: Ditto.
11469         * libc/ctype/iswblank.c: Ditto.
11470         * libc/ctype/iswcntrl.c: Ditto.
11471         * libc/ctype/iswctype.c: Ditto.
11472         * libc/ctype/iswdigit.c: Ditto.
11473         * libc/ctype/iswgraph.c: Ditto.
11474         * libc/ctype/iswlower.c: Ditto.
11475         * libc/ctype/iswprint.c: Ditto.
11476         * libc/ctype/iswpunct.c: Ditto.
11477         * libc/ctype/iswspace.c: Ditto.
11478         * libc/ctype/iswupper.c: Ditto.
11479         * libc/ctype/iswxdigit.c: Ditto.
11480         * libc/ctype/jp2uc.c: Ditto.
11481         * libc/ctype/jp2uc.h: Ditto.
11482         * libc/ctype/local.h: Ditto.
11483         * libc/ctype/towctrans.c: Ditto.
11484         * libc/ctype/towlower.c: Ditto.
11485         * libc/ctype/towupper.c: Ditto.
11486         * libc/ctype/utf8alpha.h: Ditto.
11487         * libc/ctype/utf8print.h: Ditto.
11488         * libc/ctype/utf8punct.h: Ditto.
11489         * libc/ctype/wctrans.c: Ditto.
11490         * libc/ctype/wctype.c: Ditto.
11491         * libc/locale/locale.c (__lc_ctype): New external array to
11492         replace static lc_ctype array.
11493         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
11494         rather than reentrancy structure's _current_locale field.
11495         * libc/stdlib/wctomb_r.c: Ditto.
11496
11497 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
11498
11499         * configure.host: Minor comment and formatting changes.
11500         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
11501         * libc/Makefile.in: Regenerated.
11502         * libc/include/sys/config.h: Minor format change.
11503
11504 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
11505
11506         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
11507         statement comment.
11508
11509 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
11510
11511         * libc/posix/opendir.c (opendir): Change code to check
11512         for HAVE_FCNTL before calling fcntl.
11513         * libc/search/hash.c (hash_open): Ditto.
11514         * libc/search/hash_page.c (open_tmp): Ditto.
11515         * libc/reent/Makefile.am: Add fcntlr.c.
11516         * libc/reent/Makefile.in: Regenerated.
11517         * libc/reent/fcntlr.c: New file.
11518         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
11519         instead of _fcntl when HAVE_FCNTL flag is set.
11520         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
11521         to see if _fcntl or _fcntl_r should be called.  If flag is not
11522         set, default to ENOSYS stub.
11523
11524 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
11525
11526         * libc/include/wchar.h (mbstate_t): Change protective flag to
11527         be _MBSTATE_T.
11528         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
11529         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
11530         for Cygwin.
11531         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
11532
11533 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
11534
11535         * acinclude.m4 (enable-newlib-mb): Change check to
11536         default newlib_mb variable to empty string rather than "no".
11537         * configure.host: Remove hard-coding of -DMB_CAPABLE for
11538         x86-linux and Cygwin.  Add code to check for newlib_mb
11539         being unset in which case set to "yes" for x86-linux and
11540         Cygwin.  Change check for newlib_mb being "yes" to allow
11541         for an empty string.
11542         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
11543         * newlib.hin (_MB_LEN_MAX): New define to configure.
11544         * aclocal.m4: Regenerated.
11545         * configure: Ditto.
11546         * libc/include/limits.h: New file.
11547         * libc/sys/linux/include/limits.h: Ditto.
11548         * doc/aclocal.m4 doc/configure libc/aclocal.m4
11549           libc/configure libc/machine/aclocal.m4
11550           libc/machine/configure libc/machine/a29k/aclocal.m4
11551           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
11552           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
11553           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
11554           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
11555           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
11556           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
11557           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
11558           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
11559           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
11560           libc/machine/i386/configure libc/machine/i960/aclocal.m4
11561           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
11562           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
11563           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
11564           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
11565           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
11566           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
11567           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
11568           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
11569           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
11570           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
11571           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
11572           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
11573           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
11574           libc/machine/v850/configure libc/machine/w65/aclocal.m4
11575           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
11576           libc/machine/xscale/configure
11577           libc/machine/xstormy16/aclocal.m4
11578           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
11579           libc/machine/z8k/configure libc/sys/aclocal.m4
11580           libc/sys/configure libc/sys/a29khif/aclocal.m4
11581           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
11582           libc/sys/arc/configure libc/sys/arm/aclocal.m4
11583           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
11584           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
11585           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
11586           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
11587           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
11588           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
11589           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
11590           libc/sys/idt/configure libc/sys/linux/aclocal.m4
11591           libc/sys/linux/configure
11592           libc/sys/linux/machine/aclocal.m4
11593           libc/sys/linux/machine/configure
11594           libc/sys/linux/machine/i386/aclocal.m4
11595           libc/sys/linux/machine/i386/configure
11596           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
11597           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
11598           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
11599           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
11600           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
11601           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
11602           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
11603           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
11604           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
11605           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
11606           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
11607           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
11608           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
11609           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
11610           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
11611           libm/aclocal.m4 libm/configure: Regenerated.
11612
11613 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11614
11615         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
11616         code that clears the .bss section.
11617
11618 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
11619
11620         * libc/include/sys/_types.h (_mbstate_t): Changed to use
11621         unsigned char internally.
11622         * libc/sys/linux/sys/_types.h: Ditto.
11623         * libc/include/sys/reent.h
11624         * libc/stdlib/mblen.c (mblen): Use function-specific state
11625         value from default reentrancy structure.
11626         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
11627         _mbtowc_r is less than 0, reset state __count value and
11628         return -1.
11629         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
11630         is NULL, use the function-specific pointer provided in the
11631         default reentrancy structure.
11632         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
11633         If input state pointer is NULL, use function-specific area
11634         provided in reentrancy structure.
11635         * libc/stdlib/mbsrtowcs.c: Ditto.
11636         * libc/stdlib/wcrtomb.c: Ditto.
11637         * libc/stdlib/wcsrtombs.c: Ditto.
11638         * libc/stdlib/mbstowcs.c: Reformat.
11639         * libc/stdlib/wcstombs.c: Ditto.
11640         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
11641         reset the state's __count value and return -1.
11642         * libc/stdlib/mbtowc.c: Ditto.
11643         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
11644         If number of bytes is used up before completing a valid multibyte
11645         character, return -2 and save the state.
11646         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
11647         and change some __count references to __state for clarity.
11648
11649 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
11650
11651         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
11652         is defined by <limits.h>.
11653
11654 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11655
11656         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
11657         defined.
11658
11659 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11660
11661         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
11662         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
11663         __WCHAR_MAX__ or 0x7fffffffu.
11664         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
11665         * libc/string/wcsncmp.c: Ditto.
11666
11667 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11668
11669         * libc/string/wcschr.c: Add include of <stddef.h>.
11670         * libc/string/wcspbrk.c: Ditto.
11671         * libc/string/wcsrchr.c: Ditto.
11672         * libc/string/wcsstr.c: Ditto.
11673
11674 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11675
11676         * libc/include/sys/_types.h (_flock_t): Added.
11677         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
11678         (__lock_try_acquire_recursive): Ditto.
11679         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
11680         _lock field.
11681         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
11682         field.
11683         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
11684         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
11685         * libc/sys/linux/include/time.h (struct timespec): Moved from
11686         <sys/types.h> and added check for __need_timespec flag so type
11687         can be defined by itself.
11688         * libc/sys/linux/sys/_types.h (_flock_t): New type.
11689         * libc/sys/linux/sys/types.h (struct timespec): Moved to
11690         <time.h>.
11691
11692 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
11693
11694         * libc/sys/linux/argp: New directory.
11695         * libc/sys/linux/getopt.c: New file.
11696         * libc/sys/linux/getopt1.c: New file.
11697         * libc/sys/linux/getoptlong.c: Remove file.
11698         * libc/sys/linux/include/argp.h: New file.
11699         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
11700         based on ELIX level.
11701         (SUBDIRS): Add argp_dir.
11702         (SUBLIBS): Add ARGP_LIB.
11703         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
11704         getopt_long.$(oext).
11705         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
11706
11707 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11708
11709         * libc/libc.texinfo: Add node reference to wide-character strings.
11710         * libc/string/wcstrings.tex: New file.
11711         * libc/string/strtok_r.c: Remove outdated advertising clause.
11712         * libc/string/Makefile.am (doc): Add wide-character string
11713         chapter to documentation.
11714         * libc/string/Makefile.in: Regenerated.
11715
11716 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11717
11718         * libc/include/wchar.h: Define NULL. Define WEOF more general
11719         way. Declare functions in newlib manner.
11720         * libc/stdlib/Makefile.am: Delete wmem*.c
11721         * libc/stdlib/Makefile.in: Regenerated.
11722         * libc/stdlib/wmemchr.c: Delete.
11723         * libc/stdlib/wmemcmp.c: Ditto.
11724         * libc/stdlib/wmemcpy.c: Ditto.
11725         * libc/stdlib/wmemmove.c: Ditto.
11726         * libc/stdlib/wmemset.c: Ditto.
11727         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
11728         * libc/string/Makefile.in: Regenerated.
11729         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
11730         * libc/string/wcschr.c: Ditto.
11731         * libc/string/wcscmp.c: Ditto.
11732         * libc/string/wcscpy.c: Ditto.
11733         * libc/string/wcscspn.c: Ditto.
11734         * libc/string/wcslcat.c: Ditto.
11735         * libc/string/wcslcpy.c: Ditto.
11736         * libc/string/wcslen.c: Ditto.
11737         * libc/string/wcsncat.c: Ditto.
11738         * libc/string/wcsncmp.c: Ditto.
11739         * libc/string/wcsncpy.c: Ditto.
11740         * libc/string/wcspbrk.c: Ditto.
11741         * libc/string/wcsrchr.c: Ditto.
11742         * libc/string/wcsspn.c: Ditto.
11743         * libc/string/wcsstr.c: Ditto.
11744         * libc/string/wmemchr.c: Ditto.
11745         * libc/string/wmemcmp.c: Ditto.
11746         * libc/string/wmemcpy.c: Ditto.
11747         * libc/string/wmemmove.c: Ditto.
11748         * libc/string/wmemset.c: Ditto.
11749
11750 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11751
11752         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
11753         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
11754         and is treated as if "C" was specified.
11755
11756 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11757
11758         * Makefile.am (install-data-local): Move install of build
11759         newlib.h after installing headers in libc/include so as to
11760         overwrite default newlib.h.
11761         * Makefile.in: Regenerated.
11762
11763 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11764
11765         * libc/include/newlib.h: New file for tools that use newlib
11766         headers but don't build newlib first (e.g. gcc).
11767
11768 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11769
11770         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
11771         * libc/stdlib/wmemcmp.c: Ditto.
11772         * libc/stdlib/wmemcpy.c: Ditto.
11773         * libc/stdlib/wmemmove.c: Ditto.
11774         * libc/stdlib/wmemset.c: Ditto.
11775
11776 2002-08-27  Egor Duda  <deo@logos-m.ru>
11777
11778         * libc/stdlib/wmemchr.c: New file.
11779         * libc/stdlib/wmemcmp.c: Ditto.
11780         * libc/stdlib/wmemcpy.c: Ditto.
11781         * libc/stdlib/wmemmove.c: Ditto.
11782         * libc/stdlib/wmemset.c: Ditto.
11783         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11784         * configure.host: Default -DMB_CAPABLE for cygwin.
11785         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11786         wmemmove() and wmemset().  Add include of <_ansi.h>.
11787         * libc/stdlib/Makefile.in: Regenerate.
11788
11789 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11790
11791         * configure.host: Remove _ELIX_LEVEL flag setting.
11792         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11793         (install-data-local): Install newlib.h.
11794         * Makefile.in: Regenerated.
11795         * aclocal.m4: Ditto.
11796         * configure: Ditto.
11797         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11798         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11799         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11800         In AC_OUTPUT statement, unset ac_file so multilib support does
11801         not use last ac_file temporary used in newlib.h configuration.
11802         * libc/include/_ansi.h: Include <newlib.h>.
11803         * newlib.hin: New template file for newlib.h.
11804         * stamp-h.in: New file.
11805
11806 2002-08-26  Wu Yongwei <adah@netstd.com>
11807
11808         * time.h (timezonevar): Change "#if" to "#ifdef".
11809
11810 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11811
11812         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11813         * Makefile.in: Regenerated.
11814         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11815         * aclocal.m4: Regenerated.
11816         * configure: Ditto.
11817         * configure.host: Add code to define _ELIX_LEVEL if
11818         --enable-newlib-elix-level option is used.
11819         * configure.in:
11820         * libc/aclocal.m4: Regenerated.
11821         * libc/configure: Ditto.
11822         * libc/argz/Makefile.am: Add EL/IX level checking.
11823         * libc/argz/Makefile.in: Regenerated.
11824         * libc/argz/dummy.c: New file.
11825         * libc/ctype/Makefile.am: Add EL/IX level checking.
11826         * libc/ctype/Makefile.in: Regenerated.
11827         * libc/locale/Makefile.am: Add EL/IX level checking.
11828         * libc/locale/Makefile.in: Regenerated.
11829         * libc/posix/Makefile.am: Add EL/IX level checking.
11830         * libc/posix/Makefile.in: Regenerated.
11831         * libc/posix/telldir.c: Add EL/IX level checking.
11832         * libc/reent/Makefile.am: Ditto.
11833         * libc/reent/fstat64r.c: Ditto.
11834         * libc/reent/lseek64r.c: Ditto.
11835         * libc/reent/open64r.c: Ditto.
11836         * libc/reent/Makefile.in: Regenerated.
11837         * libc/search/Makefile.am: Add EL/IX level checking.
11838         * libc/search/Makefile.in: Regenerated.
11839         * libc/stdio/Makefile.am: Add EL/IX level checking.
11840         * libc/stdio/Makefile.in: Regenerated.
11841         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11842         * libc/stdio64/Makefile.in: Regenerated.
11843         * libc/stdio64/dummy.c: New file.
11844         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11845         after first include.
11846         * libc/stdio64/fopen64.c: Ditto.
11847         * libc/stdio64/freopen64.c: Ditto.
11848         * libc/stdio64/fseeko64.c: Ditto.
11849         * libc/stdio64/fsetpos64.c: Ditto.
11850         * libc/stdio64/ftello64.c: Ditto.
11851         * libc/stdio64/tmpfile64.c: Ditto.
11852         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11853         * libc/stdlib/Makefile.in: Regenerated.
11854         * libc/stdlib/mstats.c: Add EL/IX level checking.
11855         * libc/string/Makefile.am: Ditto.
11856         * libc/string/Makefile.in: Regenerated.
11857         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11858         * libc/sys/linux/Makefile.in: Regenerated.
11859         * libc/sys/linux/aclocal.m4: Ditto.
11860         * libc/sys/linux/configure: Ditto.
11861         * libc/sys/linux/aio.c: Add EL/IX level checking.
11862         * libc/sys/linux/ftok.c: Ditto.
11863         * libc/sys/linux/getdate.c: Ditto.
11864         * libc/sys/linux/ids.c: Ditto.
11865         * libc/sys/linux/inode.c: Ditto.
11866         * libc/sys/linux/io.c: Ditto.
11867         * libc/sys/linux/process.c: Ditto.
11868         * libc/sys/linux/resource.c: Ditto.
11869         * libc/sys/linux/sched.c: Ditto.
11870         * libc/sys/linux/sig.c: Ditto.
11871         * libc/sys/linux/termios.c: Ditto.
11872         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11873         __libc___waitpid weak aliases.
11874         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11875         that generate the code for a syscall, but do not create a
11876         weak alias.
11877         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11878         * libc/syscalls/Makefile.in: Regenerated.
11879         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11880         functionality.
11881         * libc/unix/Makefile.am: Add EL/IX level checking.
11882         * libc/unix/Makefile.in: Regenerated.
11883
11884 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11885
11886         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11887         wrapper macros to standard malloc functions.
11888         * libc/include/stdlib.h: Ditto.
11889         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11890
11891 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11892
11893         * libc/include/langinfo.h: New file.
11894         * libc/include/wchar.h: Likewise.
11895         * libc/include/sys/syslimits.h: Likewise.
11896         * libc/locale/fix_grouping.c: Likewise.
11897         * libc/locale/ldpart.c: Likewise.
11898         * libc/locale/ldpart.h: Likewise.
11899         * libc/locale/lmessages.c: Likewise.
11900         * libc/locale/lmessages.h: Likewise.
11901         * libc/locale/lmonetary.c: Likewise.
11902         * libc/locale/lmonetary.h: Likewise.
11903         * libc/locale/lnumeric.c: Likewise.
11904         * libc/locale/lnumeric.h: Likewise.
11905         * libc/locale/nl_langinfo.3: Likewise.
11906         * libc/locale/nl_langinfo.c: Likewise.
11907         * libc/locale/timelocal.c: Likewise.
11908         * libc/locale/timelocal.h: Likewise.
11909         * libc/stdlib/btowc.c: Likewise.
11910         * libc/stdlib/mbrlen.c: Likewise.
11911         * libc/stdlib/mbrtowc.c: Likewise.
11912         * libc/stdlib/mbsinit.c: Likewise.
11913         * libc/stdlib/mbsrtowcs.c: Likewise.
11914         * libc/stdlib/wcrtomb.c: Likewise.
11915         * libc/stdlib/wcsrtombs.c: Likewise.
11916         * libc/stdlib/wctob.c: Likewise.
11917         * libc/sys/linux/prof-freq.c: Likewise.
11918         * libc/sys/linux/profile.c: Likewise.
11919         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11920         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11921         * libc/include/stdlib.h: Change re-entrant functions to take
11922         mbstate_t pointers.
11923         * libc/include/sys/_types.h: Define _mbstate_t.
11924         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11925         * libc/include/sys/errno.h (EILSEQ): New error code.
11926         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11927         structure to use mbstate_t.
11928         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11929         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11930         * libc/machine/powerpc/vfscanf.c: Likewise.
11931         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11932         * libc/stdio/vfprintf.c: Likewise.
11933         * libc/stdio/vfscanf.c: Likewise.
11934         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11935         * libc/stdlib/mblen.c: Use mbstate_t.
11936         * libc/stdlib/mblen_r.c: Likewise.
11937         * libc/stdlib/mbstowcs.c: Likewise.
11938         * libc/stdlib/mbstowcs_r.c: Likewise.
11939         * libc/stdlib/mbtowc.c: Likewise.
11940         * libc/stdlib/mbtowc_r.c: Likewise.
11941         * libc/stdlib/wcstombs.c: Likewise.
11942         * libc/stdlib/wcstombs_r.c: Likewise.
11943         * libc/stdlib/wctomb_r.c: Likewise.
11944         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11945         profile.c.
11946         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11947         dl-procinfo.c.
11948         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11949         * libc/sys/linux/sys/types.h (off_t): Define type.
11950         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11951         to C-UTF-8.
11952         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11953
11954 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11955
11956         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11957           (AlignPage): Continue macro on next line.
11958
11959 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11960
11961         * libc/sys/linux/include/pthread.h: New file.
11962
11963 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11964
11965         * libc/include/sys/types.h: Support __need_inttypes macro
11966         that only sets the __intxx and __uintxx types.
11967         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11968         to get mprec.h.
11969         * libc/machine/powerpc/Makefile.in: Regenerated.
11970         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11971         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11972         redundant fixed-point conversion prototypes.
11973         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11974         after setting __need_inttypes.
11975
11976 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11977
11978         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11979
11980 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11981
11982         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11983         _LONG_DOUBLE to double.
11984
11985 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11986
11987         * configure.host: Add powerpc*-*-eabispe* configuration.
11988         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11989         * libc/machine/powerpc/atosfix32.c: Ditto.
11990         * libc/machine/powerpc/atosfix64.c: Ditto.
11991         * libc/machine/powerpc/atoufix16.c: Ditto.
11992         * libc/machine/powerpc/atoufix32.c: Ditto.
11993         * libc/machine/powerpc/atoufix64.c: Ditto.
11994         * libc/machine/powerpc/fix64.h: Ditto.
11995         * libc/machine/powerpc/simdldtoa.c: Ditto.
11996         * libc/machine/powerpc/strtosfix16.c: Ditto.
11997         * libc/machine/powerpc/strtosfix32.c: Ditto.
11998         * libc/machine/powerpc/strtosfix64.c: Ditto.
11999         * libc/machine/powerpc/strtoufix16.c: Ditto.
12000         * libc/machine/powerpc/strtoufix32.c: Ditto.
12001         * libc/machine/powerpc/strtoufix64.c: Ditto.
12002         * libc/machine/powerpc/ufix64toa.c: Ditto.
12003         * libc/machine/powerpc/configure.in: Add check for
12004         powerpc*-eabispe and add fixed-point conversion functions.
12005         * libc/machine/powerpc/configure: Regenerated.
12006         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
12007         %r and %R format specifiers which handle fixed-point data.
12008         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
12009         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
12010         function prototypes.
12011
12012 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
12013
12014         *  Makefile.am: Move cmath stuff into libc/sys/linux.
12015         *  Makefile.in: Regenerated.
12016         *  configure.host: Default -DMB_CAPABLE for x86-linux.
12017         *  libc/include/reent.h: Define _sbrk to take signed int argument.
12018         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
12019         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
12020         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
12021         locale for LC_CTYPE and LC_MESSAGES.
12022         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
12023         *  libc/sys/linux/brk.c: Change sbrk prototype.
12024         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
12025         include <sys/features.h>.
12026         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
12027         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
12028         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
12029         with a few local additions.
12030         *  libc/sys/linux/sys/features.h: New file.
12031         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
12032         to take signed argument.
12033         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
12034         prototypes to take signed size argument.
12035
12036 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
12037
12038         * libc/sys/linux/cmath: New directory.
12039         * libc/sys/linux/include/cmathcalls.h: New file.
12040         * libc/sys/linux/include/complex.h: New file.
12041         * libc/sys/linux/machine/i386/huge_val.h: New file
12042         * libm/math/w_sincos.c: New file
12043         * libm/math/wf_sincos.c: New file
12044         * libm/mathfp/s_sincos.c: New file
12045         * libm/mathfp/sf_sincos.c: New file
12046         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
12047         * libc/include/math.h: Add sincos and sincosf declarations.
12048         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
12049         (SUBLIBS): Likewise.
12050         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
12051         * libm/math/Makefile.am (src): Add w_sincos.c.
12052         (fsrc): Add wf_sincos.c.
12053         * libm/mathfp/Makefile.am (src): Add s_sincos.c
12054         (fsrc): Add sf_sincos.c.
12055
12056 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
12057
12058         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
12059         Declare as extern chars and use the address operator to
12060         properly use values set in linker script.
12061
12062 2002-08-09  Jason Tishler  <jason@tishler.net>
12063
12064         * libc/stdlib/mallocr.c: Include <limits.h>.
12065         (request2size): Change macro to do
12066         unsigned long comparisons and avoid signed overflow.
12067         (mALLOc): Add overflow check for the number of bytes to allocate.
12068         (rEALLOc): Ditto.
12069
12070 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
12071
12072         * configure.host: Add check for --enable-newlib-io-pos-args
12073         and define WANT_IO_POS_ARGS flag if enabled.  Define
12074         the flag by default for x86-linux configurations.
12075         * configure.in: Add support for --enable-newlib-io-pos-args.
12076         * libc/configure.in: Ditto.
12077         * configure: Regenerated.
12078         * libc/configure: Ditto.
12079         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
12080         vfprintf.c and vfiprintf.c.
12081         * libc/stdio/Makefile.in: Regenerated.
12082         * libc/stdio/vfprintf.c: Add positional argument support that
12083         is enabled by compiling with -DWANT_IO_POS_ARGS.
12084
12085 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
12086
12087         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
12088         based on __mips_soft_float rather than __mips64.
12089         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
12090         of both 32-bit and 64-bit code.
12091
12092 2002-08-04  Christopher Faylor  <cgf@redhat.com>
12093
12094         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
12095         arguments for popen to match similar functionality in fopen.
12096
12097 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
12098
12099         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
12100
12101 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
12102
12103         * libc/sys/linux/Makefile.am: Add aio64.c.
12104         * libc/sys/linux/Makefile.in: Regenerated.
12105         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
12106         * libc/sys/linux/aio64.c: New file.
12107
12108 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
12109
12110         *  libc/include/sys/param.h (MAX, MIN): Added macros.
12111         *  libc/sys/linux/Makefile.am: Add new files.
12112         *  libc/sys/linux/Makefile.in: Regenerated.
12113         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12114         *  libc/sys/linux/inode.c (fchdir): Added syscall.
12115         *  libc/sys/linux/ftw.c: New file.
12116         *  libc/sys/linux/ftw64.c: Ditto.
12117         *  libc/sys/linux/getwd.c: Ditto.
12118         *  libc/sys/linux/scandir64.c: Ditto.
12119         *  libc/sys/linux/strverscmp.c: Ditto.
12120         *  libc/sys/linux/versionsort.c: Ditto.
12121         *  libc/sys/linux/versionsort64.c: Ditto.
12122
12123 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
12124
12125         * libc/string/strings.tex: Fix typo for memccpy.
12126
12127 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12128
12129         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
12130         * libc/sys/linux/sys/types.h (off64_t): Definition added.
12131
12132 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12133
12134         * libc/sys/linux/Makefile.am: Add fclean.c.
12135         * libc/sys/linux/Makefile.in: Regenerated.
12136         * libc/sys/linux/fclean.c: New file.
12137
12138 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12139
12140         * libc/sys/linux/Makefile.am: Add confstr.c.
12141         * libc/sys/linux/Makefile.in: Regenerated.
12142         * libc/sys/linux/confstr.c: New file.
12143         * libc/sys/linux/confstr.h: Ditto.
12144         * libc/sys/linux/sys/unistd.h: Include <features.h> and
12145         <bits/environments.h>.
12146
12147 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
12148
12149         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
12150         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
12151         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
12152         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
12153         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
12154         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
12155
12156 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
12157
12158         * libc/sys/linux/Makefile.am: Add new files.
12159         * libc/sys/linux/Makefile.in: Regenerated.
12160         * libc/sys/linux/fstab.c: New file.
12161         * libc/sys/linux/fstatvfs.c: Ditto.
12162         * libc/sys/linux/fstatvfs64.c: Ditto.
12163         * libc/sys/linux/internal_statvfs.c: Ditto.
12164         * libc/sys/linux/mntent.c: Ditto.
12165         * libc/sys/linux/mntent_r.c: Ditto.
12166         * libc/sys/linux/statvfs.c: Ditto.
12167         * libc/sys/linux/statvfs64.c: Ditto.
12168         * libc/sys/linux/include/paths.h: Ditto.
12169         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
12170         with double-underscore weak-aliases.
12171         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
12172
12173 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
12174
12175         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
12176         to use _sig_func_ptr type casted constants.
12177         (_sig_func_ptr): Typedef moved to sys/signal.h.
12178         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
12179         For __rtems, use POSIX definition, otherwise default to ANSI.
12180         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
12181
12182 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
12183
12184         * configure.host: Recognize m6811-elf and m6812-elf targets.
12185         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
12186         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
12187         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
12188         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
12189         according to __INT_MAX__.
12190         (_POINTER_INT): Define to short.
12191         * libc/machine/m68hc11/Makefile.am: New file.
12192         * libc/machine/m68hc11/Makefile.in: New file.
12193         * libc/machine/m68hc11/configure.in: New file.
12194         * libc/machine/m68hc11/configure: New file.
12195         * libc/machine/m68hc11/aclocal.m4: New file.
12196         * libc/machine/m68hc11/setjmp.S: New file.
12197
12198 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
12199
12200         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
12201         prototypes.
12202         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
12203         * libc/stdlib/Makefile.in: Regenerated.
12204         * libc/stdlib/strdup.c: Removed.
12205         * libc/stdlib/strdup_r.c: Removed.
12206         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
12207         mempcpy.c, strndup.c, and strndup_r.c.
12208         * libc/string/Makefile.in: Regenerated.
12209         * libc/string/memccpy.c: New file.
12210         * libc/string/mempcpy.c: Ditto.
12211         * libc/string/strndup.c: Ditto.
12212         * libc/string/strndup_r.c: Ditto.
12213         * libc/string/strdup.c: New file moved from stdlib.
12214         * libc/string/strdup_r.c: Ditto.
12215         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
12216
12217 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
12218
12219         * libc/include/stdio.h: Move fcloseall prototype within
12220         #ifndef _REENT_ONLY section.
12221         * libc/sys/linux/Makefile.am: Add new files.
12222         * libc/sys/linux/Makefile.in: Regenerated.
12223         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
12224         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
12225         * libc/sys/linux/sys/types.h: Add ino64_t type.
12226         * libc/sys/linux/ctermid.c: New file.
12227         * libc/sys/linux/ttyname_r.c: Ditto.
12228         * libc/sys/linux/readdir64.c: Ditto.
12229
12230 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
12231
12232         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
12233         * libc/stdio/Makefile.am: Added fcloseall.c support.
12234         * libc/stdio/Makefile.in: Regenerated.
12235         * libc/stdio/fcloseall.c: New file.
12236         * libc/stdio64/Makefile.am: Remove missing .def references.
12237         * libc/stdio64/Makefile.in: Regenerated.
12238
12239 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
12240
12241         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
12242         * libc/machine/powerpc/times.c: New file.
12243         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
12244         * libc/machine/powerpc/Makefile.in: Regenerated.
12245
12246 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
12247
12248         * libc/machine/powerpc/time.c: New file.
12249         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
12250         time.c.
12251         * libc/machine/powerpc/Makefile.in: Regenerated.
12252
12253 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12254
12255         * libc/libc.texinfo: Change copyright notices to Red Hat from
12256         Cygnus.
12257         * libm/libm.texinfo: Likewise.
12258         * README: Change docs URL to
12259         http://sources.redhat.com/newlib/docs.html.
12260
12261 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12262
12263         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
12264         * libc/sys/linux/Makefile.in: Regenerated.
12265         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
12266         * libc/sys/linux/io.c: Add ftruncate syscall.
12267         * libc/sys/linux/fpathconf.c: New file.
12268         * libc/sys/linux/pathconf.c: Ditto.
12269         * libc/sys/linux/linux_fsinfo.h: Ditto.
12270         * libc/sys/linux/sys/unistd.h: Ditto.
12271
12272 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12273
12274         * libc/stdio64/Makefile.am: Remove missing files.
12275         * libc/stdio64/Makefile.in: Regenerated.
12276
12277 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
12278
12279         * libc/include/sys/config.h[__i386__][__linux__]: Define
12280         _LARGE64FILE_SOURCE to 1.
12281         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
12282         * libc/sys/linux/Makefile.in: Regenerated.
12283         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
12284         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
12285         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
12286         of <linux/resource.h>.
12287         * libc/sys/linux/getrlimit64.c: New file.
12288         * libc/sys/linux/setrlimit64.c: Ditto.
12289
12290 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
12291
12292         * libc/argz/argz_replace.c: Include buf_findstr.h.
12293         * libc/argz/buf_findstr.c: Likewise.
12294         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
12295         value to (char *).
12296         * libc/argz/envz_get.c: Likewise.
12297         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
12298         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
12299         * libc/stdlib/getsubopt.3: New file.
12300         * libc/stdlib/getsubopt.c: New file.
12301         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
12302         Change esp to ebp.
12303
12304 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
12305
12306         * configure.host(stdio64_dir): New setting that is used to
12307         enable building of new stdio64 directory.
12308         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
12309         large files.
12310         (stmp-stdio64,stdio64.texi): New targets to optionally add in
12311         stdio64 info to info files.
12312         * libc/Makefile.in: Regenerated.
12313         * libc/configure: Ditto.
12314         * libc/configure.in: Add configuration variables that are set
12315         when stdio64 is selected as subdir in configure.host.
12316         * libc/libc.texinfo: Add optional menu item for Stdio64, based
12317         on whether STDIO64 flag is set or not.
12318         * libc/sys.tex: Add optional stdio64 syscalls based on whether
12319         STDIO64 flag is set or not.
12320         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
12321         _r sycall routines.
12322         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
12323         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
12324         (__SL64): New file flag indicating file is opened via fopen64.
12325         * libc/include/sys/_types.h(_off64_t): Added.
12326         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
12327         * libc/include/sys/reent.h(struct __sFILE64): New file structure
12328         for 64-bit offset large file support.
12329         (__FILE): New intermediate type either set to struct __sFILE64 or
12330         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
12331         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
12332         * libc/reent/Makefile.in: Regenerated.
12333         * libc/reent/fstat64r.c: New file.
12334         * libc/reent/lseek64r.c: Ditto.
12335         * libc/reent/open64r.c: Ditto.
12336         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
12337         based on whether STDIO64 flag is set.
12338         * libc/stdio/stdio.tex: Add blank line.
12339         * libc/stdio64/Makefile.am: New file.
12340         * libc/stdio64/Makefile.in: Ditto.
12341         * libc/stdio64/fgetpos64.c: Ditto.
12342         * libc/stdio64/fopen64.: Ditto.
12343         * libc/stdio64/freopen64.c: Ditto.
12344         * libc/stdio64/fseeko64.c: Ditto.
12345         * libc/stdio64/fsetpos64.c: Ditto.
12346         * libc/stdio64/ftello64.c: Ditto.
12347         * libc/stdio64/local64.h: Ditto.
12348         * libc/stdio64/stdio64.c: Ditto.
12349         * libc/stdio64/stdio64.tex: Ditto.
12350         * libc/stdio64/tmpfile64.c: Ditto.
12351         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
12352         open64.
12353
12354 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
12355
12356         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
12357         if LIBC_EXTRA_LIB is present.
12358         * libc/Makefile.in: Regenerated.
12359         * libc/libc.texinfo: Add blank line.
12360         * libc/argz/Makefile.am: Add doc support.
12361         * libc/search/Makefile.am: Ditto.
12362         * libc/argz/Makefile.in: Regenerated.
12363         * libc/search/Makefile.in: Ditto.
12364         * libc/misc/misc.tex: Add ffs function.
12365         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
12366
12367 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
12368
12369         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
12370         definition that was removed in error.
12371
12372 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
12373
12374         * libc/include/machine/ieeefp.h: Change to only define
12375         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
12376         __IEEE_LITTLE_ENDIAN must be defined for each platform).
12377         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
12378         remove redundant floating point definitions.
12379
12380 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
12381
12382         * libc/sys/linux/callocr.c: Fix so code references
12383         calloc.
12384
12385 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
12386
12387         * libc/sys/linux/Makefile.am: Add new files.
12388         * libc/sys/linux/Makefile.in: Regenerated.
12389         * libc/sys/linux/bp-sym.h: Moved to include directory.
12390         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
12391         * libc/sys/linux/inode.c: Set _LIBC to 1.
12392         * libc/sys/linux/mq_close.c: Ditto.
12393         * libc/sys/linux/mq_getattr.c: Ditto.
12394         * libc/sys/linux/mq_open.c: Ditto.
12395         * libc/sys/linux/mq_receive.c: Ditto.
12396         * libc/sys/linux/mq_send.c: Ditto.
12397         * libc/sys/linux/mq_setattr.c: Ditto.
12398         * libc/sys/linux/mq_unlink.c: Ditto.
12399         * libc/sys/linux/calloc.c: New file.
12400         * libc/sys/linux/callocr.c: Ditto.
12401         * libc/sys/linux/cfreer.c: Ditto.
12402         * libc/sys/linux/config.h: Ditto.
12403         * libc/sys/linux/free.c: Ditto.
12404         * libc/sys/linux/freer.c: Ditto.
12405         * libc/sys/linux/msize.c: Ditto.
12406         * libc/sys/linux/msizer.c: Ditto.
12407         * libc/sys/linux/mstats.c: Ditto.
12408         * libc/sys/linux/mtrim.c: Ditto.
12409         * libc/sys/linux/mtrimr.c: Ditto.
12410         * libc/sys/linux/pvallocr.c: Ditto.
12411         * libc/sys/linux/realloc.c: Ditto.
12412         * libc/sys/linux/reallocr.c: Ditto.
12413         * libc/sys/linux/thread-m.h: Ditto.
12414         * libc/sys/linux/vallocr.c: Ditto.
12415         * libc/sys/linux/bp-checks.h: Ditto.
12416         * libc/sys/linux/libc-symbols.h: Ditto.
12417         * libc/sys/linux/libc-tsd.h: Ditto.
12418         * libc/sys/linux/libintl.h: Ditto.
12419         * libc/sys/linux/malign.c: Ditto.
12420         * libc/sys/linux/malignr.c: Ditto.
12421         * libc/sys/linux/mallinfor.c: Ditto.
12422         * libc/sys/linux/malloc.c: Ditto.
12423         * libc/sys/linux/mallocr.c: Ditto.
12424         * libc/sys/linux/malloptr.c: Ditto.
12425         * libc/sys/linux/mallstatsr.c: Ditto.
12426         * libc/sys/linux/mcheck.c: Ditto.
12427         * libc/sys/linux/mhooks.h: Ditto.
12428         * libc/sys/linux/include/bp-sym.h: Ditto.
12429         * libc/sys/linux/include/malloc.h: Ditto.
12430         * libc/sys/linux/include/mcheck.h: Ditto.
12431         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
12432         getpagesize.c.
12433         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
12434         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
12435         * libc/sys/linux/machine/i386/getpagesize.c: New file.
12436         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
12437         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12438         * libc/sys/linux/machine/i386/sysdep.h: New file.
12439         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
12440         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
12441         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
12442
12443 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
12444
12445         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
12446         instead of <asm/siginfo.h>.
12447         * libc/sys/linux/sys/signal.h: Change to include various linux
12448         <bits/xxx.h> header files, rather than <linux/signal.h> so as
12449         to work with multiple releases of glibc header files.
12450
12451 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
12452
12453         * testsuite/newlib.search/hsearchtest.c: New file to test
12454         newlib/libc/search.
12455         * testsuite/newlib.search/hsearchtest.exp: Likewise.
12456
12457 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
12458
12459         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
12460         a terminal.
12461         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
12462
12463 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
12464
12465         * libc/include/math.h (MAXFLOAT): Added.
12466
12467 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
12468
12469         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
12470         Make strcmp.S unconditional.
12471         * libc/machine/sh/Makefile.in: Regenerate.
12472         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
12473         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
12474         for SHcompact.
12475
12476 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12477
12478         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
12479         define before including <sys/lock.h>.
12480
12481 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12482
12483         * libc/include/utime.h: Add include of <_ansi.h>.
12484         * libc/sys/linux/Makefile.am: Add utimes.c.
12485         * libc/sys/linux/Makefile.in: Regenerated.
12486         * libc/sys/linux/inode.c(__umask): New static routine.
12487         (umask): Written to use __umask and attempt to thread lock.
12488         (getumask): New function written to use __umask and thread lock.
12489         * libc/sys/linux/utimes.c: New file.
12490         * libc/sys/linux/sys/time.h: Fix utimes prototype.
12491         * libc/sys/linux/sys/utime.h: New file.
12492
12493 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
12494
12495         * libtool.m4: New file.
12496         * libc/sys/linux/process.c: Implement vfork in terms of fork,
12497         rather than as a syscall.
12498
12499 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12500
12501         * libc/include/stdio.h: Add new prototypes.
12502         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
12503         * libc/stdio/Makefile.in: Regenerated.
12504         * libc/stdio/fseek.c: Add fseeko documentation.
12505         * libc/stdio/ftell.c: Add ftello documentation.
12506         * libc/stdio/fseeko.c: New file.
12507         * libc/stdio/ftello.c: New file.
12508
12509 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
12510
12511         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
12512         * libc/stdio/Makefile.in: Regenerated.
12513         * libc/stdio/asprintf.c: New file.
12514         * libc/stdio/vasprintf.c: Ditto.
12515         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
12516         the buffer for asprintf support.
12517         * libc/stdio/sprintf.c: Add asprintf documentation.
12518         * libc/stdio/vfprintf.c: Add vasprintf documentation.
12519         * libc/include/stdio.h: Add new prototypes.
12520
12521 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
12522
12523         * libc/search/hcreate.c: Remove advertising clause from license.
12524         * libc/search/hcreate_r.c: Likewise.
12525
12526 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
12527
12528         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
12529         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
12530         Check that one of them is defined and error out if not.
12531         Add any platforms defined in <machine/ieeefp.h> that are missing.
12532         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
12533         (DB_LITTLE_ENDIAN): New defines.
12534         * libc/search/hash.c: Replace all incorrect checks for
12535         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
12536         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
12537         * libc/search/hash_page.c: Likewise.
12538
12539 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
12540
12541         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
12542
12543 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
12544
12545         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
12546         * libc/include/time.h: Same.
12547         * libc/include/string.h: Same.
12548         * libc/include/stdlib.h: Same.
12549         * libc/include/signal.h: Same.
12550         * libc/include/setjmp.h: Same.
12551         * libc/include/math.h: Same.
12552         * libc/include/locale.h: Same.
12553         * libc/include/ctype.h: Same.
12554         * libc/include/machine/setjmp.h: Same.
12555         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
12556         (_END_STD_C): Add.
12557
12558 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12559
12560         * libc/include/sys/_types.h: Define _ssize_t as int if int is
12561         32-bits, otherwise define it as long.
12562         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
12563         and define ssize_t as _ssize_t.
12564         * libc/reent/readr.c: Change return type to _ssize_t.
12565         * libc/reent/writer.c: Ditto.
12566         * libc/sys/linux/Makefile.am: Add aio.c.
12567         * libc/sys/linux/Makefile.in: Regenerated.
12568         * libc/sys/linux/aio.c: New file.
12569         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
12570         * libm/common/fdlibm.h: Undef __P before defining it.
12571
12572 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
12573
12574         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
12575         exponent_is_even_int variable.  Handle case where x is
12576         negative, and y is an odd integer.
12577         * libm/mathfp/sf_pow.c (powf): Likewise.
12578
12579         * libm/mathfp/er_lgamma.c: Remove __kernel references.
12580         * libm/mathfp/erf_lgamma.c: Likewise.
12581         * libm/mathfp/s_tgamma.c: Likewise.
12582         * libm/mathfp/sf_tgamma.c: Likewise.
12583
12584 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
12585
12586         * libc/sys/linux/Makefile.am: Add new clock routines.
12587         * libc/sys/linux/Makefile.in: Regenerated.
12588         * libc/sys/linux/clock_getres.c: New file.
12589         * libc/sys/linux/clock_gettime.c: Ditto.
12590         * libc/sys/linux/clock_settime.c: Ditto.
12591         * libc/sys/linux/hp-timing.h: Ditto.
12592         * libc/sys/linux/libc-internal.h: Ditto.
12593         * libc/sys/linux/sysconf.c: Fix typo.
12594         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
12595         * libc/sys/linux/machine/hp-timing.h: New file.
12596         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
12597         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12598         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
12599         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
12600         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
12601         * libc/sys/linux/sys/linux_time.h: New file.
12602         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
12603         replace with <sys/linux_time.h>.
12604
12605 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
12606
12607         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
12608
12609 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12610
12611         * libc/sys/linux/Makefile.am: Consolidate additional items under
12612         ADD_OBJS.
12613         * libc/sys/linux/Makefile.in: Regenerated.
12614
12615 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
12616
12617         * libc/sys/linux/sethostname.c: New file.
12618         * libc/sys/linux/Makefile.am: Add sethostname.c support.
12619         * libc/sys/linux/Makefile.in: Regenerated.
12620
12621 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12622
12623         * libc/search/db_local.h: New file.
12624         * libc/include/db.h: Remove.
12625         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
12626         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
12627         "db_local.h".
12628         * libc/search/hash_bigkey.c: Likewise.
12629         * libc/search/hash_buf.c: Likewise.
12630         * libc/search/hash_func.c: Likewise.
12631         * libc/search/hash_log2.c: Likewise.
12632         * libc/search/hash_page.c: Likewise.
12633
12634 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
12635
12636         * libc/machine/sh/strlen.S: New file.
12637         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
12638         * libc/machine/sh/Makefile.am: Regenerate.
12639
12640 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12641
12642         * libc/sys/linux/gethostname.c: Change name to __gethostname and
12643         add gethostname alias.
12644
12645 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
12646
12647         * libc/include/math.h: Remove <sys/types.h>.
12648         (__dmath): Use __ULong instead of __uint32_t.
12649         * libc/include/sys/reent.h: If long or int is not 32-bits,
12650         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
12651         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
12652         * libm/common/fdlibm.h: Ditto.
12653
12654 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12655
12656         * libc/include/ndbm.h: Remove.
12657         * libc/search/ndbm.c: Remove.
12658
12659 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
12660
12661         * libc/stdio/fseek.c (fseek): Fix braces.
12662
12663 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
12664
12665         * libc/time/strftime.c (strftime): Add %e format specifier.
12666
12667 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
12668
12669         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
12670         previously defined.
12671
12672 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
12673
12674         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
12675         (BYTE_ORDER): Define as appropriate for the target.
12676
12677 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12678
12679         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
12680         to _ssize_t.
12681         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
12682
12683 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12684
12685         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
12686         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
12687         [HAVE_GETDATE](getdate_err): New error code.
12688         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
12689         * libc/stdio/Makefile.in: Regenerated.
12690         * libc/stdio/getdelim.c: New file.
12691         * libc/stdio/getline.c: Ditto.
12692         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
12693         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
12694         * libc/sys/linux/Makefile.in: Regenerated.
12695         * libc/sys/linux/getdate.c: New file.
12696         * libc/sys/linux/getdate_err.c: Ditto.
12697         * libc/sys/linux/ntp_gettime.c: Ditto.
12698         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
12699         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
12700
12701 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12702
12703         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
12704         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
12705         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
12706         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
12707         * libc/include/sys/param.h: Remove i386 case which is handled
12708         by default case.
12709         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
12710         definitions in case they are already defined.
12711         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
12712         _IEEE_LITTLE_ENDIAN flags.
12713         * libc/include/sys/reent.h: Change __uint32_t references to
12714         use _ULong instead.
12715         (_REENT_GETDATE_REENT_P): New macro.
12716         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
12717         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
12718         * libc/search/hash.h: Add default setting of BYTE_ORDER,
12719         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
12720         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
12721         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
12722         pid_t, off_t, loff_t, caddr_t, and daddr_t type
12723         definitions which are done by subsequent glibc headers.
12724         Add macro definitions to prevent subsequent header files from
12725         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
12726         intptr_t to after glibc definitions of types they are based on.
12727
12728 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12729
12730         * libc/include/errno.h: Protect from multiple inclusion.
12731
12732 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
12733
12734         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
12735
12736 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
12737
12738         * Makefile.am (LIB_OBJECTLISTS): Add
12739         libc/search/objectlist.awk.in.
12740         * libc/Makefile.am (SUBDIRS): Add search.
12741         (SUBLIBS): Add search/libsearch.la.
12742         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12743         * libc/search: New directory.
12744         * libc/search/Makefile.am: New file.
12745         * libc/search/extern.h: New file.
12746         * libc/search/hash.c: New file.
12747         * libc/search/hash.h: New file.
12748         * libc/search/hash_bigkey.c: New file.
12749         * libc/search/hash_buf.c: New file.
12750         * libc/search/hash_func.c: New file.
12751         * libc/search/hash_log2.c: New file.
12752         * libc/search/hash_page.c: New file.
12753         * libc/search/hcreate.3: New file.
12754         * libc/search/hcreate.c: New file.
12755         * libc/search/hcreate_r.c: New file.
12756         * libc/search/ndbm.c: New file.
12757         * libc/search/page.h: New file.
12758         * libc/search/tdelete.c: New file.
12759         * libc/search/tdestroy.c: New file.
12760         * libc/search/tfind.c: New file.
12761         * libc/search/tsearch.3: New file.
12762         * libc/search/tsearch.c: New file.
12763         * libc/search/twalk.c: New file.
12764         * libc/include/db.h: New file.
12765         * libc/include/ndbm.h: New file.
12766         * libc/include/search.h: New file.
12767         * libc/include/sys/queue.h: New file.
12768         * libc/include/sys/cdefs.h: New file.
12769         * libc/include/sys/param.h
12770         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
12771         LITTLE_ENDIAN or BIG_ENDIAN.
12772         * libc/include/sys/errno.h (EFTYPE): New macro.
12773         * libc/search/bsearch.c: Move from libc/stdlib.
12774         * libc/search/qsort.c: Likewise.
12775         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12776         qsort.c.
12777         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12778         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12779
12780 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12781
12782         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12783         ipc routines, and ftok.
12784         * libc/sys/linux/Makefile.in: Regenerated.
12785         * libc/sys/linux/ftok.c: New file.
12786         * libc/sys/linux/ipc.c: Ditto.
12787         * libc/sys/linux/mq_close.c: Ditto.
12788         * libc/sys/linux/mq_getattr.c: Ditto.
12789         * libc/sys/linux/mq_notify.c: Ditto.
12790         * libc/sys/linux/mq_open.c: Ditto.
12791         * libc/sys/linux/mq_receive.c: Ditto.
12792         * libc/sys/linux/mq_send.c: Ditto.
12793         * libc/sys/linux/mq_setattr.c: Ditto.
12794         * libc/sys/linux/mq_unlink.c: Ditto.
12795         * libc/sys/linux/mqlocal.h: Ditto.
12796         * libc/sys/linux/include/mqueue.h: Ditto.
12797         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12798         __uid_t_defined.
12799
12800 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12801
12802         * libm/common/sf_lround.c (round): Change name to: (lround).
12803         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12804         remquof.
12805
12806 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12807
12808         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12809         procedure.
12810         (newlib_pass_fail): Change to compile and run only one file.
12811         * testsuite/newlib.locale/locale.exp: Use new
12812         newlib_pass_fail_all procedure.
12813         * testsuite/newlib.string/string.exp: Likewise.
12814
12815 2002-06-18  Dave Brolley  <brolley@redhat.com>
12816
12817         From Catherine Moore, Michael Meissner, Richard Sandiford:
12818         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12819         (_JBTYPE): Ditto.
12820         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12821         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12822         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12823         * configure.host: Support frv-*-*.
12824         * libc/machine/frv/Makefile.am: New file.
12825         * libc/machine/frv/configure.in: New file.
12826         * libc/machine/frv/setjmp.S: New file.
12827
12828 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12829
12830         * libc/include/ctype.h: Remove isblank macro.
12831
12832         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12833         * libc/ctype/isblank.c: New file.
12834         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12835         declaration.  Add isblank macro.
12836
12837 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12838
12839         * testsuite/newlib.stdlib/atexit.c: New file.
12840         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12841         * testsuite/newlib.string/tstring.c: Change default start size
12842         to something more reasonable for embedded platforms.
12843
12844 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12845
12846         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12847
12848         * libc/argz: New directory.
12849         * libc/argz/*: New files.
12850         * libc/argz/argz_add.c: New file.
12851         * libc/argz/argz_add_sep.c: New file.
12852         * libc/argz/argz_append.c: New file.
12853         * libc/argz/argz_count.c: New file.
12854         * libc/argz/argz_create.c: New file.
12855         * libc/argz/argz_create_sep.c: New file.
12856         * libc/argz/argz_delete.c: New file.
12857         * libc/argz/argz_extract.c: New file.
12858         * libc/argz/argz_insert.c: New file.
12859         * libc/argz/argz_next.c: New file.
12860         * libc/argz/argz_replace.c: New file.
12861         * libc/argz/argz_stringify.c: New file.
12862         * libc/argz/buf_findstr.c: New file.
12863         * libc/argz/envz_add.c: New file.
12864         * libc/argz/envz_entry.c: New file.
12865         * libc/argz/envz_get.c: New file.
12866         * libc/argz/envz_merge.c: New file.
12867         * libc/argz/envz_remove.c: New file.
12868         * libc/argz/envz_strip.c: New file.
12869         * libc/include/argz.h: New file.
12870         * libc/include/envz.h: New file.
12871         * Makefile.am (LIBC_OBJECTLISTS): Add
12872         libc/argz/objectlist.awk.in.
12873         * libc/Makefile.am (SUBDIRS): Add argz.
12874         (SUBLIBS): Add argz/libargz.la.
12875         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12876         * libc/include/errno.h: Add error_t typedef.
12877
12878 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12879
12880         * libc/include/stdlib.h: Add _Exit prototype.
12881         * libc/stdlib/Makefile.am: Add _Exit.c support.
12882         * libc/stdlib/Makefile.in: Ditto.
12883         * libc/stdlib/_Exit.c: New file.
12884
12885 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12886
12887         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12888         x is close to -1.0 and y is very large to use ax (absolute value)
12889         instead of x.
12890         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12891
12892 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12893
12894         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12895         Fix clobbering bytes before destination if src and dst have same
12896         non-zero misalignment.
12897
12898         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12899         Fixed bug in writing end of set region.
12900
12901 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12902
12903         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12904         spawnve declaration.
12905
12906 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12907
12908         * libm/common/s_fdim.c: New file.
12909         * libm/common/s_fma.c: Likewise.
12910         * libm/common/s_fmax.c: Likewise.
12911         * libm/common/s_fmin.c: Likewise.
12912         * libm/common/s_fpclassify.c: Likewise.
12913         * libm/common/s_lrint.c: Likewise.
12914         * libm/common/s_lround.c: Likewise.
12915         * libm/common/s_nearbyint.c: Likewise.
12916         * libm/common/s_remquo.c: Likewise.
12917         * libm/common/s_round.c: Likewise.
12918         * libm/common/s_scalbln.c: Likewise.
12919         * libm/common/s_signbit.c: Likewise.
12920         * libm/common/s_trunc.c: Likewise.
12921         * libm/common/sf_fdim.c: Likewise.
12922         * libm/common/sf_fma.c: Likewise.
12923         * libm/common/sf_fmax.c: Likewise.
12924         * libm/common/sf_fmin.c: Likewise.
12925         * libm/common/sf_lrint.c: Likewise.
12926         * libm/common/sf_lround.c: Likewise.
12927         * libm/common/sf_nearbyint.c: Likewise.
12928         * libm/common/sf_remquo.c: Likewise.
12929         * libm/common/sf_round.c: Likewise.
12930         * libm/common/sf_scalbln.c: Likewise.
12931         * libm/common/sf_trunc.c: Likewise.
12932         * libm/math/w_exp2.c: Likewise.
12933         * libm/math/w_tgamma.c: Likewise.
12934         * libm/math/wf_exp2.c: Likewise.
12935         * libm/math/wf_tgamma.c: Likewise.
12936         * libm/mathfp/s_exp2.c: Likewise.
12937         * libm/mathfp/s_tgamma.c: Likewise.
12938         * libm/mathfp/sf_exp2.c: Likewise.
12939         * libm/mathfp/sf_tgamma.c: Likewise.
12940         * libm/math/er_gamma.c: Fix return value.
12941         * libm/math/erf_gamma.c: Likewise.
12942         * libm/mathfp/er_gamma.c: Likewise.
12943         * libm/mathfp/erf_gamma.c: Likewise.
12944         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12945         declarations and macros.
12946         Regenerated all Makefile.in, aclocal.m4 and configure files to
12947         use new libtool macros in top-level libtool.m4
12948
12949 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12950
12951         * libc/include/string.h[__linux__]: Add strsignal prototype.
12952         * libc/include/sys/lock.h: New file with default locking support.
12953         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12954         and psignal.
12955         * libc/posix/Makefile.am: Add support for readdir_r.c.
12956         * libc/posix/Makefile.in: Regenerated.
12957         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12958         * libc/posix/opendir.c: Add lock support.
12959         * libc/posix/readdir.c: Ditto.
12960         * libc/posix/rewinddir.c: Ditto.
12961         * libc/posix/scandir.c: Ditto.
12962         * libc/posix/seekdir.c: Ditto.
12963         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12964         clean up leftover hash table entries.
12965         * libc/posix/readdir_r.c: New file.
12966         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12967         * libc/sys/linux/Makefile.in: Regenerated.
12968         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12969         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12970         * libc/sys/linux/psignal.c: New file.
12971         * libc/sys/linux/strsignal.c: Ditto.
12972
12973 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12974
12975         * libc/include/sys/types.h: Don't define dev_t when compiling for
12976         Cygwin.
12977
12978 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12979
12980         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12981         make siglist.inc dependent on sig.c instead of signal.c.
12982         * libc/sys/linux/Makefile.in: Regenerated.
12983         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12984         use NSIG instead of _NSIG.
12985         * libc/sys/linux/sigaction.c: New file.
12986         * libc/sys/linux/signal.c: Changed to be linux signal() function
12987         so as to override regular newlib default signal.c.
12988         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12989         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12990         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12991         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12992         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12993         default linux sigset_t typedef by defining it equal to __sigset_t.
12994         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12995         with a sigset_t that isn't implemented with a single int.
12996
12997 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12998
12999         * libc/sys/linux/Makefile.am: Add support for new files.
13000         * libc/sys/linux/Makefile.in: Regenerated.
13001         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
13002         * libc/sys/linux/signal.c: Change to use real-time syscalls for
13003         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
13004         it is in a separate file now.
13005         * libc/sys/linux/machine/i386/Makefile.am
13006         * libc/sys/linux/machine/i386/Makefile.in
13007         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
13008         * libc/sys/linux/sigaction.c: New file.
13009         * libc/sys/linux/sigqueue.c: Ditto.
13010         * libc/sys/linux/sigwait.c: Ditto.
13011         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
13012         * libc/sys/linux/kernel_sigaction.h: Ditto.
13013
13014 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
13015
13016         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
13017         tcsendbrk.c.
13018         * libc/sys/linux/Makefile.in: Regenerated.
13019         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
13020         tcgetpgrp(), and tcsetpgrp() functions.
13021         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
13022         to get __MAX_BAUD rate.
13023         * libc/sys/linux/machine/i386/include/termios.h: New file.
13024         * libc/include/machine/termios.h: Ditto.
13025         * libc/sys/linux/cfspeed.c: Ditto.
13026         * libc/sys/linux/tcsendbrk.c: Ditto.
13027
13028 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
13029
13030         * libc/include/string.h: Add strnlen and strerror_r prototypes.
13031         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
13032         * libc/string/Makefile.in: Regenerated.
13033         * libc/string/strerror_r.c: New file.
13034         * libc/string/strnlen.c: New file.
13035         * libc/sys/linux/Makefile.am: Add rename.c.
13036         * libc/sys/linux/Makefile.in: Regenerated.
13037         * libc/sys/linux/rename.c: New file to override default rename.
13038
13039 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13040
13041         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
13042         * libc/sys/linux/sys/time.h: Add conversion macros.
13043         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
13044         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
13045         * libc/sys/linux/gethostname.c: New file.
13046         * libc/sys/linux/seteuid.c: New file.
13047         * libc/sys/linux/sysctl.c: New file.
13048
13049 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13050
13051         * libc/string/Makefile.am: Add support for strsep.c.
13052         * libc/string/Makefile.in: Regenerated.
13053         * libc/string/strsep.c: New file.
13054         * libc/string/strtok.c: Change to call __strtok_r service routine.
13055         * libc/string/strtok_r.c: Add __strtok_r routine which takes
13056         additional flag parameter regarding whether to skip leading delimeters.
13057         Change strtok_r to call __strtok_r.
13058
13059 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
13060
13061         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
13062         * libc/stdio/Makefile.in: Regenerated.
13063         * libc/stdio/setbuffer.c: New file.
13064         * libc/stdio/setlinebuf.c: New file.
13065
13066 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13067
13068         * libc/sys/linux/Makefile.am: Add resource.c.
13069         * libc/sys/linux/Makefile.in: Regenerated.
13070         * libc/sys/linux/resource.c: New file.
13071         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
13072         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
13073         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13074         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
13075         are now found in libc/sys/linux/resource.c.
13076
13077 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
13078
13079         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
13080         to use void * pointers and comply with Single Unix spec.
13081         * libc/string/bcmp.c: Change to use void * instead of char *.
13082         * libc/string/bcopy.c: Ditto.
13083         * libc/string/bzero.c: Ditto.
13084
13085 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
13086
13087         * libc/sys/linux/shm_open.c: New file.
13088         * libc/sys/linux/shm_unlink.c: Ditto.
13089         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
13090         shm_unlink.c.
13091         * libc/sys/linux/Makefile.in: Regenerated.
13092         * libc/sys/linux/sys/types.h: Add some additional checks to see
13093         if clock_t or time_t is already defined.
13094
13095 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
13096
13097         * Makefile.am: Don't pass $toollibdir down directly in
13098         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
13099         Pass it under the name: top_toollibdir.
13100         * Makefile.in: Regenerated.
13101
13102 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
13103
13104         * libc/include/sys/types.h: Revert previous patch.
13105
13106 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
13107
13108         * libc/include/sys/types.h: Include cygwin/types.h always under
13109         Cygwin, not only if _POSIX_THREADS is defined.
13110
13111 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
13112
13113         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
13114
13115 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
13116
13117         * Makefile.am: Copy and install headers from sys/machine/include
13118         directory.  Also pass $toollibdir to lower-level directories.
13119         * Makefile.in: Regenerated.
13120         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
13121         stderr to use _REENT macro instead of _impure_ptr directly.
13122         * libc/include/sys/config.h[__i386__][__linux__]: Define
13123         __DYNAMIC_REENT__.
13124         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
13125         call to __getreent() function if !__SINGLE_THREAD__ and
13126         __DYNAMIC_REENT__ is set.
13127         * libc/reent/Makefile.am: Add support for getreent.c.
13128         * libc/reent/Makefile.in: Regenerated.
13129         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
13130         * libc/sys/linux/Makefile.am: Add support for new files.
13131         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
13132         * libc/sys/linux/Makefile.in: Regenerated.
13133         * libc/sys/linux/configure: Ditto.
13134         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
13135         __close, __read, __write, __poll, __open, __lseek, __fcntl from
13136         their __libc_ counterparts.
13137         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
13138         and weak-alias to regular names.
13139         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
13140         to pread64 and __pread64.
13141         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
13142         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
13143         weak-alias to pwrite64.
13144         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
13145         __libc_sched_getscheduler, __libc_sched_get_priority_max,
13146         __libc_sched_get_priority_min, and __libc_sched_setschedule to
13147         name with __ instead of __libc_.
13148         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
13149         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
13150         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
13151         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
13152         to raise.
13153         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
13154         __libc_send to __send.
13155         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
13156         __gettimeofday.
13157         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
13158         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
13159         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
13160         type and typedef __jmp_buf to jmp_buf.
13161         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
13162         setjmp.S.
13163         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
13164         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
13165         section.
13166         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
13167         prefix for function macros and then use weak_alias() to regular names.
13168         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13169         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
13170         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
13171         to be flockfile() and funlockfile() respectively.
13172         * libc/sys/linux/sys/types.h
13173         * libc/reent/getreent.c: New file.
13174         * libc/sys/linux/flockfile.c: Ditto.
13175         * libc/sys/linux/funlockfile.c: Ditto.
13176         * libc/sys/linux/getreent.c: Ditto.
13177         * libc/sys/linux/pread.c: Ditto.
13178         * libc/sys/linux/pwrite.c: Ditto.
13179         * libc/sys/linux/raise.c: Ditto.
13180         * libc/sys/linux/system.c: Ditto.
13181         * libc/sys/linux/tcdrain.c: Ditto.
13182         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
13183         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
13184         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
13185         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
13186         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
13187
13188 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
13189
13190         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
13191         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
13192         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
13193         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
13194
13195 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
13196
13197         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
13198         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
13199         exit point.
13200
13201 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
13202
13203         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
13204         options when testing natively on i[3456]86-*-linux.
13205
13206         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
13207         only one pass or fail per test file.  Trim \r's from output
13208         values received from test programs.  Remove support for named
13209         tests.
13210         * testsuite/newlib.locale/UTF-8.exp: Update to support new
13211         newlib_check_output behaviour.
13212         * testsuite/newlib.locale/UTF-8.c: Likewise.
13213
13214 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
13215
13216         * libc/include/stdlib.h: Add on_exit prototype.
13217         * libc/include/sys/reent.h (struct _atexit): Add argument array
13218         and bits to track type of exit routine to support both on_exit
13219         and atexit.
13220         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
13221         by default and change the setting of the atexit structure.
13222         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
13223         * libc/stdlib/on_exit.c: New file.
13224         * libc/stdlib/Makefile.am: Add support for on_exit.
13225         * libc/stdlib/Makefile.in: Regenerated.
13226         * libc/stdlib/atexit.c: Change to initialize types field.
13227         * libc/stdlib/exit.c: Change to look at types field for each
13228         exit routine and either call an atexit-style or an on_exit-style
13229         routine accordingly.
13230
13231 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
13232
13233         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
13234         allow v specifier with n or L specifiers.  For vector c format,
13235         move tmp declaration to the top.
13236
13237 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
13238
13239         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
13240         the original format specifier when looping for vectors to compensate
13241         for any changes made in vector %g format processing.
13242         Also add syntax checking for various invalid scenarios
13243         involving vector format extensions.
13244         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
13245         return code setting for vector formats.  Also treat vector
13246         separator mismatch as a match error instead of an input error.
13247         Perform some syntax checking for vector formats.
13248
13249 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13250
13251         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
13252         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
13253         * libc/string/strlcat.c: New file.
13254         * libc/string/strlcpy.c: New file.
13255
13256 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
13257
13258         * libc/string/strchr.c: Fix comment typo.
13259
13260 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
13261
13262         * acinclude.m4: Add support for --enable-newlib-multithread.
13263         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
13264         --enable-newlib-multithread=no.
13265
13266         * libc/stdio/getc_u.c: New file.
13267         * libc/stdio/getchar_u.c: New file.
13268         * libc/stdio/putc_u.c: New file.
13269         * libc/stdio/putchar_u.c: New file.
13270         * libc/include/stdio.h: Add declarations for getc_unlocked,
13271         getchar_unlocked, putc_unlocked and putchar_unlocked.
13272         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
13273         (CHEWOUT_FILES): Add new files' .def's.
13274         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
13275
13276 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
13277
13278         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
13279         Also handle as single quad word when destination ends at last
13280         byte of first quad word.  Fix byte selection in single quad code.
13281
13282 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
13283
13284         * libc/include/sys/stdio.h: New file.
13285         * libc/sys/linux/sys/stdio.h: New file.
13286         * libc/include/stdio.h: Add declarations for flockfile,
13287         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
13288         * libc/stdio/clearerr.c: Add file locking.
13289         * libc/stdio/fclose.c: Likewise.
13290         * libc/stdio/feof.c: Likewise.
13291         * libc/stdio/ferror.c: Likewise.
13292         * libc/stdio/fflush.c: Likewise.
13293         * libc/stdio/fgetc.c: Likewise.
13294         * libc/stdio/fgetpos.c: Likewise.
13295         * libc/stdio/fgets.c: Likewise.
13296         * libc/stdio/fileno.c: Likewise.
13297         * libc/stdio/fputc.c: Likewise.
13298         * libc/stdio/fputs.c: Likewise.
13299         * libc/stdio/fread.c: Likewise.
13300         * libc/stdio/freopen.c: Likewise.
13301         * libc/stdio/fseek.c: Likewise.
13302         * libc/stdio/ftell.c: Likewise.
13303         * libc/stdio/fwrite.c: Likewise.
13304         * libc/stdio/getc.c: Likewise.
13305         * libc/stdio/putc.c: Likewise.
13306         * libc/stdio/setvbuf.c: Likewise.
13307         * libc/stdio/ungetc.c: Likewise.
13308         * libc/stdio/vfprintf.c: Likewise.
13309
13310 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
13311
13312         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
13313         support for 'p' format.  Fix code to print bytes for vector
13314         integer formats that do not specify 'h' or 'l'.
13315         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
13316         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
13317         formats that do not specify 'h' or 'l'.
13318
13319         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
13320
13321 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
13322
13323         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
13324         (_sbrk): Add cast of return value.
13325
13326 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
13327
13328         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
13329         (_REENT_L64A_BUF): New macro for accessing area.
13330         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
13331         *  libc/stdlib/Makefile.in: Regenerated.
13332         *  libc/stdlib/a64l.c: New file.
13333         *  libc/stdlib/l64a.c: New file.
13334
13335 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
13336
13337         * libc/unix/pread.c: Fix typo for _pread_r.
13338         * libc/unix/pwrite.c: Fix type for _pwrite_r.
13339         * libc/sys/linux/pread64.c: Fix typo for read syscall.
13340         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
13341
13342 2002-05-03  Christopher Faylor  <cgf@redhat.com>
13343
13344         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
13345
13346 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
13347
13348         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
13349
13350 2002-05-01  Christopher Faylor  <cgf@redhat.com>
13351
13352         * utmp.h: Define more UNIX constants.
13353
13354 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
13355
13356         * Makefile.am: Add support for checking multilibs.
13357
13358         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
13359         (SUBDEFS): Add LIBC_EXTRA_DEF.
13360         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
13361         (LIBC_EXTRA_DEF): Likewise.
13362         (extra_dir): Likewise.
13363         * libc/machine/xscale/machine: New directory.
13364         * libc/machine/xscale/machine/profile.h: New file.
13365
13366         * Makefile.am (site.exp): Remove newlib_cflags.  Add
13367         multibuildtop.
13368         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
13369         * testsuite/lib/flags.exp: New file.
13370         * testsuite/lib/newlib.exp: Load flags.exp.
13371         (newlib_target_compile): Remove libgloss directory references.
13372         (newlib_init): Remove newlib_cflags references.
13373
13374 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
13375
13376         * testsuite/lib/newlib.exp (newlib_target_compile): Change
13377         method of finding libgloss_target_dir.
13378
13379         * Makefile.am (site.exp): Change host_alias, host_triplet,
13380         target_alias, target_triplet to refer to gcc's host and target
13381         variables (newlib's build and host variables).
13382         * testsuite/lib/newlib.exp (newlib_init): Change build
13383         references to host references, host references to target
13384         references to reflect Makefile.am changes.
13385         (newlib_target_compile): Likewise.
13386         (newlib_finish): Likewise.
13387
13388 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
13389
13390         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
13391
13392 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
13393
13394         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
13395         (_system): New function. Ditto.
13396         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
13397         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
13398         targets.
13399
13400 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
13401
13402         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
13403         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
13404         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
13405         *  libc/sys/linux/Makefile.in: Regenerated.
13406         *  libc/unix/Makefile.in: Ditto.
13407         *  libc/sys/linux/pread64.c: New file.
13408         *  libc/sys/linux/pwrite64.c: Ditto.
13409         *  libc/unix/pread.c: Ditto.
13410         *  libc/unix/pwrite.c: Ditto.
13411
13412 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
13413
13414         *  libc/sys/linux/Makefile.am: Add io64.c.
13415         *  libc/sys/linux/Makefile.in: Regenerated.
13416         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
13417         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
13418         *  libc/sys/linux/io64.c: New file.
13419
13420 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
13421
13422         * configure.in (CC_FOR_NEWLIB): New variable that
13423         bases on $(CC) and adds targ-include and libc/include as
13424         -isystem directives if they are not already part of $(CC).
13425         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
13426         $(CC_FOR_NEWLIB).
13427         * configure: Regenerated.
13428         * Makefile.in: Ditto.
13429
13430 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
13431
13432         *  libc/sys/linux/Makefile.am: Add support for sched.c.
13433         *  libc/sys/linux/Makefile.in: Regenerated.
13434         *  libc/sys/linux/sched.c: New file.
13435         *  libc/sys/linux/sys/types.h: Add struct timespec.
13436
13437 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
13438
13439         * configure.in (CC_FOR_BUILD): Set to gcc whether
13440         cross-compiling or not.
13441         (CC): Add -isystem's for targ-include and libc/include when they
13442         do not already appear in CC.
13443
13444 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13445
13446         * Makefile.am (check-DEJAGNU): New target.
13447         (site.exp): Likewise.
13448         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
13449         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
13450         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
13451         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
13452         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
13453         * testsuite: New directory.
13454         * testsuite/config: Likewise.
13455         * testsuite/lib: Likewise.
13456         * testsuite/newlib.locale: Likewise.
13457         * testsuite/newlib.string: Likewise.
13458         * testsuite/config/default.exp: New file.
13459         * testsuite/lib/checkoutput.exp: New file.
13460         * testsuite/lib/newlib.exp: New file.
13461         * testsuite/lib/passfail.exp: New file.
13462         * testsuite/newlib.locale/UTF-8.c: New file.
13463         * testsuite/newlib.locale/UTF-8.exp: New file.
13464         * testsuite/newlib.locale/locale.exp: New file.
13465         * testsuite/newlib.string/string.exp: New file.
13466         * testsuite/newlib.string/tstring.c: New file.
13467
13468 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
13469
13470         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
13471         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
13472         *  libc/sys/linux/Makefile.in: Regenerated.
13473         *  libc/sys/linux/mmap.c: New file.
13474         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
13475         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
13476
13477 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
13478
13479         * acinclude.m4 (newlib_cflags): Remove include directories that
13480         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
13481
13482 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
13483
13484         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
13485         * libc/machine/xscale/memcmp.c: Ditto.
13486         * libc/machine/xscale/memcpy.c: Ditto.
13487         * libc/machine/xscale/memmove.c: Ditto.
13488         * libc/machine/xscale/memset.c: Ditto.
13489         * libc/machine/xscale/strchr.c: Ditto.
13490         * libc/machine/xscale/strcmp.c: Ditto.
13491         * libc/machine/xscale/strcpy.c: Ditto.
13492         * libc/machine/xscale/strlen.c: Ditto.
13493
13494 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
13495
13496         * libc/include/sys/config.h: Remove include of <limits.h>.
13497         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
13498         define INT_MAX and LONG_MAX.  Use them in tests.
13499
13500 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
13501
13502         *  configure.host: Add support for powerpc-eabialtivec*.
13503         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
13504         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
13505         *  libc/include/machine/malloc.h: New file.
13506         *  libc/include/machine/stdlib.h: Ditto.
13507         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
13508         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
13509         sources based on configuration.
13510         *  libc/machine/powerpc/Makefile.in: Regenerated.
13511         *  libc/machine/powerpc/configure: Ditto.
13512         *  libc/machine/powerpc/configure.in: Add check for
13513         powerpc-eabialtivec* in which case add in additional source files.
13514         *  libc/machine/powerpc/setjmp.S: Add altivec support.
13515         *  libc/machine/powerpc/vec_calloc.c: New file.
13516         *  libc/machine/powerpc/vec_free.c: Ditto.
13517         *  libc/machine/powerpc/vec_malloc.c: Ditto.
13518         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
13519         *  libc/machine/powerpc/vec_realloc.c: Ditto.
13520         *  libc/machine/powerpc/machine/malloc.h: Ditto.
13521         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
13522         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
13523         with added altivec format specifiers.
13524         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
13525         added altivec format specifiers.
13526
13527 2002-04-19      Joel Sherrill <joel@OARcorp.com>
13528
13529         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
13530         while autoconf is trying to link main(){}.
13531
13532 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13533
13534         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
13535         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
13536
13537 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13538
13539         * libc/time/time.tex: Add tzset info.
13540
13541 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13542
13543         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
13544         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13545         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13546         (tzname): Defined for all platforms.
13547         (daylight, timezone): Defined only for CYGWIN.
13548         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13549         environment set up.
13550         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13551         environment variable is set.
13552         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13553         tzset_r.c.
13554         * libc/time/Makefile.in: Regenerated.
13555         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13556         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13557         * libc/time/lcltime_r.c (lcltime_r): Ditto.
13558         * libc/time/local.h: New local header file.
13559         * libc/time/mktime.c (mktime): Add timezone support.
13560         * libc/time/mktm_r.c: New file which is the common engine
13561         for gmtime_r and lcltime_r.  This code has timezone support.
13562         * libc/time/strftime.c (strftime): Add %Z timezone support.
13563         * libc/time/tzlock.c: New file containing timezone lock stubs.
13564         * libc/time/tzset.c: New file containing tzset() routine.
13565         * libc/time/tzset_r.c: New file containing _tzset_r and
13566         internal routine for calculating timezone changes for specified year.
13567
13568 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13569
13570         * configure.in (CRT0_DIR): Set to libc/.
13571         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13572         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13573         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13574         $(CRT1_DIR)/$(CRT1).
13575         * libc/machine/xstormy16/Makefile.in: Regenerated.
13576         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13577         * libc/machine/xstormy16/configure: Regenerated.
13578
13579 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13580
13581         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13582         fails, don't bail out, and try to correct next time.
13583
13584         * libc/include/sys/config.h: Include limits.h.
13585
13586 2002-04-12  Eric Norum  <eric.norum@usask.com>
13587
13588         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13589         routine to allow autoconf to determine that building executables
13590         for rtems works.
13591         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13592         (rtems_gxx_mutex_once): Ditto.
13593
13594 2002-04-09  Tom Rix  <trix@redhat.com>
13595
13596         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13597
13598 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13599
13600         * libc/include/time.h: Fix strptime declaration.
13601         * libc/time/Makefile.am: Add strptime.c.
13602         * libc/time/Makefile.in: Regenerated.
13603         * libc/time/strptime.c: New file.
13604
13605 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13606
13607         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13608         siglongjmp prototype, and sigsetjmp macro definition.
13609         * libc/sys/linux/siglongjmp.c: New file.
13610         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13611         * libc/sys/linux/Makefile.in: Regenerated.
13612
13613 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13614
13615         * Makefile.am: Add support for installing crt1.o if one exists.
13616         * configure.host: Specify crt1.o for linux.
13617         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13618         * Makefile.in: Regenerated.
13619         * configure: Ditto.
13620         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13621         Added for non-Cygwin, non-RTEMS configurations.
13622         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13623         * libc/sys/linux/Makefile.in: Regenerated.
13624         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13625         by gcc.  This fixes problem with reconfiguring linux newlib build.
13626         * libc/sys/linux/sysconf.c: New file.
13627
13628 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13629
13630         * configure.host: Add support for machine subdirectory of
13631         sys subdirectory.
13632         * configure.in: Add check for sys machine subdirectory.
13633         * Makefile.am: Ditto.
13634         * configure: Regenerated.
13635         * Makefile.in: Ditto.
13636         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13637         * libc/sys/linux/sys/syscall.h: Ditto.
13638         * libc/sys/linux/sleep.c: New file.
13639         * libc/sys/linux/socket.c: Ditto.
13640         * libc/sys/linux/sockops.h: Ditto.
13641         * libc/sys/linux/stack.c: Ditto.
13642         * libc/sys/linux/usleep.c: Ditto.
13643         * libc/sys/linux/machine/Makefile.am: Ditto.
13644         * libc/sys/linux/machine/Makefile.in: Ditto.
13645         * libc/sys/linux/machine/aclocal.m4: Ditto.
13646         * libc/sys/linux/machine/configure: Ditto.
13647         * libc/sys/linux/machine/configure.in: Ditto.
13648         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13649         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13650         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13651         * libc/sys/linux/machine/i386/configure: Ditto.
13652         * libc/sys/linux/machine/i386/configure.in: Ditto.
13653         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13654         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13655         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13656         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13657         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13658         * libc/sys/linux/sys/select.h: Ditto.
13659         * libc/sys/linux/configure.in: Add support for machine directory.
13660         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13661         * libc/sys/linux/Makefile.in: Regenerated.
13662         * libc/sys/linux/configure: Ditto.
13663         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13664         * libc/sys/linux/inode.c: Ditto.
13665         * libc/sys/linux/linux.c: Ditto.
13666         * libc/sys/linux/process.c: Ditto.
13667         * libc/sys/linux/systat.c: Ditto.
13668         * libc/sys/linux/time.c: Ditto.
13669         * libc/sys/linux/wait.c: Ditto.
13670         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13671         * libc/sys/linux/io.c: Change header plus add readv/writev.
13672         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13673         use __sigsuspend syscall.
13674         * libc/sys/linux/select.c: Change header plus change select to
13675         use _newselect syscall.
13676         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13677         used by glibc header files.
13678         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13679         types.
13680
13681 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13682
13683         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13684         initializing a struct _reent that has been dynamically allocated.
13685         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13686         _REENT_SMALL and does nothing otherwise.
13687         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13688         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13689         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13690         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13691         [_REENT_SMALL](struct _misc_reent): New structure containing
13692         miscellaneous reentrant areas needed by newlib.
13693         [_REENT_SMALL](struct _reent): Add _misc pointer.
13694         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13695         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13696         and _REENT_STRTOK_LAST macros.
13697         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13698         and _REENT_MBLEN_STATE macros.
13699         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13700         and _REENT_MBTOWC_STATE macros.
13701         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13702         and _REENT_WCTOMB_STATE macros.
13703
13704 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13705
13706         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13707
13708 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13709
13710         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13711
13712 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13713
13714         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13715         Store high part of leading bytes too.
13716
13717 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13718
13719         * libm/math/ef_hypot.c: Increase scale factor to 68.
13720
13721 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13722
13723         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13724         error.
13725
13726 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13727
13728         * libc/sys/go32/access.c: Change license to relaxed license
13729         used in identical file throughout newlib/libgloss.
13730
13731 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13732
13733         * libc/sys/arm/access.c: New file.
13734         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13735         * libc/sys/arm/Makefile.in: Regenerate.
13736         * libc/sys/arm/syscalls.c (_stat): New function.
13737
13738 2002-03-11  Michael Meissner  <meissner@redhat.com>
13739
13740         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13741         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13742         * libc/machine/mips/Makefile.in: Regenerate.
13743         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13744         * libc/machine/mips/memset.c: Dito.
13745         * libc/machine/mips/strcmp.c: Dito.
13746         * libc/machine/mips/strlen.c: Dito.
13747         * libc/machine/mips/strncmp.c: Dito.
13748
13749 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13750
13751         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13752         object so it works for shared library or statici library.
13753 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13754
13755         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
13756         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13757         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13758         (tzname): Defined for all platforms.
13759         (daylight, timezone): Defined only for CYGWIN.
13760         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13761         environment set up.
13762         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13763         environment variable is set.
13764         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13765         tzset_r.c.
13766         *  libc/time/Makefile.in: Regenerated.
13767         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13768         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13769         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
13770         *  libc/time/local.h: New local header file.
13771         *  libc/time/mktime.c (mktime): Add timezone support.
13772         *  libc/time/mktm_r.c: New file which is the common engine
13773         for gmtime_r and lcltime_r.  This code has timezone support.
13774         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13775         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13776         *  libc/time/tzset.c: New file containing tzset() routine.
13777         *  libc/time/tzset_r.c: New file containing _tzset_r and
13778         internal routine for calculating timezone changes for specified year.
13779
13780 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13781
13782         * configure.in (CRT0_DIR): Set to libc/.
13783         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13784         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13785         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13786         $(CRT1_DIR)/$(CRT1).
13787         * libc/machine/xstormy16/Makefile.in: Regenerated.
13788         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13789         * libc/machine/xstormy16/configure: Regenerated.
13790
13791 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13792
13793         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13794         fails, don't bail out, and try to correct next time.
13795
13796         * libc/include/sys/config.h: Include limits.h.
13797
13798 2002-04-12  Eric Norum  <eric.norum@usask.com>
13799
13800         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13801         routine to allow autoconf to determine that building executables
13802         for rtems works.
13803         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13804         (rtems_gxx_mutex_once): Ditto.
13805
13806 2002-04-09  Tom Rix  <trix@redhat.com>
13807
13808         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13809
13810 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13811
13812         * libc/include/time.h: Fix strptime declaration.
13813         * libc/time/Makefile.am: Add strptime.c.
13814         * libc/time/Makefile.in: Regenerated.
13815         * libc/time/strptime.c: New file.
13816
13817 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13818
13819         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13820         siglongjmp prototype, and sigsetjmp macro definition.
13821         * libc/sys/linux/siglongjmp.c: New file.
13822         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13823         * libc/sys/linux/Makefile.in: Regenerated.
13824
13825 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13826
13827         * Makefile.am: Add support for installing crt1.o if one exists.
13828         * configure.host: Specify crt1.o for linux.
13829         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13830         * Makefile.in: Regenerated.
13831         * configure: Ditto.
13832         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13833         Added for non-Cygwin, non-RTEMS configurations.
13834         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13835         * libc/sys/linux/Makefile.in: Regenerated.
13836         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13837         by gcc.  This fixes problem with reconfiguring linux newlib build.
13838         * libc/sys/linux/sysconf.c: New file.
13839
13840 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13841
13842         * configure.host: Add support for machine subdirectory of
13843         sys subdirectory.
13844         * configure.in: Add check for sys machine subdirectory.
13845         * Makefile.am: Ditto.
13846         * configure: Regenerated.
13847         * Makefile.in: Ditto.
13848         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13849         * libc/sys/linux/sys/syscall.h: Ditto.
13850         * libc/sys/linux/sleep.c: New file.
13851         * libc/sys/linux/socket.c: Ditto.
13852         * libc/sys/linux/sockops.h: Ditto.
13853         * libc/sys/linux/stack.c: Ditto.
13854         * libc/sys/linux/usleep.c: Ditto.
13855         * libc/sys/linux/machine/Makefile.am: Ditto.
13856         * libc/sys/linux/machine/Makefile.in: Ditto.
13857         * libc/sys/linux/machine/aclocal.m4: Ditto.
13858         * libc/sys/linux/machine/configure: Ditto.
13859         * libc/sys/linux/machine/configure.in: Ditto.
13860         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13861         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13862         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13863         * libc/sys/linux/machine/i386/configure: Ditto.
13864         * libc/sys/linux/machine/i386/configure.in: Ditto.
13865         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13866         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13867         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13868         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13869         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13870         * libc/sys/linux/sys/select.h: Ditto.
13871         * libc/sys/linux/configure.in: Add support for machine directory.
13872         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13873         * libc/sys/linux/Makefile.in: Regenerated.
13874         * libc/sys/linux/configure: Ditto.
13875         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13876         * libc/sys/linux/inode.c: Ditto.
13877         * libc/sys/linux/linux.c: Ditto.
13878         * libc/sys/linux/process.c: Ditto.
13879         * libc/sys/linux/systat.c: Ditto.
13880         * libc/sys/linux/time.c: Ditto.
13881         * libc/sys/linux/wait.c: Ditto.
13882         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13883         * libc/sys/linux/io.c: Change header plus add readv/writev.
13884         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13885         use __sigsuspend syscall.
13886         * libc/sys/linux/select.c: Change header plus change select to
13887         use _newselect syscall.
13888         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13889         used by glibc header files.
13890         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13891         types.
13892
13893 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13894
13895         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13896         initializing a struct _reent that has been dynamically allocated.
13897         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13898         _REENT_SMALL and does nothing otherwise.
13899         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13900         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13901         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13902         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13903         [_REENT_SMALL](struct _misc_reent): New structure containing
13904         miscellaneous reentrant areas needed by newlib.
13905         [_REENT_SMALL](struct _reent): Add _misc pointer.
13906         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13907         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13908         and _REENT_STRTOK_LAST macros.
13909         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13910         and _REENT_MBLEN_STATE macros.
13911         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13912         and _REENT_MBTOWC_STATE macros.
13913         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13914         and _REENT_WCTOMB_STATE macros.
13915
13916 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13917
13918         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13919
13920 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13921
13922         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13923
13924 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13925
13926         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13927         Store high part of leading bytes too.
13928
13929 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13930
13931         * libm/math/ef_hypot.c: Increase scale factor to 68.
13932
13933 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13934
13935         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13936         error.
13937
13938 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13939
13940         * libc/sys/go32/access.c: Change license to relaxed license
13941         used in identical file throughout newlib/libgloss.
13942
13943 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13944
13945         * libc/sys/arm/access.c: New file.
13946         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13947         * libc/sys/arm/Makefile.in: Regenerate.
13948         * libc/sys/arm/syscalls.c (_stat): New function.
13949
13950 2002-03-11  Michael Meissner  <meissner@redhat.com>
13951
13952         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13953         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13954         * libc/machine/mips/Makefile.in: Regenerate.
13955         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13956         * libc/machine/mips/memset.c: Dito.
13957         * libc/machine/mips/strcmp.c: Dito.
13958         * libc/machine/mips/strlen.c: Dito.
13959         * libc/machine/mips/strncmp.c: Dito.
13960
13961 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13962
13963         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13964         object so it works for shared library or statici library.
13965         * libc/machine/i386/Makefile.in: Regenerated.
13966
13967 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13968
13969         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13970         Add memcpy.S, memset.S and strcpy.S.
13971         * libc/machine/sh/Makefile.in: Regenerate.
13972         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13973         (SHHI, SHLO): Define.
13974         * libc/machine/sh/memset.S: Add code for SH5.
13975         * libc/machine/sh/memset.S: Likewise.
13976         * libc/machine/sh/strcpy.S: Likewise.
13977
13978 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13979
13980         * configure.host: Add check for --disable-newlib-io-float
13981         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13982         if appropriate.
13983         * acinclude.m4: Added --disable-newlib-io-float option.
13984         * aclocal.m4: Regenerated.
13985         * configure: Ditto.
13986         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13987         * libc/*/aclocal.m4 libc/*/configure
13988         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13989         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13990         if NO_FLOATING_POINT flag is not defined.
13991
13992 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13993
13994         * libc/include/sys/config.h: Add __extension__ in front of
13995         long long references.
13996
13997 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13998
13999         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
14000         (_stat): Ditto.
14001
14002 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
14003
14004         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
14005         of off_t.
14006
14007 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
14008
14009         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
14010         clobbered registers.
14011
14012 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
14013
14014         * configure.host (newlib_cflags): When host is in m68* add
14015         -DCOMPACT_CTYPE.
14016
14017 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
14018
14019         * libc/include/sys/config.h: Add definitions for
14020         __int16_t, __uint16_t, __int64_t, and __uint64_t.
14021
14022 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
14023
14024         * libc/sys/mmixware/link.c: New.
14025         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
14026         volatile.
14027         * libc/sys/mmixware/times.c (_times): Renamed from times.
14028         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
14029         properly by reading previous contents, not through BinaryReadWrite.
14030         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
14031         * libc/sys/mmixware/Makefile.in: Regenerate.
14032
14033 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
14034
14035         * libc/include/grp.h: Don't declare group functions when compiling
14036         Cygwin.
14037
14038 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
14039
14040         * libc/include/grp.h: Include Cygwin specific header.
14041         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
14042         when compiling for Cygwin.
14043         * libc/include/sys/types.h: Don't define off_t, uid_t
14044         and gid_t when compiling for Cygwin.
14045
14046 2002-02-08  matthew green  <mrg@redhat.com>
14047
14048         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
14049         _REENT_EMERGENCY_SIZE, not sizeof(char *).
14050
14051 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
14052
14053         Contribute sh64-elf.
14054         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14055         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
14056         support in printf.
14057         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
14058         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
14059         any labels.
14060         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
14061         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
14062         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
14063         * libc/machine/sh/configure.in: Rework conditionals.
14064         * libc/machine/sh/Makefile.am: Likewise.
14065         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
14066         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
14067         * configure.host: Match `sh*'.
14068         * libc/include/machine/setjmp.h: Define for SH5.
14069         * libc/machine/sh/configure.in: Detect SH5.
14070         * libc/machine/sh/configure: Rebuilt.
14071         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
14072         * libc/machine/sh/Makefile.in: Rebuilt.
14073         * libc/machine/sh/asm.h: Adjust for SH5.
14074         * libc/machine/sh/setjmp.S: Implement in SHmedia.
14075         * libc/sys/sh/crt0.S: Likewise.
14076         * libc/sys/sh/trap.S: Likewise.
14077
14078 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14079
14080         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
14081         (mach_add_obj): Conditionally set to setjmp.o or nothing.
14082         (LIB_SOURCES): Remove $(mach_add_src).
14083         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
14084         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
14085         * libc/machine/i386/Makefile.in: Regenerate.
14086
14087 2002-02-05  Manik Raina <manik@cisco.com>
14088
14089         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
14090         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
14091         s, p, k, and outstr.
14092         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
14093
14094 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
14095
14096         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
14097         _REENT_CHECK_EMERGENCY macro.
14098
14099 2002-02-03  matthew green  <mrg@redhat.com>
14100
14101         * libc/reent/signgam.c (__signgam): Fix error in previous.
14102
14103 2002-02-02  matthew green  <mrg@redhat.com>
14104
14105         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
14106
14107         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
14108         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
14109         * libc/include/sys/reent.h (struct _reent): Completely new version
14110         for _REENT_SMALL.
14111         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
14112         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
14113         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
14114         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
14115         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
14116         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
14117         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
14118         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
14119         (_REENT_EMERGENCY): Likewise.
14120
14121         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
14122         the start of the real __sFILE, used for stdin, stdout and stderr until
14123         they are setup properly.
14124         (struct __sFILE): Move location of _data in _REENT_SMALL case.
14125         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
14126         allocated stdin, stdout and stderr.
14127         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
14128         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
14129         * libc/stdio/perror.c (_perror_r): Likewise.
14130         * libc/stdio/printf.c (printf, _printf_r): Likewise.
14131         * libc/stdio/putchar.c (_putchar_r): Likewise.
14132         * libc/stdio/puts.c (_puts_r): Likewise.
14133         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
14134         * libc/stdio/vprintf.c (vprintf): Likewise.
14135         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
14136
14137         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
14138
14139         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
14140         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
14141         for _REENT_SMALL.
14142         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
14143         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
14144
14145         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
14146         _REENT_SMALL.
14147         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
14148         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
14149         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
14150         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
14151         * libc/stdlib/rand48.c (__dorand48): Likewise.
14152         * libc/stdlib/seed48.c (_seed48_r): Likewise.
14153         * libc/stdlib/srand48.c (_srand48_r): Likewise.
14154         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
14155         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
14156         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
14157         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
14158         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
14159         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
14160         * libc/stdlib/rand.c (rand): Likewise.
14161
14162         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
14163         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
14164
14165         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
14166         _REENT_MP_FREELIST() and _REENT_MP_P5S.
14167         * libc/include/sys/reent.h (struct _mprec): New structure.
14168
14169         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
14170         _unused_strtok_last.
14171         * libc/string/strtok.c (strtok): Use a local static variable.
14172
14173         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
14174         (_REENT_EMERGENCY_SIZE): Likewise.
14175         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
14176         _REENT_ASCTIME_BUF().
14177         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
14178         _REENT_TM().
14179
14180         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
14181         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
14182         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
14183         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
14184         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
14185         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
14186
14187 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
14188
14189         * configure.host (xstormy16): Don't use the generic malloc.
14190         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
14191         * libc/machine/xstormy16/Makefile.in: Regenerate.
14192         * libc/machine/xstormy16/mallocr.c: New file.
14193         * libc/machine/xstormy16/tiny-malloc.c: New file.
14194
14195 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
14196
14197         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
14198         when _CYGWIN_TYPES_H is not defined.
14199
14200 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
14201
14202         * libc/include/sys/signal.h: Revert 2002-01-23 change.
14203
14204 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
14205
14206         * libc/include/sys/signal.h: Remove pthread_kill declaration
14207         when __CYGWIN__ is defined.
14208
14209 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
14210
14211         * libc/include/time.h: Add prototype for strptime for Cygwin.
14212
14213 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
14214
14215         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
14216         dst was not word aligned.
14217
14218         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
14219         if too much memory is requested.
14220
14221 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
14222
14223         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
14224         reads blanks from the input file to break if EOF reached
14225         rather than end processing.
14226
14227 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
14228
14229         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
14230
14231 2002-01-07 Alan Matsuoka <alanm@redhat.com>
14232
14233         * libc/include/machine/ieeefp.h: Configure d10v doubles to
14234         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
14235         libc/include/sys/config.h: Ditto.
14236
14237 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
14238
14239         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
14240
14241 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
14242             Catherine Moore  <clm@redhat.com>
14243             Richard Henderson  <rth@redhat.com>
14244             Corinna Vinschen  <vinschen@redhat.com>
14245
14246         * configure.host: Add support for xstormy16.
14247         * libc/include/machine/ieeefp.h: Add support for xstormy16.
14248         * libc/include/machine/setjmp.h: Add support for xstormy16.
14249         * libc/include/sys/config.h: Add support for xstormy16.
14250         * libc/machine/xstormy16/Makefile.am: New file.
14251         * libc/machine/xstormy16/Makefile.in: New file.
14252         * libc/machine/xstormy16/aclocal.m4: New file.
14253         * libc/machine/xstormy16/configure: New file.
14254         * libc/machine/xstormy16/configure.in: New file.
14255         * libc/machine/xstormy16/setjmp.S: New file.
14256
14257 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
14258
14259         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
14260         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
14261
14262 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
14263
14264         * libm/machine/Makefile.am: Change rules to create correct lib.a.
14265         * libm/machine/Makefile.in: Regenerated through automake.
14266
14267 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14268
14269         * Makefile.am (DOCDIR): Force to empty string when doc
14270         directory is not present.
14271
14272 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
14273
14274         * libc/machine/i386/f_*: Move to libm/machine/i386.
14275
14276 2001-12-18      Joel Sherrill <joel@OARcorp.com>
14277
14278         * libm/machine/Makefile.am: Add dummy doc stub so
14279         "make info" works.
14280
14281 2001-12-17      Joel Sherrill <joel@OARcorp.com>
14282
14283         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
14284
14285 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
14286
14287         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
14288         $(COMPILE) rather than $(CC).
14289         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
14290         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
14291         $(LIB_COMPILE) change.
14292         (vfiprintf.$(oext)): Likewise.
14293
14294 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
14295
14296         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
14297         conditionalized including of getopt stuff.
14298
14299 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
14300
14301         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
14302         compile line.
14303         (vfiprintf.$(oext)): Likewise.
14304
14305 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
14306
14307         * Makefile.shared: New file.
14308         * libc/sys/linux/shared.ld: New file.
14309         * libm/machine/*: New files.
14310         * libm/machine/i386/*: New files.
14311         * Makefile.am: Add libtool support.  Change math and mathfp
14312         references to variables.
14313         * configure.host: Add variables for libtool support.  Add
14314         libm_machine_dir variable.
14315         * configure.in: Add objectlist variables, for libtool
14316         support.  Add CC_FOR_BUILD tests.
14317         * libc/Makefile.am: Add libtool support.  Change crt0.o
14318         reference to be a variable reference.
14319         * libc/configure.in: Add libtool support.  Change sublib
14320         names to be lib${subdir}.la when using libtool.
14321         * libc/ctype/Makefile.am: Add libtool support.
14322         * libc/errno/Makefile.am: Likewise.
14323         * libc/locale/Makefile.am: Likewise.
14324         * libc/machine/Makefile.am: Likewise.
14325         * libc/machine/configure.in: Likewise.
14326         * libc/machine/i386/Makefile.am: Likewise.
14327         * libc/machine/i386/configure.in: Likewise.
14328         * libc/misc/Makefile.am: Likewise.
14329         * libc/posix/Makefile.am: Likewise.
14330         * libc/reent/Makefile.am: Likewise.
14331         * libc/signal/Makefile.am: Likewise.
14332         * libc/stdio/Makefile.am: Likewise.
14333         * libc/stdlib/Makefile.am: Likewise.
14334         * libc/string/Makefile.am: Likewise.
14335         * libc/sys/Makefile.am: Likewise.
14336         * libc/sys/configure.in: Likewise.
14337         * libc/sys/linux/Makefile.am: Add libtool support.  Change
14338         awk reference to a variable reference.  Change signal.h
14339         reference to a variable reference.
14340         * libc/sys/linux/configure.in: Add libtool support.
14341         * libc/syscalls/Makefile.am: Likewise.
14342         * libc/time/Makefile.am: Likewise.
14343         * libc/unix/Makefile.am: Likewise.
14344         * libm/Makefile.am: Add libtool support.  Change math and
14345         mathfp references to variables.
14346         * libm/configure.in: Add libtool support.  Add
14347         LIBM_MACHINE_LIB variable.
14348         * libm/common/Makefile.am: Add libtool support.
14349         * libm/math/Makefile.am: Likewise.
14350         * libm/mathfp/Makefile.am: Likewise.
14351         Regenerate all Makefile.in, aclocal.m4, and configure.
14352
14353 2001-12-13 Anita Kulkarni <anitak@kpit.com>
14354
14355         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
14356
14357 2001-12-06  John Peacock <jpeacock@rowman.com>
14358
14359         * libc/include/sys/unistd.h: Correct ualarm declaration.
14360
14361 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
14362
14363         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
14364         vector before calling the initialisation functions.
14365
14366 2001-11-29  Christopher Faylor  <cgf@redhat.com>
14367
14368         * libc/include/dirent.h: Protect against multiple inclusion.
14369
14370 2001-11-27  Christopher Faylor  <cgf@redhat.com>
14371
14372         * libc/include/sys/types.h: Define useconds_t.
14373         * libc/include/sys/ulimit.h: Declare ualarm.
14374
14375 2001-11-21  Christopher Faylor  <cgf@redhat.com>
14376
14377         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
14378
14379 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
14380
14381         * libc/sys/mmixware/*: Tweak license header in all source files.
14382
14383 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
14384
14385         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
14386         to here.  Rearrange for general inclusion by stdlib.h.
14387         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
14388         isn't defined.
14389         * libc/sys/linux/include/alloca.h: Move to libc/include.
14390
14391 2001-11-12  Anthony Green  <green@redhat.com>
14392
14393         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
14394
14395 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
14396
14397         * libc/sys/mmixware/*: Correct spacing in all source files.
14398         * libc/sys/mmixware/syscall.h: Move misplaced file...
14399         * libc/sys/mmixware/sys/syscall.h: ...here.
14400
14401 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
14402
14403         * libc/include/machine/ieeefp.h: Add support for mmix target.
14404         * libc/include/machine/setjmp.h: Ditto.
14405         * configure.host: Ditto.
14406         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
14407         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
14408         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
14409         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
14410         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
14411         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
14412         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
14413         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
14414         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
14415         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
14416         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
14417         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
14418         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
14419         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
14420         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
14421         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
14422         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
14423         libc/sys/mmixware/aclocal.m4: Generate.
14424
14425 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
14426
14427         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
14428         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
14429         when __CYGWIN__ is defined.
14430         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
14431         logwtmp().
14432
14433 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
14434
14435         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
14436         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
14437         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
14438         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
14439
14440 2001-10-24  Christopher Faylor  <cgf@redhat.com>
14441
14442         * libc/stdio/fseek.c: Reset pointer to buffer base
14443         when forced to seek outside of current buffer contents.
14444         This prevents the code from erroneously thinking there is
14445         anything in the current buffer.
14446
14447 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
14448
14449         * libc/include/math.h: The C++ standard adds the single-precision
14450         versions of the elementary functions.
14451
14452 2001-10-22  Christopher Faylor  <cgf@redhat.com>
14453
14454         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
14455         throughout.
14456         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
14457         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
14458         * system.c (_system_r): Ditto.
14459
14460 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
14461
14462         * libc/include/sys/unistd.h: Add prototype for fchdir() when
14463         __CYGWIN__ or __rtems__ is defined.
14464
14465 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
14466
14467         * libc/include/stdlib.h: add declarations for
14468         _strtoull_r, _strtoll_r, strtoull, and strtoll.
14469         * libc/stdio/local.h: remove declarations of
14470         __strtoull_r and __strtoll_r.
14471         * libc/stdio/vfscanf.c(__svfscanf_r): call
14472         _strtoull_r instead of __strtoull_r. Ditto
14473         _strtoll_r vs. __strtoll_r.
14474         * libc/stdlib/Makefile.am: add new files to
14475         .c list and .def list
14476         * libc/stdlib/Makefile.in: regenerate
14477         * libc/stdlib/strtoll_r.c: rename __strtoll_r
14478         as _strtoll_r
14479         * libc/stdlib/strtoull_r.c: rename __strtoull_r
14480         as _strtoull_r
14481         * libc/stdlib/strtoull.c: new file
14482         * libc/stdlib/strtoll.c: new file
14483
14484 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
14485
14486         * libc/include/process.h: Add getpid() declaration.
14487
14488 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
14489
14490         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
14491         for new style arm/elf ctor/dtor handling.
14492         Minor formatting tidy up.
14493
14494 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14495
14496         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
14497         and strtoull_r.c.
14498         * libc/stdlib/Makefile.in: Regenerated.
14499         * libc/stdlib/strtoll_r.c: New file.
14500         * libc/stdlib/strtoull_r.c: New file.
14501         * libc/stdio/local.h: Add prototypes for long long string
14502         conversion routines.
14503         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
14504         tied to %L integer conversion specifier.
14505
14506 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
14507
14508         * strftime.c (strftime): Fix "%W" implementation to properly handle
14509         Mondays too.
14510
14511 2001-09-07  Jeff Law  <law@redhat.com>
14512
14513         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
14514         __fini with "mov.l" instead of "mov.w".
14515
14516 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
14517
14518         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
14519         and getopt.h.
14520
14521 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
14522
14523         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
14524
14525 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
14526
14527         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
14528         field.
14529         (__DIRENT_VERSION): New define.
14530
14531 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
14532
14533         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
14534         Shrink __d_reserved accordingly to keep structure size.
14535         (dirfd): Declare external.
14536
14537 2001-08-29  Joel Sherrill <joel@OARcorp.com>
14538
14539         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
14540
14541 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14542
14543         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
14544           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
14545           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
14546           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
14547           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
14548           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
14549           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
14550           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
14551         Add conditional compilation to avoid HW FPU instructions
14552         when compiled for soft-float.
14553
14554 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14555
14556         * Makefile.am: Add check for ln failing when creating libg.a
14557         so that cp gets used as a backup.
14558         * Makefile.in: Regenerated.
14559
14560 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
14561
14562         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
14563         No longer include time.h.  Add struct __tm to use for
14564         _localtime_buf in the reentrant structure.  Add a
14565         _NULL definition to use in initializing the reentrant struct.
14566         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
14567         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
14568         <sys/_types.h>.
14569         * libc/include/sys/unistd.h: Include <sys/_types.h>.
14570         * libc/time/lcltime.c (localtime): Cast the reentrant struct
14571         _localtime_buf to be struct tm *.
14572
14573 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
14574
14575         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
14576         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
14577         __ctors_end.
14578         * libc/sys/h8300hms/syscalls.c: Include errno.h.
14579         (_unlink): New stub function.
14580
14581 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
14582
14583         * libc/include/sys/errno.h: Add a cautionary comment.
14584
14585 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
14586
14587         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
14588         for SIZE_SZ so that alignment ends up a minimum of 8.
14589
14590 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
14591
14592         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
14593         arguments.
14594
14595         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
14596         Cygwin.
14597
14598 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
14599
14600         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
14601         macro constants for mallopt options.
14602         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
14603
14604 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
14605
14606         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
14607         otherwise default.
14608
14609 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
14610
14611         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
14612
14613 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
14614
14615         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
14616         Define for little endian ARMs.
14617
14618         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
14619         __IEEE_BYTES_LITTLE_ENDIAN is defined.
14620
14621 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
14622
14623         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
14624
14625 2001-06-11  Egor Duda  <deo@logos-m.ru>
14626
14627         * libc/ctype/ctype_.c: When compiled with gcc on platforms
14628         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
14629         initialized memory region. Platform can define COMPACT_CTYPE
14630         to avoid allocation of the additional 128 bytes of data.
14631         Add pointer to _ctype_ array. Always initialize all _ctype_
14632         array elements.
14633
14634 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
14635
14636         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
14637         NULL pointer.
14638
14639 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
14640
14641         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
14642
14643 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
14644
14645         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
14646         matching, non-word alignment, and the length is <= 4 but more than
14647         enough to move them over a word boundary.
14648         Add comments explaining what each instruction does.
14649
14650 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
14651
14652         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
14653         * libc/include/sys/unistd.h: Ditto.
14654
14655 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
14656
14657         * libc/string/strrchr.c: Use strchr for the speed improvements.
14658
14659 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
14660
14661         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
14662         real file systems, let __smakebuf() determine if line buffering
14663         should be used for stdout.
14664
14665 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14666
14667         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
14668
14669 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14670
14671         * libc/include/stdlib.h: Add prototype for _strtod_r.
14672
14673 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
14674
14675         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
14676         * libc/stdio/vprintf.c (_vprintf_r): new function
14677         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
14678         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
14679         _DEFUN, and call _vfprintf_r, not vfprintf.
14680         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
14681         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
14682         _DEFUN, and call _vfprintf_r, not vfprintf.
14683
14684 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
14685
14686         * libc/include/sys/unistd.h [X_OK]: Use better protection against
14687         Cygwin X_OK definitions in sys/file.h.
14688
14689 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
14690
14691         * libc/include/sys/time.h: Define timercmp and other macros for
14692         __CYGWIN__, too.
14693
14694 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14695
14696         * acinclude.m4: Added --enable-malloc-debugging configure flag.
14697         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
14698         --enable-malloc-debugging selected.
14699         * aclocal.m4 configure: Regenerated.
14700           libm/aclocal.m4 libm/configure: Ditto.
14701         * libc/aclocal.m4 libc/configure: Ditto.
14702         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
14703         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
14704         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
14705         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
14706         * doc/aclocal.m4 doc/configure: Ditto.
14707
14708 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14709
14710         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
14711         into one list.
14712         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
14713         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
14714         function prototypes.
14715         (_fscanf_r, _sscanf_r): Ditto.
14716         * libc/include/stdlib.h: Added _strtod_r prototype.
14717         * libc/stdio/Makefile.am: Add new v*scanf functions.
14718         * libc/stdio/Makefile.in: Regenerate.
14719         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
14720         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
14721         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
14722         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
14723         (sscanf): Changed to call __svfscanf_r with _REENT argument.
14724         (_sscanf_r): New routine.
14725         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
14726         with __svfscanf_r prototype.
14727         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
14728         routines.
14729         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
14730         structure as argument as calls reentrant versions of helper functions
14731         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
14732         to _strtol_r and _strtod_r respectively.
14733         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
14734         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
14735         _REENT argument.
14736         * libc/stdio/vscanf.c: New file.
14737         * libc/stdio/vsscanf.c: Ditto.
14738
14739 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
14740
14741         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
14742         Define daylight to _daylight if it is not defined
14743         Prepare a variable export of timezone based on timezonevariable.
14744         (Cannot be used with the timezone() function.)
14745
14746 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
14747
14748         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
14749          Correct the numerical values.
14750
14751 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
14752
14753         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
14754
14755 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
14756
14757         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
14758         on case insensitve file systems.
14759
14760 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
14761
14762         * libc/include/sys/features.h: Add appropriate defines for Cygwin
14763         pthread support.
14764         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
14765         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
14766         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
14767
14768 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
14769
14770         * libc/include/machine/ieeefp.h: Comment about new configuration
14771         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14772         * libm/common/fdlib.h: Define new macros for testing floats.
14773         * libm/common/sf_*: Use them.
14774         * libm/math/ef_*: Likewise.
14775         * libm/math/sf_*: Likewise.
14776
14777 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14778
14779         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14780         prolog to by-pass possible assembler error.
14781
14782 2001-03-21  Egor Duda  <deo@logos-m.ru>
14783
14784         Allow building internal stubs for non-reentrant syscalls
14785         if target provides its own malloc
14786         * libc/reent/reent.c (errno): Move definition here.
14787         * libc/reent/sbrkr.c: From here.
14788
14789 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14790
14791         * libc/include/sys/types.h (BSD int typedefs): Guard with
14792         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14793         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14794         _SYS_TYPES_FD_SET.
14795         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14796         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14797
14798 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14799
14800         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14801         _PC_POSIX_SECURITY constants for Cygwin.
14802
14803 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14804
14805         * libc/sys/cygwin/crt0.c: Add copyright hint.
14806         * libc/sys/cygwin/sys/dirent.h: Ditto.
14807         * libc/sys/cygwin/sys/param.h: Ditto.
14808         * libc/sys/cygwin/sys/utime.h: Ditto.
14809         * libc/sys/cygwin/sys/utmp.h: Ditto.
14810
14811 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14812
14813         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14814         equivalent to LONGINT.
14815
14816 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14817
14818         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14819         jmpbuf on MIPS64 targets.
14820         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14821
14822 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14823
14824         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14825           declarations.
14826
14827 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14828
14829         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14830         For RTEMS, define to be ssize_t.  Default to int if not defined.
14831         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14832         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14833         * libc/stdio/local.h (__sread, __swrite): Likewise.
14834         * libc/include/sys/reent.h (_read, _write): Likewise.
14835         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14836         * libc/syscalls/sysread.c (read): Likewise.
14837         * libc/syscalls/syswrite.c (write): Likewise.
14838
14839 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14840
14841         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14842
14843 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14844
14845         * libc/include/sys/stat.h: Use special defines for executable stat bits
14846         when compiling for Cygwin.
14847         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14848         for Cygwin.
14849
14850 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14851
14852         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14853         of strtok_r is always defined.
14854
14855 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14856
14857         * libc/include/machine/ansi.h: New dummy header file.
14858
14859 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14860
14861         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14862         changed the copyright information to allow free modification of the
14863         file with no reference to "copying.dj".
14864         * libc/include/sys/stat-dj.h: Ditto.
14865         * libc/machine/i386/setjmp.S: Ditto.
14866         * libc/sys/h8300hms/sys/file.h: Ditto.
14867         * libc/sys/sysmec/access.c: Ditto.
14868         * libc/sys/sysnecv850/access.c: Ditto.
14869         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14870         * libc/stdlib/getenv_r.c: Ditto.
14871         * libc/stdlib/putenv_r.c: Ditto.
14872         * libc/stdlib/setenv_r.c: Ditto.
14873         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14874         modifications will now be in the _r version of this file.
14875         * libc/stdlib/putenv.c: Ditto.
14876         * libc/stdlib/setenv.c: Ditto.
14877         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14878         valid.  Added a reference to DJ's web page that contains his address.
14879         * libc/sys/go32/*.s: Removed references to DJ's old address.
14880         * libc/sys/go32/*.c: Ditto.
14881         * libc/sys/go32/*.h: Ditto.
14882         * libc/sys/go32/*.S: Ditto.
14883         * libc/sys/go32/sys/*.h: Ditto.
14884
14885 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14886
14887         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14888         HAVE_FCNTL flag check.
14889         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14890         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14891
14892 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14893
14894         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14895
14896 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14897
14898         * libc/include/stdlib.h: Add declarations of rand48 functions and
14899         their reentrant versions.
14900         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14901         struct _rand48 for shared parameters of rand48 functions.
14902         (struct _reent): Add a variable _r48 of struct _rand48.
14903         (_REENT_INIT): Add _r48 initialization.
14904         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14905         (CHEWOUT_FILES): Add rand48.def.
14906         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14907         * libc/stdlib/Makefile.in: Regenerated.
14908         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14909         NetBSD C library.
14910         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14911         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14912         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14913         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14914         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14915         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14916         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14917         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14918         * libc/stdlib/rand48.c (__dorand48): Ditto.
14919         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14920         parameters into macros referring them in the reentrant structure.
14921
14922 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14923
14924         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14925         Cygwin definition has correct prototype.
14926
14927 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14928
14929         * libc/include/sys/stat.h: Must revert change for mknod
14930         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14931         prototype.
14932
14933 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14934
14935         * libc/include/stdio.h: Revert putw prototype.
14936
14937 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14938
14939         * libc/include/grp.h: add prototype for initgroups.
14940         * libc/include/stdio.h: fix prototype for putw.
14941         * libc/include/sys/signal.h: add prototype for killpg.
14942         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14943         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14944         vhangup and remove duplicate sysconf prototype.
14945
14946 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14947
14948         * libc/sys/rtems/sys/types.h: Removed.
14949
14950 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14951
14952         * libc/include/locale.h: add LC_MESSAGES definition
14953
14954 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14955
14956         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14957         SYS_get_argN):
14958         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14959         __setup_argv_and_call_main): New.
14960
14961 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14962
14963         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14964         if defined.
14965         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14966         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14967         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14968         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14969
14970 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14971
14972         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14973         compiling under Cygwin.
14974
14975 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14976
14977         * libc/include/math.h (signgam): Change to errno-like solution
14978         using a function to return the address of the real signgam.
14979         * libc/reent/signgam.c: New file containing __signgam().
14980         * libc/reent/Makefile.am: Added signgam.c to list of files.
14981         * libc/reent/Makefile.in: Regenerated.
14982
14983 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14984
14985         * libc/sys/sh/syscalls.c (_times): New.
14986
14987         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14988         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14989
14990 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14991
14992         * libc/include/math.h (signgam): Regress previous fix as
14993         it does not handle programs with extern int signgam in them.
14994
14995 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14996
14997         * libc/include/math.h (signgam): Changed to a macro refering to
14998         its location in the reentrant structure.
14999
15000 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
15001
15002         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
15003         that suppressed . for %.0f, 0.1.  Check now looks if there
15004         are padding zeroes (expt) in addition to any digits (ndig) to
15005         print.
15006
15007 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
15008
15009         * libc/sys/arc/Makefile.am: New file.
15010         * libc/sys/arc/Makefile.in: Ditto.
15011         * libc/sys/arc/aclocal.m4: Ditto.
15012         * libc/sys/arc/configure: Ditto.
15013         * libc/sys/arc/configure.in: Ditto.
15014         * libc/sys/arc/crt0.S: Ditto.
15015         * libc/sys/arc/isatty.c: Ditto.
15016         * libc/sys/arc/mem-layout.c: Ditto.
15017         * libc/sys/arc/sbrk.c: Ditto.
15018         * libc/sys/arc/syscalls.c: Ditto.
15019         * libc/sys/arc/sys/syscall.h: Ditto.
15020
15021 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
15022
15023         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
15024
15025 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
15026
15027         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
15028
15029 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
15030
15031         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
15032
15033 2001-01-09  Nick Clifton  <nickc@redhat.com>
15034
15035         * configure.host (v859): Remove unsupported compiler options.
15036
15037 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
15038
15039         * src/newlib/configure.host (*-*-rtems*): add printf long long
15040         support for RTEMS.
15041
15042 2000-12-19  Graham Stott <grahams@redhat.com>
15043
15044         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
15045
15046 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
15047
15048         * configure.host: Turn on long double I/O for Cygwin.
15049
15050 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
15051
15052         * MAINTAINERS: Removed Ranjith.
15053         * NEWS: Updated for 1.9.0.
15054         * README: Updated.
15055         * acinclude.m4: Updated to release 1.9.0.
15056         * aclocal.m4 configure
15057           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
15058           libc/machine/aclocal.m4 libc/machine/configure
15059           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
15060           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
15061           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
15062           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
15063           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
15064           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
15065           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
15066           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
15067           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
15068           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
15069           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
15070           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
15071           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
15072           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
15073           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
15074           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
15075           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
15076           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
15077           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
15078           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
15079           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15080           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15081           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15082           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
15083           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15084           libc/sys/aclocal.m4 libc/sys/configure
15085           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15086           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15087           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15088           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15089           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15090           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15091           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15092           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15093           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
15094           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15095           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15096           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15097           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15098           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15099           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15100           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15101           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15102           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15103           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15104           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15105           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15106           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15107           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15108           libm/aclocal.m4 libm/configure: Regenerated.
15109
15110 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15111
15112         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
15113         when __CYGWIN__ is defined.
15114
15115 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
15116
15117         * libc/stdlib/ldtoa.c (_ldcheck): New routine
15118         that categorizes a long double as NaN, Infinity, or other.
15119         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
15120         isinfl and isnanl static routines which were i386-specific.  Changed
15121         calls to the two removed routines to a single _ldcheck call.
15122         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
15123
15124 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
15125
15126         * Makefile.am: Fixed install-data-local target to use
15127         $(mkinstalldirs) for the installed header files to ensure
15128         the directories exist before copying.
15129         * Makefile.in: Regenerated.
15130
15131 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
15132
15133         * libc/include/sys/unistd.h: Restored Cygwin _SC
15134         constants and moved new constants appropriately
15135         so Cygwin will build.
15136
15137 2000-12-11  Joel Sherrill <joel@OARcorp.com>
15138
15139         * Merge RTEMS specific .h files into main libc/include.
15140         * libc/sys/rtems/include/signal.h: Removed.
15141         * libc/sys/rtems/include/time.h: Removed.
15142         * libc/sys/rtems/sys/features.h: Removed.
15143         * libc/sys/rtems/sys/sched.h: Removed.
15144         * libc/sys/rtems/sys/siginfo.h: Removed.
15145         * libc/sys/rtems/sys/signal.h: Removed.
15146         * libc/sys/rtems/sys/time.h: Removed.
15147         * libc/sys/rtems/sys/times.h: Removed.
15148         definitions for time_t and clock_t since these are
15149         no longer in time.h.
15150         * libc/include/pthread.h: New file.
15151         * libc/include/sys/sched.h: New file.
15152         * libc/include/sys/features.h: New file.
15153         * libc/include/time.h: Removed duplicate definition of clock_t
15154         and time_t, get them from <sys/types.h> instead.  Add prototypes
15155         for POSIX clock and timer functionality.
15156         * libc/sys/linux/sys/types.h: Changed to include
15157         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
15158         * libc/include/sys/signal.h: Add more complete set of POSIX
15159         signal functionality including real-time and threaded signals.
15160         * libc/include/sys/types.h: Add clock_t, time_t, struct
15161         timespec, and struct itimerspec.  Centralizing these makes
15162         things cleaner.  RTEMS uses 64-bit dev_t.
15163         Added numerous primitive definitions
15164         for pthreads including macros, pthread_attr_t,
15165         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
15166         pthread_once_t, and pthread_t.
15167         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
15168         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
15169         Feature flags removed and moved to new file <sys/features.h>.
15170         Full set of POSIX sysconf() constants
15171
15172 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15173
15174         * configure.host: Added x86 linux target.
15175         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
15176         definitions provided if not already defined.
15177         * libc/sys/linux/crt0.c: New file.
15178         * libc/sys/linux/Makefile.am: Ditto.
15179         * libc/sys/linux/Makefile.in: Ditto.
15180         * libc/sys/linux/aclocal.m4: Ditto.
15181         * libc/sys/linux/brk.c: Ditto.
15182         * libc/sys/linux/configure: Ditto.
15183         * libc/sys/linux/configure.in: Ditto.
15184         * libc/sys/linux/getoptlong.c: Ditto.
15185         * libc/sys/linux/ids.c: Ditto.
15186         * libc/sys/linux/inode.c: Ditto.
15187         * libc/sys/linux/io.c: Ditto.
15188         * libc/sys/linux/linux.c: Ditto.
15189         * libc/sys/linux/process.c: Ditto.
15190         * libc/sys/linux/realpath.c: Ditto.
15191         * libc/sys/linux/select.c: Ditto.
15192         * libc/sys/linux/signal.c: Ditto.
15193         * libc/sys/linux/systat.c: Ditto.
15194         * libc/sys/linux/termios.c: Ditto.
15195         * libc/sys/linux/time.c: Ditto.
15196         * libc/sys/linux/wait.c: Ditto.
15197         * libc/sys/linux/include/alloca.h: Ditto.
15198         * libc/sys/linux/include/getopt.h: Ditto.
15199         * libc/sys/linux/include/stdint.h: Ditto.
15200         * libc/sys/linux/include/unistd.h: Ditto.
15201         * libc/sys/linux/sys/cdefs.h: Ditto.
15202         * libc/sys/linux/sys/dirent.h: Ditto.
15203         * libc/sys/linux/sys/errno.h: Ditto.
15204         * libc/sys/linux/sys/fcntl.h: Ditto.
15205         * libc/sys/linux/sys/file.h: Ditto.
15206         * libc/sys/linux/sys/ioctl.h: Ditto.
15207         * libc/sys/linux/sys/resource.h: Ditto.
15208         * libc/sys/linux/sys/signal.h: Ditto.
15209         * libc/sys/linux/sys/stat.h: Ditto.
15210         * libc/sys/linux/sys/syscall.h: Ditto.
15211         * libc/sys/linux/sys/termios.h: Ditto.
15212         * libc/sys/linux/sys/time.h: Ditto.
15213         * libc/sys/linux/sys/types.h: Ditto.
15214         * libc/sys/linux/sys/utmp.h: Ditto.
15215         * libc/sys/linux/sys/utsname.h: Ditto.
15216         * libc/sys/linux/sys/wait.h: Ditto.
15217
15218 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15219
15220         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
15221         can be a relative path to $(top_srcdir)/install.sh so ensure the
15222         autoconf detected settings are properly passed recursively.
15223         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
15224         properly to subdirectories.
15225         * Makefile.in: Regenerated.
15226
15227 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
15228
15229         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
15230         a floating point register unless really printing a floating
15231         point number.
15232
15233 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
15234
15235         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
15236         Also removed \r's.
15237         (asctoeg): Replaced alloca call with stack array and malloc
15238         when storage exceeds reasonable limit.
15239         (e53toe): Fixed einfin calls missing ldp parameter.
15240         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
15241
15242 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
15243
15244
15245         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
15246
15247 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
15248
15249         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
15250         * libc/stdlib/Makefile.in: Regenerated.
15251         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
15252         * libc/stdio/vfieeefp.h: Added long double bit structures.
15253         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
15254         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
15255         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
15256         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
15257         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
15258         _strtold routines used for conversions between character
15259         and long double.
15260
15261 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15262
15263         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
15264
15265 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15266
15267         * libc/include/machine/time.h: RTEMS systems can configure clock
15268         tick rate so use sysconf() to ask.
15269
15270 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15271
15272         * libc/include/sys/times.h: Add reference to POSIX standard.
15273
15274 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15275
15276         * libc/include/sys/time.h: Added BSD timer manipulation macros
15277         used by RTEMS code.
15278
15279 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15280
15281         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
15282         referenced by code generated by gcc 2.8.1.
15283         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
15284         satisfy gcc.
15285
15286 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15287
15288         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
15289
15290 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15291
15292         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
15293
15294 2000-12-04  Joel Sherrill <joel@OARcorp.com>
15295
15296         * configure.host (or16, or32): New entries for OpenCores
15297         OpenRisc CPUs.
15298         (*-*-rtems*): Add -DNO_EXEC.
15299
15300 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
15301
15302         * libc/include/sys/errno.h: Added comments on many error numbers.
15303         * libc/string/strerror.c: Added some more strings.
15304
15305 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
15306
15307         * libc/sys/sh/syscalls.c (_link): New stub.
15308
15309 2000-11-29  Nick Clifton  <nickc@redhat.com>
15310
15311         * configure.host: Add xscale target.
15312         * libc/machine/xscale: New directory.
15313         * libc/machine/xscale/Makefile.am: New file.
15314         * libc/machine/xscale/Makefile.in: New file.
15315         * libc/machine/xscale/aclocal.m4: New file.
15316         * libc/machine/xscale/configure: New file.
15317         * libc/machine/xscale/configure.in: New file.
15318         * libc/machine/xscale/memchr.S: New file.
15319         * libc/machine/xscale/memcmp.S: New file.
15320         * libc/machine/xscale/memcpy.S: New file.
15321         * libc/machine/xscale/memmove.S: New file.
15322         * libc/machine/xscale/memset.S: New file.
15323         * libc/machine/xscale/strchr.S: New file.
15324         * libc/machine/xscale/strcmp.S: New file.
15325         * libc/machine/xscale/strcpy.S: New file.
15326         * libc/machine/xscale/strlen.S: New file.
15327
15328 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15329
15330         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
15331         avoid compiler warnings.
15332
15333 2000-11-22  Michael Meissner  <meissner@redhat.com>
15334
15335         * libc/posix/execl.c (execl): Don't reference environ directly,
15336         reference it only via a static pointer to avoid problems with some
15337         shared library systems and with different uses of small data where
15338         the user specifies his own version of environ.
15339         * libc/posix/execv.c (execv): Ditto.
15340         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
15341         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
15342         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
15343
15344         * libc/stdlib/getenv.c (environ): Delete unused reference to
15345         environ.
15346
15347         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
15348         colorization.
15349         * libc/stdlib/system.c: Ditto.
15350
15351 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
15352
15353         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
15354         including windows headers.
15355
15356 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
15357
15358         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
15359         * libc/include/dirent.h: Added definition of MAXNAMLEN if
15360         not defined by sys/dirent.h.
15361         * libc/posix/execvp.c: Added include of dirent.h to get
15362         MAXNAMLEN value which used to be in unistd.h.
15363
15364 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15365
15366         * libc/include/sys/types.h: Change type of i to `size_t' in
15367         FD_ZERO macro to avoid compiler warnings.
15368
15369 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
15370
15371         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
15372         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
15373
15374 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
15375
15376         * libc/include/sys/unistd.h: Add defines for sysconf values
15377         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
15378         _SC_AVPHYS_PAGES.
15379
15380 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
15381
15382         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
15383         declarations for __CYGWIN__.
15384
15385 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
15386
15387         * libc/signal/signal.c (__sigtramp_r): ISO C requires
15388         case labels to be integral constant expressions, so
15389         use an if/else tree instead.
15390         (_raise_r): Likewise.
15391
15392 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
15393
15394         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
15395         clipping patch from e-mail reader.
15396
15397 2000-09-13  Will Cohen  <wcohen@redhat.com>
15398
15399         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
15400         Added return value 0.
15401         (_longjmp): Allow longjmp to return value of second argument
15402         passed to it.
15403
15404 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
15405
15406         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
15407         inline code to prevent having to include another header file.
15408
15409 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
15410
15411         * Makefile.am: Fix space vs. tab problem in install-data-local.
15412         * Makefile.in: Regenerate.
15413
15414 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
15415
15416         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
15417         (_EXPARM): New macro for defining a function parameter.
15418         * libc/include/stdlib.h: Use _EXPARM.
15419         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
15420
15421 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
15422
15423         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
15424         required, as documented in the gnu coding standards.
15425         * Makefile.in: Regenerate.
15426
15427 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
15428
15429         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
15430         make O_NDELAY and O_NONBLOCK have the same value.
15431
15432 2000-08-30  Kazu Hirata  <kazu@hxi.com>
15433
15434         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
15435
15436 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15437
15438         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
15439         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
15440         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
15441         everywhere else.
15442
15443 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
15444
15445         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
15446         * libc/include/string.h: Don't include <sys/types.h>,
15447         as it causes really bad namespace pollution.  Don't declare
15448         swab(), it is properly declared in unistd.h.
15449
15450 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15451
15452         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
15453         (broken) support for non-existent /etc/passwd field "comment".
15454
15455 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15456
15457         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
15458         only if _DIRENT_HAVE_D_NAMLEN is defined.
15459         (alphasort): aligned prototype with
15460         libc/sys/cygwin/sys/dirent.h and simplified function body.
15461         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
15462         long telldir (DIR *) as mentioned in annex B of POSIX.1
15463
15464 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15465
15466         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
15467         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
15468         Added __CLI and __STI macros (controlled via
15469         _I386MACH_ALLOW_HW_INTERRUPTS macro).
15470         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
15471         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
15472         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
15473         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
15474         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
15475         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
15476         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
15477         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
15478         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
15479         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
15480         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
15481         for all global entry points.
15482         * libc/machine/i386/setjmp.S: removed code replicated in
15483         libc/machine/i386/i386mach.h and included i386mach.h instead;
15484         Use __CLI and __STI instead of cli and sti.
15485
15486 2000-08-25  DJ Delorie  <dj@redhat.com>
15487
15488         * libc/include/sys/unistd.h (environ): this one isn't from the
15489         DLL, no __IMPORT
15490
15491 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
15492
15493         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
15494         environ when compiling under cygwin since it is already declared in
15495         unistd.h.
15496
15497 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15498
15499         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
15500         like  x << y-z  to the equivalent  x << (y-z).
15501         (d2b): changed if statements with assignment to perform the
15502         assignment prior to the if check.
15503         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
15504         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
15505         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
15506         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
15507         precedence.
15508         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
15509         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
15510         execve.c).
15511         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
15512         precedence.
15513         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
15514         clarify && and || precendence (and to remove pascalism).
15515         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
15516         * libm/math/s_infconst.c: added another pair of braces to all
15517         initializers for __infinity (need three: for __infinity[1] array,
15518         for union __dmath, and for i[2]).
15519
15520 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15521
15522         * libc/stdlib/abort.c: changed description: uses "raise" instead of
15523         "getpid" and "kill"; added: uses "write" and "_exit".
15524         Also included unistd.h for "_exit" prototype.
15525         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
15526         reent.h for "_fork_r" and "_wait_r" prototypes.
15527         (do_system): changed  extern char *environ[] to POSIX-friendly
15528         extern char **environ.
15529         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
15530         prototypes.
15531         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
15532         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
15533         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
15534         * libc/reent/openr.c: included fcntl.h for "open" prototype.
15535         * libc/reent/signalr.c: included signal.h for "kill" prototype,
15536         unistd.h for "getpid" prototype.
15537         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
15538         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
15539         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
15540         prototype.  Also included stdlib.h for "abort", string.h for
15541         "strdup" and "strncmp" prototypes.
15542         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
15543         "strncpy", unistd.h for "read" and "close" prototypes.
15544         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
15545         "strcat" prototypes.
15546
15547 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
15548
15549         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
15550         used later (ifdef __SCLE)
15551         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
15552         used later (ifdef MB_CAPABLE)
15553         * libc/string/memset.c (memset): removed unused variables "count"
15554         and "unaligned_addr"
15555         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
15556         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
15557         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
15558         and "gid"
15559
15560 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15561
15562         * libc/stdlib/envlock.c: changed documented "__env_lock" and
15563         "__env_unlock" prototype from "void *" or "char *" to
15564         "struct _reent *" to match real function.  Also added include
15565         of envlock.h.
15566         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
15567         "__malloc_unlock" prototype from "void *" or "char *" to
15568         "struct _reent *" to match real function.
15569         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
15570         prototypes (for getenv_r.c and setenv_r.c).
15571
15572 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
15573
15574         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
15575         and prototype in cygwin's utmp.h
15576
15577 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
15578
15579         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
15580
15581 2000-08-09  Nick Clifton  <nickc@cygnus.com>
15582
15583         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
15584         epilogue and to allow the functions to be used in a Thumb based
15585         toolchain.
15586
15587 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
15588
15589         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
15590         so size of 0 results in nothing being written to string.
15591         Also fixed code so that when size is non-zero, there is only
15592         a maximum of size - 1 characters written to the array and
15593         a nul terminator is appended at the end.
15594         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
15595
15596 2000-08-01  DJ Delorie  <dj@redhat.com>
15597
15598         * libc/include/sys/config.h: define __IMPORT appropriately
15599         * libc/include/ctype.h (_ctype_): use __IMPORT
15600         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
15601         * libc/include/math.h (__mb_cur_max): ditto
15602         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
15603         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
15604         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
15605         * libc/include/unistd.h (environ): ditto
15606
15607 2000-07-28  Michael Meissner  <meissner@redhat.com>
15608
15609         * libc/include/math.h (__infinity): Declare as an array without
15610         bounds to get around small data support.  Rewrite Cygwin support
15611         to be more general.
15612         * libm/math/s_infconst.c (__infinity): Ditto.
15613         * libm/mathfp/s_infconst.c (__infinity): Ditto.
15614
15615 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
15616
15617         * libc/include/math.h: Use appropriate dll import linkage for
15618         __infinity under Cygwin.
15619
15620 2000-07-13  DJ Delorie  <dj@cygnus.com>
15621
15622         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
15623
15624 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
15625
15626         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
15627         to argument list for AngelSWI_Reason_GetCmdLine.
15628
15629 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
15630
15631         * configure.host: Add support for AVR target.
15632         * libc/include/machine/ieeefp.h: Likewise.
15633         * libc/include/sys/config.h: Likewise.
15634
15635 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15636
15637         * README: Newlib 1.8.2 must be built in a separate directory
15638         than the sources.
15639
15640 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15641
15642         * libc/include/sys/reent.h (_rand_next): Added __extension__
15643         qualifier as long long type is not strict ANSI.
15644         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
15645         to long long constant.
15646
15647 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
15648
15649         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
15650         `setegid' provided by Cygwin.
15651
15652 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
15653
15654         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
15655         account for Cygwin.
15656
15657 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15658
15659         * libc/include/sys/reent.h (_rand_next): Changed to
15660         unsigned long long and moved to end of _reent struct in _new union.
15661         (_REENT_INIT): Changed to move _rand_next initialization.
15662         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
15663         linear congruential algorithm that is used by DJGPP.
15664
15665 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15666
15667         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
15668         * libc/include/sys/config.h: Define __RAND_MAX.
15669
15670 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15671
15672         * libc/stdlib/rand_r.c: New algorithm that meets minimal
15673         standard.
15674
15675 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
15676
15677         * libc/include/string.h: Work around problem with strsignal and gdb.
15678
15679 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
15680
15681         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
15682         * libc/include/malloc.h: Ditto.
15683         * libc/include/process.h: Ditto.
15684         * libc/include/stdio.h: Ditto.
15685         * libc/include/stdlib.h: Ditto.
15686         * libc/include/time.h: Ditto.
15687         * libc/include/machine/setjmp.h: Ditto.
15688         * libc/include/sys/errno.h: Ditto.
15689         * libc/include/sys/signal.h: Ditto.
15690         * libc/include/sys/stat.h: Ditto.
15691         * libc/include/sys/time.h: Ditto.
15692         * libc/include/sys/unistd.h: Ditto.
15693         * libc/include/string.h: Ditto.  strsignal should return a const char *.
15694
15695 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
15696
15697         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
15698         * libm/common/s_log1p.c (log1p): Likewise.
15699         * libm/common/s_scalbn.c (scalbn): Likewise.
15700         * libm/math/e_log.c: Likewise.
15701         * libm/math/e_asin.c: Likewise.
15702         * libm/math/ef_asin.c: Likewise.
15703         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
15704         * libm/math/e_j1.c (pone, qone): Likewise.
15705         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
15706         * libm/math/ef_j1.c (ponef, qonef): Likewise.
15707         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
15708         * libm/mathfp/e_j1.c (pone, qone): Likewise.
15709         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
15710         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
15711
15712 2000-05-19  DJ Delorie  <dj@cygnus.com>
15713
15714         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
15715         (__sread): always read in binary mode
15716         (__swrite): always write in binary mode
15717         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
15718         compatibility issues with different dll versions
15719         * libc/stdio/fopen.c: use __stextmode
15720         * libc/stdio/fdopen.c: ditto
15721         * libc/stdio/freopen.c: ditto
15722         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
15723         * libc/stdio/local.h: declare __stextmode
15724
15725 2000-05-18  DJ Delorie  <dj@cygnus.com>
15726
15727         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
15728
15729 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15730
15731         * libc/include/ctype.h: Changed tolower and toupper macros
15732         to use __extension__ to prevent pedantic warnings.
15733
15734 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
15735
15736         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
15737         structures.
15738
15739 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
15740
15741         * libc/include/machine/ieeefp.h: Add ia64 support.
15742         * configure.host: Likewise.
15743
15744 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
15745
15746         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
15747         month is now padded with space, not zero.  This now conforms to
15748         ANSI standard.
15749
15750 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
15751
15752         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
15753         host or network path") used by cygwin. Add some comments.
15754
15755 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
15756
15757         * libc/include/stdio.h (FILE): define __SCLE for "convert line
15758         endings" for Cygwin.
15759         (__sgetc): convert line endings if needed
15760         (__sputc): ditto
15761         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
15762         * libc/stdio/fopen.c (_fopen_r): ditto
15763         * libc/stdio/freopen.c (freopen): ditto
15764         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
15765         * libc/stdio/fvwrite.c (__sfvwrite): ditto
15766
15767 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
15768
15769         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
15770         post-increment when it is worth it, spacewise.
15771
15772 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15773
15774         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15775         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15776         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15777         return type.
15778         * libc/stdio/putchar.c (putchar): Added return statement.
15779         * libc/stdio/refill.c (lflush): Added correct parentheses.
15780         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15781         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15782         prints long value to use l qualifier.
15783         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15784         messages and initialized local values: ilim, ilim1, and spec_case.
15785         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15786         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15787         * libc/stdlib/mprec.c: Ditto.
15788         * libc/stdlib/setenv_r.c: Ditto.
15789         * libc/stdlib/strtod.c: Ditto.
15790         * libc/stdlib/strtol.c: Ditto.
15791         * libc/stdlib/strtoul.c: Ditto.
15792         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15793         * libm/common/sf_log1p.c: Ditto.
15794         * libm/common/sf_scalbn.c: Ditto.
15795         * libm/math/ef_log.c: Ditto.
15796
15797 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15798
15799         * libc/posix/execvp.c (execvp): Check path for
15800         trailing slash.
15801
15802 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15803
15804         * libc/include/sys/unistd.h: Add prototypes for
15805         fchmod, fchown, lchown.
15806
15807 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15808
15809         * acinclude.m4: Changed release to 1.8.2.
15810         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15811           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15812           libc/machine/configure libc/machine/a29k/aclocal.m4
15813           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15814           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15815           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15816           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15817           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15818           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15819           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15820           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15821           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15822           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15823           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15824           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15825           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15826           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15827           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15828           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15829           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15830           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15831           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15832           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15833           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15834           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15835           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15836           libc/machine/z8k/configure libc/sys/aclocal.m4
15837           libc/sys/aclocal.m4 libc/sys/configure
15838           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15839           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15840           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15841           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15842           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15843           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15844           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15845           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15846           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15847           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15848           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15849           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15850           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15851           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15852           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15853           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15854           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15855           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15856           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15857           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15858           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15859           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15860           libm/aclocal.m4 libm/configure: Regenerated.
15861
15862 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15863
15864         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15865         (do_AngelSWI): Add "cc" to list o registers clobbered.
15866
15867 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15868
15869         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15870         information to be clobbered by an Angel C library support syscall.
15871
15872 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15873
15874         * libc/stdlib/envlock.c: Fixed comment typo.
15875
15876 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15877
15878         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15879         code to update nread as each character is processed instead
15880         of using buffer contents which throw away leading zeroes.
15881
15882 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15883
15884         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15885
15886 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15887
15888         * libc/include/string.h: Include <sys/types.h>.
15889
15890 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15891
15892         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15893         with XSH5, not SVID.
15894
15895 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15896
15897         * libc/include/string.h: Changed last argument back to ssize_t
15898         to make it compatible with XPG4 definition which is
15899         defined in <unistd.h>.  There is a conflict in the SVID 3
15900         and XPG4 definitions and newlib will settle with XPG4.
15901         * libc/string/swab.c: Ditto.
15902
15903 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15904
15905         * libc/include/string.h: Changed last argument to size_t.
15906         * libc/string/swab.c: Changed last argument to size_t.
15907
15908 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15909
15910         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15911         (CHEWOUT_FILES): Added unlinkr.def.
15912         * libc/reent/Makefile.in: Rebuilt.
15913         * libc/sys.tex: Include unlinkr.def.
15914         * libc/reent/linkr.c (_unlink_r): Moved to...
15915         * libc/reent/unlinkr.c: ... new file.
15916
15917 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15918
15919         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15920         (CHEWOUT_FILES): Added swab.def.
15921         * libc/string/Makefile.in: Rebuilt.
15922         * libc/string/string.tex: Include swab.def.
15923         * libc/include/string.h (swab): Declare.
15924         * libc/string/swab.c: New file.
15925
15926 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15927
15928         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15929         (CHEWOUT_FILES): Added getw.def and putw.def.
15930         * libc/stdio/Makefile.in: Rebuilt.
15931         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15932         * libc/stdio/getw.c: New file.
15933         * libc/stdio/putw.c: New file.
15934
15935 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15936
15937         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15938         is non-null before looking at mode[2].
15939
15940 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15941
15942         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15943         * libm/mathfp/sf_atan.c: Ditto.
15944
15945 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15946
15947         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15948
15949 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15950
15951         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15952         _DOUBLE_IS_32BITS.
15953
15954 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15955
15956         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15957         call prior to calling _VFPRINTF_R so reentrant data area is set.
15958         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15959
15960 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15961
15962         * libc/stdio/vfscanf.c (limits.h): #include.
15963         (MAX_LONG_LEN): #define.
15964         (__svfscanf): Handle floating point numbers with arbitrary amounts
15965         of leading zeroes.
15966
15967 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15968
15969         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15970         zero.  Set the blocksize to 1024/
15971
15972 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15973
15974         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15975         with line buffering.
15976
15977 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15978
15979         * acinclude.m4: Changed include directory for winsup headers.
15980         * aclocal.m4 configure libc/aclocal.m4
15981           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15982           libc/locale/Makefile.in libc/machine/aclocal.m4
15983           libc/machine/configure libc/machine/a29k/aclocal.m4
15984           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15985           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15986           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15987           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15988           libc/machine/fr30/configure
15989           libc/machine/h8300/aclocal.m4
15990           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15991           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15992           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15993           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15994           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15995           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15996           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15997           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15998           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15999           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
16000           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
16001           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
16002           libc/machine/powerpc/configure
16003           libc/machine/sh/aclocal.m4
16004           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
16005           libc/machine/sparc/configure
16006           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
16007           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
16008           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
16009           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
16010           libc/misc/Makefile.in libc/posix/Makefile.in
16011           libc/reent/Makefile.in
16012           libc/signal/Makefile.in
16013           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
16014           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
16015           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
16016           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
16017           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
16018           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
16019           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
16020           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
16021           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
16022           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
16023           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
16024           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
16025           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
16026           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
16027           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
16028           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
16029           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
16030           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
16031           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
16032           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
16033           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
16034           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
16035           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
16036           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
16037           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
16038           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
16039           libm/configure: Regenerated.
16040
16041 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
16042
16043         * libc/stdlib/putenv_r.c (_putenv_r): New file.
16044         * libc/stdlib/strdup_r.c (_strdup_r): New file.
16045         * libc/include/string.h: Added _strdup_r.
16046         * libc/stdlib/putenv.c: Added call to reentrant version.
16047         * libc/stdlib/strdup.c: Ditto.
16048         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
16049         * libc/include/stdlib.h: Ditto.
16050         * libc/stdlib/Makefile.in: Regenerated.
16051         * libc/string/Makefile.in: Regenerated.
16052         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
16053         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
16054         management calls to reentrant versions.
16055         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
16056         * libc/stdlib/wctomb.c: Ditto.
16057         * libc/stdlib/mblen.c: Ditto.
16058         * libc/stdlib/mbstowcs.c: Ditto.
16059         * libc/stdlib/mbtowc.c: Ditto.
16060         * libc/stdlib/getenv.c: Ditto.
16061         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
16062         and _strdup_r.
16063
16064 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
16065
16066         patch from Corinna Vinschen <corinna@vinschen.de>
16067         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
16068
16069 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
16070
16071         * libm/mathfp/s_atangent.c: Fix exponent calculation.
16072         * libm/mathfp/s_ldexp.c: Ditto.
16073         * libm/mathfp/sf_atangent.c: Ditto.
16074         * libm/mathfp/sf_ldexp.c: Ditto.
16075
16076 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16077
16078         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
16079         * libc/include/locale.h: define NULL to be 0.
16080
16081 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
16082
16083         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
16084         function.
16085
16086 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
16087
16088         * libc/machine/mn10300/setjmp.S: Handle am33.
16089
16090 1999-11-26  Nick Clifton  <nickc@cygnus.com>
16091
16092         * libc/sys/arm/syscalls.c: Add function prototypes.
16093         (stack_ptr): Move declaration before function definitions.
16094
16095 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16096
16097         * NEWS: Updated version information.
16098         * README: Ditto.
16099
16100 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
16101
16102         * libc/machine/i386/strchr.S: Fixed alignment test.
16103
16104 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
16105
16106         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
16107
16108 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
16109
16110         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
16111         ensuring that there is space between the two.
16112
16113 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
16114
16115         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
16116         only.
16117
16118 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
16119
16120         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
16121         section
16122
16123 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16124
16125         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
16126         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
16127
16128 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
16129         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
16130           per POSIX 1003.1b.
16131         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
16132           per POSIX 1003.1b.
16133
16134 1999-09-13  DJ Delorie  <dj@cygnus.com>
16135
16136         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
16137         also.
16138
16139 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
16140
16141         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
16142         also note BUFSIZ as its size.
16143
16144 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
16145
16146         * configure.host: Corrected feature defines for RTEMS.
16147         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
16148         * libc/include/sys/stat.h: mkfifo() should take const path arg.
16149         * libc/include/sys/unistd.h: pathconf() should take const path arg.
16150           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
16151           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
16152           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
16153           _PC_PRIO_IO, and _PC_SYNC_IO.
16154         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
16155         * libc/machine/m68k/Makefile.in: Regenerated.
16156         * libc/machine/m68k/strcpy.c: New file.
16157         * libc/machine/m68k/strlen.c: New file.
16158         * libc/stdio/tmpnam.c: Always make the returned name usable.
16159         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
16160         * libc/sys/rtems/sys/dirent.h: New file.
16161         * libc/sys/rtems/sys/types.h: Added dev_t.
16162
16163 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
16164
16165         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
16166
16167 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
16168
16169         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
16170         my patch.
16171
16172 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
16173
16174         patch from Jeff Johnston <jjohnstn@cygnus.com>
16175         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
16176         buffer is not in a useful state.
16177
16178 1999-09-01  Nick Clifton  <nickc@cygnus.com>
16179
16180         * libc/sys/arm/syscalls.c (_link): Add stub.
16181
16182 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
16183
16184         * ftell.c (ftell): Use actual position within buffer for text mode.
16185         * findfp.c (std): Initialize ptr->_bf._size.
16186
16187 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
16188
16189         * libc/include/sys/unistd.h: Add nice() declaration.
16190
16191 1999-08-09  Nick Clifton  <nickc@cygnus.com>
16192
16193         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
16194         declare as a thumb function so that the disassembler will see the
16195         mode change.
16196
16197 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16198
16199         * libc/reent/reent.tex: Updated list of reentrant functions.
16200
16201 1999-07-09  Michael Meissner  <meissner@cygnus.com>
16202
16203         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
16204
16205 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
16206
16207         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
16208         separate file.
16209         * libc/stdio/snprintf.c: New file.
16210         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
16211         separate file.
16212         * libc/stdio/vsnprintf.c: New file.
16213         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
16214         * libc/stdio/Makefile.in: Regenerated.
16215
16216 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
16217
16218         Patch submitted by Egor Duda <deo@logos-m.ru>:
16219         * libc/include/stdio.h: Add declarations for *nprintf.
16220         * libc/stdio/sprintf.c (snprintf): New function.
16221         (_snprintf_r): New function.
16222         * libc/stdio/vsprintf.c (vsnprintf): New function.
16223         (_vnsprintf_r): New function.
16224
16225 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16226
16227         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
16228         * libm/Makefile.am (stmp-targetdep): Ditto.
16229         * libc/Makefile.in: Regenerated.
16230         * libm/Makefile.in: Ditto.
16231
16232 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16233
16234         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
16235         * libm/Makefile.am (stmp-targetdep): Ditto.
16236         * libc/Makefile.in: Regenerated.
16237         * libm/Makefile.in: Ditto.
16238
16239 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
16240
16241         * Makefile.am: Removed dependencies on all-recursive and added "."
16242         to the SUBDIRS list to prevent infinite recursion from occurring.
16243         Also removed any references to EXTRA_DATA.
16244         * libc/Makefile.am: Ditto.
16245         * libc/machine/Makefile.am: Ditto.
16246         * libc/machine/i386/Makefile.am: Ditto.
16247         * libm/Makefile.am: Ditto.
16248         * libc/sys/Makefile.am: Ditto.
16249         * Makefile.in: Regenerated.
16250         * aclocal.m4: Ditto.
16251         * configure: Ditto.
16252         * doc/Makefile.in: Ditto.
16253         * doc/aclocal.m4: Ditto.
16254         * doc/configure: Ditto.
16255         * libc/Makefile.in: Ditto.
16256         * libc/aclocal.m4: Ditto.
16257         * libc/configure: Ditto.
16258         * libc/machine/Makefile.in: Ditto.
16259         * libc/machine/aclocal.m4: Ditto.
16260         * libc/machine/configure: Ditto.
16261         * libc/machine/mn10300/Makefile.in: Ditto.
16262         * libc/machine/mn10300/aclocal.m4: Ditto.
16263         * libc/machine/mn10300/configure: Ditto.
16264         * libc/sys/Makefile.in: Ditto.
16265         * libc/sys/aclocal.m4: Ditto.
16266         * libc/sys/configure: Ditto.
16267         * libm/Makefile.in: Ditto.
16268         * libm/aclocal.m4: Ditto.
16269         * libm/configure: Ditto.
16270
16271 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16272
16273         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
16274
16275 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
16276
16277         * libc/include/stdlib.h: Add reentrant routines.
16278         * libc/stdlib/Makefile.am: Add reentrant routines.
16279         * libc/stdlib/Makefile.in: Ditto.
16280         * libc/stdlib/envlock.c: New file.
16281         * libc/stdlib/envlock.h: New file.
16282         * libc/stdlib/getenv.c: Modify to call reentrant routine.
16283         * libc/stdlib/getenv_r.c: New file.
16284         * libc/stdlib/mblen.c: Modify to call reentrant routine.
16285         * libc/stdlib/mblen_r.c: New file.
16286         * libc/stdlib/setenv.c: Modify to call reentrant routine.
16287         * libc/stdlib/setenv_r.c: New file.
16288         * libc/stdlib/stdlib.tex: Add reentrant routines.
16289
16290 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
16291
16292         * libc/include/sys/types.h: Define __MS_types__ whenever
16293         cygwin or win32.
16294
16295 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
16296
16297         * libc/include/machine/ieeefp.h: Always default to little
16298         endian if Windows, regardless of architecture.
16299         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
16300         regardless of architecture.
16301
16302 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
16303
16304         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
16305         _WIN32 isn't defined.
16306
16307 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16308
16309         * libm/common/s_rint.c (rint): Add volatile qualifier for
16310         intermediate value w.
16311         * libm/common/sf_rint.c (rintf): Ditto.
16312
16313 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16314
16315         * libc/sys/arm/syscalls.c (remap_handle): Added check to
16316         ensure that std streams are initialized before being referenced.
16317
16318 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
16319
16320         * README: Update reference to newlib@cygnus.com new
16321         newlib@sourceware.cygnus.com address.
16322
16323 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
16324
16325         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
16326         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
16327         defined, even if _WIN32 isn't defined.
16328
16329 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
16330
16331         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
16332
16333 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
16334
16335         * libc/include/sys/reent.h: Change Long and ULong to __Long and
16336         __ULong.
16337         * libc/stdlib/dtoa.c: Ditto.
16338         * libc/stdlib/mprec.c: Ditto.
16339         * libc/stdlib/mprec.h: Ditto.
16340         * libc/stdlib/strtod.c: Ditto.
16341
16342 1999-04-21  Nick Clifton  <nickc@cygnus.com>
16343
16344         * configure.host (mcore): Remove mcore machine directory.
16345
16346 1999-04-18  Nick Clifton  <nickc@cygnus.com>
16347
16348         * libc/include/machine/ieeefp.h: Add support for mcore target.
16349         * libc/include/machine/setjmp.h: Add support for mcore target.
16350         * configure.host: Add support for mcore target.
16351
16352 1999-04-13  Mark Salter  <msalter@cygnus.com>
16353
16354         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
16355         * libc/sys/arm/syscalls.c: Added isatty.
16356
16357 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16358
16359         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
16360         insert zeroes after significant digits.
16361
16362 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16363
16364         * libc/stdio/vfprintf.c (cvt): Changed floating point
16365         cvt routine to use union used by dtoa to properly determine
16366         if the sign bit is on or not.
16367         * libc/stdio/vfieeefp.h: New file
16368
16369 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16370
16371         * aclocal.m4: Regenerated.
16372         * configure: Regenerated.
16373
16374 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16375
16376         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
16377         f_tanf reference.
16378         * libc/machine/i386/Makefile.in: Regenerated.
16379
16380 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16381
16382         * acinclude.m4: Changed to work with new automake.
16383         * configure: Regenerated.
16384         * libc/machine/i386/aclocal.m4: Regenerated.
16385         * libc/machine/i386/configure: Regenerated.
16386
16387 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
16388
16389         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
16390         for telldir() and seekdir().  Rename unused structure element
16391         for use with these two routines.
16392
16393 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16394
16395         * libc/time/mktime.c (validate_structure): Multiple fixes to
16396         code to handle cases where input fields are outside valid ranges.
16397         * libc/stdlib/div.c (div): Modified invalid rounding check.
16398         * libc/stdlib/ldiv.c (ldiv): Ditto.
16399
16400 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16401
16402         * libc/machine/i386/memcpy.S: Performance rewrite.
16403         * libc/machine/i386/memmove.S: Ditto.
16404         * libc/machine/i386/i386mach.h: Added more register definitions.
16405         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
16406         option used.
16407         * libc/include/machine/fastmath.h: Add definitions for x86
16408         fast-math routines.
16409
16410 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
16411
16412         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
16413
16414 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
16415
16416         Adjust newlib headers for new Cygwin Win32 API header files:
16417         * libc/include/sys/time.h: Check _WINSOCK_H rather than
16418         _GNU_H_WINDOWS32_SOCKETS.
16419         * libc/include/sys/types.h: Ditto.
16420
16421 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
16422
16423         *include/sys/reent.h: Add checks for size of Bigint element Long.
16424         *libc/dtoa.c: Change routines to use generic Long type.
16425         *libc/mprec.c: Change routines to use generic Long type.
16426         *libc/mprec.h: Change routines to use generic Long type.
16427
16428 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
16429
16430         * libc/Makefile.am: Add .def files.
16431         * libc/Makefile.in: Regenerate.
16432         * libc/e_acosh.c: Documentation update.
16433         * libc/e_atanh.c: Documentation update.
16434         * libc/e_hypot.c: Documentation update.
16435         * libc/e_remainder.c: Documentation update.
16436         * libc/er_lgamma.c: Documentation update.
16437         * libc/mathfp.tex: Documentation update.
16438         * libc/s_acos.c: Documentation update.
16439         * libc/s_atan.c: Documentation update.
16440         * libc/s_atan2.c: Documentation update.
16441         * libc/s_cosh.c: Documentation update.
16442         * libc/s_fmod.c: Documentation update.
16443         * libc/s_isnan.c: Documentation update.
16444         * libc/s_log10.c: Documentation update.
16445         * libc/s_pow.c: Documentation update.
16446         * libc/w_jn.c: Documentation update.
16447
16448 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
16449
16450         * aclocal.m4: Regenerate.
16451         * configure: Regenerate.
16452
16453 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16454
16455         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
16456         to return 1 if user specified return code is 0.
16457         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
16458
16459 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16460
16461         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
16462         to save the return address.  Fixed longjmp to return to the original
16463         calling address of setjmp and to return the user specified return code
16464         rather than default to 1.
16465         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
16466
16467 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16468
16469         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
16470
16471 1999-02-10  Nick Clifton  <nickc@cygnus.com>
16472
16473         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
16474         volatile so that its assignments will not be discarded.
16475
16476 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16477
16478         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
16479         be __STRICT_ANSI__ which is generated by compiler.
16480         * libc/include/ctype.h: Ditto.
16481         * libc/include/math.h: Ditto.
16482         * libc/include/stdio.h: Ditto.
16483         * libc/include/stdlib.h: Ditto.
16484         * libc/include/string.h: Ditto.
16485         * libc/include/sys/signal.h: Ditto.
16486
16487 1999-02-08  Nick Clifton  <nickc@cygnus.com>
16488
16489         * configure.host: Add support for StrongARM target.
16490
16491 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16492
16493         * libc/string/strncpy.c (strncpy): Removed redundant code
16494         that was copying bytes if data unaligned.
16495
16496 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
16497
16498         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
16499         mbstowcs.def, and wcstombs.def.
16500
16501 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
16502
16503         * libc/include/sys/errno.h: Add Cygwin errno.
16504         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
16505         is specified.
16506
16507 1999-01-29  Nick Clifton  <nickc@cygnus.com>
16508
16509         * libc/sys/arm/syscalls.c: Move C library functions into seperate
16510         file.
16511
16512         * libc/sys/arm/libcfunc.c: New file containing C library functions
16513         from syscalls.c
16514
16515         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
16516         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
16517
16518
16519 1999-01-27  Michael Meissner  <meissner@cygnus.com>
16520
16521         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
16522         type, and cut size in half so that the jmp_buf array is guaranteed
16523         to be aligned on a 64-bit boundary.
16524
16525 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16526
16527         * libc/string/strings.tex: Added information about
16528         strcasecmp and strncasecmp.
16529         * libc/stdlib/stdlib.tex: Added missing information
16530         about mblen, mbstowcs, and wcstombs.
16531         * libc/string/strchr.c: Changed how mask is built to use
16532         shift operators so register will be used instead of storage.
16533
16534 1999-01-22  DJ Delorie  <dj@cygnus.com>
16535
16536         * libc/include/stdlib.h: don't use dllimport if we're building
16537         newlib, since it's inside cygwin.dll
16538
16539 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
16540
16541         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
16542         _ctype_ under cygwin.
16543
16544 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
16545
16546         * include/stdlib.h: Fix typo from previous checkin.
16547
16548 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
16549
16550         * include/ctype.h: Use __declspec(dllimport) method for exporting
16551         variable from cygwin DLL.
16552         * include/time.h: Ditto.
16553         * sys/errno.h: Ditto.
16554         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
16555         * libc/locale/locale.c: Use __declspec(dllexport) method for
16556         exporting variable from cygwin DLL.
16557
16558 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
16559
16560         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
16561         access of bogus pointer will result in SIGSEGV.
16562
16563 1999-01-07  Nick Clifton  <nickc@cygnus.com>
16564
16565         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
16566         of an underscore prefix to function names.
16567
16568 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
16569
16570         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
16571         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
16572
16573 1998-12-31  Michael Meissner  <meissner@cygnus.com>
16574
16575         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
16576         to `%' if not already defined.
16577
16578 1998-12-30  Michael Meissner  <meissner@cygnus.com>
16579
16580         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
16581         arguments const char *, not char *.
16582         * libc/include/stdio.h (_tempnam_r): Ditto.
16583
16584         * libc/include/sys/reent.h (struct _reent): The _sig_func type
16585         points to a function taking an integer, not void.
16586
16587 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
16588
16589         * configure.host: Add a define for Cygwin builds.
16590         * libc/include/ctype.h: Don't use dll imported variables in newlib.
16591
16592 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
16593
16594         * libc/include/ctype.h: Define _ctype_ as dll imported variable
16595         for use with Cygwin.
16596         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
16597         dll imported variables for use with Cygwin.
16598         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
16599         as a dll imported variable for Cygwin.
16600
16601 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
16602
16603         * libc/include/sys/unistd.h: Add proto for getpass.
16604
16605 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
16606
16607         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
16608         alphasort.
16609
16610 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
16611
16612         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
16613         not posix_path_list_p.
16614
16615 1998-12-15  Nick Clifton  <nickc@cygnus.com>
16616
16617         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
16618         a signed int.
16619
16620 1998-12-13  Nick Clifton  <nickc@cygnus.com>
16621
16622         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
16623
16624 1998-12-12  Nick Clifton  <nickc@cygnus.com>
16625
16626         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
16627         <msalter@cygnus.com>
16628         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
16629         * libc/machine/fr30/Makefile.in: Regenerated.
16630
16631 1998-12-11  Nick Clifton  <nickc@cygnus.com>
16632
16633         * configure.host: Remove use of libc/sys for FR30 port.
16634         * libc/sys/fr30: Remove directory (replaced by libgloss).
16635
16636 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
16637
16638         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
16639         * libc/string/strncat.c (ALIGNED): Ditto.
16640
16641 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
16642
16643         * libc/include/sys/time.h: include sys/types.h
16644
16645 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16646
16647         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
16648         comparison found when checking word at a time.
16649
16650 1998-12-04  Nick Clifton  <nickc@cygnus.com>
16651
16652         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
16653
16654 1998-12-03  Nick Clifton  <nickc@cygnus.com>
16655
16656         * libc/sys/fr30/syscalls.c (_times): New function stub.
16657
16658 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16659
16660         * configure.host (mach_add_setjmp): Replaced mach_add_objs
16661         with mach_add_setjmp flag which indicates if setjmp should
16662         be added to the machine directory objects.
16663         * acinclude.m4: Removed reference to mach_add_objs.
16664         * aclocal.m4: Regenerated.
16665         * Makefile.in: Regenerated.
16666         * configure: Regenerated.
16667         * libc/aclocal.m4: Regenerated.
16668         * libc/Makefile.in: Regenerated.
16669         * libc/configure: Regenerated.
16670         * libc/machine/aclocal.m4: Regenerated.
16671         * libc/machine/Makefile.in: Regenerated.
16672         * libc/machine/configure: Regenerated.
16673         * libc/machine/i386/aclocal.m4: Regenerated.
16674         * libc/machine/i386/Makefile.am: Altered to selectively add
16675         setjmp.S to the src files list.
16676         * libc/machine/i386/Makefile.in: Regenerated.
16677         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
16678         * libc/machine/i386/configure: Regenerated.
16679
16680 1998-12-02  Nick Clifton  <nickc@cygnus.com>
16681
16682         * libc/sys/fr30/crt0.s (_start): Fix function names.
16683
16684         * libc/machine/fr30: New directory
16685         * libc/machine/fr30/Makefile.am: New file.
16686         * libc/machine/fr30/Makefile.in: New generated file.
16687         * libc/machine/fr30/configure.in: New file.
16688         * libc/machine/fr30/configure: New generated file.
16689         * libc/machine/fr30/aclocal.m4: New generated file.
16690         * libc/sys/fr30/Makefile.am: New file.
16691         * libc/sys/fr30/Makefile.in: New generated file.
16692         * libc/sys/fr30/configure.in: New file.
16693         * libc/sys/fr30/configure: New generated file.
16694         * libc/sys/fr30/syscalls.c: New file.
16695
16696 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
16697
16698         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
16699
16700 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
16701
16702         * libc/time/strftime.c (strftime): Also handle %y for years before
16703         1900.
16704
16705 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
16706
16707         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
16708         UNIX convention.  Perform tolower on characters before comparing
16709         them rather than use toupper.
16710         * libc/string/strncasecmp.c (strncasecmp): Ditto.
16711
16712 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16713
16714         * configure.host: Added using i386 machine directory
16715         for all x86 cross-compiler and configuring
16716         which added object files to use via new "mach_add_objs" variable.
16717         * configure: Regenerated.
16718         * libc/configure: Regenerated.
16719         * libc/Makefile.in: Regenerated.
16720         * libc/aclocal.m4: Regenerated.
16721         * libc/ctype/Makefile.in: Regenerated.
16722         * libc/errno/Makefile.in: Regenerated.
16723         * libc/locale/Makefile.in: Regenerated.
16724         * libc/machine/Makefile.in: Regenerated.
16725         * libc/machine/aclocal.m4: Regenerated.
16726         * libc/machine/configure: Regenerated.
16727         * libc/posix/Makefile.in: Regenerated.
16728         * libc/reent/Makefile.in: Regenerated.
16729         * libc/signal/Makefile.in: Regenerated.
16730         * libc/stdio/Makefile.in: Regenerated.
16731         * libc/stdlib/Makefile.in: Regenerated.
16732         * libc/string/Makefile.in: Regenerated.
16733         * libc/string/memmove.c: Optimized code to use memcpy
16734         logic when performing a non-destructive copy.
16735         * libc/string/strncmp.c: Altered code to allow building
16736         optimized for size or speed.
16737         * libc/syscalls/Makefile.in: Regenerated.
16738         * libc/time/Makefile.in: Regenerated.
16739         * libc/unix/Makefile.in: Regenerated.
16740         * libc/machine/i386/Makefile.am: Added new files and reference
16741         to "mach_add_objs" to indicate optional object files.
16742         * libc/machine/i386/Makefile.in: Regenerated.
16743         * libc/machine/i386/aclocal.m4: Regenerated.
16744         * libc/machine/i386/configure: Regenerated.
16745         * libc/machine/i386/memchr.S: New file that implements
16746         function in Intel assembler.
16747         * libc/machine/i386/memcmp.S: ditto.
16748         * libc/machine/i386/memcpy.S: ditto.
16749         * libc/machine/i386/memmove.S: ditto.
16750         * libc/machine/i386/memset.S: ditto.
16751         * libc/machine/i386/strchr.S: ditto.
16752         * libc/machine/i386/strlen.S: ditto.
16753         * libc/machine/i386/f_atan2.S: New file that implements
16754         fast version of math function to be used by compiler when
16755         --ffast_math compile option is used.
16756         * libc/machine/i386/f_atan2f.S: ditto.
16757         * libc/machine/i386/f_exp.c: ditto.
16758         * libc/machine/i386/f_expf.c: ditto.
16759         * libc/machine/i386/f_frexp.S: ditto.
16760         * libc/machine/i386/f_frexpf.S: ditto.
16761         * libc/machine/i386/f_ldexp.S: ditto.
16762         * libc/machine/i386/f_ldexpf.S: ditto.
16763         * libc/machine/i386/f_log.S: ditto.
16764         * libc/machine/i386/f_logf.S: ditto.
16765         * libc/machine/i386/f_log10.S: ditto.
16766         * libc/machine/i386/f_log10f.S: ditto.
16767         * libc/machine/i386/f_math.h: New file.
16768         * libc/machine/i386/f_pow.c: ditto.
16769         * libc/machine/i386/f_powf.S: ditto.
16770         * libc/machine/i386/f_tan.S: ditto.
16771         * libc/machine/i386/f_tan.S: ditto.
16772         * libc/machine/i386/i386mach.h: New file.
16773
16774 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16775
16776         patch from Mumit Khan <khan@xraylith.wisc.edu>
16777         * libc/include/stdio.h (tempnam): Add prototype.
16778         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16779         (tempnam): Adhere to prototype.
16780
16781 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16782
16783         * Makefile.am: Add default for AR_FLAGS.
16784         * Makefile.in: Regenerate.
16785
16786 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16787
16788         * libc/include/time.h: move __cplusplus wrapper after includes
16789         * libc/include/sys/time.h: ditto.  If Cygwin, include
16790         sys/select.h.
16791         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16792
16793 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16794
16795         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16796
16797 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16798
16799         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16800         abnormnal end-of-crt0 marker.
16801
16802 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16803
16804         * libc/sys/fr30/crt0.s: New file/directory.
16805         * libc/include/machine/setjmp.h: Add FR30 target.
16806         * libc/include/machine/ieeefp.h: Add FR30 target.
16807         * configure.host: Add FR30 target.
16808
16809 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16810
16811         * libm/math: Files that are duplicated in common directory removed.
16812         * libm/math/fdlibm.h: Removed.
16813         * libm/math/s_cbrt.c: Removed.
16814         * libm/math/s_copysign.c: Removed.
16815         * libm/math/s_expm1.c: Removed.
16816         * libm/math/s_finite.c: Removed.
16817         * libm/math/s_ilogb.c: Removed.
16818         * libm/math/s_infinity.c: Removed.
16819         * libm/math/s_lib_ver.c: Removed.
16820         * libm/math/s_log1p.c: Removed.
16821         * libm/math/s_logb.c: Removed.
16822         * libm/math/s_matherr.c: Removed.
16823         * libm/math/s_modf.c: Removed.
16824         * libm/math/s_nan.c: Removed.
16825         * libm/math/s_nextafter.c: Removed.
16826         * libm/math/s_rint.c: Removed.
16827         * libm/math/s_scalbn.c: Removed.
16828         * libm/math/sf_cbrt.c: Removed.
16829         * libm/math/sf_copysign.c: Removed.
16830         * libm/math/sf_expm1.c: Removed.
16831         * libm/math/sf_finite.c: Removed.
16832         * libm/math/sf_ilogb.c: Removed.
16833         * libm/math/sf_infinity.c: Removed.
16834         * libm/math/sf_log1p.c: Removed.
16835         * libm/math/sf_logb.c: Removed.
16836         * libm/math/sf_modf.c: Removed.
16837         * libm/math/sf_nan.c: Removed.
16838         * libm/math/sf_nextafter.c: Removed.
16839         * libm/math/sf_rint.c: Removed.
16840         * libm/math/sf_scalbn.c: Removed.
16841         * libm/math/Makefile.am: Removed references to deleted files (above).
16842         * libm/math/Makefile.in: Regenerated.
16843         * libm/Makefile.am: Added common directory to math.
16844         * libm/Makefile.in: Regenerated.
16845
16846 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16847
16848         * libm/mathfp: Add non-ANSI functions.
16849         * libm/mathfp/e_acosh.c acosh(): New file.
16850         * libm/mathfp/e_atanh.c atanh(): New file.
16851         * libm/mathfp/e_hypot.c hypot(): New file.
16852         * libm/mathfp/e_j0.c j0(): New file.
16853         * libm/mathfp/e_j1.c j1(): New file.
16854         * libm/mathfp/e_remainder.c remainder(): New file.
16855         * libm/mathfp/e_scalb.c scalb(): New file.
16856         * libm/mathfp/ef_acosh.c acoshf(): New file.
16857         * libm/mathfp/ef_atanh.c atanhf(): New file.
16858         * libm/mathfp/ef_hypot.c hypotf(): New file.
16859         * libm/mathfp/ef_j0.c j0f(): New file.
16860         * libm/mathfp/ef_j1.c j1f(): New file.
16861         * libm/mathfp/ef_remainder.c remainderf(): New file.
16862         * libm/mathfp/ef_scalb.c scalbf(): New file.
16863         * libm/mathfp/er_gamma.c gamma_r: New file.
16864         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16865         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16866         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16867         * libm/mathfp/w_cabs.c cabs(): New file.
16868         * libm/mathfp/w_drem.c drem(): New file.
16869         * libm/mathfp/w_jn.c jn(): New file.
16870         * libm/mathfp/wf_cabs.c cabsf(): New file.
16871         * libm/mathfp/wf_drem.c dremf(): New file.
16872         * libm/mathfp/wf_jn.c jnf(): New file.
16873
16874 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16875
16876         * libc/sys/cygwin32: remove directory and contents
16877         * libc/sys/cygwin: and add back, losing the "32".
16878         * configure.host: check for cygwin* instead of cygwin32.
16879         * acinclude.m4: ditto.
16880         * aclocal.m4: regenerate with aclocal
16881         * configure: regenerate with autoconf
16882
16883 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16884
16885         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16886         for length
16887
16888 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16889
16890         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16891         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16892         to make rand/srand, strtok, asctime, localtime, w_gamma,
16893         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16894         time.h to bring in struct tm definition.
16895         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16896         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16897         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16898         instead of static variable.
16899         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16900         struct reent instead of static variable.
16901         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16902         struct reent instead of static variable.
16903         * libm/math/Makefile.am: Removed s_signgam.o.
16904         * libm/math/Makefile.in: Regenerated.
16905         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16906         struct reent instead of global variable 'signgam'.
16907         * libm/math/w_lgamma.c (lgamma): Likewise.
16908         * libm/math/wf_gamma.c (gammaf): Likewise.
16909         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16910         * libm/math/s_signgam.c: Removed.
16911         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16912         to be const.
16913         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16914         to be const.
16915         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16916         libc/include/reent.h.
16917         * libc/reent/Makefile.in: Regenerated.
16918         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16919         to be const.
16920         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16921         'JIS_action_table' to be const.
16922         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16923
16924 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16925
16926         * acinclude.m4:  $with_target_subdir should default to '.'
16927         or confusion results when configuring in same directory as sources.
16928         * Regenerate all aclocal.m4 and configure files.
16929
16930 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16931
16932         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16933         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16934         for platforms where sizeof(size_t) < sizeof(long) via
16935         SIZE_T_SMALLER_THAN_LONG macro.
16936
16937 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16938
16939         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16940         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16941         which sets _CLOCKS_PER_SEC_ for selected machines.
16942         * libc/include/machine/time.h: New file.
16943
16944 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16945
16946         * libc/syscalls/sysexecve.c: New file.
16947         * libc/syscalls/sysgettod.c: New file.
16948         * libc/syscalls/systimes.c: New file.
16949         * libc/syscalls/Makefile.am: Added new objects.
16950         * libc/syscalls/Makefile.in: Regenerated.
16951         * libc/include/_syslist.h (_execve): Moved define in file.
16952         * libc/include/reent.h:  Added _execve_r declaration.
16953         * libc/Makefile.in: Regenerated.
16954         * libc/ctype/Makefile.in: Regenerated.
16955         * libc/errno/Makefile.in: Regenerated.
16956         * libc/locale/Makefile.in: Regenerated.
16957         * libc/machine/Makefile.in: Regenerated.
16958         * libc/misc/Makefile.in: Regenerated.
16959         * libc/posix/Makefile.in: Regenerated.
16960         * libc/reent/Makefile.in: Regenerated.
16961         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16962         * libc/signal/Makefile.in: Regenerated.
16963         * libc/stdio/Makefile.in: Regenerated.
16964         * libc/time/Makefile.in: Regenerated.
16965         * libc/unix/Makefile.in: Regenerated.
16966         * libm/mathfp/Makefile.in: Regenerated.
16967
16968 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16969
16970         * libc/string/Makefile.in: Regenerated.
16971         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16972         * libc/string/memcpy.c (memcpy): Ditto.
16973         * libc/string/memcmp.c (memcmp): Ditto.
16974         * libc/string/memset.c (memset): Ditto.
16975         * libc/string/strchr.c (strchr): Ditto.
16976         * libc/string/strcmp.c (strcmp): Ditto.
16977         * libc/string/strcpy.c (strcpy): Ditto.
16978         * libc/string/strlen.c (strlen): Ditto.
16979
16980 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16981
16982         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16983         to generate aclocal.m4.
16984         * libm/Makefile.in: Regenerated.
16985         * libm/aclocal.m4: Regenerated.
16986         * libm/configure: Regenerated.
16987         * libm/math/Makefile.in: Regenerated.
16988         * libm/mathfp/Makefile.in: Regenerated.
16989
16990 1998-09-25  Mark Salter  <msalter@cygnus.com>
16991
16992         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16993         by adding leading and trailing underscores to symbol names.
16994
16995 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16996
16997         * Makefile.in: Add default for AR_FLAGS.
16998
16999 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
17000
17001         patch from ian@airs.com (Ian Taylor):
17002         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
17003         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
17004         is needed for detecting the build machine.  Required for
17005         cygwin native builds.
17006
17007         * Regenerate all aclocal.m4 and configure files.
17008
17009 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
17010
17011         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
17012         used to start with LC.
17013
17014 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17015
17016         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
17017         (longjmp): Likewise.
17018
17019 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17020
17021         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
17022         the test for small number of bytes.
17023
17024 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
17025
17026         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
17027         math library that uses floating point algorithms instead of the old
17028         libm.
17029         * Makefile.in: Regenerate with automake version 1.3b.
17030         * configure: Rebuild.
17031         * libm/Makefile.in: Regenerate with automake version 1.3b.
17032         * libm/aclocal.m4: Regenerate.
17033         * libm/configure: Rebuild.
17034         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
17035         * libm/acinclude.m4: Define macros for configure.in.
17036         * libm/config.h.in: Generate.
17037         * libm/mathfp/Makefile.am: New file.
17038         * libm/mathfp/Makefile.in: Generate.
17039         * libm/mathfp/s_acos.c (acos): New file.
17040         * libm/mathfp/s_asin.c (asin): New file.
17041         * libm/mathfp/s_asine.c (asine): New file.
17042         * libm/mathfp/s_atan.c (atan): New file.
17043         * libm/mathfp/s_atan2.c (atan2): New file.
17044         * libm/mathfp/s_atangent.c (atangent): New file.
17045         * libm/mathfp/s_ceil.c (ceil): New file.
17046         * libm/mathfp/s_copysign.c (copysign): New file.
17047         * libm/mathfp/s_cos.c (cos): New file.
17048         * libm/mathfp/s_cosh.c (cosh): New file.
17049         * libm/mathfp/s_exp.c (exp): New file.
17050         * libm/mathfp/s_fabs.c (fabs): New file.
17051         * libm/mathfp/s_finite.c (finite): New file.
17052         * libm/mathfp/s_floor.c (floor): New file.
17053         * libm/mathfp/s_fmod.c (fmod): New file.
17054         * libm/mathfp/s_frexp.c (frexp): New file.
17055         * libm/mathfp/s_infconst.c: New file.
17056         * libm/mathfp/s_isinf (isinf).c: New file.
17057         * libm/mathfp/s_isnan.c (isnan): New file.
17058         * libm/mathfp/s_ispos.c (ispos): New file.
17059         * libm/mathfp/s_ldexp.c (ldexp): New file.
17060         * libm/mathfp/s_log.c (log): New file.
17061         * libm/mathfp/s_log10.c (log10): New file.
17062         * libm/mathfp/s_logarithm.c (logarithm): New file.
17063         * libm/mathfp/s_mathcnst.c: New file.
17064         * libm/mathfp/s_modf (modf).c: New file.
17065         * libm/mathfp/s_numtest.c (numtest): New file.
17066         * libm/mathfp/s_pow.c (pow): New file.
17067         * libm/mathfp/s_scalbn.c (scalbn): New file.
17068         * libm/mathfp/s_sin (sin).c: New file.
17069         * libm/mathfp/s_sine.c (sine): New file.
17070         * libm/mathfp/s_sineh.c (sineh): New file.
17071         * libm/mathfp/s_sinf.c (sinf): New file.
17072         * libm/mathfp/s_sinh.c (sinh): New file.
17073         * libm/mathfp/s_sqrt.c (sqrt): New file.
17074         * libm/mathfp/s_tan.c (tan): New file.
17075         * libm/mathfp/s_tanh.c (tanh): New file.
17076         * libm/mathfp/sf_acos.c (acosf): New file.
17077         * libm/mathfp/sf_asin.c (asinf): New file.
17078         * libm/mathfp/sf_asine.c (asinef): New file.
17079         * libm/mathfp/sf_atan.c (atanf): New file.
17080         * libm/mathfp/sf_atan2.c (atan2f): New file.
17081         * libm/mathfp/sf_atangent.c (atangent): New file.
17082         * libm/mathfp/sf_ceil.c (ceilf): New file.
17083         * libm/mathfp/sf_copysign.c (copysignf): New file.
17084         * libm/mathfp/sf_cos.c (cosf): New file.
17085         * libm/mathfp/sf_cosh.c (coshf): New file.
17086         * libm/mathfp/sf_exp.c (expf): New file.
17087         * libm/mathfp/sf_fabs.c (fabsf): New file.
17088         * libm/mathfp/sf_finite.c (finitef): New file.
17089         * libm/mathfp/sf_floor.c (floorf): New file.
17090         * libm/mathfp/sf_fmod.c (fmodf): New file.
17091         * libm/mathfp/sf_frexp.c (frexpf): New file.
17092         * libm/mathfp/sf_isinf.c (isinff): New file.
17093         * libm/mathfp/sf_isnan.c (isnanf): New file.
17094         * libm/mathfp/sf_ispos.c (isposf): New file.
17095         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
17096         * libm/mathfp/sf_log.c (logf): New file.
17097         * libm/mathfp/sf_log10.c (log10f): New file.
17098         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
17099         * libm/mathfp/sf_modf.c (modff): New file.
17100         * libm/mathfp/sf_numtest.c (numtestf): New file.
17101         * libm/mathfp/sf_pow.c (powf): New file.
17102         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
17103         * libm/mathfp/sf_sin.c (sinf): New file.
17104         * libm/mathfp/sf_sine.c (sinef): New file.
17105         * libm/mathfp/sf_sineh.c (sinehf): New file.
17106         * libm/mathfp/sf_sinh.c (sinhf): New file.
17107         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
17108         * libm/mathfp/sf_tan.c (tanf): New file.
17109         * libm/mathfp/sf_tanh.c (tanhf): New file.
17110         * libm/mathfp/zmath.h: New file.
17111
17112 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17113
17114         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
17115         exit if it has been overwritten by pre-fetching in delay slot.
17116
17117 1998-09-01  Michael Meissner  <meissner@cygnus.com>
17118
17119         * Makefile.am (tooldir): Add in host_alias, so that multilib
17120         libraries are installed in the directory the compiler looks in.
17121         * Makefile.in: Regenerate.
17122
17123         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
17124
17125 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17126
17127         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
17128         ahead of test for number of bytes being moved.
17129
17130 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
17131
17132         * libc/include/sys/unistd.h: Nothing special needed for
17133         _exit under cygwin.
17134
17135 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
17136
17137         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
17138         conform to user label naming conventions.
17139
17140 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
17141
17142         * libc/sys/cygwin32/sys/utime.h: variable names in
17143         protos should start with two leading underscores
17144         * libc/include/string.h: ditto
17145         * libc/include/sys/signal.h: ditto
17146         * libc/include/sys/stat.h: ditto
17147         * libc/include/sys/time.h: ditto
17148         * libc/include/sys/unistd.h: ditto
17149         * libc/include/ctype.h: ditto
17150         * libc/include/stdlib.h: ditto
17151         * libc/include/sys/reent.h: struct _atexit function ptr takes a
17152         void, same with _sig_func.
17153
17154 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17155
17156         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
17157         for MB_CAPABLE to reduce code size when newlib is not configured
17158         with --enable-newlib-mb.
17159         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
17160         mbtowc_r.o to minimize size.
17161         * libc/stdlib/Makefile.in: Rebuild.
17162
17163 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
17164
17165         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
17166         to -DREENT.
17167         * libc/sys/sparc64/Makefile.in: Rebuild.
17168
17169 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
17170
17171         * Makefile.am (MAKEOVERRIDES): Define.
17172         * Makefile.in: Rebuild.
17173
17174 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
17175
17176         * libc/sys/sparc64/sys/stat.h (stat): Add const.
17177
17178 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
17179
17180         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
17181         newlib_cflags when looking for targ-include.
17182         * */aclocal.m4, */configure: Rebuild.
17183
17184 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
17185
17186         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
17187         to "_end".
17188
17189 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
17190
17191         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
17192         on SPARCs with little-endian data.
17193         * libc/include/machine/ieeefp.h: Ditto.
17194
17195 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
17196
17197         * acinclude.m4: Handle a relative srcdir correctly when setting
17198         newlib_cflags.
17199         * */aclocal.m4, */configure: Rebuild.
17200
17201 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17202
17203         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
17204         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
17205         * libm/math/wrf_gamma.c (gammaf_r): ditto
17206         * libm/math/wr_lgamma.c (lgamma_r): ditto
17207         * libm/math/wr_gamma.c (gamma_r): ditto
17208         * libm/math/wf_sqrt.c (sqrtf): ditto
17209         * libm/math/wf_sinh.c (sinhf): ditto
17210         * libm/math/wf_scalb.c (scalbf): ditto
17211         * libm/math/wf_remainder.c (remainderf): ditto
17212         * libm/math/wf_pow.c (powf): ditto
17213         * libm/math/wf_log10.c (log10f): ditto
17214         * libm/math/wf_log.c (logf): ditto
17215         * libm/math/wf_lgamma.c (lgammaf): ditto
17216         * libm/math/wf_jn.c (jnf, ynf): ditto
17217         * libm/math/wf_j1.c (j1f, y1f): ditto
17218         * libm/math/wf_j0.c (j0f, y0f): ditto
17219         * libm/math/wf_hypot.c (hypotf): ditto
17220         * libm/math/wf_gamma.c (gammaf): ditto
17221         * libm/math/wf_fmod.c (fmodf): ditto
17222         * libm/math/wf_exp.c (expf): ditto
17223         * libm/math/wf_cosh.c (coshf): ditto
17224         * libm/math/wf_atanh.c (atanhf): ditto
17225         * libm/math/wf_atan2f.c (atan2f): ditto
17226         * libm/math/wf_asin.c (asinf): ditto
17227         * libm/math/wf_acosh.c (acoshf): ditto
17228         * libm/math/wf_acos.c (acosf): ditto
17229         * libm/math/w_sqrt.c (sqrt): ditto
17230         * libm/math/w_sinh.c (sinh): ditto
17231         * libm/math/w_scalb.c (scalb): ditto
17232         * libm/math/w_remainder.c (remainder): ditto
17233         * libm/math/w_pow.c (pow): ditto
17234         * libm/math/w_log10.c (log10): ditto
17235         * libm/math/w_log.c (log): ditto
17236         * libm/math/w_lgamma.c (lgamma): ditto
17237         * libm/math/w_jn.c (jn, yn): ditto
17238         * libm/math/w_j1.c (j1, y1): ditto
17239         * libm/math/w_j0.c (j0, y0): ditto
17240         * libm/math/w_hypot.c (hypot): ditto
17241         * libm/math/w_gamma.c (gamma): ditto
17242         * libm/math/w_fmod.c (fmod): ditto
17243         * libm/math/w_exp.c (exp): ditto
17244         * libm/math/w_cosh.c (cosh): ditto
17245         * libm/math/w_atanh.c (atanh): ditto
17246         * libm/math/w_atan2f.c (atan2): ditto
17247         * libm/math/w_asin.c (asin): ditto
17248         * libm/math/w_acosh.c (acosh): ditto
17249         * libm/math/w_acos.c (acos): ditto
17250
17251 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
17252
17253         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
17254         (fsrc): Add wf_cabs.c and wf_drem.c.
17255         * libm/math/Makefile.in: Rebuild.
17256
17257         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
17258         unused directory variables.  Remove duplicate CFLAGS.
17259         * Makefile.in: Rebuild.
17260
17261         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
17262         with $(CC_FOR_BUILD).
17263         (makedoc.o): Likewise.
17264         * doc/Makefile.in: Rebuild.
17265
17266         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
17267         force a definition of COMPILE.
17268         (libfoo_a_SOURCES): Define.
17269         * libc/sys/cygwin32/Makefile.in: Rebuild.
17270         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
17271         force a definition of COMPILE.
17272         (libfoo_a_SOURCES): Define.
17273         * libc/sys/tic80/Makefile.in: Rebuild.
17274
17275 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
17276
17277         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
17278         flag.
17279
17280 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
17281
17282         * Build using autoconf and automake.  Added many Makefile.am and
17283         configure.in files, plus generated files.  Old configure.in files
17284         and all old Makefile.in files completely replaced.  Removed
17285         host/any.  Added acinclude.m4 and configure.host.
17286
17287 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
17288
17289         * libc/stdio/vfprintf.c: enable long long support, sometimes.
17290         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
17291
17292 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17293
17294         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
17295         * libc/machine/sh/Makefile.in: Add rules for new files.
17296
17297 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17298
17299         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
17300         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
17301         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
17302
17303 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
17304
17305         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
17306         code is ignored.
17307
17308 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17309
17310         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
17311         internal static buffer when s is NULL, as prescribed by ANSI.
17312
17313 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
17314
17315         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
17316         removed.
17317         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
17318         libc/stdlib will be used for h8300hms.
17319
17320 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17321
17322         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
17323         version that can be built either for speed or size.
17324         * libc/machine/mn10300/memset.S (_memset): ditto
17325         * libc/machine/mn10300/memchr.S (_memchr): ditto
17326         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
17327         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
17328         * libc/machine/mn10300/strchr.S (_strchr): ditto
17329         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
17330         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
17331         * libc/machine/mn10300/Makefile.in: Added entries for
17332         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
17333         strcmp.o, strcpy.o, and strlen.o.
17334
17335 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
17336
17337         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
17338         been replaced with libgloss/mn10200.
17339
17340 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
17341
17342         * libc/string/strchr.c (strchr): Make s a constant pointer to
17343         avoid warning.
17344
17345 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
17346
17347         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
17348         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
17349         board SWIs instead of Demon board SWIs).
17350
17351 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
17352
17353         * libc/string/strncat.c (strncat):  Make -Os act the same as
17354         PREFER_SIZE_OVER_SPEED being defined.
17355
17356 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
17357
17358         * libc/string/memchr.c (memchr): Make -Os act the same as
17359         PREFER_SIZE_OVER_SPEED being defined.
17360         * libc/string/memcmp.c (memcmp): Ditto.
17361         * libc/string/memcpy.c (memcpy): Ditto.
17362         * libc/string/memset.c (memset): Ditto.
17363         * libc/string/strcat.c (strcat): Ditto.
17364         * libc/string/strchr.c (strchr): Ditto.
17365         * libc/string/strcmp.c (strcmp): Ditto.
17366         * libc/string/strcpy.c (strcpy): Ditto.
17367         * libc/string/strlen.c (strlen): Ditto.
17368         * libc/string/strncat.c (strncat): Ditto.
17369         * libc/string/strncmp.c (strncmp): Ditto.
17370         * libc/string/strncpy.c (strncpy): Ditto.
17371
17372 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
17373
17374         * libc/include/sys/itimer.h: remove
17375         * libc/include/sys/time.h: itimer stuff should be here
17376
17377 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17378
17379         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
17380         bit instead of comparing to 0 so -0.0 can be printed correctly.
17381
17382 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17383
17384         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
17385
17386 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
17387
17388         * libc/include/sys/unistd.h: fix sync() proto
17389         * libc/include/sys/fcntl.h: remove _close which is already
17390         defined in unistd.h.
17391         * libc/include/sys/time.h: add getitimer proto
17392
17393 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
17394
17395         * libc/string/strchr.c: convert arg to unsigned char
17396         * libc/include/stdlib.h: add protos for random, srandom
17397         * libc/include/sys/stat.h: add lstat proto
17398         * libc/include/sys/time.h: add setitimer proto
17399         * libc/include/sys/unistd.h: add readlink, symlink protos
17400         * libc/include/process.h: instead of including windows.h and using
17401         HANDLEs in sexec protos, just use void *s.  Need to include
17402         sys/types.h.
17403
17404 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
17405
17406         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
17407
17408 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
17409
17410         * libc/include/process.h: add secure exec protos
17411
17412 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
17413
17414         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
17415         which are accessed as both doubles and integers.
17416         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
17417         * libc/stdlib/strtod.c (_strtod_r): Likewise.
17418         * libc/stdlib/mprec.h: Add "union double_union" and change
17419         word0/word1 macros to use it.
17420
17421 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
17422
17423         * libc/include/sys/signal.h: add __cplusplus wrapper
17424
17425 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
17426
17427         * libc/include/sys/utime.h: new generic file that gets replaced by
17428         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
17429         function.
17430         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
17431         * libc/include/time.h: remove duplicate utime proto
17432         * libc/include/utime.h: add comment
17433
17434 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
17435
17436         * libc/include/sys/time.h: Add missing include to
17437         allow use of _EXFUN.  Remove times function that is
17438         already defined in times.h.
17439
17440 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
17441
17442         * libc/include/time.h: Fix typo in tzset.
17443
17444 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
17445
17446         * libc/include/sys/time.h: add missing Cygwin32 function protos
17447         * libc/include/sys/unistd.h: ditto
17448         * libc/include/time.h: ditto
17449
17450 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
17451
17452         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
17453         FIXME.
17454         * libc/include/sys/types.h: add a new __MS_types__ section
17455         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
17456         __BIT_TYPES_DEFINED__.
17457
17458 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
17459
17460         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
17461         since it overrides the one in libc/include/sys.  Also, start
17462         including types.h.
17463
17464 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
17465
17466         * libm/math/Makefile.in: add s_signgam.o to obj list
17467
17468 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17469
17470         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
17471
17472 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
17473
17474         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
17475         so don't use defines.
17476
17477 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
17478
17479         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
17480
17481 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
17482
17483         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
17484         _current_locale as default locale.
17485
17486 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
17487
17488         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
17489         insufficient space in a chunk.
17490
17491 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17492
17493         * configure.in (links): Added check for --enable-newlib-mb configure
17494         option which defines the MB_CAPABLE macro.
17495         * libc/locale/locale.c (_setlocale_r): Added support for setting
17496         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
17497         defined.
17498         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
17499         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
17500         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
17501         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
17502         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
17503         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
17504         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
17505         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
17506         * libc/stdlib/Makefile.in: Added new multibyte
17507         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
17508         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
17509         _mbstowcs_r(), and _wcstombs_r().
17510         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
17511         for JIS, SJIS, and EUC-JP characters.
17512         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
17513         MB_CAPABLE defined.
17514         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
17515         MB_CAPABLE defined.
17516         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
17517         MB_CAPABLE defined.
17518         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
17519         if MB_CAPABLE defined.
17520         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
17521         if MB_CAPABLE defined.
17522         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
17523         to the format string processing when MB_CAPABLE.
17524         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
17525         call _mbtowc_r().
17526
17527 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
17528
17529         The following modifications are courtesy of Anthony Thompson,
17530         athompson@cambridge.arm.com:
17531         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
17532         boith RDI and RDP monitors.
17533         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
17534         RDI and RDP monitors.
17535
17536 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17537
17538         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
17539         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
17540         (_swiopen): Fixed open flags to treat write with append as just append.
17541         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
17542         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
17543
17544 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17545
17546         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
17547         When needing to transfer an initial 2-byte-word, store as
17548         two single bytes.
17549
17550 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17551
17552         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
17553         __SH3E__ .
17554         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
17555         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
17556
17557 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
17558
17559         * configure.in (target_cflags): If --enable-target-optspace, use
17560         -Os to compile newlib rather than -O2.  Default to using -Os for
17561         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
17562         used.
17563
17564 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
17565
17566         * libc/include/machine/setjmp.h: change sigsetjmp and
17567         siglongjmp definitions to use an array instead of a struct
17568         for __CYGWIN32__
17569
17570 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
17571
17572         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
17573
17574 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
17575
17576         * libc/string/strxfrm.c: fix to get correct return value
17577
17578 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
17579
17580         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
17581         builds.  Make mode change labels global so that they will be seen
17582         by the debugger.
17583
17584 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
17585
17586         * configure.in (links): Do not use ARM debiugging protocols for PE
17587         builds.
17588
17589         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
17590         message.
17591
17592 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17593
17594         * libc/stdio/findfp.c (__sinit): Made stdout default to
17595         line buffered mode as defined by ANSI.
17596
17597 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
17598
17599         * libc/include/sys/itimer.h: New file.
17600
17601         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
17602
17603 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
17604
17605         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
17606         failure.
17607
17608 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
17609
17610         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
17611         insns.
17612
17613 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
17614
17615         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
17616
17617 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
17618
17619         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
17620         support.
17621
17622         * libc/include/machine/setjmp.h: Add D30V support.
17623
17624         * configure.in (d30v-*): Add d30v machine directory.
17625
17626 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
17627
17628         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
17629         been replaced with libgloss/mn10300.
17630
17631 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
17632
17633         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
17634         it is no longer needed.
17635
17636 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17637
17638         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
17639
17640 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
17641
17642         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
17643         the file when O_APPEND is set, wherever the EOF happens to be at
17644         that time.
17645
17646 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
17647
17648         patch from cgf@bbc.com (Christopher Faylor):
17649         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
17650         convention of closing fp prior to attempting to open the file
17651         argument.  This allows correct operation when reopening
17652         stdin/stdout/stderr.  Replaces last freopen.c patch.
17653
17654 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
17655
17656         patch from cgf@bbc.com (Christopher Faylor):
17657         * libc/stdio/freopen.c: freopen was not preserving the fd
17658         of the stream being operated on.  This confuses programs that
17659         expect that the handles for stdout and stderr will be 1 and 2.
17660
17661 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
17662
17663         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
17664
17665 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
17666
17667         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
17668
17669 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17670
17671         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
17672         altered to not use a branch.  Also added hint that last
17673         bclr in longjmp will likely result in branch.
17674
17675
17676 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
17677
17678         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
17679
17680 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
17681
17682         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
17683         v850 builds.
17684
17685         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
17686
17687 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17688
17689         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
17690         that loads FR14 to specify offset of 8 rather than 4
17691         so it loads from offset 96 (where setjmp stored it).
17692
17693 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17694
17695         * libc/machine/sh/memcpy.S: (_memcpy): Update to
17696         latest version supplied by customer.
17697         * libc/machine/sh/memset.S (_memset): Ditto.
17698
17699 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
17700
17701         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17702         PR14730).
17703
17704 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
17705
17706         * libc/include/string.h: remove redefinition of ffs
17707
17708 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
17709
17710         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
17711         defined
17712
17713 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17714
17715         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17716         TI Libraries to link to libc.a
17717
17718 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
17719
17720         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
17721         * libc/include/sys/stat.h (_{,f}stat): Ditto.
17722         * libc/include/sys/wait.h (_wait): Ditto.
17723         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
17724         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
17725
17726 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
17727
17728         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
17729         minded stabs so function name shows up when running the simulator
17730         with -t.
17731         * libc/sys/d10v/{crt0,trap}.S: Ditto.
17732
17733 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
17734
17735         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
17736         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
17737         Use R5 where we used to use R3.
17738
17739 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
17740
17741         * libc/stdlib/getopt.c (getopt): replaced __progname
17742         with nargv[0] to improve portability to imbedded systems.
17743
17744 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
17745
17746         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
17747         patch supplied by Tont.Thompson@arm.com to fix the creation of the
17748         stdout file.
17749
17750 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
17751
17752         * libc/stdio/tmpnam.c (worker): Generate a different file name
17753         each time.
17754
17755         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
17756         fails, try an execlp for sh.
17757
17758         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
17759         option for the winsup include directory.
17760
17761 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
17762
17763         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
17764         debugging interface from Tony.Thompson@arm.com.
17765
17766         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
17767         * libc/sys/arm/swi.h: ditto.
17768
17769 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17770
17771         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17772         DIR struct used for readdir hashes.
17773
17774 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17775
17776         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17777
17778 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17779
17780         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17781         integer targets.
17782
17783 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17784
17785         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17786         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17787         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17788         (__malloc_copy): Declare.
17789
17790 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17791
17792         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17793         <sys/config.h>.
17794         (POINTER_UINT): Define.
17795         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17796         (MALLOC_ALIGNMENT): Don't define if already defined.
17797         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17798         long.
17799
17800 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17801
17802         * libc/string/memset.c (memset): Fiddle with code so that the long
17803         value being stored is not a stack value.  Unroll storing longs 4
17804         times.
17805
17806 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17807
17808         * Reduce code size for libm modules.
17809         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17810         and simply move code into sqrt.
17811         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17812         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17813         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17814         * libm/math/wr_gamma.c (gamma_r): Likewise.
17815         * libm/math/wf_sinh.c (sinfh): Likewise.
17816         * libm/math/w_sinh.c (sinh): Likewise.
17817         * libm/math/wf_scalb.c (scalbf): Likewise.
17818         * libm/math/w_scalb.c (scalb): Likewise.
17819         * libm/math/wf_remainder.c (remainderf): Likewise.
17820         * libm/math/w_remainder.c (remainder): Likewise.
17821         * libm/math/wf_pow.c (powf): Likewise.
17822         * libm/math/w_pow.c (pow): Likewise.
17823         * libm/math/wf_log10.c (log10f): Likewise.
17824         * libm/math/w_log10.c (log10): Likewise.
17825         * libm/math/wf_log.c (logf): Likewise.
17826         * libm/math/w_log.c (log): Likewise.
17827         * libm/math/w_lgamma.c (lgamma): Likewise.
17828         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17829         * libm/math/wf_jn.c (jnf): Likewise.
17830         * libm/math/w_jn.c (jn): Likewise.
17831         * libm/math/wf_j1.c (j1f): Likewise.
17832         * libm/math/w_j1.c (j1): Likewise.
17833         * libm/math/wf_j0.c (j0f): Likewise.
17834         * libm/math/w_j0.c (j0): Likewise.
17835         * libm/math/wf_hypot.c (hypotf): Likewise.
17836         * libm/math/w_hypot.c (hypot): Likewise.
17837         * libm/math/wf_gamma.c (gammaf): Likewise.
17838         * libm/math/w_gamma.c (gamma): Likewise.
17839         * libm/math/wf_fmod.c (fmodf): Likewise.
17840         * libm/math/w_fmod.c (fmod): Likewise.
17841         * libm/math/wf_exp.c (expf): Likewise.
17842         * libm/math/w_exp.c (exp): Likewise.
17843         * libm/math/wf_cosh.c (coshf): Likewise.
17844         * libm/math/w_cosh.c (cosh): Likewise.
17845         * libm/math/wf_atanh.c (atanhf): Likewise.
17846         * libm/math/w_atanh.c (atanh): Likewise.
17847         * libm/math/wf_atan2.c (atan2f): Likewise.
17848         * libm/math/w_atan2.c (atan2): Likewise.
17849         * libm/math/wf_asin.c (asinf): Likewise.
17850         * libm/math/w_asin.c (asin): Likewise.
17851         * libm/math/wf_acosh.c (acoshf): Likewise.
17852         * libm/math/w_acosh.c (acosh): Likewise.
17853         * libm/math/wf_acos.c (asocf): Likewise.
17854         * libm/math/w_acos.c (acos): Likewise.
17855         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17856         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17857         for embedded systems.
17858
17859 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17860
17861         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17862         Lea in case of a foreign sbrk.
17863
17864 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17865
17866         Incorporate Doug Lea's malloc:
17867         * libc/stdlib/mallocr.c: Completely replaced.
17868         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17869         (realloc): Remove.
17870         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17871         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17872         mallopt.
17873         (mallinfo, malloc_stats, mallopt): New functions.
17874         (_mstats_r): Just call _malloc_stats_r.
17875         * libc/stdlib/malign.c: New file.
17876         * libc/stdlib/mlock.c: New file.
17877         * libc/stdlib/msize.c: New file.
17878         * libc/stdlib/mtrim.c: New file.
17879         * libc/stdlib/realloc.c: New file.
17880         * libc/stdlib/valloc.c: New file.
17881         * libc/stdlib/malloc.h: Remove.
17882         * libc/stdlib/callocr.c: Remove.
17883         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17884         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17885         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17886         reallocr.o, valloc.o, vallocr.o.
17887         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17888         (MALLOC_CFLAGS): New variable.
17889         (mallocr.o): New target, build from mallocr.c.
17890         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17891         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17892         (msizer.o, malloptr.o): Likewise.
17893         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17894         (valloc.o): New target.
17895         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17896         * libc/include/malloc.h: Declare struct mallinfo, and new
17897         routines.
17898         * libc/include/stdlib.h (cfree): Correct declaration.
17899
17900 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17901
17902         * libc/include/machine/setjmp.h: Add support for Thumb target.
17903
17904         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17905
17906         * configure.in (links): Add support for Thumb target.
17907
17908 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17909
17910         * libc/sys/arm/setjmp.S: Updated with version from branch.
17911
17912 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17913
17914         * libc/include/stdio.h: add POSIX-required define L_ctermid
17915         for ctermid
17916
17917 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17918
17919         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17920         addition to MISSING_SYSCALL_NAMES.
17921
17922 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17923
17924         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17925
17926 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17927
17928         * libc/include/string.h: change strsignal proto to return
17929         a char *.  This eliminates compile problems in gdb resulting
17930         from gdb's definition of strsignal in defs.h.
17931
17932 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17933
17934         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17935         winsup/include) so as not to conflict with the one in
17936         libc/include.
17937         * libc/include/string.h: add protos for strsignal, strtosigno
17938
17939 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17940
17941         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17942
17943         * configure.in (d30v-*-*): Add configuration.
17944
17945 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17946
17947         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17948         to select which kind of debug monitor is in use for an ARM target.
17949
17950         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17951         Angel and Demon debug monitors.  Part of this code was supplied by
17952         Tony Thompson at ARM: athompso@arm.com.
17953
17954 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17955
17956         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17957         semantics when the count is greater than the length of the second
17958         source string.
17959
17960 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17961
17962         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17963         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17964         truncate and ftruncate take off_t, not size_t
17965
17966 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17967
17968         * libc/string/strcat.c (strcat): Add missing comment end.
17969         * libc/string/strncat.c (strncat): Likewise.
17970
17971 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17972
17973         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17974         targets.
17975         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17976         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17977         defined.
17978         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17979         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17980         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17981
17982 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17983
17984         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17985         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17986
17987 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17988
17989         * libc/machine/i386/setjmp.S: New file.
17990         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17991         (OFILES): Add setjmp.o.
17992         (setjmp.o): Add rule for.
17993         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17994
17995 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17996                          Jeffrey A Law  (law@cygnus.com)
17997
17998         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17999         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
18000         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
18001         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
18002
18003 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
18004
18005         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
18006         rules.
18007
18008         * libc/include/sys/config.h: Use __v850 to select v850
18009         endianness.
18010
18011         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
18012         buffer size.
18013
18014         * libc/include/machine/ieeefp.h: Use __v850 to select v850
18015         endianness.
18016
18017 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
18018
18019         * libc/stdlib/setenv.c: change unsetenv definition to match
18020         style of setenv (with _DEFUN).  The string should be a const.
18021         * libc/include/stdlib.h: unsetenv proto should return void.
18022
18023 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
18024
18025         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
18026
18027 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
18028
18029         * libc/stdio/glue.h: remove.
18030         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
18031         * libc/stdio/Makefile.in: remove glue.h dependencies
18032
18033 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
18034
18035         * libc/sys/sysnecv850/crt0.S: Created V850e version.
18036
18037 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
18038
18039         * configure.in (target_cpu): Add `arc'.
18040
18041 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
18042
18043         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
18044           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
18045         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
18046         * newlib/libc/reent/reent.c: Add _wrapup_reent.
18047         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
18048
18049 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
18050
18051         * libc/machine/mips/setjmp.S: Handle mips16 builds.
18052
18053 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
18054
18055         * libc/include/stdio.h (siprintf): Declare.
18056
18057 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
18058
18059         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
18060         TARGET_CFLAGS and NEWLIB_FLAGS.
18061
18062 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
18063
18064         * configure.in (links): Add support for v850ea target.
18065
18066 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
18067
18068         * configure.in (links): Add support for v850e target.
18069
18070 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
18071
18072         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
18073
18074 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
18075
18076         * configure.in (arc-*-*): Add support for.
18077         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
18078
18079 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
18080
18081         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
18082
18083 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
18084
18085         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
18086         comparison which accesses invalid memory when the key is
18087         larger than the last member of the array.
18088         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
18089         for CYGWIN32
18090         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
18091
18092 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
18093
18094         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
18095         not _STRICT_ANSI.
18096
18097 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
18098
18099         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
18100         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
18101
18102 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
18103
18104         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
18105         to load/store memory.
18106
18107 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
18108
18109         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
18110         underscores if _WIN32.
18111
18112 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
18113
18114         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
18115         support ifdef _USE_WRITE missed in last change.
18116         From Anders Blomdell <anders.blomdell@control.lth.se>.
18117
18118 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
18119
18120         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
18121         (_tmpnam_r, _tempnam_r): Update.
18122
18123 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
18124
18125         * libc/machine/sparc/setjmp.S: New file.
18126         * libc/machine/sparc/Makefile.in: Add setjmp.
18127         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
18128
18129 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
18130
18131         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
18132
18133 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
18134
18135         From Joel Sherrill <joel@oarcorp.com>.
18136         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
18137
18138         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
18139         * configure.in: Recognize *-*-rtems*.
18140         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
18141         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
18142         time.h,times.h,types.h}: New files.
18143         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
18144
18145 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
18146
18147         patch from sos@prospect.com.ru (Sergey Okhapkin):
18148         * include/sys/wait.h: correct operator precidence bug
18149         in WIFSIGNALED
18150
18151 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
18152
18153         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
18154         with newlib's unsetenv function
18155         * libc/sys/cygwin32/sys: new directory for includes
18156         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
18157         here from winsup/include/sys
18158
18159 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
18160
18161         * libc/include/sys/unistd.h: _exit should only be
18162         labelled noreturn when not __CYGWIN32__
18163         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
18164         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
18165         increment NSIG
18166
18167 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
18168
18169         * libc/include/sys/time.h: Only define timeval and timezone if
18170         _GNU_H_WINDOWS32_SOCKETS is not defined.
18171         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
18172
18173 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
18174
18175         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
18176         * libc/machine/mn10300/setjmp.S: Likewise.
18177
18178         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
18179         the mn10300 (more relaxing opportunities).
18180
18181 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
18182
18183         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
18184         Build libraries with -mstrict-align.
18185
18186 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
18187
18188         * libc/string/strlwr.c: New file.
18189         * libc/string/strupr.c: New file.
18190         * libc/include/string.h: Declare strlwr and strupr.
18191         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
18192         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
18193         (strlwr.o, strupr.o): New targets.
18194         * libc/string/strings.tex: Include strlwr and strupr docs.
18195
18196         * libc/include/sys/types.h: Don't define u_char, et. al., if
18197         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
18198         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
18199         _types_fd_set rather than fd_set, and define fd_set as a macro.
18200
18201         * libc/include/malloc.h: New file.
18202
18203         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
18204         strnicmp if they are not already defined.
18205
18206         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
18207         _timezone, _daylight, and _tzname.
18208
18209 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
18210
18211         * configure.in: Sort all configuration tables.
18212
18213         From Joel Sherrill <joel@oarcorp.com>
18214         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
18215
18216 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
18217
18218         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
18219         use int when declaring kill.
18220
18221         * libc/include/sys/timeb.h: New file.
18222
18223 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
18224
18225         * libc/include/sys/time.h: add itimer support for Cygwin32
18226
18227 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
18228
18229         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
18230         out a message that abort was called to stderr.
18231
18232 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
18233
18234         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
18235         so that libio doesn't freak.
18236
18237         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
18238         int.
18239
18240         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
18241         memory sizes, not int.
18242
18243 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
18244
18245         * libm/math/ef_hypot.c: Use long constants where
18246         appropriate.
18247         * libm/math/ef_sqrt.c: Ditto.
18248
18249         * libc/sys/sysmec/times.c(_times): Change to times.
18250
18251         * libc/sys/sysmec/read.c(_read): The third argument is
18252         size_t.
18253         * libc/sys/sysmec/write.c (_write): Ditto.
18254
18255         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
18256         (_lseek): It's off_t for the second argument.
18257
18258 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
18259
18260         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
18261         as well as machine/ieeefp.h.
18262
18263 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
18264
18265         * libc/include/sys/signal.h: add signal protos for winsup
18266         functions (when __CYGWIN32__), include types.h
18267         * libc/include/sys/types.h: Change __go32_types__ internal
18268         define to __MS_types__ since it's used for more than just
18269         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
18270         defined.
18271         * libc/include/sys/unistd.h: add ftruncate proto for
18272         winsup functions (when __CYGWIN32__)
18273
18274 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
18275
18276         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
18277
18278 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
18279
18280         * libc/include/machine/setjmp.h: Add tic80 support.
18281         * libc/machine/tic80/setjmp.S: Likewise.
18282
18283 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
18284
18285         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
18286         link programs from libraries only (such as in the X11
18287         distribution)
18288
18289 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
18290
18291         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
18292         supplied elsewhere in newlib.
18293
18294 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
18295
18296         * Makefile.in (INSTALL): Change install.sh to install-sh.
18297
18298 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18299
18300         * README: update WWW address for on-line documentation.
18301
18302 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
18303
18304         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
18305         increment NSIG
18306
18307 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
18308
18309         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
18310         mn10300.
18311         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
18312
18313 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
18314
18315         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
18316         * libc/sys/d10v/syscalls.c: Likewise.
18317         * libc/sys/h8300hms/sbrk.c: Likewise.
18318         * libc/sys/h8500hms/syscalls.c: Likewise.
18319         * libc/sys/m88kbug/syscalls.c: Likewise.
18320         * libc/sys/sh/syscalls.c: Likewise.
18321         * libc/sys/sysmec/sbrk.c: Likewise.
18322         * libc/sys/sysnecv850/sbrk.c: Likewise.
18323         * libc/sys/w65/syscalls.c: Likewise.
18324         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
18325
18326 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
18327
18328         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
18329         emulated syscall instead of "trap".
18330
18331 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
18332
18333         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
18334         not trap 0.
18335
18336 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
18337
18338         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
18339
18340 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
18341
18342         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
18343         not "sh".
18344         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
18345         not "d10v".
18346         * libc/sys/tic80/crt0.c: New file for TIc80.
18347         * libc/sys/tic80/Makefile.in: New file for TIc80.
18348         * libc/machine/tic80/Makefile.in: New file for TIc80.
18349
18350 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
18351
18352         * libc/machine/sh/memcpy.S: New file.
18353         * libc/machine/sh/memset.S: New file.
18354         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
18355
18356 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
18357
18358         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
18359         for TIc80.
18360
18361 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
18362
18363         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
18364         the mn10200.
18365
18366 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
18367
18368         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
18369         (patch from andrew@pogo.WV.TEK.COM).
18370
18371 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
18372
18373         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
18374         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
18375
18376 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
18377
18378         * configure.in:  Add cases for "tic80" to set machine_dir,
18379         sys_dir, and syscall_dir.
18380
18381 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
18382
18383         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
18384
18385 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
18386
18387         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
18388
18389 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
18390
18391         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
18392         Use proper constant prefix.
18393
18394 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
18395
18396         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
18397         that loses on the mn10200 where ints and pointers are different
18398         sizes.
18399
18400 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
18401
18402         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
18403         target as signal is provided in winsup.
18404
18405 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
18406
18407         * libc/include/sys/process.h: Corrected const definitions
18408         in spawn functions. Added cwait.
18409
18410 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
18411
18412         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
18413         doubles.
18414         * libc/include/sys/config.h: Similarly.
18415
18416 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18417
18418         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
18419         target_cflags.
18420         (i[3456]86-*-sco*): Ditto.
18421
18422         * libc/signal/Makefile.in (OFILES): Add signal.o.
18423         (CFILES): Add signal.c.
18424
18425         * libc/signal/raise.c (_raise_r): Only compile code if
18426         SIGNAL_PROVIDED is defined.
18427
18428         * libc/signal/signal.c: Redo whole file so that it works with
18429         current newlib.  Use _kill_r if no signal handler provided.
18430
18431         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
18432         signal stubs.
18433         * libc/sys/sysvnecv70/Makefile.in: Ditto.
18434         * libc/sys/sysnecv850/Makefile.in: Ditto.
18435
18436         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
18437         * libc/sys/sysmec/{raise,signal}.c: Ditto.
18438         * libc/sys/sysvnecv70/signal.s: Ditto.
18439         * libc/sys/sysnecv850/raise.c: Ditto.
18440
18441         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
18442         simulator and debugger can tell the difference between a signal
18443         being raised and an exit system call.
18444
18445         * NEWS: Document software signals being provided.
18446
18447 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18448
18449         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
18450         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
18451         include/sys/config.h.
18452         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
18453         Change from 'inpure_data'.
18454         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
18455         &impure_data, not &inpure_data.
18456
18457         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
18458         and and System V ABI, define so that _impure_ptr lives in the
18459         .sdata section.
18460
18461 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18462
18463         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
18464         nothing if not defined.
18465         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
18466         its attributes.
18467
18468         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
18469
18470 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
18471
18472         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
18473         * libc/sys/sysmec/trap.s: Handle mn10200 too.
18474         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
18475
18476 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
18477
18478         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
18479
18480 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
18481
18482         * libc/include/sys/errno.h: Added net errno's.
18483
18484 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18485
18486         * libc/misc/ffs.c: New file to support ffs function for GCC test
18487         gcc.c-torture/execute/960909-1.c.
18488
18489         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
18490
18491 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
18492
18493         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
18494         * libc/sys/sysmec/trap.S: Likewise.
18495
18496 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
18497
18498         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
18499         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
18500
18501 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
18502
18503         * libc/sys/sysmec/signal.c: Dummy file.
18504         * libc/sys/sysmec/Makefile.in: Build it.
18505
18506 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
18507
18508         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
18509         mips16.
18510
18511 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
18512
18513         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
18514         c-startup and simulator traps.
18515
18516
18517         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
18518         * libc/sys/sysmec/trap0.S: Likewise.
18519
18520 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18521
18522         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
18523         round to double word alignment.
18524         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
18525         byte alignment.
18526
18527         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
18528
18529         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
18530         out of memory.
18531
18532 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
18533
18534         * configure.in: Handle mn10200 and mn10300.
18535         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
18536         * libc/include/sys/config.h: Likewise.
18537         * libc/sys/sysmec: New directory for mec stuff.
18538         * libc/machine/mn10300: New directory for mn10300 stuff.
18539         * libc/machine/mn10200: Similarly for mn10200 stuff.
18540
18541 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
18542
18543         * libc/sys/arm/crt0.S: Use .text, not .section .text.
18544         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
18545
18546         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
18547         (nlink_t): Change type from unsigned int to unsigned short.
18548         (mode_t): Ensure size is 32 bits even if int is 16.
18549         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
18550         (st_spare[123]): Change type from int to long.
18551
18552 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18553
18554         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
18555         byte boundary.
18556
18557         * configure.in (d10v*): Define SMALL_MEMORY.
18558
18559 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18560
18561         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
18562         -mrelocatable-lib and -mno-eabi flags.
18563
18564 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
18565
18566         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
18567         Fix handling of mis-aligned source operand when both the
18568         destination & length are properly aligned.
18569
18570 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
18571
18572         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
18573         times.o, time.o and gettime.o
18574         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
18575         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
18576         SYS_gettimeofday.
18577
18578 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
18579
18580         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
18581         * libc/sys/sysnecv850/access.c: New file.
18582
18583 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
18584
18585         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
18586
18587         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
18588         long.
18589
18590 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
18591
18592         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
18593
18594 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
18595
18596         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
18597         * libc/include/sys/config.h: Add m32r support.
18598
18599 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
18600
18601         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
18602         here.
18603
18604 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
18605
18606         * libc/include/machine/setjmp.h: Add D10v support.
18607
18608 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
18609
18610         * configure.in: Configure the "libc/syscalls" directory for
18611         the v850.
18612
18613         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
18614         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
18615         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
18616         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
18617         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
18618
18619 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
18620
18621         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
18622         stack for args for main and other routines.  Zero out args for
18623         main.
18624
18625         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
18626         correctly.
18627
18628 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18629
18630         * libc/stdio/findfp.c (std): Remove extraneous ';' after
18631         function.
18632
18633         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
18634
18635         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
18636         real system calls now.
18637
18638         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
18639         before casting them to int.
18640         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
18641
18642         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
18643         aligning pointer.
18644         * libc/string/memset.c (memset): Ditto.
18645
18646         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
18647         first convert ints to _POINTER_INT to eliminate GCC warning.
18648
18649         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
18650         processing %p.
18651
18652         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
18653         from 65000 if ints are only 16 bits.
18654
18655         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
18656         from 50000 if ints are only 16 bits.
18657
18658         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
18659         int type that is the same size as a pointer.
18660
18661         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
18662         processing %p.
18663         (get_number): Explicitly cast number to long before shifting by 16
18664         or 24, in case ints are short.
18665
18666         * libc/include/sys/config.h (_POINTER_INT): Define as short.
18667
18668 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
18669
18670         * libc/string.h: Added ffs, removed swab.
18671         * libc/sys/errno.h: Added EOPNOTSUPP.
18672         * libc/sys/unistd.h: Added swab.
18673
18674 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
18675
18676         * libc/include/sys/stat.h: Added fchmod.
18677         * libc/include/sys/unistd.h: Added fsync.
18678
18679 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
18680
18681         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
18682         and ECONNRESET (104) for cygwin32.
18683
18684 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
18685
18686         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
18687         do the static destructors.
18688
18689 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
18690
18691         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
18692
18693 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
18694
18695         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
18696         * configure.in: Recognize m32r-*-*.
18697
18698 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
18699
18700         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
18701         __rt_stkovf_split_small): Added default software stack overflow
18702         handlers, which just call SWI_Exit.
18703         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
18704         limit initialisation.
18705
18706 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
18707
18708         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
18709
18710 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
18711
18712         * libc/include/sys/types.h: Added ssize_t definition.
18713
18714 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18715
18716         * libc/machine/d10v/setjmp.S: Use ';' for comments.
18717         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
18718
18719         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
18720         branch around a single ldi instruction.
18721
18722         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
18723         Call exit, instead of just issuing a stop instruction.
18724
18725 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18726
18727         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
18728
18729 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18730
18731         * libc/stdlib/mprec.h: Explicitly declare all large constants as
18732         longs, and then cast them to __uint32_t.
18733
18734         * libc/include/sys/config.h: Protect against multiple inclusions.
18735
18736 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
18737
18738         * configure.in (d10v*): Set syscall_dir.
18739
18740 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
18741
18742         * libc/sys/d10v/crt0.S: Set stack pointer.
18743
18744 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
18745
18746         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
18747         in assembly for efficiency.  Change calling convention to allow
18748         long ints to be returned.
18749
18750 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18751
18752         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
18753
18754 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
18755
18756         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
18757         Handle empty entries in $PATH.
18758
18759 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
18760
18761         * libc/machine/d10v/setjmp.S: Make it really work.
18762
18763 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
18764
18765         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
18766         the .stack section.
18767
18768 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
18769
18770         * sys/sysnecv850/sys/file.h: Remove.
18771         * sys/sysnecv850/sys/syscall.h: New file.
18772         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18773         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18774         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18775         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18776         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18777         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18778         * sys/sysnec850/trap.S: New file.
18779         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18780         syscalls.
18781         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18782         * sys/sysnec850/sbrk.c: New version.
18783
18784 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18785
18786         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18787         as long as r6 is less than r7.
18788
18789 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18790
18791         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18792         remove *.a or targ-include.
18793         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18794
18795 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18796
18797         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18798         d10v.
18799         (__SMALL_BITFIELDS): Ditto.
18800
18801         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18802
18803 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18804
18805         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18806         prefix.
18807
18808         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18809         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18810         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18811         * libc/sys/sysnecv850/write.c (write): Likewise.
18812
18813         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18814         .bss.
18815
18816 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18817
18818         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18819         appropriately for D10V, depending on -mint16/-mint32.
18820
18821 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18822
18823         * configure.in: Add cases for D10V.
18824
18825 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18826
18827         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18828
18829 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18830
18831         * libc/include/machine/ieeefp.h: Fix typo.
18832
18833 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18834
18835         * libc/sys/d10v: New directory for D10V stuff.
18836         * libc/include/machine/ieeefp.h: Add D10V defines.
18837
18838 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18839
18840         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18841         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18842         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18843         * libc/string/strerror.c (strerror): Add them.
18844
18845 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18846
18847         * libc/sys/sysnecv850: New directory for v850 stuff.
18848
18849         * libc/machine/v850: New directory for v850 stuff.
18850         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18851
18852         * configure.in: Add support for the v850.
18853
18854         * libc/include/machine/ieeefp.h: Add v850 defines.
18855         * libc/include/machine/setjmp.h: Likewise.
18856         * libc/include/sys/config.h: Add v850 defines.
18857
18858 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18859
18860         * libc/include/machine/ieeefp.h
18861         * libc/include/machine/setjmp.h
18862         * libc/include/sys/fcntl.h
18863         * libc/include/sys/signal.h
18864         * libc/include/sys/types.h
18865         * libc/stdlib/system.c:
18866         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18867         API availability, __CYGWIN32__ for cygwin32 environment specific).
18868
18869 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18870
18871         * libc/include/stdlib.h: add multibyte character functions.  Add
18872         __eprintf for assert.
18873
18874 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18875
18876         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18877         arithmetic or __alignof__ to properly get the alignment, instead
18878         of hardwiring it to 4.
18879
18880 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18881
18882         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18883         on append stream (fix from NetBSD sources), adjust curoff offset
18884         for ungetc's benefit.
18885         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18886         * libc/stdio/rewind.c: replace code with up to date NetBSD
18887         code to undo hacks made to work around above problem of not
18888         having fflush call mentioned above
18889
18890 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18891
18892         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18893         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18894         Partially revert last changes.  The thread specific errno is set
18895         iff if the underlying syscall fails and the global errno is not
18896         zero.
18897
18898 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18899
18900         * libc/reent/filer.c: Removed files, all functions have split out
18901         into their own files.
18902         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18903         New files containing functions formally in filer.c
18904         * libc/reent/Makefile.in: Updated for above change.
18905
18906         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18907         syscall fails, not if errno is changed.
18908         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18909         _write_r): Likewise.
18910         * libc/reent/fstatr.c (_fstat_r): Likewise.
18911         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18912         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18913         * libc/reent/signalr.c (_kill_r): Likewise.
18914         * libc/reent/statr.c (_stat_r): Likewise.
18915         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18916
18917         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18918         signalr.c, statr.c, timer.c} (errno): declare extern rather
18919         than as a common.
18920
18921         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18922         instead of calling vfprintf so that i*printf will not require
18923         floating point support code.
18924
18925 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18926
18927         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18928         path delimiter.
18929         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18930         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18931
18932 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18933
18934         * libc/include/signal.h: _sig_func_ptr function takes an int
18935         * libc/include/sys/signal.h: sa_handler function takes an int
18936
18937 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18938
18939         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18940         * libc/include/sys/config.h: Add missing H8/S conditional.
18941
18942 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18943
18944         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18945
18946 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18947
18948         * libc/include/machine/setjmp.h: Handle H8/S.
18949         * libc/include/machine/ieeefp.h: Likewise.
18950         * libc/include/sys/config.h: Likewise.
18951         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18952         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18953         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18954         * libc/sys/h8300hms/crt0.S: Likewise.
18955
18956 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18957
18958         * Makefile.in (datadir): Set to $(prefix)/share.
18959         (oldincludedir, docdir): Removed.
18960         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18961         (oldincludedir, docdir): Removed.
18962         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18963         (oldincludedir, docdir): Removed.
18964         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18965         (oldincludedir, docdir): Removed.
18966
18967 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18968
18969         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18970         _reent struct.
18971
18972 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18973
18974         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18975         fetch current path rules with sysconf and handler posix/win32
18976         appropriately.
18977
18978         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18979
18980         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18981         (WAIT_CHILD): Always define.
18982
18983 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18984
18985         * libc/stdlib/eprintf.c: New file.
18986         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18987         (eprintf.o): New target.
18988
18989 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18990
18991         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18992         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18993
18994 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18995
18996         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18997         NT in PowerPC endianess cases.
18998
18999 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19000
19001         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
19002
19003 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19004
19005         * libc/string/strtok.c: Fix doc typo.
19006
19007 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19008
19009         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
19010         _next, _scanpoint, _signgam fields.
19011
19012         * libc/include/stdlib.h (rand_r): Added new declaration.
19013         (_rand_r, _srand_r): Removed declarations.
19014         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
19015         have been made obsolete by rand_r.
19016         * libc/stdlib/rand_r.c: New file, rand_r function as specified
19017         by POSIX.1c.
19018
19019         * libc/string/strtok.c: Update documentation to describe
19020         strtok_r().
19021
19022 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
19023
19024         * libc/include/sys/stat.h (stat structure): Use the expanded stat
19025         structure on Solaris, and PowerPC systems even though __svr4__ is
19026         defined.
19027
19028 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
19029
19030         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
19031
19032 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
19033
19034         * host/any: Use ../.. rather than .. to get to the main build
19035         directory.  This matches the current layout of the build
19036         directory.
19037
19038 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
19039
19040         * libc/machine/h8300/__main.S: Delete.  No longer needed.
19041         * libc/machine/h8300/Makefile.in: Corresponding changes.
19042         * libc/sys/h8300hms/crt1.c: New file.
19043         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
19044         * libc/sys/h8300hms/crt0.s: Call __main.
19045
19046         * libc/sys/h8300hms/crt0.S: Use temporary label names
19047         for branch targets.
19048
19049 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
19050
19051         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
19052
19053 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19054
19055         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
19056         .sdata on the PowerPC so that we can link newlib with code
19057         compiled with -msdata.
19058
19059 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
19060
19061         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
19062
19063 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
19064
19065         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
19066         exception handler to __cygwin_exception_handler.
19067
19068 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
19069
19070         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
19071
19072 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
19073
19074         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
19075         SunOS VPATH.
19076         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
19077         wcstombs.o): Likewise.
19078
19079 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
19080
19081         * libc/stdlib/environ.c (initial_env): New static local.
19082         (environ): Point to `initial_env'.
19083
19084         * libc/include/machine/setjmp.h: Clean up.
19085         (__H8300H__,__PPC__): Define _JBTYPE.
19086         (__arm__): Provide entry for.
19087         (sigjmp_buf): Delete.
19088         (jmp_buf): Use _JBTYPE if defined, otherwise int.
19089
19090 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
19091
19092         * libc/machine/h8300/strcmp.S: Sign extend the result to
19093         32bits so we don't lose with -mint32.
19094
19095 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
19096
19097         * libc/sys/go32/sys/errno.h: New file.
19098         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
19099         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
19100         errno's address (make compatible with rest of newlib).
19101         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
19102         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
19103
19104 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
19105
19106         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
19107         * libc/machine/sparc/Makefile.in: Build them.
19108         * libc/machine/sparc/machine/sparclet.h: New file.
19109
19110 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19111
19112         * libc/machine/sh/asm.h: New file.
19113         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
19114         support for SH3e's FP registers.  Use asm.h.
19115
19116 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
19117
19118         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
19119         as first argument.  Call _dtoa_r and pass the reent structure
19120         instead of calling __dtoa.
19121
19122 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
19123
19124         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
19125         the h8300, h8500, and others.  Add comments for some rather
19126         dubious code.
19127
19128 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
19129
19130         * Makefile.in (check): Check that testsuite exists before cd.
19131
19132 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19133
19134         * libc/include/string.h (strsep): Correct prototype.
19135
19136 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
19137
19138         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
19139         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
19140         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
19141
19142 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
19143
19144         * libc/posix/{creat.c,isatty.c}: New files.
19145         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
19146
19147         * libc/sys/sparc64/crt0.S (environ): Delete.
19148         (.LHaveBias): Renamed from HaveBias.
19149
19150 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
19151
19152         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
19153         (_morecore_r): Delete SBRK_IS_ALLOC support.
19154
19155 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19156
19157         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
19158         module rather than touch, so we don't get warning messages when
19159         all of the libraries are combined into libc.a.
19160
19161 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
19162
19163         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
19164         crt0.s replaced by version in libgloss.
19165
19166 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
19167
19168         * libc/reent/Makefile.in (OFILES): Add impure.o.
19169         * libc/reent/impure.o: New file, define initial reentrancy struct.
19170         * libc/reent/reent.c: Remove above definition.
19171
19172         * libm/math/sf_asinh.c: Fix typo.
19173
19174         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
19175         srf_ldexp.o.
19176
19177         * libm/libm.texinfo: Change documentation to reflect changes
19178         in reentrancy model.
19179         * libm/math/w_gamma.c: Likewise.
19180
19181 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19182
19183         * configure.in (*-*-cygwin32): New.
19184         (*-*-win32): Deleted.
19185         * libc/sys/win32 renamed libc/sys/cygwin32.
19186
19187 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19188
19189         * libc/include/sys/file.h: New include file.
19190
19191 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19192
19193         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
19194
19195 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
19196
19197         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
19198
19199 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
19200
19201         * doc/makedoc.c (realloc): Declare at file scope.
19202         (catchar): Not here.
19203
19204 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
19205
19206         * Makefile.in (VERSION): Update to 1.7.0.
19207         * {libc,libm}/Makefile.in (VERSION): Likewise.
19208         * configure.in: Minor clean up of multilib stuff.
19209
19210         From David Johnson <davidj@ICSI.Berkeley.EDU>
19211         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
19212
19213         * libc/stdlib/environ.c: New file.
19214         * libc/stdlib/Makefile.in (OFILES): Build it.
19215         * libc/sys/h8500hms/crt0.c (environ): Deleted.
19216         * libc/sys/m88kbug/crt0.c (environ): Deleted.
19217         * libc/sys/z8ksim/crt0.c (environ): Deleted.
19218         * libc/sys/netware/environ.c: Deleted.
19219
19220 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
19221
19222         * configure.in (links): set sys_dir, posix_dir, syscall_dir
19223
19224 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
19225
19226         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
19227         declaration out to external scope and declare it PTR, not char *.
19228
19229 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
19230
19231         * libc/include/sys/unistd.h (getpagesize): New declaration.
19232         (_SC_PAGESIZE): New definition.
19233         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
19234         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
19235
19236 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
19237
19238         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
19239         addressing. System call returns size, not (last address + 1).
19240
19241 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19242
19243         * libm/math/*.c: Removed _foo_r() reentrancy API.
19244         * libc/include/math.h: Removed _foo_r prototypes and macros.
19245
19246         * libm/math/*.c: On systems with IEEE single precision "doubles"
19247         move foo() -> foof() wrapper code from the files that implement
19248         the standard IEEE double precision functions to the files that
19249         implement IEEE single precision functions. (ie. On those systems
19250         sin is moved from s_sin.c to sf_sin.c).  There should eventually
19251         be use of a C extension (like gcc's alias attribute) so that the
19252         wrappers are not needed at all.
19253
19254         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
19255         strict NEC V810 compiler.
19256         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
19257         for same reason.
19258
19259 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19260
19261         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
19262         from NetBSD C library.
19263         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
19264
19265         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
19266         and adapted from implementation I wrote for NetBSD C library.
19267         The difference is __assert doesn't take a format argument,
19268         so that there won't be multiple copies of the same string
19269         constant in the executable if assertions are enabled in
19270         more than one source module.
19271         * libc/include/assert.h (assert): Changed to call __assert.
19272
19273 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19274
19275         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
19276         word1 on systems with 32 bit doubles.
19277         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
19278         so that we can do arithmetic on them.
19279         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
19280         compilers.
19281
19282 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19283
19284         * libc/sys/arm/crt0.S: Zero bss.
19285
19286 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
19287
19288         * libc/include/unctrl.h: New file.
19289         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
19290         * configure.in (subdirs): Add libc/misc.
19291         * libc/Makefile.in (SUBDIRS): Add misc.
19292         (SUBLIBS): Add misc/lib.a.
19293
19294         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
19295
19296 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
19297
19298         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
19299         (_vfprintf_r): Call CHECK_INIT.
19300
19301 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
19302
19303         * Makefile.in (MULTITOP): Delete.
19304         (MULTISRCTOP, MULTIBUILDTOP): Add.
19305         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
19306         instead of cfg-ml-pos.in.
19307
19308 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
19309
19310         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
19311         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
19312         presence.
19313
19314 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19315
19316         * libc/string/strtok.c: Include string.h to pick up strtok_r
19317         prototype.
19318
19319 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19320
19321         * libc/string/strtok.c: include <_ansi.h>.
19322         * libc/time/asctime_r.c: `reresult' -> `result'.
19323
19324 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19325
19326         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
19327         in #ifndef _REENT_ONLY ... #endif conditional.
19328
19329         * libc/include/string.h (_strtok_r): Remove declaration.
19330         * libc/include/time.h (_asctime_r): Remove declaration.
19331         * libc/string/strtok.c (_strtok_r): Removed.
19332         * libc/time/asctime.c (_asctime_r): Removed.
19333
19334         * libc/string/Makefile.in (OFILES): Add new object.
19335         * libc/string/strtok_r.c: New file.  strtok_r function as
19336         specified by POSIX.1c, adapted from strtok implementation
19337         from NetBSD C library.
19338         * libc/string/strtok.c (strtok): Reimplemented in terms of
19339         strtok_r.
19340
19341         * libc/time/Makefile.in (OFILES): Add new objects.
19342         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
19343         New files, reentrant time functions specified by POSIX.1c.
19344         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
19345         reentrant time functions re-written in terms of reentrant
19346         functions.
19347         * libc/time/lcltime.c: Renamed from localtime.c
19348
19349         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
19350         gmtime_r, and localtime_r.
19351
19352 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
19353
19354         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
19355         * libc/include/sys/unistd.h (getlogin): Revert change of
19356         Oct 19.
19357         * libc/include/sys/signal.h (sigprocmask): Change prototype
19358         so it compiles with c++.
19359
19360 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
19361
19362         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
19363         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
19364         to give some room in case we need to align the jmp_buf.
19365
19366         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
19367         the new ppc-asm.h include file the compiler provides to specify
19368         function prologue/epilogue.  Eliminate saves of the xer and ctr
19369         registers, which are volatile.  Before starting to save registers,
19370         align to 8 byte boundary.
19371
19372 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
19373
19374         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
19375         referenced by standard libraries.
19376
19377 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
19378
19379         * libc/unix/Makefile.in, libc/string/Makefile.in,
19380         libc/stdio/Makefile.in, libc/reent/Makefile.in,
19381         libc/posix/Makefile.in:
19382         Remove tabs from otherwise empty line.  Confuses some
19383         older non-GNU versions of "make".
19384
19385 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19386
19387         * libc/sys/unistd.h (getlogin): Returns const char *.
19388
19389 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
19390
19391         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
19392         * libc/include/errno.h: Moved into and include...
19393         * libc/include/sys/errno.h: New file.
19394         * libc/include/sys/wait.h: New file.
19395         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
19396         * libc/sys/win32/*: Moved out.
19397         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
19398         * configure.in (i[345]86-*-win32): HAVE_RENAME
19399
19400 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
19401
19402         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
19403         avoid macro expansion for these two names.
19404
19405 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
19406
19407         * libc/machine/h8500/psi.S: r6 renamed to fp.
19408
19409 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
19410
19411         * configure.in (powerpc*): No longer need to define
19412         NO_LONGLONG_POINTERS to supress warnings.
19413
19414 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19415
19416         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
19417         through PTR instead of directly.
19418
19419         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
19420         non-standard constructor support.
19421
19422 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19423
19424         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
19425         address of the Bigint instead of the address of its _x field,
19426         as the size the result buffer was calculated accordingly.
19427         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
19428
19429         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
19430         from NetBSD C library.  No longer special cases division by
19431         zero (which needs to be done by the application anyway), but
19432         it doesn't need to call abs() (or labs()) four times either.
19433
19434         * libc/stdlib/qsort.c: Replaced with implementation from
19435         NetBSD C library.
19436
19437 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19438
19439         * libc/stdio/vfprintf.c: Replaced with implementation from
19440         NetBSD C library (which is derived from the 4.4BSD C library).
19441         * libc/stdio/cvt.c: Removed.
19442         * libc/stdio/Makefile: Updated.
19443
19444 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
19445
19446         * libc/sys/win32/syscalls.c (rename): New.
19447         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
19448
19449 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19450
19451         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
19452         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
19453
19454         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
19455         (setjmp.o): Delete rule to build setjmp.o.
19456         * libc/sys/sh/setjmp.S: Delete file.
19457
19458 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19459
19460         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
19461         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
19462         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
19463         pow5mult and s2b to identifiers with leading underscores.
19464         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
19465         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
19466
19467 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
19468
19469         * libc/sys/posix/popen.c (sys/types.h): Include.
19470
19471 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
19472
19473         * libc/sys/win32/syscalls.h (fhandler): New struct.
19474         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
19475         (__fhandler_normal): Declare.
19476         (hinfo): New member op_handlers.
19477         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
19478         (__write): Likewise.
19479         (_read, _write, _open, _close, _lseek): Validate fd here.
19480         Move file type specific stuff to foo_normal.
19481         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
19482         New functions.
19483         (__lookup_fhandler): New function.
19484         (__lookup_fhandler_hook, __fhandler_normal): New variables.
19485
19486         From anders.blomdell@control.lth.se (Anders Blomdell)
19487         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
19488         Don't touch standard handles.
19489         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
19490         (_execve): Only create __FD_TABLE__ if necessary.
19491         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
19492
19493 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
19494
19495         * libc/sys/win32/sys/termios.h (FLUSHO): New.
19496         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
19497         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
19498         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
19499         without a handler is received.
19500         * libc/sys/win32/Makefile.in: Remove --nodelete.
19501         * libc/sys/win32/resouce.c (gettimeofday): New.
19502         * libc/sys/win32/syscalls.c (path_to_real_path): New.
19503         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
19504
19505 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
19506
19507         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
19508         Don't append "/*" to search pattern if trailing '/' already there,
19509         append "*".
19510         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
19511         like /'s, convert them to \'s.  Handle //<drive>/ path names.
19512         Add space for quoted \'s in arg string.  Print translated prog name
19513         and original prog name.
19514         (_execve): Handle parent doing exec a teensy bit better.
19515         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
19516         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
19517         path needs conversion, handle both cases.  Delete `const' from result.
19518         (hash_path_name): New function.
19519         (_open): Call it.
19520         (_stat): Likewise.  Fill in more fields for directories.
19521         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
19522         (wait_for_any): Fix trace message.
19523         (waitpid): Explicitly test for intpid == 0.
19524
19525         From anders.blomdell@control.lth.se (Anders Blomdell)
19526         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
19527         so `next' is valid.
19528
19529 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
19530
19531         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
19532         complicated.
19533
19534 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
19535
19536         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
19537         at all, not just == 1.
19538         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
19539
19540 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19541
19542         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
19543         * libc/sys/win32/include/wintypes.h: include <winnt.h>
19544         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
19545         file.
19546
19547 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19548
19549         * libc/sys/syscalls.c (getcwd): Fix off by one error.
19550
19551         * libc/sys/signal.c (sleep): Fill it in.
19552         * libc/sys/termios.c (tcflush): Use PurgeComm
19553         (tcsetattr): Set some more of the bits.
19554         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
19555
19556 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
19557
19558         * libc/sys/arm/crt0.S (fp): Initialize to 0.
19559         Conditionally include .idata$3 stuff ifdef __pe__.
19560
19561 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
19562
19563         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
19564         * libc/sys/win32/pipe.c (pipe): Ditto.
19565         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
19566         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
19567         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
19568         (tcgetattr): Contents are new.
19569         * libc/sys/win32/include/winkernel.h (DCB): New.
19570         (GetCommState, SetCommState): New.
19571
19572 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
19573
19574         * libc/sys/arm/crt0.S (_start): Define.
19575
19576 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19577
19578         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
19579         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
19580
19581         * libc/sys/win32/sysconf.c: New
19582         * libc/sys/win32/sys/winadvapi.h: New
19583         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
19584         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
19585         * libc/sys/win32/pipe.c (pipe): Ditto.
19586         * libc/sys/win32/signal.c (_raise): New.
19587         (_kill): Moved from spawn.c
19588         * libc/sys/win32/spawn.c (kill): Moved to signal.c
19589         * libc/sys/win32/syscalls.c (__read): Use new fields.
19590         (_open): Ditto.
19591         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
19592         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
19593         * libc/include/sys/unistd.h (rmdir): Takes const path.
19594         * libc/include/sys/stat.h (mkdir): Takes const path.
19595         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
19596
19597 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19598
19599         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
19600
19601         Add support for specifying paths as //<drive>/foo/bar.
19602         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
19603         (__path_to_real_path): Declare.
19604         (PATH_TO_REAL_PATH): New macro.
19605         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
19606         (__path_needs_conversion_p, __path_to_real_path): New functions.
19607         (_open): Fix test for error return from CreateFileA.
19608         Handle new path syntax.
19609         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
19610         * libc/sys/win32/dirsearch.c (opendir): Likewise.
19611
19612 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
19613
19614         * libc/sys/win32/include/*.h: Reorganized
19615         * libc/sys/win32/include/WINREADME: New.
19616         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
19617         * libc/sys/win32/*.c: Fix for new include scheme.
19618         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
19619         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
19620         * libc/sys/win32/passwd.c (*): Fix.
19621         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
19622         (_stat): Get directory owner and permissions right.
19623         * libc/sys/win32/syscalls.h (uinfo): New.
19624         * libc/sys/win32/version.def: Remove leading underscores.
19625
19626 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19627
19628         * libc/sys/win32/key.c: include "include/wincon.h".
19629
19630 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19631
19632         * libc/sys/win32/{key, stubs}.c: New.
19633         * libc/sys/win32/Makefile: Adjust to cope.
19634         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
19635         (environ_init): Change env names to upper case.
19636         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
19637         * libc/sys/win32/passwd.c (*): Fill in the functions.
19638         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
19639         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
19640         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
19641         (_open): Initialze hmap->execable_p too.
19642         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
19643         (_fstat): Fill in permissions.
19644         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
19645
19646 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
19647
19648         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
19649         if defined.
19650         (cfg-ml-pos.in invocation): Likewise.
19651
19652 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19653
19654         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
19655         s_isnan.o and sf_isnan.o.
19656
19657 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
19658
19659         * All Makefile.in files: added maintainer-clean target as a
19660         synonym for realclean.
19661
19662 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
19663
19664         * libc/include/machine/setjmp.h: Add hppa support.
19665         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
19666         support.
19667         * libc/machine/hppa/Makefile.in: Related changes.
19668
19669 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19670
19671         * configure.in (machine_dir): Don't set for v810-*-*.
19672
19673 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19674
19675         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
19676         conventions correctly.
19677
19678 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19679
19680         * libc/stdio/puts.c: Update documentation of return value to match
19681         ANSI standard.
19682
19683 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
19684
19685         Fix file descriptor inheritance.
19686         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
19687         (NOT_OPEN_FD): Fix.
19688         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
19689         close-on-exec flag not set.  Initialize child's entire fd table.
19690         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
19691         CHILD_P.
19692         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
19693         if CHILD_P.  Initialize entire hmap entry.
19694         (dup): Only create new handle as inheritable if CHILD_P.
19695         (dup2): Likewise.  Properly initialize hmap entry.
19696
19697         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
19698         _spawn.
19699         (_exit): Use CHILD_P.
19700         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
19701         (_stat): Likewise.
19702
19703 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19704
19705         * libc/sys/win32/crt0.c (passover): fix up the state table.
19706         * libc/posix/popen.c: Added.
19707         * libc/posix/Makefile.in: compile popen.c.
19708
19709 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
19710
19711         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
19712         h8/500 define _DOUBLE_IS_32BITS.
19713
19714 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
19715
19716         Get vfork/exec/spawn/cwait/wait working again.
19717         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
19718         (procinfo): New member vfork_level.
19719         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
19720         (vfork_init_first): Use GetCurrentProcessId to get pid.
19721         Initialize vfork_level.
19722         (vfork_init): Delete __PID__.
19723         (environ_init): New function.  Undo patch of Aug 19, Posix says
19724         environment variables are case sensitive.
19725         (mainCRTStartup): Call it.
19726         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
19727         (my_longjump: Make static.
19728         (_spawn): New argument `h'.  Delete setting of __PID__.
19729         Delete local `idx'.  Look for chars that need quotes, rather than
19730         ones that don't.  Set handle of created process in `h'.
19731         Result is process id if created task.
19732         (allocate_spawn_entry): New function.
19733         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
19734         (_execve): Set __FD_TABLE__ before spawning child.
19735         Scan our fd table when passing fds, not our parent's.
19736         Store handle and pid in procinfo entry.
19737         (vfork0): Ensure strace message always printed.
19738         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
19739         (vfork): Don't clobber result of vfork0.
19740         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
19741         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
19742
19743         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
19744         and `exit_code'.
19745         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
19746         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
19747         adding vfork level to pseudo-pid.
19748         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
19749         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
19750         (_exit): If child, set exit code.
19751         (__vfork_record_death): Only close process handle if valid.
19752         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
19753         didn't exec.
19754         (wait_for_any): Likewise.  Start scan after root entry.
19755
19756 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19757
19758         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
19759         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
19760         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
19761         of actual file length.
19762
19763         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
19764         * libc/include/paths.h: _PATH_BSHELL added.
19765         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
19766         and STDERR_FILENO.
19767
19768 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19769
19770         * libc/include/ar.h: Added.
19771         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19772         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19773         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19774         on filename.
19775         (_fstat): use .namehash for inode number of the fd.
19776
19777 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19778
19779         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19780          Change hinfo to __this_procinfo.
19781         * libc/sys/win32/crt0.c: Remove procinfo_list.
19782
19783 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19784
19785         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19786         win32 environment.
19787
19788 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19789
19790         * libc/sys/win32/include/grp.h: Removed.
19791         * libc/sys/include/grp.h: Added.
19792         * libc/sys/win32/grp.c: Include <grp.h>.
19793
19794 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19795
19796         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19797         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19798         Defined for all but strict ANSI.
19799         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19800         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19801         * libc/signal/signal.c (_signal_r): Changed from using
19802         _MAX_SIGNALS to NSIG.
19803         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19804          __hmap): Deleted.
19805         (__strace, __vfork_next_pid): New.
19806         (__exe_suffix): Default to 1.
19807         (passover, table): Understand quoted arguments.
19808         (vfork_init_first): New.
19809         (vfork_init): Initialize new process structure.
19810         (mainCRTStartup): Pass environ to main.
19811         * exceptions.c (__sig_mask): New
19812         (ehandler3): Ignore signals in mask.
19813         (really_exit): Remove CHILD_P test.
19814         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19815         * resource.c (getrusage): Ditto.
19816         * signal.c (sigprocmask): New.
19817         * spawn.c (*): Rewritten.
19818         * syscalls.c (*): Use new process and file structure.
19819         (find_unused_handle): New.
19820         * syscalls.h (MAX_HANDLES): Deleted.
19821         (hinfo): Removed child_created_p.
19822         (MAX_CHILDREN): Deleted.
19823         (vfork_jmp_info, procinfo): New.
19824         * wait.c (*): Mostly new.
19825         * sys/strace.h (_STRACE_PARANOID): New.
19826         * sys/param.h: New file.
19827
19828 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19829
19830         * libc/include/sys/stat.h: add S_BLKSIZE.
19831         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19832         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19833         types under win32.
19834         (mode_t): add a #else to avoid multiple definitons.
19835
19836         * libc/sys/win32/Makefile.in: add grp.c.
19837         * libc/sys/win32/grp.c: include grp.h correctly.
19838         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19839         of the st structure with real information.
19840         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19841
19842 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19843
19844         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19845         and (maybe) sparc64.
19846         (nlink_t): Provide typedef.
19847
19848 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19849
19850         * libc/sys/win32/grp.c: New file.
19851         * libc/sys/win32/include/grp.h: New file.
19852
19853 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19854
19855         * libc/include/machine/ieeefp.h: Added whitespace to make this
19856         file easier to maintain.
19857         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19858         depending on the value of __LITTLE_ENDIAN__.
19859         On the sh3e, define _DOUBLE_IS_32BITS.
19860
19861 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19862
19863         * libc/sys/vr4300/syscalls.c: Added missing support
19864         routines. _raise() and getpid().
19865
19866 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19867
19868         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19869
19870 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19871
19872         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19873         and VR4300 processor.
19874         * libc/sys/vr4300: Add directory.
19875         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19876         monitor run-time support.
19877
19878 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19879
19880         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19881         * libc/stdlib/stdlib.tex: Don't include atol.def.
19882
19883 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19884
19885         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19886
19887 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19888
19889         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19890
19891 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19892
19893         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19894         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19895         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19896         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19897         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19898
19899 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19900
19901         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19902
19903 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19904
19905         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19906         * libc/stdlib/atoff.c: New file.
19907         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19908         * libc/stdlib/atoi.c (atol): Removed.
19909         * libc/stdlib/atol.c: Removed duplicate documentation.
19910
19911         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19912         #ifndef _STRICT_ANSI conditional.
19913         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19914         * libc/ctype/_tolower.c: New file.
19915         * libc/ctype/_toupper.c: New file.
19916         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19917         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19918         * libc/ctype/toascii.c (_toascii): Removed.
19919
19920 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19921
19922         * libc/sys/sparc64/sys/types.h: Deleted.
19923
19924 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19925
19926         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19927         and recognize Windows_95 systems.
19928
19929 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19930
19931         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19932         and passed fds should be opened in text mode.
19933
19934 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19935
19936         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19937         in __hmap, set to binary mode by default.
19938
19939 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19940
19941         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19942         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19943         vector 34.
19944
19945 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19946
19947         * Makefile.in (install): Install all libraries found in the
19948         top level.  If there's a sys/<type>/include directory,
19949         install those headers into include.
19950
19951         * libc/sys/win32/kernel.def351: Delete
19952         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19953         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19954         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19955         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19956         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19957         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19958         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19959         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19960
19961         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19962         * libc/sys/win32/crt0.c: Force all env names to upper case.
19963         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19964         * libc/sys/win32/*.c: Headers have moved.
19965         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19966         __vfork_child_idx is now __vfork_child_ptr.
19967
19968         * posix/execvp (execvp): Don't crash if no PATH envname.
19969
19970 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19971
19972         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19973         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19974         through the _freelist instead of through the _reclaim list.
19975         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19976         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19977         sources.
19978
19979 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19980
19981         * libc/machine/h8500/setjmp.S: New file.
19982         * libc/include/machine/setjmp.h: Updated for H8/500.
19983
19984 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19985
19986         * libc/sys/win32/syscalls.c (_open): More stracing.
19987         (_stat): Open the file in O_BINARY.
19988
19989 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19990
19991         * libc/machine/h8300/setjmp.S: New file.
19992         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19993
19994 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19995
19996         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19997         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19998         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19999         __exe_suffix.  Free fd_tab after setting env variable.
20000         (spawnv,_execve): Update.
20001         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
20002         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
20003         (__small_vfprintf): New function.
20004         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
20005         * libc/sys/win32/wait.c (cwait): Validate argument.
20006
20007         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
20008         (process_deletion_queue): Likewise.
20009
20010         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
20011
20012 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
20013
20014         * libc/sys/win32: Copyrights and gratuitous indenting.
20015
20016 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
20017
20018         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
20019         (process_deletion_queue): Likewise.
20020         (__close_all_files): New function.
20021         (_close): Only queue file deletion if really a file.
20022         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
20023         _P_APPEND_EXE.
20024         (_exit): Call __close_all_files.
20025
20026         * libc/stdlib/system.c: #include <errno.h>.
20027         (_system_r): Fix results in -DNO_EXEC case.
20028
20029         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
20030         Reorganize structure.
20031         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
20032         if argument is valid.  Save directory name in DIR.  malloc space
20033         for dirent struct separately.
20034         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
20035
20036         * libc/include/errno.h (ENAMETOOLONG): Define.
20037         * libc/string/strerror.c (strerror): Reword ENFILE.
20038         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
20039
20040 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
20041
20042         * libc/sys/win32/crt0.c (__progname): New global.
20043         (mainCRTStartup): Support strace=bitmask,filename.
20044         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
20045         * libc/sys/win32/syscalls.c (_write): Print parent trace message
20046         if error.
20047         (getcwd): Handle len too small.  Convert '\\' to '/'.
20048         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
20049         Add prototypes for open, creat, fcntl.
20050         (O_APPEND): Change value to conform to Microsoft's value.
20051         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
20052
20053         * libc/stdlib/getopt.c: New file.
20054         * libc/stdlib/Makefile.in: Build it.
20055
20056 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
20057
20058         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
20059         Fix scanning of $PATH.
20060         * libc/posix/exec*.c: Call _execve, not execve.
20061         * libc/posix/execve.c: New file.
20062         * libc/posix/Makefile.in (OFILES): Add execve.o.
20063
20064         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
20065         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
20066         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
20067         * libc/sys/win32/crt0.c: Update _STRACE calls.
20068         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
20069
20070         * libc/sys/win32/smallprint.c (rn): Fix digit list.
20071
20072         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
20073         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
20074         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
20075         Print __seterrno trace message first.
20076         (_execve): Renamed from execve.
20077         (vfork): Update __strace usage.
20078         (__vfork_child_pid): Deleted.
20079         (__vfork_children, __vfork_child_idx): New globals.
20080         (_spawnvp): New function.
20081         (spawnvp, spawnv, _execve): Call _spawnvp.
20082         (init_child): Record child in __vfork_children.
20083         (__vfork_get_entry, __vfork_record_death): New functions.
20084         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
20085         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
20086         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
20087         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
20088         (children): New typedef.
20089         (__vfork_children,__vfork_child_idx): Declare.
20090         (__vfork_get_entry,__vfork_record_death): Declare.
20091         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
20092         (waitpid): Handle pid == -1.
20093         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
20094         * configure.in (i386-win32): Add -DNO_FORK.
20095         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
20096         * libc/reent/execr.c (_fork_r): Likewise.
20097         * libc/stdlib/system.c (do_system): New function.
20098         If WIN32, try to get shell path from $SH_PATH, use vfork.
20099         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
20100         otherwise return 0.
20101
20102 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
20103
20104         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
20105         * libc/sys/win32/fcntl.h: Don't include self.
20106         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
20107         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
20108         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
20109         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
20110         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
20111         Correct prototypes.
20112         * libc/sys/win32/strace.c: New file.
20113         * libc/sys/win32/smallprint.c: New file.
20114         * libc/sys/win32/crt0.c (func): Delete.
20115         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
20116         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
20117         * libc/sys/win32/exceptions.c: Lint.
20118         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
20119         Clean up handle usage.
20120         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
20121         (open.c): Default file type is text.
20122         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
20123         * libc/sys/win32/advapi32.def: New
20124
20125 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
20126
20127         * configure.in (posix_dir, libc_posix_lib): New variables.
20128         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
20129         (i[345]86-*-win32): Define posix_dir.
20130         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
20131         (if unix_dir): Fix typo.
20132         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
20133         scandir,seekdir,telldir}: New files.
20134         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
20135         from libc/unix.
20136         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
20137         (SUBDIRS): Add posix.
20138         (SUBLIBS): Add $(LIBC_POSIX_LIB).
20139
20140         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
20141         (NSIG): Increase to 21.
20142         * libc/include/sys/unistd.h (pid_t): Move from here,
20143         * libc/include/sys/types.h (pid_t): to here.
20144
20145         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
20146         (__ptrace): Delete.
20147         (hinfo): New members close_exec_p, child_created_p.
20148         (struct exception_list): Define.
20149         (__hmap): Redefine as pointer to table.
20150         (__parent_hmap, __child_hmap): New globals.
20151         (__set_errno, __really_exit): Declare.
20152         (__vfork_child_pid): Declare.
20153         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
20154         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
20155         (__parent_hmap, __child_hmap): New globals.
20156         (__hmap): Redefine as pointer to active map.
20157         (__get_console): New function.
20158         (mainCRTStartup): Change leading '=' in environ vars to '!'.
20159         (env __FD_TABLE__): Watch for this and initialize our fd/handle
20160         mapping table from it if defined.
20161         (argv, envp): Dump if __strace >= 4.
20162         (main): Call here.
20163         * libc/sys/win32/exceptions.c (myp): Redefine.
20164         (__syscalls_b): Delete.
20165         (__stack_trace): New function.
20166         (ehandler3): Update to use _STRACE.  Print stack trace.
20167         Call __really_exit instead of exit.
20168         (init_exceptions): Delete args argc,argv.  New arg mine.
20169         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
20170         FindFirstFileA, FindNextFileA, GetComputerNameA,
20171         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
20172         * libc/sys/win32/signal.c (signal): Validate arg.
20173         (alarm, sleep): Define as stubs for now.
20174         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
20175         (__syscalls_b, errno): Delete.
20176         (__vfork_child_pid, __vfork_jmp_buf): New globals.
20177         (__seterrno): Handle more errors.
20178         (__sys_printf): Renamed from _ptrace.
20179         (__really_exit): New function.
20180         (queue_file_deletion, process_deletion_queue): New functions.
20181         (__resume_parent): New function.
20182         (_unlink): Handle trying to delete open file.
20183         (__totime_t): Renamed from totime_t.
20184         (setsid, __read, __write): New functions.
20185         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
20186         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
20187         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
20188         * libc/sys/win32/console.c: Update to new definition of __hmap.
20189         * libc/sys/win32/Makefile.in: Build new files.
20190         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
20191         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
20192         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
20193         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
20194
20195 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
20196
20197         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
20198
20199 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20200
20201         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
20202         have been made to the master dtoa.c sources (from netlib.att.com)
20203         since they were integrated into newlib in early 1992.  Fixes
20204         problems with storage leaks and handling of numbers with very
20205         negative exponents.
20206
20207 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20208
20209         * Makefile.in (all): set rootpre and srcrootpre before calling
20210         sub-makes.
20211
20212 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
20213
20214         * libc/sys/win32/crt0.c: Change __hmap usage.
20215         * libc/sys/win32/exceptions.c: Use _ptrace call.
20216         * libc/sys/win32/syscalls.c: Use _ptrace call.
20217         (read, write): Cope with DOS style CRLF when in TEXT mode.
20218         * libc/sys/win32/syscalls.h: Declare hinfo struct.
20219         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
20220         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
20221         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
20222         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
20223
20224 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20225
20226         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
20227
20228         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
20229         wrappers for hypot() and remainder() for BSD libm compatibility.
20230         These are public domain implementations written by me for the
20231         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
20232         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
20233         (fobj): Added wf_cabs.o and wf_drem.o.
20234
20235 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20236
20237         * libc/sys/h8500hms/misc.c: New file.
20238         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
20239
20240 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20241
20242         * libc/time/localtime.c (localtime): Fix problem with leap year
20243         handling.  Stole algorithm from Arthur David Olson's tz code.
20244
20245 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
20246
20247         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
20248
20249         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
20250         (_exit): Use argument.
20251
20252 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
20253
20254         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
20255
20256 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
20257
20258         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
20259
20260 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20261
20262         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
20263         target_cflags.
20264
20265 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
20266
20267         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
20268         ptrace with case insensitivity
20269         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
20270         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
20271         New files.
20272
20273 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
20274
20275         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20276         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
20277         (all, install, *clean): Use new multilib support.
20278         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
20279
20280 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
20281
20282         * libc/include/sys/signal.h (__WIN32__): New.
20283
20284         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
20285
20286         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
20287         (ulp, b2d): Handle 32 bit doubles.
20288         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
20289         * libc/stdlib/strtod.c (_strtod_r): Ditto.
20290
20291 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
20292
20293         from medp@primag.co.uk:
20294         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
20295         dynamically allocated buffers.
20296
20297 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
20298
20299         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
20300         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
20301
20302 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20303
20304         * configure.in (powerpc): Fix previous fix.
20305
20306 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20307
20308         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
20309         directories for this target.
20310
20311 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
20312
20313         * configure.in (hppa): Add machine_dir definition.
20314         * libc/machine/hppa: New directory with PA specific implementations
20315         of the basic memory/string functions.
20316
20317 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
20318
20319         * configure.in: Update current PowerPC multilib directories.
20320         Split big and little endian configurations.
20321
20322 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
20323
20324         * configure.in: Add --enable-single-float option to configure to
20325         control use of MIPS single-float directories.  Default to yes.
20326
20327         * Makefile.in (all): Don't recurse into multilib directory if it
20328         does not exist.
20329
20330 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20331
20332         * libc/sys/sh/syscalls.c: Fix typo.
20333
20334 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
20335
20336         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
20337         Pass down DLLTOOL.
20338         * libc/include/process.h: Define WAIT_CHILD.
20339         * libc/include/types.h: Get sizes right for win32.
20340         * configure.in (i386-*-pe): Becomes i386-win32.
20341         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
20342         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
20343         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
20344         is defined.
20345
20346 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
20347
20348         * configure.in (i[345]86-*-pe):  New target (NT).
20349         * host/any: DLLTOOL new.
20350         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
20351         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
20352         WIN32 (just enough to cross host the comp-tools).
20353
20354 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
20355
20356         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
20357         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
20358
20359 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
20360
20361         * libc/include/machine/ieeefp.h (arm): Change to always be
20362         __IEEE_BIG_ENDIAN (even on little endian ARM's).
20363
20364 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
20365
20366         * libc/sys/crt0.S: Initialze sp, and call exit after main.
20367         * libc/sys/syscalls.c (abort): New.
20368         * configure.in (arm): Define ABORT_PROVIDED.
20369
20370 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20371
20372         * configure.in (powerpc): Define multidirs.
20373
20374 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
20375
20376         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
20377
20378 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
20379
20380         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
20381
20382 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
20383
20384         * configure.in, libc/include/machine/ieeefp.h: Modified
20385         for arm:
20386         libc/machine/arm/*, libc/sys/arm/*: New
20387
20388 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20389
20390         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
20391           __powerpc__ when determining endianness.
20392
20393 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20394
20395         * configure.in (m68*): Add multidir for the m68332.
20396
20397         * host/any (CC): Fix typo in last change.
20398
20399 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
20400
20401         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
20402         when determining endianness.
20403         * libc/include/machine/ieeefp.h: Ditto.
20404         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
20405         operands.
20406
20407 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
20408
20409         * libc/include/errno.h (ENOTEMPTY): Define.
20410
20411 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20412
20413         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
20414           target_cflags.
20415
20416         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
20417           and umultiply.o.
20418
20419         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
20420           instead of only when open succeeds.  ANSI requires that multiple
20421           calls to tmpnam() result in different files.
20422
20423         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
20424           objects pulled in from /lib/libc.a that must be renamed before
20425           being pulled into newlib.  /lib/libc.a's div.o conflicted with
20426           newlib's file with the same name.
20427
20428         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
20429
20430         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
20431           the build tree will only be used if the executables are present
20432           (instead of just the Makefiles).
20433
20434         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
20435           wcstombs): Define.
20436         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
20437           versions of these functions that I orignally wrote for the
20438           NetBSD C library.
20439         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
20440           versions I wrote for NetBSD.
20441
20442 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
20443
20444         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
20445         * libc/sys/sparclite/crt0.s: ditto.
20446
20447 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
20448
20449         * configure.in: Add soft-float for proelf.
20450
20451 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
20452
20453         * libc/stdlib/mprec.h (Bcopy): Copy the right number
20454         of bytes.
20455
20456 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
20457
20458         * Makefile.in (all): Depend on `force'.
20459         * configure.in (syscall_dir): Renamed from fake_sys_dir.
20460         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
20461         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
20462         * libc/Makefile.in: Likewise.
20463         * libc/include/reent.h: Update syscall references.
20464         (_fcntl_r): Add prototype.
20465         * libc/syscalls/*.c #include <reent.h>.
20466         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
20467
20468 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
20469
20470         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
20471         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
20472         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
20473         (time.h, sys/types.h): Always include (even if MSDOS).
20474         (stat): Fix prototype.
20475
20476 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
20477
20478         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
20479
20480 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
20481
20482         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
20483
20484 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
20485
20486         * libc/include/regdef.h: New file.
20487         * libc/machine/mips/machine/regdef.h: New file.
20488
20489 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
20490
20491         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
20492
20493 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
20494
20495         * libc/sys/sh/crt0.S: Pass main's return to exit.
20496         * libc/sys/sh/trap.S: Put errno in the right place.
20497
20498 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20499
20500         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
20501         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
20502         * libm/math/ef_rem_pio2.c: Likewise.
20503         * libm/math/e_log10.c: Remove unused static one.
20504         * libm/math/ef_log10.c: Likewise.
20505         * libm/math/s_frexp.c: Likewise.
20506         * libm/math/sf_frexp.c: Likewise.
20507
20508 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
20509
20510         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
20511         longjmp.S: Upgraded.
20512         * libc/sys/go32/sys/setjmp.h: Upgraded.
20513         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
20514
20515 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20516
20517         * configure.in: Add many entries to multidirs for mips targets.
20518
20519 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
20520
20521         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
20522           5.2 which fixes bug where jn(-1,x) is three times larger than
20523           the actual answer.
20524         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
20525
20526 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
20527
20528         * libc/sys/w65/sys/syscalls.h: New file
20529         * libc/include/machine/ieeefp.h: W65 support.
20530         * libc/include/sys/config.h: Ditto.
20531         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
20532         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
20533         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
20534
20535 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20536
20537         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
20538
20539 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
20540
20541         * Makefile.in, configure.in: Remove any references to the old
20542         "stub" dir.
20543
20544 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20545
20546         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
20547         uses ... in prototype.
20548
20549
20550 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
20551
20552         * libc/sys/a29khif/sys/libconfig.h: Remove.
20553         * libc/sys/go32/sys/libconfig.h: Remove.
20554         * libc/sys/sun4/sys/libconfig.h: Remove.
20555         * libc/sys/sysvi386/sys/libconfig.h: Remove.
20556         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
20557         * libc/sys/sparc64/sys/libconfig.h: Remove.
20558
20559         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
20560         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
20561         * libc/include/math.h: Change all uses of _FLOAT_RET and
20562         _FLOAT_ARG to float.
20563         * libm/test/math.c: Likewise.
20564         * testsuite/libm.sac/math.c: Likewise.
20565         * testsuite/libm.sac/working/math.c: Likewise.
20566
20567 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20568
20569         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
20570         gcc calls gas with endian option.
20571         * configure.in (sh): Build little endian version too.
20572
20573 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20574
20575         * configure.in: Configure big and little endian versions for MIPS
20576         targets.
20577
20578 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
20579
20580         * libc/include/limits.h: Deleted.
20581         * libc/include/machine/limits.h: Deleted.
20582
20583 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
20584
20585         * ChangeLog: Remove stub directory. This has all been rewritten
20586         and moved to devo/libgloss.
20587
20588 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
20589
20590         * Makefile.in (dvi): Add to info target, use $@ in sub make.
20591         (docs): Merge into info target.
20592         * libm/Makefile.in (dvi): Add $(srcdir).
20593         * libm/math/Makefile.in (chobjs): Remove underscores from file
20594         names.  Texinfo doesn't like them.
20595         (wacos.def, ...): Add explicit targets for all .def files.
20596         * libm/math/math.tex: Remove underscores from @include file names.
20597         * doc/Makefile.in (dvi): Add dummy target.
20598         * testsuite/Makefile.in (dvi): Add dummy target.
20599
20600 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
20601
20602         * Makefile.in (VERSION): Define.  For net newlib releases.
20603
20604 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
20605
20606         * README: New file.
20607
20608 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20609
20610         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
20611
20612 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20613
20614         * libc/stdlib/setenv.c (_findenv): Declare.
20615
20616         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
20617         fcntl to not use _EXFUN, and change string parameters to open and
20618         creat to be ``const char *''.
20619         * libc/sys/sparc64/sys/fcntl.h: Likewise.
20620         * libc/sys/sparc64/creat.c (creat): Make PATH const.
20621         * libc/syscalls/sysopen.c: Include <fcntl.h>.
20622         (open) Make _FILE const.
20623         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
20624         (_creat): Make PATH const.
20625         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
20626         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
20627         * libc/sys/m88kbug/syscalls.c (open): Likewise.
20628         * libc/sys/sh/syscalls.c (_open): Likewise.
20629         * stub/shared/glue.c (open): Make BUF const.
20630         * stub/ex93x/syscalls.c (open): Make FILENAME const.
20631
20632 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
20633
20634         * libc/include/errno.h: Add ENMFILE
20635         * libc/include/sys/config.h: Support Z8000.
20636         * libc/include/sys/signal.h: New signals for go32.
20637         * libc/machine/h8500/psi.S (__addpsir0r0): New function
20638         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
20639         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
20640         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
20641         size is variable, depending upon CHUNK_POWER.
20642         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
20643
20644 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
20645
20646         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
20647
20648 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20649
20650         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
20651
20652 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20653
20654         * configure.in: Change i[34]86 to i[345]86.
20655
20656         * libc/include/math.h: Don't define HUGE_VAL if it is already
20657         defined.
20658
20659 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20660
20661         * testsuite/libm.sac/test_erfc.c: Correct some result values.
20662         * testsuite/libm.sac/test_gammaf.c: Likewise.
20663         * testsuite/libm.sac/test_sin.c: Likewise.
20664         * testsuite/libm.sac/test_tanh.c: Likewise.
20665
20666 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20667
20668         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
20669         already set.  Define typedefs __int32_t and __uint32_t.
20670         * libc/include/math.h: Include <machine/ieeefp.h>.
20671         (union __dmath): Use __uint32_t.
20672         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
20673         instead of int and unsigned int.
20674
20675 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20676
20677         Replace the math library with the SunPRO fdlibm package.
20678         * libm/math: Completely changed all files.
20679         * libm/ieeefp: Remove contents and directory.
20680         * libm/Makefile.in (LIBM_FP_LIB): Remove.
20681         (SUBDIRS): Just set to math/lib.a.
20682         * libm/libm.texinfo: Updated for new library.
20683         * libc/include/math.h: Extensive changes for new math library.
20684         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
20685         from _FLOAT_ARG to float.
20686         (maxpowtwo, maxpowtwof): Don't declare.
20687         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
20688         (libm_fp_lib): Removed.
20689         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
20690         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
20691         argument to ${RUNTEST}.
20692         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
20693         (.c.o): New rule.
20694         (RUNTESTFLAGS): Set CC and CFLAGS.
20695         (TESTS): Remove test_log2 and test_log2f.
20696         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
20697         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
20698         _FLOAT_ARG, for single precision argument type.
20699         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
20700         expected failure.  Close the input pipe.
20701         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
20702         Correct misspelling of inaccurate.
20703         (test_mok): Use ``inaccurate'', not ``wrong''.
20704         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
20705         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
20706         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
20707         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
20708         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
20709         test_yn.c): Correct many result values.  Many are still wrong.
20710
20711         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
20712         just copy the string.
20713         (_gcvt): Always return the buffer.
20714
20715 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20716
20717         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
20718
20719 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
20720
20721         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
20722         structure.
20723         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
20724         (_reclaim_reent): declare new entry point.
20725         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
20726         functions.
20727
20728         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
20729         ever allocated, so that we can later reclaim them all.
20730         (pow5mult): make reentrant.
20731
20732         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
20733         so that when given NULL as a buffer, return a pointer to static
20734         space in the rent structure.  This is not documented behaviour;
20735         it's only to support ecvt and fcvt, which aren't ANSI anyway.
20736         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
20737         therefore become reentrant).
20738
20739         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
20740
20741 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20742
20743         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
20744
20745 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20746
20747         * Makefile.in: Make link to libg.a after libc.a; this is needed
20748           for the testsuites to build executables when everything comes
20749           from the tree.
20750
20751 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
20752
20753         * libc/Makefile.in: Add a VERSION variable so we can keep track.
20754         * libm/Makefile.in: Add a VERSION variable so we can keep track.
20755
20756 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20757
20758         * libc/include/stdio.h: Use __VALIST, not va_list.
20759
20760 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
20761
20762         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
20763         testsuite/libm.sac/execute.exp:
20764           Replace error proc calls with perror calls.
20765
20766 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
20767
20768         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
20769         * libc/include/time.h: #define NULL as 0L.
20770
20771 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20772
20773         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20774         care of it.
20775
20776 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20777
20778         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20779         not __unix__.
20780
20781 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20782
20783         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20784         (z8k-*-*): Use syscalls fake sys dir.
20785         * libc/sys/z8k/glue.c: Rename syscalls.
20786         * libc/sys/go32/Makefile.in: Use new routines.
20787         * libc/machine/Makefile.in: Fix typo in ln stuff.
20788
20789 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20790
20791         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20792         * libc/Makefile.in (crt0.o): Likewise.
20793         * libc/machine/Makefile.in (lib.a): Likewise.
20794         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20795
20796         All Makefile.in files: Added mostlyclean, realclean and distclean
20797         targets.
20798
20799         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20800         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20801         the top level Makefile.
20802
20803 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20804
20805         * libc/sys/sparc64/sys/stat.h: New file.
20806         * libc/sys/sparc64/sys/time.h: New file.
20807         * libc/sys/sparc64/sys/types.h: New file.
20808
20809 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20810
20811         * stub/ex93x/crt0.s (start): Add code to clear bss.
20812
20813 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20814
20815         * libc/include/sys/types.h (time_t): Properly protect inside
20816         #ifndef __time_t_defined.
20817
20818         * libc/stdio/fileno.c: New file.
20819         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20820         (fileno.o): Add dependency.
20821         * libc/include/stdio.h (__sgetc): Rename never to _never.
20822         (fileno macro): Disable, needs to do CHECK_INIT first.
20823
20824 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20825
20826         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20827         goal.
20828
20829         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20830         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20831         runtest.
20832         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20833         runtest.
20834
20835 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20836
20837         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20838         of the various constants.
20839
20840 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20841
20842         * libc/include/math.h: #ifndef __math_68881 around things which
20843         conflict with the (gcc-provided) inline functions in
20844         gcc/ginclude/math-68881.h.
20845
20846 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20847
20848         * libc/include/_syslist.h (_gettimeofday): Define.
20849         (_times): Ditto.
20850         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20851         (struct tms, timeval, timezone): Declare.
20852         (_gettimeofday_r, _times_r): Declare.
20853         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20854         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20855         (time_t): Add multiple definition protection, __time_t_defined.
20856         * libc/include/sys/time.h: Don't #include <time.h>.
20857         Always define struct timezone (remove #ifndef _TIME_H_).
20858         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20859         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20860         * libc/reent/Makefile.in (OFILES): Add timer.o.
20861         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20862         * libc/reent/timer.c: New file.
20863         * libc/time/clock.c: #include <reent.h>.
20864         (clock): Call _times_r instead of times.
20865         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20866         HAVE_GET_TIME_OF_DAY.
20867         Add comment regarding supporting OS routine(s) required (for docs).
20868         #include <reent.h>.
20869         (time): Call _gettimeofday_r instead of gettimeofday.
20870         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20871         * libc/time/ctime.c: Ditto.
20872         * libc/time/strftime.c: Ditto.
20873         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20874         (TEMPLATE_SFILES_R): Define here.  Also define times.
20875         Add times_r.o/times.S dependence.
20876         (time2.c, junk.c): Deleted.
20877         * libc/sys/sparc64/time2.c: Deleted.
20878         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20879
20880         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20881         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20882         * libc/sys/sparc64/junk.c: Deleted.
20883
20884 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20885
20886         * libc/sys/sparc64/Makefile.in: Add times syscall.
20887         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20888         be used with and without it.  Add comment clarifying Medium/Anywhere
20889         model requirements.
20890         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20891         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20892         even if obsolete.
20893
20894 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20895
20896         * configure.in (target_cflags): Move init.
20897         (sparc64-*-*): Define HAVE_BLKSIZE.
20898
20899 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20900
20901         * libc/include/sys/_types.h: New file.
20902         * libc/include/reent.h: #include it.
20903         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20904         MISSING_SYSCALL_NAMES.
20905         Sort syscalls.
20906         * libc/include/_syslist.h: Remove _raise.
20907         * libc/reent/signalr.c: New file.
20908         * libc/reent/Makefile.in: Compile it.
20909         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20910         Add doc for raise and _raise_r.
20911         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20912         (raise): Call _raise_r.
20913         (_raise_r): Call _getpid_r and _kill_r.
20914         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20915         (abort): Loop forever calling raise and _exit.
20916
20917 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20918
20919         * configure.in: Remove extraneous echo.
20920
20921 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20922
20923         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20924         collision with unistd.h, and fix for svr4.
20925
20926 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20927
20928         * libc/stdio/local.h (_llicvt): Declare.
20929         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20930         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20931         (_llicvt): Define.
20932         (_sicvt): Fix function header (`value' is short).
20933         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20934         Add printing of long long's support.
20935         Add printing of 8 byte pointer support.
20936
20937 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20938
20939         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20940         stat, chmod): New hooks.
20941         (sbrk): Abort if stack and heap collide.
20942         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20943         shortcut when given small args.
20944         * libc/machine/sh/setjmp.s: Rewritten.
20945         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20946         of cmp/str instruction.
20947
20948 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20949
20950         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20951         and machine_dir powerpc.
20952         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20953         Add cases for __powerpc__.
20954         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20955         New files.
20956
20957         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20958
20959 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20960
20961         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20962         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20963
20964 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20965
20966         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20967         (print_e): More comments to describe args, etc.
20968         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20969         trailing blanks.
20970         (_gcvt): Remove locals decpt, sign, end, p, done.
20971         More comments for print_e invocation.
20972         Pass "type" to print_e as is (g/G).
20973
20974 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20975
20976         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20977         stock m68000.
20978
20979 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20980
20981         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20982         works with any sized pointer, including ones bigger than ints and
20983         longs.
20984
20985 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20986
20987         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20988
20989 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20990
20991         * libc/include/stdlib.h (_calloc_r): Add prototype.
20992         * libc/machine/h8500/negsi2.c: New file.
20993         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20994         large unsigned numbers.
20995         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20996         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20997         works when sizeof(size_t) != sizeof(char *).
20998         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20999         get play area
21000         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
21001
21002 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
21003
21004         * libc/include/assert.h (assert): Handle -traditional.
21005
21006 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
21007
21008         * Makefile.in: added ; after every "fi" and "done" that wasn't at
21009         the end of a line (ie. anything before a backslash continuation)
21010         so that bash handles them.
21011
21012 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
21013
21014         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
21015         stat to lstat
21016
21017 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
21018
21019         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
21020         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
21021         libc/machine/sh/udivsi3.s: Use new calling convention.
21022
21023 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
21024
21025         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
21026         chmod, access, chdir, chown by making _path const. Also fix _amode
21027         param of access.
21028
21029 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
21030
21031         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
21032         _khif_tmpnam, because it doesn't comply with ANSI but may be
21033         useful anyway. Real tmpnam was already in libc/stdio, and was
21034         colliding with this one (pr 2176.)
21035         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
21036         the wrong idea anyhow.
21037
21038 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
21039
21040         * configure.in: Remove h8300h, we have multilib now.
21041
21042 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
21043
21044         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
21045         functions, to get preference over the ones in libiberty (since we
21046         provide correct declarations in <string.h>.
21047         * libc/string/Makefile.in: add support for strncasecmp,
21048         strcasecmp.
21049
21050 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
21051
21052         * Change netware config not to look for cpu explicitly.
21053
21054 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
21055
21056         * libc/sys/sparc64/{creat.c,junk.c}: New files.
21057         * libc/sys/sparc64/Makefile.in: Add dependencies.
21058
21059 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
21060
21061         * configure.in: Clean up v9 a bit, new "os" aoutv8.
21062
21063 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
21064
21065         * libc/include/sys/reent.h: make structure smaller by allocating
21066         some stuff when needed.
21067         * libc/signal/signal.c: allocate as needed
21068         * libc/stdio/findfp.c,stdio/local.h: ditto
21069         * libc/stdlib/mprec.c: ditto
21070
21071         * libc/time/localtime.c: don't return a dangling stack ptr.
21072
21073 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
21074
21075         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
21076
21077 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21078
21079         * libc/include/stdio.h (__sputc): comment out static inline which
21080           confuses coff toolchains.
21081
21082 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
21083
21084         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
21085         _write.s, getpid.c, kill.c, read.s}:
21086         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
21087         through the syscalls directory.
21088
21089 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21090
21091         * configure.in: fixed double quote gotcha.
21092
21093 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
21094
21095         * stub/ex931: stub library for sparclite board.
21096         * stub/idp: Renamed from mc68ec. Added contructor table
21097         stuff to linker script.
21098         * stub/mvme135: Renamed from m68kmvme. Added contructor table
21099         stuff to linker script.
21100
21101 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21102
21103         * configure.in: Configure testsuites only if they exist.
21104
21105 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21106
21107         * configure.in: Don't set machine_dir for i386 until there is
21108         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
21109         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
21110         CLOCK_PROVIDED and MALLOC_PROVIDED.
21111
21112         * libc/sys/netware: New directory.  Contains simplistic and
21113         probably incorrect stubs for NetWare.  Should be enough to load
21114         the library.
21115         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
21116         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
21117         stub files.
21118
21119         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
21120         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
21121         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
21122         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
21123
21124 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
21125
21126         * testsuite/Makefile.in: add "docs" dummy target for consistency
21127         with rest of newlib; turn "info" and "install-info" into dummy
21128         targets, since they wouldn't have worked.  (Depended on
21129         nonexistent "doc" subdir.)
21130
21131 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
21132
21133         * configure.in: handle mips* instead of mips
21134
21135 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21136
21137         * libc/include/sys/dirent.h: New file.  If it is not overridden by
21138         a version of libc/sys/*/sys/dirent.h, it includes the next
21139         <dirent.h> file in case there is one lurking somewhere.
21140
21141 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21142
21143         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
21144         compliance, namely: Accept a minus sign.  Consider a single 0 with
21145         a radix of 0 as being a conversion.  Determine overflow correctly.
21146         If an overflow occurs, set *ptr to the end of the number, not the
21147         middle.
21148         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
21149
21150 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
21151
21152         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
21153
21154 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
21155
21156         * Makefile.in (INSTALL): Use $srcrootpre.
21157         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
21158         can't handle it.
21159         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
21160         it.
21161         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
21162         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
21163         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
21164         * libm/math/Makefile.in (matherr.o): Ditto.
21165
21166 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21167
21168         * configure.in: Build multidirs for z8k.
21169         * libc/include/stdlib.h (_strtoul_r): add prototype.
21170         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
21171         * libc/include/machine/setjmp.h: Add for z8k.
21172         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
21173         * libc/sys/z8ksim/glue.c: tidy up.
21174
21175 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
21176
21177         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
21178         New files.  Requires execve system call.
21179         * libc/unix/Makefile.in: Use them.
21180         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
21181         Deleted, moved to libc/unix.
21182         * libc/sys/sparc64/Makefile.in: Remove them.
21183
21184 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21185
21186         * libc/sys/sparc64/{template.S template_r.S}: New files.
21187         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
21188         from templates.
21189         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
21190         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
21191         umask.S unlink.S wait4.S write.S}: Removed, now built from
21192         templates.
21193
21194 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
21195
21196         * libc/time/time.c: #include <_ansi.h>.
21197
21198 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
21199
21200         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
21201
21202 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21203
21204         * configure.in: match m8* rather than m88k so that m88110 is
21205           recognized as well.
21206
21207 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21208
21209         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
21210         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
21211         misc.c: New file.
21212
21213         * configure.in: Add multilib support to h8300.
21214
21215 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
21216
21217         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
21218         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
21219         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
21220
21221 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21222
21223         * configure.in: Corrected multidirs for sparc target.
21224
21225 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
21226
21227         Support for building newlib multiple times with different
21228         compilation flags.
21229         * configure.in: Only configure doc at top level.  Set multidirs
21230         when appropriate for target, unless not at top level.  If
21231         multidirs is set, independently configure each subdirectory.
21232         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
21233         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
21234         automagically set by configure.in.
21235         (all): If MULTIDIRS is set, build multiple copies of libraries.
21236         (install): If MULTIDIRS is set, install multiple copies of
21237         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
21238         MULTISUBDIR is set, don't bother to install header files.
21239         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
21240         ${srcrootpre}.
21241         * stub/configure.in: Set MULTISUBDIR appropriately.
21242         * stub/Makefile.in (install): Install in
21243         $(tooldir)/lib/$(MULTISUBDIR).
21244         * All Makefile.in files: Define SRCTOP as well as TOP.
21245
21246 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
21247
21248         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
21249         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
21250
21251 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21252
21253         * libc/sys/h8300hms/exit.c (_exit): New function.
21254
21255 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21256
21257         * configure.in: recognize m88110.
21258
21259 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21260
21261         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
21262           prototype main and call with args.
21263
21264 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
21265
21266         First real try at system traps for m88k-bug.
21267         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
21268           to real trap calls.
21269         * libc/sys/m88kbug/sys/systraps.h: new file.
21270
21271 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21272
21273         Patches to fix info building when target does not use sys
21274         directory.
21275         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
21276         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
21277           libc/sys.tex.
21278         * libc/sys/Makefile.in (doc): do nothing.
21279
21280 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21281
21282         * libc/Makefile.in (CRT0): new macro.
21283           (all): depend on $(CRT0) rather than crt0.o.
21284
21285         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
21286           do not default crt0, instead, set crt0 and crt0_dir based on
21287           sys_dir and stub_dir.
21288
21289         * Makefile.in (CRT0_DIR): new macro.
21290           (all): depend on $(CRT0) rather than crt0.o which may not exist.
21291           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
21292           $(CRT0).
21293           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
21294
21295 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21296
21297         * testsuite/lib/libm.exp:
21298                 added code to support compiling and linking of tests for
21299                 libm.sac (paranoia to be added next) and processing the
21300                 pass or failure of the tests.
21301
21302         * testsuite/config/unix-libm.exp:
21303                 platform specific proc's for dealing with compiler, linker
21304                 and the way we execute and process the test results.
21305
21306         * testsuite/libm.sac/execute.exp:
21307                 generic framework for the sac tests. the config and lib
21308                 expect code for specific platforms tie it all together.
21309
21310         * testsuite/libm.sac/test_is.c:
21311                 changed the output of the test to be consistant with the
21312                 other tests. parsing of pass nad fail messages is now fixed.
21313
21314 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
21315
21316         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
21317         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
21318         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
21319         #ifdef __cplusplus, surround by extern ""C { ... }.
21320         * libc/include/assert.h:  Do *not* protect assert.h against
21321         multiple inclusion!  Also, #undef it before #define, to allow
21322         redefinition.
21323         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
21324         should be only in unistd.h.
21325
21326         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
21327         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
21328         ... }.
21329
21330 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
21331
21332         * libc/machine/sparc/Makefile.in: Must create a library, even
21333         if empty.
21334
21335 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21336
21337         * configure.in: set machine_dir for m88k.  edit crt0 definition
21338           into makefiles.
21339
21340         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
21341
21342         * libc/Makefile.in (all): also build crt0.o.
21343
21344         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
21345           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
21346           to remove CRT0.
21347
21348         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
21349           (all): reworked to build in place.
21350           (clean): remove lib.a
21351           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
21352
21353         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
21354           (_start): key off edata rather than _start_bss.
21355
21356 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
21357
21358         * libc/include/sys/unistd.h, libc/include/reent.h,
21359         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
21360
21361 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21362
21363         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
21364
21365         * Makefile.in (libc.a): break into two rules, one for libc.a and
21366           one for libc/libc.a.  Force subdirs current before rebuilding
21367           library.
21368           (libm.a): break into two rules, one for libm.a and one for
21369           libm/libm.a.  Force subdirs current before rebuilding library.
21370
21371         * libc/Makefile.in (SUBLIBS): fix typo.
21372
21373         * libc/sys/Makefile.in (all): force descent into subdirs, then
21374           rebuild library iff out of of date.
21375
21376 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
21377
21378         Rework so that library is built and then finished rather than
21379         being built on each invocation of make.
21380
21381         * host/any (machine_dir, sys_dir, signal_dir): these are not
21382           shared and have been moved to their associated Makefile.in's.
21383           (AR_FLAGS): switch to qc which is faster.
21384         * configure.in: no longer assign machine_dir for m88k.  set
21385           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
21386           stub_dir set, then add to configdirs.  add comment about silly
21387           configuration.
21388           (configdirs): drop stub.  It will be added only
21389           when needed.
21390           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
21391           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
21392           stub_lib, crt0): new variables for tailoring lower level
21393           makefiles.  Assign accordingly and edit into makefiles.
21394         * libm/Makefile.in: updated copyright.
21395           (TARGETLIB): removed.
21396           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
21397           (SUBDIRS): removed TARGETDEP_DIRS.
21398           (LIBM_FP_LIB, SUBLIBS): new macros.
21399           (all): reworked.
21400           (force): new target to force rebuilds.
21401           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
21402         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
21403           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
21404           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
21405           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
21406           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
21407           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
21408           stub/m68kmvme/Makefile.in: updated copyright.
21409           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
21410           (all): reworked.  made this the default rule.
21411           (clean): also remove lib.a.
21412           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
21413         * stub/Makefile.in: updated copyright.
21414           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
21415           (stub_lib): new macro.
21416           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
21417           RANLIB.
21418           (all): reworked.
21419           (clean, install): assume stub_dir exists.
21420           (Makefile): depend on configure.in.  call $(SHELL) rather than
21421           sh.  drop redundant ./
21422         * stub/configure.in (stublib): new macro, assign it, edit it into
21423           makefiles.
21424         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
21425           updated copyright.
21426           (all): reworked.
21427           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
21428         * libc/Makefile.in (TARGETCRT0): removed.
21429           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
21430           TARGETCRT0.
21431           (SUBDIRS): drop TARGETDEP_DIRS.
21432           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
21433           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
21434           (force): new target to force rebuilds.
21435         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
21436           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
21437           removed.
21438           (clean): assume sys_dir always exists.
21439         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
21440           drop redundant ./
21441         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
21442           libc/locale/Makefile.in, libc/machine/Makefile.in,
21443           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
21444           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
21445           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
21446           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
21447           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
21448           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
21449           libc/signal/Makefile.in, libc/stdio/Makefile.in,
21450           libc/stdlib/Makefile.in, libc/string/Makefile.in,
21451           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
21452           libc/time/Makefile.in, libc/unix/Makefile.in,
21453           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
21454           (TARGETLIB): removed.
21455           (all): reworked.
21456           (clean): also remove lib.a.
21457           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
21458         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
21459           new macros.
21460           (SUBDIRS): moved to follow frag inclusion, change stub to
21461           stub_dir.
21462           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
21463           are now set in the libc Makefile.
21464         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
21465           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
21466           TARGETCRT0.
21467           (force): new target to force rebuilds.
21468         * stub/configure.in: determine and set stub_lib for for Makefile.
21469
21470 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
21471
21472         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
21473         crt0.s renamed to crt0.S.
21474         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
21475
21476         * libc/machine/h8300/Makefile.in: Make `all' the default target.
21477         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
21478         h8300h.
21479         * libc/machine/h8300/defines.h: Add macros to handle pointers for
21480         h8300 (16 bits) and h8300h (32 bits).
21481         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
21482         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
21483
21484 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
21485
21486         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
21487         implementation of setjmp and longjmp for the m88k.
21488         * libc/include/machine/setjmp.h: Added __m88000__ case.
21489
21490 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
21491
21492         * configure.in: Recognize h8300h as variant of h8300.
21493
21494 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21495
21496         * libc/include/sys/unistd.h (read, write): get prototypes right.
21497         (sbrk): New prototype.
21498         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
21499         * libc/stdio/local.h: Include unistd.h.
21500         * libc/machine/h8300/syscalls.c: Names have changed.
21501
21502 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
21503
21504         * configure.in: add sys_dir assignment for m88k-bug.
21505
21506 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21507
21508         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
21509         a.out or elf.
21510         * libc/sys/sparc64: all *.S files: Use new macros.
21511         * libc/sys/sparc64/isatty.c: New file.
21512         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
21513         functions beyond what newlib provides.
21514
21515 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
21516
21517         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
21518         svr4.
21519
21520 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
21521
21522         * libc/include/machine/ieeefp.h: Add support for h8/300h.
21523
21524 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
21525
21526         * configure.in: add m88k.
21527         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
21528         sanity check so no one else need ever chase what I did to find
21529         this.
21530
21531         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
21532
21533 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
21534
21535         * doc/makedoc.c: Include <ctype.h>.
21536
21537 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
21538
21539         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21540         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21541         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
21542
21543         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
21544
21545 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
21546
21547         * libc/include/errno.h (ENOSYS): Added.
21548
21549         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
21550
21551 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
21552
21553         * libc/stdio/fflush.c (fflush): Check for reent struct
21554         initialization.
21555         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
21556
21557 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
21558
21559         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
21560         out of dtoa.c so it doesn't pollute the namespace.
21561         * libc/include/_syslist.h: new file -- mappings from _function to
21562         function, for systems where we can't win (by default, all of them,
21563         until we start updating system calls.)
21564         * libc/syscalls: new directory -- stubs for exporting _function
21565         names as unmodified function names.
21566         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
21567         _syslist.h on all platforms by default, but put hooks in for
21568         fake_sys_dir so we can include it when we've renamed the system
21569         calls.
21570         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
21571         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
21572         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
21573         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
21574         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
21575         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
21576         non ANSI functions to call _function.
21577
21578 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21579
21580         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
21581         when base 16 is specified.  Don't accept non-digits if radix > 10.
21582
21583 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
21584
21585         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
21586
21587 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21588
21589         * libc/include/sys/stat.h: Surround text after #endif with
21590         comments.
21591
21592 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21593
21594         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
21595         _malloc_r, _realloc_r, and free_r call the corresponding
21596         non-reentrant functions.
21597
21598         * libm/math/modf.c (modf): We now take the address of ipart, so
21599         don't make it a register variable.
21600
21601 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
21602
21603         * libm/math/*: Rename all xxx_r fns to _xxx_r.
21604
21605 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
21606
21607         * libc/libc.texinfo and embedded docn throughout: formatting
21608         improvements, minor rephrasing for clarity, and improved
21609         reentrancy docn.
21610
21611 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21612
21613         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
21614
21615         * libc/stdio/cvt.c (_licvt): Print the right value on machines
21616         where sizeof(int) != sizeof(long).
21617
21618 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21619
21620         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
21621         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
21622         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
21623         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
21624         libm/math/matherr.c: changes for better docn formatting (info).
21625
21626         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
21627         libc/reent/reent.tex, libc/signal/signal.tex,
21628         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
21629         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
21630         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
21631         makeinfo node defaulting to get better Info file node structure.
21632         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
21633         Also include a few formerly missing sections (subroutines).
21634
21635         * doc/doc.str: delete fossil expansion for "func"
21636
21637         * default.menu, no-signal.menu: delete.
21638
21639         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
21640         method used to adjust doc for missing "signals" chapter when
21641         signal_dir is empty.
21642
21643 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21644
21645         * configure.in: added testsuite/libm.sac
21646
21647 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
21648
21649         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
21650         code model).
21651
21652 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
21653
21654         * libm/Makefile.in: Use $(MAKE) rather than make, and define
21655         MAKEOVERRIDES to be empty.
21656
21657 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
21658
21659         * configure.in: Don't build mips-*-* with -msoft-float, since that
21660         makes it incompatible with hard floating point.
21661
21662 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21663
21664         * Makefile.in: added recursive 'make check'
21665
21666 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21667
21668         * configure.in: added ./testsuite ./testsuite/libm.paranoia
21669         * ./testsuite/Makefile.in: created
21670         * ./testsuite/libm.paranoia: paranoia tests added
21671
21672 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21673
21674         * configure.in: For mips-*-* set machine_dir to mips.
21675
21676         * libc/machine/mips: New directory.
21677         * libc/machine/mips/Makefile.in: New file.
21678         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
21679         setjmp and longjmp.
21680         * libc/include/machine/setjmp.h: Added __mips__ case.
21681
21682         * libc/machine/lmips: Removed unused and useless directory.
21683
21684 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
21685
21686         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
21687
21688 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
21689
21690         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
21691         start up).
21692
21693 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21694
21695         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
21696         SETJMP_H.
21697
21698 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
21699
21700         * libm/test/convert.c: structure member errno -> errno_val.
21701         Must include <errno.h> to use errno, it's a macro now.
21702         * libm/test/math.c: Ditto.
21703         * libm/test/math2.c: Include errno.h.
21704         * libm/test/string.c: Ditto.
21705         * libm/test/test.h: structure member errno -> errno_val.
21706         Remove extern int errno decl.
21707
21708 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
21709
21710         * libc/stdio/Makefile.in: Added dependencies on local header
21711         files.
21712         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
21713         files.
21714
21715 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21716
21717         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
21718
21719 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21720
21721         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
21722         Initialize _data.
21723
21724         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
21725         * libc/stdio/local.h: Add prototype for _licvt.
21726
21727         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
21728         instead of malloc,reealloc.
21729
21730         * libc/stdlib/local.h: New file.
21731         * libc/stdlib/efgcvt.c: #include local.h.
21732         (gcvt): Fix call to _gcvt.
21733         * libc/stdlib/ecvtbuf.c: #include local.h.
21734
21735         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
21736         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
21737         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
21738
21739         * libc/stdlib/atexit.c: moved global data to struct _reent.
21740         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
21741
21742         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
21743
21744 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
21745
21746         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
21747         here from ../reent.h.
21748
21749 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
21750
21751         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
21752         should be provided in both libc.a and libm.a.
21753         (libc.a): Depend on targ-include and libm.a.  Copy
21754         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
21755         (libm.a): Depend on targ-include.
21756         * configure.in (subdirs): Removed libc/math.
21757
21758 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21759
21760         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
21761
21762 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
21763
21764         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
21765         sys/reent.h instead of reent.h.
21766         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
21767         headers moved to sys/reent.h.
21768         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
21769         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
21770         __need__MAX_SIGNALS defined.
21771         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21772         std{in,out,err} refer to new _std{in,out,err} members.
21773
21774 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21775
21776         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21777         case.
21778
21779 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21780
21781         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21782         rather than whatever macro seterrno() has.
21783
21784 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21785
21786         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21787         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21788
21789         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21790         __STDC__.
21791
21792         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21793         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21794         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21795
21796         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21797         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21798
21799         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21800         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21801         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21802         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21803         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21804         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21805         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21806         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21807         for ANSI.  structure members given leading "_" for ANSI.  Use
21808         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21809
21810         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21811         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21812         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21813         reent_struct renamed to struct _reent for ANSI.
21814         Structure members given leading "_" for ANSI.
21815         _CONST --> const in prototypes.
21816         Use _HAVE_STDC instead of __STDC__.
21817
21818         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21819         _xxx_r.
21820         struct reent_struct renamed to struct _reent for ANSI.
21821         Structure members given leading "_" for ANSI.
21822
21823         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21824         _xxx_r.
21825         struct reent_struct renamed to struct _reent for ANSI.
21826
21827         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21828         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21829         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21830         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21831         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21832
21833         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21834         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21835         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21836         #ifndef _STRICT_ANSI non-ANSI routines.
21837         Reentrant routines renamed from _r_xxx to _xxx_r.
21838         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21839         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21840         Clean up namespace (structure members have leading "_").
21841         struct reent_struct renamed to struct _reent for ANSI compliance.
21842         _CONST --> const in function prototypes.
21843
21844         * libc/include/string.h: Add NULL and size_t.
21845
21846         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21847         unlink, wait, wait4. Reentrant syscall routines close, fork,
21848         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21849         write.
21850         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21851         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21852         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21853         write.S}: Define reentrant versions.
21854         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21855         reentrant syscalls.
21856
21857         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21858
21859         * libc/include/stdlib.h (RAND_MAX): Fix value.
21860
21861 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21862
21863         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21864         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21865         VPATH support targets after all: target.
21866
21867         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21868         exceptionHandler, which is what mvme135-stub.c expects.
21869
21870 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21871
21872         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21873
21874         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21875         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21876         compliant).
21877
21878 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21879
21880         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21881         first.
21882         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21883         _r_write): Ditto.
21884         libc/reent/fstatr.c (_r_fstat): Ditto.
21885         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21886         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21887         libc/reent/statr.c (_r_stat): Ditto.
21888
21889         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21890         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21891         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21892         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21893         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21894         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21895         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21896         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21897         (__swrite): Ditto for _r_lseek, _r_write.
21898         (__sseek): Ditto for _r_lseek.
21899         (__close): Ditto for _r_close.
21900         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21901
21902         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21903         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21904
21905         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21906         to make reent_struct the first argument (and thus consistent with
21907         the rest of newlib).
21908
21909         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21910         reference to __STDC__.
21911
21912 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21913
21914         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21915         global __cleanup.
21916
21917 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21918
21919         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21920         first.
21921         libc/stdio/fclose.c (fclose): Ditto.
21922
21923 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21924
21925         * Run through indent and rename reentrant routines for ANSI.
21926         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21927         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21928         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21929         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21930         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21931         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21932         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21933         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21934         vsprintf.c wbuf.c wsetup.c local.h}
21935
21936         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21937
21938         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21939         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21940         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21941         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21942         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21943         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21944
21945         * Run through indent.
21946         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21947         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21948         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21949         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21950         strxfrm.c}
21951
21952         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21953         localtime.c mktime.c strftime.c time.c}:
21954         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21955
21956         * Reformatting + renaming (for ANSI, GNU style, consistency).
21957         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21958         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21959         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21960
21961 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21962
21963         * libc/include/stdio.h (stdin_r): Fix.
21964
21965 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21966
21967         * Makefile.in: Unexport some variables to keep GNU make from
21968         putting them in the environment and using up needed ARG_MAX space
21969         (a hack is used to let this work with older makes as well).
21970
21971 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21972
21973         * Makefile.in: Use $(MAKE) rather than make.
21974         (MAKEOVERRIDES): Define to be empty.
21975         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21976         (libc.a, libm.a): Depend on targ-include.
21977         * host/any (LD): Don't define.
21978         (INCLUDES): Use targ-include.
21979         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21980         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21981         * libc/Makefile.in: Use $(MAKE) rather than make.
21982         (MAKEOVERRIDES): Define to be empty.
21983         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21984         (all): Rewrote to be slightly smaller.
21985         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21986         Define to be empty.
21987         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21988         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21989
21990 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21991
21992         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21993         with errno/errno.c.
21994
21995 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21996
21997         * Changes for reentrancy.
21998         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21999         Use ptr->_errno, not errno.
22000         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
22001         libc/stdio/remove.c (remove_r): New function.
22002         libc/stdio/rename.c (rename_r): New function.
22003         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22004         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
22005         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
22006         reentrant versions of system calls.
22007         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
22008         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
22009         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
22010         libc/stdio/findfp.c: Include <string.h>.
22011         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
22012         "local.h".
22013         libc/stdio/wbuf.c: Include "fvwrite.h"
22014
22015         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
22016         <string.h>.
22017         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
22018         (NULL): Don't define if already defined.
22019         libc/stdlib/system.c: Call reentrant versions of system calls.
22020         (system_r): New function.
22021
22022         * Changes for reentrancy.
22023         libc/include/_ansi.h (_PARAMS): New macro.
22024         libc/include/errno.h: Define errno as a macro that calls __errno.
22025         (__errno_r): New macro for reentrant code.
22026         libc/include/math.h: Include reent.h.  Declare many reentrant
22027         functions.
22028         (signgam): Now a macro, not a variable.
22029         (struct exception): Added err field.
22030         libc/include/reent.h: Don't declare __sglue.  Added function
22031         declarations.
22032         (struct reent_struct): Moved errno to beginning.  Added _signgam.
22033         libc/include/stdio.h, libc/include/stdlib.h: Added function
22034         declarations.
22035
22036         * More reentrancy hacking.
22037         libc/errno/errno.c (__errno): New function.
22038         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
22039         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
22040         files.
22041
22042         * Added many new reentrant functions to libm/math/*.
22043         libm/math/error.c (__matherror): Added reent_struct pointer
22044         argument. Changed all callers.
22045         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
22046         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
22047         libm/math/tan.h: Removed obsolete unused header files.
22048
22049         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
22050
22051         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
22052
22053 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22054
22055         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
22056         delay slots.
22057
22058 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22059
22060         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
22061
22062 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22063
22064         * libc/reent/reent.tex:  New file.  (text from
22065         newlib/libc/libc.texinfo)
22066         * libc/stdio/tmpnam.c:  fixed doc typo
22067         * libc/stdlib/rand.c:   fixed doc typo
22068
22069 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
22070
22071         * libc/reent/reent.tex:  New file.  (text from
22072         newlib/libc/libc.texinfo)
22073
22074 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22075
22076         support for reentrancy
22077         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
22078         new files
22079         * libc/errno/errno.c, libc/include/ieeefp.h,
22080         libc/include/locale.h, libc/include/reent.h,
22081         libc/include/signal.h, libc/include/stdio.h,
22082         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
22083         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
22084         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
22085         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
22086         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
22087         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
22088         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
22089         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
22090         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
22091         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
22092         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
22093         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
22094         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
22095         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
22096         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
22097         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
22098         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
22099         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
22100         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
22101         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
22102         libc/time/strftime.c: modify to provide reentracy.
22103
22104         new routines:
22105         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
22106         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
22107         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
22108         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
22109         mstats_r, realloc_r, localeconv_r, setlocale_r
22110
22111 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
22112
22113         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
22114         libc/include/sys/config.h, libc/include/sys/signal.h,
22115         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
22116         provided macros (such as m68000), use the ansi version
22117         (__m68000__) so that the library can be used with code compiled
22118         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
22119         and sparc.
22120
22121 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
22122
22123         * configure.in (sparc*): Don't set -fsoft-float for sparc
22124         configurations.  Do set -fsoft-float for sparclite configurations.
22125
22126 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22127
22128         * default.menu, no-signal.menu: alternate forms of libc main menu
22129           (in newlib rather than newlib/libc due to configuration restrictions)
22130
22131         * configure.in: select one of the two menus above, link to
22132         libc.menu
22133
22134         * libc/libc.texinfo: include menu from separate file
22135
22136 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
22137
22138         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
22139         (info): Split long shell command in half.
22140         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
22141         sub-makes, just CHEW and TARGETDOC.
22142         (targetdep.tex): Removed now special handling of sys and machine
22143         subdirectories, made obsolete some time ago.
22144         * libc/machine/Makefile.in (doc): Don't pass everything to
22145         sub-make, just CHEW and TARGETDOC.
22146         (Makefile): New target.
22147         * libc/sys/Makefile.in (Makefile): New target.
22148
22149 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
22150
22151         * Makefile.in (here and most subdirectories): Only pass down CHEW
22152         and TARGETDOC when making info, not for other targets.
22153
22154         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
22155         $(AR_FLAGS) rather than $(ARUPDATE).
22156
22157 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
22158
22159         * Try to reduce command line length:
22160         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
22161         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
22162         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
22163         (info): Pass CHEW to other subdirs.
22164
22165 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
22166
22167         * configure.in: add signal_dir, like unix_dir, but by default it
22168         is set to "signal" so that a29khif can turn it off (since a29khif
22169         has raise() as part of machine-specific signal.s.)
22170
22171 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
22172
22173         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
22174         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
22175         correctly.
22176         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
22177         libc/stdio/vfprintf: type lint.
22178         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
22179         initialzation code.
22180         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
22181
22182 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
22183
22184         * stub/mvme135/mvme135-asm.S: new file.
22185         stub/mvme135mvme135-stub.c: moved all assembler routines into
22186         mvme135-asm.S.
22187         stub/mvme135/Makefile.in: build mvme135-stub.o.
22188
22189 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
22190
22191         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
22192         sub-Makefiles instead, to try to avoid line length limitations.
22193
22194 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
22195
22196         * libc/include/unistd.h (read, write):  Use void* instead of
22197         char*.
22198
22199 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
22200
22201         * stub/go32/resetpc: sample script to send a reset packet to the
22202         stub
22203
22204         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
22205         DOS environment, which compiles with Turbo C.
22206
22207         * stub/go32/DSER32.LNK: new file, linker commands for serial
22208         remote stub.
22209
22210         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
22211         start up message to identify version; call set_debug_traps.
22212
22213         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
22214         keyboard interaction); call handle_exception() in go_til_stop,
22215         rather than return, so that the remote stub gets control.
22216
22217         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
22218         rename, rather than mv), set flags that work with current Turbo C,
22219         including using the /3 flag; also, add commands to build dser32.
22220
22221         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
22222         default Turbo C installation (\tc rather than \usr)
22223
22224         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
22225         "&..."
22226
22227 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22228
22229         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
22230
22231 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22232
22233         * libc/stdio/cvt.c (licvt): new function to convert ints when
22234         sizeof(int) != sizeof(long).
22235
22236         * libc/include/stdio.h: added prototype for iprintf.
22237         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
22238
22239 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
22240
22241         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
22242         __REGISTER_PREFIX__.
22243
22244 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
22245
22246         * libc/sys/m68kbare: moved into stub directory.
22247
22248 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
22249
22250         * configure.in, Makefile.in: created new directory stub, to hold
22251         sample code for specific targets.
22252
22253 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
22254
22255         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
22256         in the unified libc/include/sys/fcntl.h.
22257
22258 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
22259
22260         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
22261         printed .01, not 0.01.
22262
22263 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
22264
22265         * configure.in: compile with -m68000 for m68* targets.
22266
22267 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
22268
22269         * libm/math/remainder.c (remainder): document the svr4 and sunos
22270         references used to construct the function.
22271
22272 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
22273
22274         * libm/math/remainder.c (rint, remainder): fix old typos.
22275         * libm/math/Makefile.in: actually build remainder.c (functions
22276         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
22277         page.)
22278
22279 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
22280
22281         * libc/string/bcopy.c: BSD version works on overlapping strings,
22282         so ours should too.
22283
22284         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
22285         ("SHELL").
22286
22287 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
22288
22289         * Makefile.in (docs): new target.
22290
22291 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
22292
22293         * libc/include/sys/times.h: define clock_t as required by POSIX.
22294         libc/include/time.h: protect clock_t from multiple definitions.
22295
22296 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22297
22298         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
22299         does not need more than the original three iterations to get
22300         within 1 ulp. (Paranoia tests for rounding to better than that,
22301         but further iterations *don't* help, only more subtle changes
22302         can.)
22303
22304 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
22305
22306         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
22307         were doing nothing useful.
22308
22309 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
22310
22311         * configure.in: define MALLOC_PROVIDED for vxworks targets;
22312         removed sys_dir settings of vxworks68 and vxworks960.
22313         host/any: don't pass -nostdinc to gcc, since newlib no longer
22314         provides all required header files.
22315
22316         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
22317         is not defined; this provides a hook for VxWorks.
22318
22319 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22320
22321         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
22322         buffer if buf is NULL, don't do it here -- it is already being
22323         done by makebuf elsewhere in stdio.
22324
22325 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
22326
22327         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
22328         that C programs can call functions without using initial
22329         underscores.
22330
22331 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
22332
22333         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
22334
22335 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
22336
22337         * configure.in: set TARGET_CFLAGS for certain CPU types to
22338         -msoft-float.
22339
22340 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
22341
22342         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
22343
22344 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
22345
22346         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
22347         m68k*-unknown-coff.
22348
22349 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
22350
22351         * libc/include/stdio.h: define __need___va_list before including
22352         <stdarg.h>, to avoid defining va_arg, et. al.
22353
22354 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
22355
22356         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
22357         (don't cd to the user's home directory).
22358
22359         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
22360         In general this is the wrong thing to do, but I can't get around
22361         GNU make's insistence on passing command line arguments any other
22362         way.
22363
22364 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
22365
22366         * configure.in: always configure the libc/sys directory, since it
22367         now provides a required documentation file.
22368
22369         * Makefile.in: replaced all instances of $(MAKE) with make.  In
22370         general this is the wrong thing to do, but I can't get around GNU
22371         make's insistence on passing command line arguments any other way.
22372
22373 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
22374
22375         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
22376         terminated.
22377
22378         * libc/stdio/local.h: include <stdarg.h> to define va_list.
22379         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
22380
22381         * libc/include/float.h, libc/include/stdarg.h,
22382         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
22383         versions instead.
22384         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
22385         <stdarg.h>, not from <machine/types.h>.  Protect definition of
22386         NULL.
22387         libc/include/time.h: get size_t from stddef.h.  Protect definition
22388         of NULL.
22389         libc/include/machine/limits.h: override gcc <limits.h> by defining
22390         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
22391         get correct INT_MIN and LONG_LONG values.
22392         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
22393         size_t or va_list at all; they're now gotten from stddef.h
22394         instead.
22395         libc/include/machine/varargs.h: removed; use gcc version instead.
22396         libc/include/sys/types.h: explicitly include <machine/types.h>.
22397
22398         * libm/math/sqrt.h: using the fp-bit routines appears to require
22399         more iterations.
22400
22401         * Makefile.in, host/any: let system include files override machine
22402         include files.
22403
22404 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22405
22406         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
22407         override _*_T_ definitions defaulted here.
22408
22409 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
22410
22411         * Makefile.in (install): install the include files in
22412         $(tooldir)/include, not $(exec_prefix)/include.
22413
22414 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
22415
22416         * Makefile.in (install): fixed typo, and changed install to not
22417         force rebuild of libc.a and libm.a.
22418
22419 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
22420
22421         * libc/sys/a29khif/*: Changed all .include's to include
22422         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
22423         that they will be installed for the user.
22424
22425         * Makefile.in (all): create targ-include, a directory holding the
22426         machine and system specific header files during the build.
22427         (install): fixed installation of machine and system specific
22428         header files.
22429
22430         * Makefile.in: fixed comment.
22431         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
22432         we can pass $(INCLUDES) to it.
22433
22434 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
22435
22436         * libc/include/sys/param.h: new generic file, which may be
22437         overridden for specific systems.
22438
22439         * libc/include/sys/signal.h: define all ANSI signal names, and
22440         NSIG (which is not ANSI) for a29k.
22441
22442 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
22443
22444         * Makefile.in: don't pass down arguments the lower level makes
22445         will not need.
22446         * libc/Makefile.in: recurse directly, rather than using subdir_do,
22447         in hopes of avoiding argument length limits.
22448         * libm/Makefile.in: recurse directly, rather using subdir_do, in
22449         hopes of avoiding argument length limits.
22450
22451 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
22452
22453         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
22454         mode_t is defined.
22455
22456 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
22457
22458         * Fixed make info and make install-info for newlib, changing most
22459         Makefile.in and several *.tex files.  Moved doc directory from
22460         libc to top level.
22461
22462         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
22463         Should be rewritten.
22464
22465         * libc/string/strings.tex: renamed node index to node index
22466         function, so that it does not conflict with the top level index
22467         node.
22468
22469         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
22470
22471 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
22472
22473         * Overhauled general configuration for newlib.  Eliminated all
22474         target dependent Makefile fragments.  Create libraries in newlib
22475         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
22476         than CROSS_CC, et. al.  Broke make docs; will fix later.
22477
22478         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
22479         Should be rewritten.
22480
22481 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
22482
22483         * libc/configure.in: cleaned up somewhat; switch on ${target}
22484         rather than ${target_alias}.
22485         * libm/configure.in: cleaned up somewhat; switch on ${target}
22486         rather than ${target_alias}.
22487
22488         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
22489         * libc/include/ctype.h: marked _ctype_ as _CONST.
22490
22491         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
22492         _CONST.
22493
22494         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
22495         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
22496         libc/stdio/gets.c (gets): removed non-ANSI warning message.
22497         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
22498
22499         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
22500         bigtens, tinytens): marked arrays _CONST.
22501         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
22502         rather than a static variable.
22503
22504         * libc/time/asctime.c (asctime), libc/time/localtime.c
22505         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
22506         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
22507         mname_len, mname): Marked static arrays _CONST.
22508
22509         * libm/math/gamma.h: made local variables non-static.
22510
22511         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
22512         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
22513         _CONST.
22514
22515         * libm/math/constants.c: removed file, because the constants it
22516         defined were never referenced.
22517         libm/math/Makefile.in: removed references to constants.c.
22518         libm/math/mathimpl.h: removed declarations of constants.
22519
22520 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
22521
22522         * libc/include/machine/varargs.h: only call __builtin_saveregs if
22523         it is sensibly defined in libgcc2.  Checks preprocessor defines,
22524         which is not a good solution.
22525
22526         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
22527
22528         * libm/frexp.c: handle denormalized numbers as arguments.
22529
22530         * libm/math/Makefile.in: added some dependencies for .c files
22531         which include local .h files.
22532
22533 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
22534
22535         * libc/configure.in: set target_alias for OSE*.  Replace
22536         target_makefile_frag if it is blank.
22537
22538         * libc/Makefile.in: make sure everything is passed to subsidiary
22539         makes; create all directories when installing.
22540
22541         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
22542         CROSS_ARUPDATE instead of AR.
22543
22544         * libm/configure.in: set target_alias for OSE*.  Replace
22545         target_makefile_frag if it is blank.
22546
22547         * libm/Makefile.in: make sure everything is passed to subsidiary
22548         makes; create all directories when installing.
22549
22550 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
22551
22552         * add following change from libc copy.
22553
22554 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22555
22556         * libc/libc.texinfo: make copyright disclaimers appear on back of
22557         title page; make format of same slightly less ugly; avoid using
22558         underbars in section headings (avoids nasty texinfo bug in table
22559         of contents).
22560
22561         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
22562           comments only) avoid using underbars in section headings
22563
22564         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22565           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
22566           changes in comments only): shorten headings ieeefp/infinity.c,
22567           ieeefp/isnan.c: (doc, comments only) more informative headings
22568
22569         * libc/math/bessel.c: (doc, comments only) shorten heading
22570
22571         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
22572         (doc, comments only) shorten headings
22573
22574         * libc/time/localtime.c (doc, comments only): shorten headings
22575
22576         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
22577           isnan
22578           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
22579           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
22580           headings
22581           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
22582           only) more informative headings
22583         * libm/math/bessel.c: (doc, comments only) shorten heading
22584
22585 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
22586
22587         * .../Makefile.in: use CROSS_ARUPDATE consistently.
22588         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
22589         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
22590         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
22591         defined, the one from the .mt file will be correct.
22592         * libc/include/machine, libc/include/sys: created, and populated
22593         with common files from machine/*/machine. ifdefs were used for
22594         most, typically by handling exceptions first and then filling in
22595         defaults. Files with D.J. Delorie copyright #included rather than
22596         copied. Most files in include/sys really were the same in the
22597         original.
22598         * libc/include/...: cleaned up use of _EXFUN.
22599         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
22600         it with double quotes, not angles.
22601
22602 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
22603
22604         * libc/Makefile.in: always create installation directories.
22605
22606 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
22607
22608         * libc/configure.in: handle host properly (using canonical
22609         triples), better error message for the case of target not found
22610
22611 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
22612
22613         * libc/Makefile.in (insincdir): Ensure this directory exists
22614         before attempting installation.
22615
22616 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22617
22618         * libc/stdlib/assert.c: now calls abort like it should
22619         * libc/sys/a29khif: many many patches for 29khif work
22620         * libc/machine/i386: gnulib2 expanded there.
22621
22622 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22623
22624         Added accurate fp conversion routines to stdlib, moved dcvt from
22625         stdio to stdlib and called it ecvtbuf:
22626         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
22627         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
22628         routines
22629         * libc/libc.texinfo: Modifed to include the copyright info from
22630         the mprec files
22631         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
22632         * libc/test/ : many vector which tested for the implementation
22633         defined returns of strange conversion requests have been updated
22634         to relflect the new implementation
22635
22636 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22637
22638         * libc/libc.texinfo: new chapter on variable arg lists
22639         (stdarg.h/varargs.h)
22640         * libc/libc.texinfo: new title
22641         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
22642         (doc only) shorter headings for better formatting.
22643
22644 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22645
22646         * libc/libc.texinfo: three more info menu entries
22647         * libc/locale/locale.tex: new chapter
22648         * libc/locale/locale.c: new doc for setlocale, localeconv
22649         * libc/locale/Makefile.in: use new locale doc
22650         * libc/signal/signal.tex: new chapter
22651         * libc/signal/raise.c, libc/signal/signal.c: new doc
22652         * libc/signal/Makefile.in: use new doc
22653         * libc/time/time.tex: new chapter
22654         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
22655         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
22656         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
22657         * libc/time/Makefile.in: use new doc
22658
22659 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22660
22661         * libm/math/log1p.c: split to use the new function way of float
22662         function definition. math/log1p.h deleted
22663         * libm/math/scalb.c: obsolete and deleted
22664         * libm/math/scalbn.c: created from part log1p.c
22665         * libm/math/Makefile.in: know about log1p and scalbn
22666
22667 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22668
22669         * libc/ctype/isupper.c: revise doc;
22670           libc/ctype/ctype.tex: use doc from isupper.c
22671
22672         * libc/string/bzero.c: new doc
22673
22674 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22675
22676         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
22677         new doc
22678         * libc/stdlib/Makefile.in: extract new doc
22679         * libc/stdlib/stdlib.tex: use new doc
22680
22681         * libc/string/strerror.c: expanded doc.
22682
22683         * libc/stdio/Makefile.in: extract doc from more files
22684         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
22685         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
22686         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
22687         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
22688         libc/stdio/vsprintf.c: new doc
22689         * libc/stdio/stdio.tex: use new doc
22690
22691 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22692
22693         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
22694         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
22695         finitef functions.
22696         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
22697         time ago.
22698
22699         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
22700         * libc/stdio/setbuf.c: added ansi style definition.
22701         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
22702         buffer if none provided.
22703         * libc/stdio/tmpfile.c: lint
22704         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
22705         rather than using static, also make sure file isn't already
22706         present.  Uses P_tmpdir. (tempnam): rewritten to use new
22707         subroutine, and uses P_tmpdir.
22708         * libc/stdio/siprintf.c: created
22709
22710 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22711
22712         Release 1.03 for NEC, major mods. Main differences from release
22713         1.02::
22714
22715         More tests in test/:
22716         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
22717         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
22718         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
22719         get/set mask, get/set sticky and get/set roundtoi.  Tests
22720         that setting the bits changes the way arithmetic is done.
22721         * string.c: added test to make sure memcmp does it with unsigned
22722         chars.
22723         * test.c: cleaned up and removed lint.
22724         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
22725         dvec.c: tests for string to value conversions,  sprintf, scanf,
22726         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
22727         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
22728         rounding in sprintf too.
22729         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
22730         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
22731         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
22732         and function form.
22733         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
22734         powf
22735
22736         In the library:
22737         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
22738         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
22739         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
22740         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
22741         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
22742         than sprintf.
22743         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
22744         * Method of producting float versions of double functions has
22745         changed, functions will be modified gradually. So far:
22746         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
22747         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
22748         altered
22749         * libc/string/memcmp.c: now uses unsigned chars
22750         * libc/string/bcmp.c, libc/string/strcpy.c,
22751         libc/stsring/strxfrm.c: fixed doc
22752         * libc/sys/sysvnecv70.tex: fix example of sbrk code
22753 \f
22754 Local Variables:
22755 version-control: never
22756 End: