OSDN Git Service

* libc/include/ctype.h (__ctype_lookup): Fix precedence.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / ChangeLog
1 2009-11-06  Jon Turney  <jon.turney@dronecode.org.uk>
2
3         * libc/include/ctype.h (__ctype_lookup): Fix precedence.
4
5 2009-10-30  Corinna Vinschen  <corinna@vinschen.de>
6
7         * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
8         low-level seek error condition.  Restore old errno in case of
9         success.  Don't use new position after seek as error condition,
10         rather check for return value of -1 and errno.  Handle EINVAL
11         just like ESPIPE.  Only set fp->_offset if errno is 0.
12
13 2009-10-27  Nick Clifton  <nickc@redhat.com>
14
15         * MAINTAINERS (ARM): Add myself as an ARM maintainer.
16
17 2009-10-26  DJ Delorie  <dj@redhat.com>
18
19         * configure.host: Add support for RX architecture.
20         * libc/include/machine/ieeefp.h: Likewise.
21         * libc/include/machine/setjmp.h: Likewise.
22         * libc/include/machine/configure.in: Likewise.
23         * libc/include/machine/configure: Regenerate.
24         * libc/machine/rx: New directory.
25         * libc/machine/rx/*: New files to support RX architecture.
26
27 2009-10-24  Eric Blake  <ebb9@byu.net>
28
29         * libc/include/ctype.h (__ctype_lookup): New macro.
30         (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
31         (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
32         on 64-bit machines.
33
34 2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>
35
36         * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
37         that to CFLAGS.
38         * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
39         as it sets the same flags as we are using.
40         * aclocal.m4: Regenerated.
41         * configure: Ditto.
42         * Makefile.in: Ditto.
43         * iconvdata/aclocal.m4: Ditto.
44         * iconvdata/configure: Ditto.
45         * iconvdata/Makefile.in: Ditto.
46         * doc/aclocal.m4: Ditto.
47         * doc/configure: Ditto.
48         * doc/Makefile.in: Ditto.
49         * libc/aclocal.m4: Ditto.
50         * libc/configure: Ditto.
51         * libc/Makefile.in: Ditto.
52         * libc/*Makefile.in: Ditto.
53         * libc/*aclocal.m4: Ditto.
54         * libc/*configure: Ditto.
55         * libm/*Makefile.in: Ditto.
56         * libm/*aclocal.m4: Ditto.
57         * libm/*configure: Ditto.
58
59 2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>
60
61         * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
62         if not __STRICT_ANSI__ or stdc version C99 or greater.
63         * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
64         for fseeko and ftello prototypes.
65
66 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
67
68         * libc/include/wchar.h (struct tm0: Declare as incomplete type.
69
70 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
71
72         * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
73         exception for KOI8 charsets.
74
75 2009-10-13  Eric Blake  <ebb9@byu.net>
76
77         * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
78         new to POSIX 2008.
79
80 2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
81
82         * libc/include/sys/signal.h: Include <sys/types.h> always.
83         [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
84         standards.
85
86 2009-10-09  Dave Korn  <dave.korn@artimi.com>
87
88         * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
89         defining struct timeval.
90
91 2009-10-09  Corinna Vinschen  <corinna@vinschen.de>
92
93         * libc/locale/locale.c (DEFAULT_LOCALE): New define.
94         (__default_locale): New global variable set to the default locale.
95         (__get_locale_env): Return __default_locale rather than fixed "C".
96
97 2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>
98
99         * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
100         * libc/stdlib/assert.c (_assert_func): Do not specify
101         __assert_func if HAVE_ASSERT_FUNC flag is set.
102
103 2009-10-08  Eric Blake  <ebb9@byu.net>
104
105         * libc/include/getopt.h (__getopt_r, __getopt_long_r)
106         (__getopt_long_only_r): Protect declarations, to avoid compiler
107         warning.
108
109 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
110
111         * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
112         charset on Cygwin.
113
114 2009-10-03  Corinna Vinschen  <corinna@vinschen.de>
115
116         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
117         value encoding.
118         * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
119         value decoding.
120
121 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
122
123         * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
124         prefix.  Add some words to documentation.
125
126 2009-09-29  Corinna Vinschen  <corinna@vinschen.de>
127
128         * libc/stdlib/sb_charsets.c: Throughout, translate undefined
129         characters to their corresponding Windows Unicode value.
130
131 2009-09-28  Michael Eager <eager@eagercon.com>
132
133         * configure.host: Add microblaze.
134         * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN.
135         * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE.
136         * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL,
137         _UNIX98_THREAD_MUTEX_ATTRIBUTES.
138         * libc/include/sys/types.h: Treat XMK like rtems, define
139         PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE,
140         PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s.
141         * libc/machine/configure.in: Add microblaze.
142         * libc/machine/configure: Add microblaze (not regenerated).
143         * libc/machine/microblaze/configure.in: NEW.
144         * libc/machine/microblaze/configure: Generate.
145         * libc/machine/microblaze/Makefile.am: NEW.
146         * libc/machine/microblaze/Makefile.in: Generate.
147         * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c,
148         mallocr.c, longjmp.S, setjmp.S}: NEW.
149         * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype,
150         mALLOc(): return malloc value.
151
152 2009-09-27  Corinna Vinschen  <corinna@vinschen.de>
153
154         * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
155         (lc_message_charset): Ditto.
156         (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin.
157         * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on
158         Cygwin.
159         * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on
160         Cygwin.
161
162 2009-09-26  Eric Blake  <ebb9@byu.net>
163
164         * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
165         Add declarations.
166
167 2009-09-24  Eric Blake  <ebb9@byu.net>
168
169         * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
170         Add declarations.
171
172 2009-09-23  Corinna Vinschen  <corinna@vinschen.de>
173
174         * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
175         (loadlocale): Call __set_charset_from_codepage with 0 codepage.
176
177 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
178
179         * libc/include/stdlib.h: Add posix_memalign.
180
181 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
182
183         * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
184         Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
185
186 2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>
187
188         * configure.host (m32c): Move setting -DABORT_PROVIDED to second
189         "case $host".
190
191 2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
192
193         * libc/include/sys/unistd.h: Declare getpagesize as returning
194         POSIX-mandated int.
195         * libc/sys/linux/sys/unistd.h: Ditto.
196
197 2009-08-31  Takaki Makino  <t@snowelm.com>
198
199         * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
200         newer gcc versions.
201         * libm/maachine/i386/f_powf.c(_f_powf): Ditto.
202
203 2009-08-25  Andy Koppe  <andy.koppe@gmail.com>
204
205         * libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage
206         numbers.
207         * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8
208         charsets.
209         * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
210
211 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
212
213         * libc/locale/locale.c: Update documentation.
214         (loadlocale): Map "KOI8-R" and "KOI8-U" to CP20866 and CP21866.
215
216 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
217
218         * libc/stdlib/sb_charsets.c (__cp_conv): Add KOI8-R (Russian, CP20866)
219         and KOI8-U (Ukrainian, CP21866) to Windows codepage conversion tables.
220         * libc/ctype/ctype_cp.h (__ctype_cp): Likewise for ctype tables.
221
222 2009-08-24  Andy Koppe  <andy.koppe@gmail.com>
223
224         * libc/ctype/iswspace.c (iswspace): Include "non-breaking
225         space" (U+00A0).
226         * libc/ctype/iswblank.c (iswblank): Likewise.
227
228 2009-08-21  Corinna Vinschen  <corinna@vinschen.de>
229
230         * libc/locale/locale.c (loadlocale): Throughout check charset string
231         case insensitive and store internal charset string uppercased.  Allow
232         "UTF8" additionally to "UTF-8".  Add this change to documentation.
233
234 2009-08-21  Eric Blake  <ebb9@byu.net>
235
236         * libc/include/iconv.h (iconv): Match POSIX prototype.
237         * libc/iconv/lib/iconv.c (iconv): Likewise.
238
239 2009-08-21  Craig Howland <howland@LGSInnovations.com>
240
241         * libm/common/s_remquo.c (remquo):  Fix sign of quotient when |x|==|y|.
242         * libc/stdio/mktemp.c:  Add #include <stdlib.h> for function prototypes.
243
244 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
245
246         * iconvdata/Makefile.am (all): Remove.
247         * libc/sys/a29khif/Makefile.am (all-am): Rename from ...
248         (all): ... this.
249         * libc/sys/arc/Makefile.am: Likewise.
250         * libc/sys/arm/Makefile.am: Likewise.
251         * libc/sys/d10v/Makefile.am: Likewise.
252         * libc/sys/decstation/Makefile.am: Likewise.
253         * libc/sys/h8300hms/Makefile.am: Likewise.
254         * libc/sys/h8500hms/Makefile.am: Likewise.
255         * libc/sys/linux/Makefile.am: Likewise.
256         * libc/sys/linux/machine/i386/Makefile.am: Likewise.
257         * libc/sys/m88kbug/Makefile.am: Likewise.
258         * libc/sys/mmixware/Makefile.am: Likewise.
259         * libc/sys/netware/Makefile.am: Likewise.
260         * libc/sys/rdos/Makefile.am: Likewise.
261         * libc/sys/rtems/Makefile.am: Likewise.
262         * libc/sys/sh/Makefile.am: Likewise.
263         * libc/sys/sparc64/Makefile.am: Likewise.
264         * libc/sys/sun4/Makefile.am: Likewise.
265         * libc/sys/sysmec/Makefile.am: Likewise.
266         * libc/sys/sysnec810/Makefile.am: Likewise.
267         * libc/sys/sysnecv850/Makefile.am: Likewise.
268         * libc/sys/sysvi386/Makefile.am: Likewise.
269         * libc/sys/sysvnecv70/Makefile.am: Likewise.
270         * libc/sys/tic80/Makefile.am: Likewise.
271         * libc/sys/w65/Makefile.am: Likewise.
272         * libc/sys/z8ksim/Makefile.am: Likewise.
273         * iconvdata/Makefile.in: Regenerate.
274         * libc/sys/a29khif/Makefile.in: Likewise.
275         * libc/sys/arc/Makefile.in: Likewise.
276         * libc/sys/arm/Makefile.in: Likewise.
277         * libc/sys/d10v/Makefile.in: Likewise.
278         * libc/sys/decstation/Makefile.in: Likewise.
279         * libc/sys/h8300hms/Makefile.in: Likewise.
280         * libc/sys/h8500hms/Makefile.in: Likewise.
281         * libc/sys/linux/Makefile.in: Likewise.
282         * libc/sys/linux/machine/i386/Makefile.in: Likewise.
283         * libc/sys/m88kbug/Makefile.in: Likewise.
284         * libc/sys/mmixware/Makefile.in: Likewise.
285         * libc/sys/netware/Makefile.in: Likewise.
286         * libc/sys/rdos/Makefile.in: Likewise.
287         * libc/sys/rtems/Makefile.in: Likewise.
288         * libc/sys/sh/Makefile.in: Likewise.
289         * libc/sys/sparc64/Makefile.in: Likewise.
290         * libc/sys/sun4/Makefile.in: Likewise.
291         * libc/sys/sysmec/Makefile.in: Likewise.
292         * libc/sys/sysnec810/Makefile.in: Likewise.
293         * libc/sys/sysnecv850/Makefile.in: Likewise.
294         * libc/sys/sysvi386/Makefile.in: Likewise.
295         * libc/sys/sysvnecv70/Makefile.in: Likewise.
296         * libc/sys/tic80/Makefile.in: Likewise.
297         * libc/sys/w65/Makefile.in: Likewise.
298         * libc/sys/z8ksim/Makefile.in: Likewise.
299
300         * configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
301         from newlib_ldbl_eq_dbl.
302         * configure: Regenerate.
303
304 2009-08-19  Eric Blake  <ebb9@byu.net>
305
306         * libc/Makefile.am (SUBDEFS): Correctly build popen docs.
307         * libc/libc.texinfo (Top): Add posix node to menu.
308
309 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
310
311         * newlib.hin: Add comment regarding file being manually edited.
312         * Makefile.am: Add no-op rule for newlib.hin.
313         * Makefile.in: Regenerated.
314
315 2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>
316
317         * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.
318
319 2009-08-18  Eric Blake  <ebb9@byu.net>
320
321         * libc/posix/popen.c (popen): Fix documented prototype.
322
323         Improve popen compatibility with glibc.
324         * libc/posix/popen.c (popen): The 2006-08-22 change to use
325         FD_CLOEXEC disagrees with other implementations; instead, use
326         pidlist to work even when fcntl is not available.  Meanwhile,
327         support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
328         cygwin-specific code, now that cygwin has its own version.
329         * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
330         * libc/posix/posix.tex: New file.
331
332 2009-08-17  Craig Howland <howland@LGSInnovations.com>
333
334         * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
335         version of strncpy() (fixing two bugs).
336
337 2009-08-13  Corinna Vinschen  <corinna@vinschen.de>
338
339         * libc/stdio/mktemp.c (mkdtemp): Fix typo in function name.
340
341 2009-08-12  Jeff Johnston  <jjohnstn@redhat.com>
342
343         * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
344         HAVE_MKDIR is defined.
345
346 2009-08-12  Hans-Peter Nilsson  <hp@axis.com>
347
348         * libc/include/reent.h: Add prototype and definition of _mkdir_r.
349         * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
350         (CHEWOUT_FILES): Add mkdirr.def.
351         * libc/reent/Makefile.in: Regenerate.
352         * libc/reent/mkdirr.c: New file.
353
354 2009-08-10  Jeff Johnston  <jjohnstn@redhat.com>
355
356         * libc/stdlib/wcstombs.c: Change documentation to specify size_t
357         return type instead of int.
358
359 2009-07-29  Jeff Johnston  <jjohnstn@redhat.com>
360
361         * libc/stdlib/a64l.c: Fix to use 'a' instead of 'A' in calculation
362         when a lower-case character is detected.
363
364 2009-07-29  Corinna Vinschen  <corinna@vinschen.de>
365
366         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Rework UTF-16 surrogate
367         pair handling to be more bullet-proof even with incomplete UTF-8
368         sequences.  Add check for 4 byte sequences resulting in values
369         outside the valid Unicode range.  Add a comment to clarify checking
370         for invalid CESU-8 sequences.
371
372 2009-07-28  Corinna Vinschen  <corinna@vinschen.de>
373
374         * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Fix incrementing n in case
375         of handling incomplete sequences.
376
377 2009-07-22  Eric Blake  <ebb9@byu.net>
378
379         Avoid a fault from locking a closed standard file.
380         * libc/stdio/fflush.c (_fflush_r): Give up early if stream has
381         been previously closed.
382
383 2009-07-09  Craig Howland <howland@LGSInnovations.com>
384
385         * libm/math/ef_scalb.c:  Replace isnanf() (pre-C99 function call) with
386         isnan() (C99 macro).
387         * libm/math/wf_log.c:  Ditto.
388         * libm/math/wf_j0.c:  Ditto.
389         * libm/math/wf_sqrt.c:  Ditto.
390         * libm/math/wf_pow.c:  Ditto.
391         * libm/math/wf_fmod.c:  Ditto.
392         * libm/math/wf_remainder.c:  Ditto.
393         * libm/math/wf_scalb.c:  Ditto.
394         * libm/math/wf_atanh.c:  Ditto.
395         * libm/math/wf_cosh.c:  Ditto.
396         * libm/math/wf_acos.c:  Ditto.
397         * libm/math/wf_acosh.c:  Ditto.
398         * libm/math/wf_jn.c:  Ditto.
399         * libm/math/wf_log10.c:  Ditto.
400         * libm/math/wf_asin.c:  Ditto.
401         * libm/math/wf_j1.c:  Ditto.
402         * libm/common/sf_isnan.c:  Add #include <ieeefp.h>, fix comment.
403         * libm/common/sf_isinf.c:  Add #include <ieeefp.h>, adjust comment to
404         match that from s_isinf.c.
405         * libc/include/machine/ieeefp.h:  Simplify isinf and isnan macros to
406         remove un-necessary extension use (in a similar manner to as was
407         recently done in math.h).
408         * libc/include/math.h:  Remove isnanf and isinff prototypes (are in
409         ieeefp.h).
410         * libm/machine/spu/sf_isinf.c:  Fix comment (remove <math.h>).
411
412 2009-07-06  Joel Sherrill <joel.sherrill@oarcorp.com>
413
414         * libc/include/sys/features.h: Enable UNIX98 mutex attributes
415         for RTEMS.
416
417 2009-07-03  Eric Blake  <ebb9@byu.net>
418
419         Add mkdtemp, mkstemps.
420         * libc/stdio/mktemp.c: Fix documentation.
421         (_gettemp): Add domkdir and length parameters.  Check for
422         insufficient 'X' suffix.  Drop cygwin-specific code.
423         (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients.
424         (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions.
425         * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp)
426         (mkstemps): Declare them.
427
428         Add fpurge.
429         * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file.
430         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge):
431         Build it.
432         * libc/stdio/Makefile.in: Regenerated.
433         * libc/include/stdio.h (fpurge, _fpurge_r): New declarations.
434         * libc/stdio/stdio.tex: Build documentation.
435
436 2009-06-23  Jeff Johnston  <jjohnstn@redhat.com>
437
438         * Makefile.am (MATHOBJS_IN_LIBC): Add s_fpclassify and
439         sf_fpclassify as these are now used for infinity testing.
440         * Makefile.in: Regenerated.
441
442 2009-06-19  Joel Sherrill <joel.sherrill@oarcorp.com>
443
444         * libc/sys/rtems/machine/param.h: Change ALIGNBYTES
445         so it can point to an aligned structure or double.
446
447 2009-06-18  Corinna Vinschen  <corinna@vinschen.de>
448
449         * libc/locale/locale.c (loadlocale): Add handling of "@cjknarrow"
450         modifier on _MB_CAPABLE targets.  Add comment to explain.  Improve
451         documentation.
452
453 2009-06-17  Michael Eager <eager@eagercon.com>
454
455         * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to
456         PTHREAD_MUTEX_NORMAL.
457         * libc/include/sys/features.h: Same.
458         * libc/include/sys/types.h: Same.
459
460 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
461
462         * libc/include/locale.h (struct lconv): Add missing members required
463         by POSIX.1-2008.
464         * libc/locale/locale.c (lconv): Initialize new members to default
465         values in "C" locale.
466
467 2009-06-16  Corinna Vinschen  <corinna@vinschen.de>
468
469         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
470         radix char instead of assuming length 1.
471         * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE.
472         (gethex): Allow multibyte decimal point.
473         Fix compiler warnings due to different signedness of pointer types.
474         * libc/stdlib/strtod.c: Remove use of USE_LOCALE.
475         (_strtod_r): Allow multibyte decimal point.
476         * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char
477         endptr position if the decimal point is a multibyte char.
478
479 2009-06-16  Craig Howland <howland@LGSInnovations.com>
480
481         * libc/ctype/local.h (__locale_charset): Add arguments to
482         prototype
483         * libc/stdlib/local.h (__locale_charset): Ditto.
484
485 2009-06-16  Craig Howland <howland@LGSInnovations.com>
486
487         * libc/include/math.h:  Simplify fpclassify, isinf, isnan, and signbit
488         macros to remove un-necessary extension use.  isinf and isnan also
489         changed to use fpclassify.  isfinite macro modified to run faster by
490         only calling fpclassify once instead of possibly twice.
491
492 2009-06-09  Corinna Vinschen  <corinna@vinschen.de>
493
494         * libc/ctype/tolower.c (tolower): Cast conversion result from
495         mbtowc/wctomb to unsigned char to avoid negative return values.
496         * libc/ctype/toupper.c (toupper): Ditto.
497
498 2009-06-03  IWAMURO Motonori  <deenheart@gmail.com>
499
500         * libc/string/wcwidth.c: Optimize for speed.
501
502 2009-06-03  Corinna Vinschen  <corinna@vinschen.de>
503
504         * libc/locale/locale.c (lc_ctype_cjk_lang): New static int.
505         (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang
506         to 1 if the language is "jp", "ko", or "zh", to 0 otherwise.
507         (__locale_cjk_lang): New function.
508         * libc/string/local.h (__locale_cjk_lang): Declare.
509         * libc/string/wcwidth.c: Fix comments.
510         (__wcwidth): Handle CJK Ambiguous Width characters according
511         to setting returned by __locale_cjk_lang.
512
513 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
514
515         * libc/include/sys/config.h: Remove specification of _REENT_SMALL for
516         thumb2.
517
518 2009-06-02  IWAMURO Motonori  <deenheart@gmail.com>
519
520         * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__.
521         (__jp2uc): Change the scope to static function.
522         * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__.
523         * libc/string/local.h (_jp2uc): Include ../ctype/local.h.
524
525 2009-05-27  Neal H. Walfield  <neal@gnu.org>
526
527         * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
528         _JBTYPE and the size of sigset_t.
529
530 2009-05-15  Craig Howland <howland@LGSInnovations.com>
531
532         * configure.in:  Add configuration test for long double type existing
533         and set flag _HAVE_LONG_DOUBLE if true.  Fix INIT_ARRAY (.init_array)
534         and _LDBL_EQ_DBL tests to not link so that will work with
535         cross-compilers.
536         * configure: Regenerated.
537         * Makefile.in: Ditto.
538         * newlib.hin: Add _HAVE_LONG_DOUBLE flag.
539         * libc/include/math.h:  Change non-builtin defines for HUGE_VAL,
540         HUGE_VALF, and HUGE_VALL to be constant expressions.  Add definitions
541         for the non-builtin case for INFINITY and NAN.  Gate HUGE_VALL and
542         union __ldmath definitions with (new) _HAVE_LONG_DOUBLE.
543         *libm/common/s_infconst.c:  Change definitions to use values from
544         float.h instead of non-so-portable integer forms.  Mark as being
545         deprecated (because now removed from math.h, are not used anywhere
546         in Newlib, itself).
547
548 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
549
550         * libc/string/local.h: New file.
551         * libc/string/wcswidth.c (wcswidth):  Convert japanese wide
552         characters to Unicode here.  Handle surrogate pairs for UTF-16
553         systems.  Call __wcwidth rather than wcwidth.
554         * libc/string/wcwidth.c: New implementation using Markus Kuhn's
555         wcwidth implementation for Unicode.
556         (bisearch): New static function.
557         (__wcwidth): New function.  Take wint_t rather than wchar_t as
558         parameter to allow full Unicode handling on UTF-16 systems.
559         Move old wcwidth implementation here for non-multibyte aware
560         systems.
561         (wcwidth): Convert japanese wide characters to Unicode here.
562         Call __wcwidth rather than using iswprint/iswcntrl.
563
564 2009-05-14  Corinna Vinschen  <corinna@vinschen.de>
565
566         * libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
567         to jp2uc.c.
568         (__jp2uc): Remove declaration.
569         (_jp2uc): Declare.
570         * libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
571         (__jp2uc): Remove Cygwin special case.
572         (_jp2uc): New function.  On Cygwin, just return c.
573         * libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
574         * libc/ctype/iswblank.c (iswblank): Ditto.
575         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
576         * libc/ctype/iswprint.c (iswprint): Ditto.
577         * libc/ctype/iswpunct.c (iswpunt): Ditto.
578         * libc/ctype/iswspace.c (iswspace): Ditto.
579         * libc/ctype/towlower.c (towlower): Ditto.
580         * libc/ctype/towupper.c (towupper): Ditto.
581
582 2009-05-13  Paul Brook  <paul@codesourcery.com>
583
584         * libc/machine/arm/setjmp.S: Don't bother saving IP.  Copy SP to
585         IP before saving.  Likewise when restoring.
586
587 2009-05-13  Paul Brook  <paul@codesourcery.com>
588
589         * libc/machine/arm/setjmp.S: Add ARMv6-M implementation.
590
591 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
592
593         * libc/locale/locale.c (setlocale): Don't build on Cygwin.
594
595 2009-05-11  Craig Howland <howland@LGSInnovations.com>
596
597         * libm/machine/i386/f_llrint.c: Remove llrint() definition.
598         * libm/machine/i386/f_llrintf.c: Remove llrintf() definition.
599
600 2009-05-08  Nick Clifton  <nickc@redhat.com>
601
602         * MAINTAINERS: Add myself as a maintainer for the MN10300 and to
603         the write-after-approval list.
604
605 2009-04-30  Anthony Green  <green@moxielogic.com>
606
607         * MAINTAINERS: Add myself as moxie maintainer and to the
608         write-after-approval list.
609
610 2009-04-30  Eric Blake  <ebb9@byu.net>
611
612         Allow gcc warning for toupper even with extended charsets.
613         * libc/include/ctype.h (toupper, tolower)
614         [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with
615         'char' even when we must call the function for correct behavior.
616         [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
617
618 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
619
620         * libc/stdio/fgetc.c: Make sure sfp lock is acquired before the
621         file lock and released before the file lock to avoid a deadlock
622         scenario.
623         * libc/stdio/fgets.c: Ditto.
624         * libc/stdio/fgetwc.c: Ditto.
625         * libc/stdio/fgetws.c: Ditto.
626         * libc/stdio/fread.c: Ditto.
627         * libc/stdio/fseek.c: Ditto.
628         * libc/stdio/getc.c: Ditto.
629         * libc/stdio/getdelim.c: Ditto.
630         * libc/stdio/gets.c: Ditto.
631
632 2009-04-24  Jeff johnston  <jjohnstn@redhat.com>
633
634         * configure.in: Add configuration test for long double equals dbl
635         and set flag _LDBL_EQ_DBL if true.
636         * configure: Regenerated.
637         * newlib.hin: Add _LDBL_EQ_DBL flag.
638         * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of
639         _HAVE_LDBL_MATH.
640         * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of
641         _HAVE_LDBL_STDLIB.
642         * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting.
643         * libc/stdlib/local.h: Ditto.
644
645 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
646
647         * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__
648         if __UINTPTR_MAX__ defined.
649
650 2009-04-24  Eric Blake  <ebb9@byu.net>
651
652         Be namespace clean in ctype.h.
653         * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
654         (islower, isdigit, isxdigit, isspace, ispunct, isalnum)
655         (isprint, isgraph, iscntrl, isblank, toupper, tolower)
656         (isascii, toascii): Don't use 'c' as macro parameter name.
657
658         Trigger gcc warning if isFoo macros are called with plain char.
659         * libc/include/ctype.h (isalpha, isupper, islower, isdigit)
660         (isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
661         (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
662         warn when user calls macro with a char argument.
663
664 2009-04-23  Mike Burgess  <wizardsguild@earthlink.net>
665
666         * libc/string/strcasecmp.c: Optimized rewrite.
667         * libc/string/strncasecmp.c: Fix description.
668         * libc/string/strlwr.c: Avoid passing signed char to tolower.
669         * libc/string/strupr.c: Avoid passing signed char to tolower.
670
671 2009-04-23  Paul Brook  <paul@codesourcery.com>
672             Kazu Hirata  <kazu@codesourcery.com>
673
674         * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
675         to malloc.  Allocate dynamically only if it is present.
676         * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
677         reference to free.  Call free only if it is present.
678
679 2009-04-22 Anthony Green <green@moxielogic.com>
680
681         * configure.host: Add moxie support.
682         * libc/machine/configure.in: Add moxie support.
683         * libc/machine/configure: Rebuilt.
684         * libc/machine/moxie/aclocal.m4: New file.
685         * libc/machine/moxie/configure: New file.
686         * libc/machine/moxie/configure.in: New file.
687         * libc/machine/moxie/Makefile.am: New file.
688         * libc/machine/moxie/Makefile.in: New file.
689         * libc/machine/moxie/setjmp.S: New file.
690         * libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
691         * libc/include/machine/ieeefp.h: Add moxie support.
692
693 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
694
695         * libc/stdio/local.h (__chclass, __state_table, __action_table):
696         Add extern to the declarations.
697         * libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
698
699 2009-04-21  Corinna Vinschen  <corinna@vinschen.de>
700
701         * libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
702         _CTYPE_DATA_128_256.
703         * libc/ctype/ctype_cp.h: Split off all character class values for
704         character 255 from the rest of the definitions.
705         (__ctype_cp): Use the new definitions.  Make sure that the table
706         always contains 0 for EOF (-1).
707         * libc/ctype/ctype_iso.h: Ditto.
708
709 2009-04-21  Sandra Loosemore  <sandra@codesourcery.com>
710
711         * libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
712         (__sf_fake_stderr): Declare locally with weak attribute.
713
714 2009-04-21  Mark Mitchell  <mark@codesourcery.com>
715
716         * libc/include/_ansi.h: Move C++ defines to top of file.
717         (_NOTHROW): New macro.
718         (_EXFUN_NOTHROW): Likewise.
719         * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
720         (free): Likewise.
721         (malloc): Likewise.
722         (realloc): Likewise.
723         (_malloc_r): Likewise.
724         (_callor_r): Likewise.
725         (_free_r): Likewise.
726         (_realloc_r): Likewise.
727
728 2009-04-20  Jeff johnston  <jjohnstn@redhat.com>
729
730         * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
731         be _HAVE_LDBL_MATH.
732         * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
733         be _HAVE_LDBL_STDLIB.
734
735 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
736
737         * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
738         * libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
739         * libc/stdlib/strtold.c: Include local.h.
740         * libc/stdlib/wcstold.c: Likewise.
741         * libm/common/atanl.c: Likewise.
742         * libm/common/cosl.c: Likewise.
743         * libm/common/sinl.c: Likewise.
744         * libm/common/modfl.c: Likewise.
745         * libm/common/frexpl.c: Likewise.
746         * libm/common/tanhl.c: Likewise.
747         * libm/common/tanl.c: Likewise.
748         * libm/common/expm1l.c: Likewise.
749         * libm/common/log1pl.c: Likewise.
750         * libm/common/ceill.c: Likewise.
751         * libm/common/fabsl.c: Likewise.
752         * libm/common/floorl.c: Likewise.
753         * libm/common/acosl.c: Likewise.
754         * libm/common/asinl.c: Likewise.
755         * libm/common/atan2l.c: Likewise.
756         * libm/common/coshl.c: Likewise.
757         * libm/common/expl.c: Likewise.
758         * libm/common/fmodl.c: Likewise.
759         * libm/common/hypotl.c: Likewise.
760         * libm/common/ldexpl.c: Likewise.
761         * libm/common/log10l.c: Likewise.
762         * libm/common/logl.c: Likewise.
763         * libm/common/powl.c: Likewise.
764         * libm/common/sqrtl.c: Likewise.
765         * libm/common/copysignl.c: Likewise.
766         * libm/common/ilogbl.c: Likewise.
767         * libm/common/nanl.c: Likewise.
768         * libm/common/cbrtl.c: Likewise.
769         * libm/common/asinhl.c: Likewise.
770         * libm/common/nextafterl.c: Likewise.
771         * libm/common/rintl.c: Likewise.
772         * libm/common/scalbnl.c: Likewise.
773         * libm/common/exp2l.c: Likewise.
774         * libm/common/fdiml.c: Likewise.
775         * libm/common/fmal.c: Likewise.
776         * libm/common/fmaxl.c: Likewise.
777         * libm/common/fminl.c: Likewise.
778         * libm/common/lrintl.c: Likewise.
779         * libm/common/lroundl.c: Likewise.
780         * libm/common/nearbyintl.c: Likewise.
781         * libm/common/remquol.c: Likewise.
782         * libm/common/roundl.c: Likewise.
783         * libm/common/scalblnl.c: Likewise.
784         * libm/common/truncl.c: Likewise.
785         * libm/common/acoshl.c: Likewise.
786         * libm/common/atanhl.c: Likewise.
787         * libm/common/erfcl.c: Likewise.
788         * libm/common/erfl.c: Likewise.
789         * libm/common/lgammal.c: Likewise.
790         * libm/common/remainderl.c: Likewise.
791         * libm/common/tgammal.c: Likewise.
792         * libm/common/sinhl.c: Likewise.
793         * libm/common/llroundl.c: Likewise.
794         * libm/common/llrintl.c: Likewise.
795         * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
796
797 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
798
799         * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
800         * libc/include/math.h (llrintl): Declare.
801         * libm/common/llrintl.c: New File.
802         * libm/common/Makefile.am: New File added.
803         * libm/common/Makefile.in: Regenerate.
804
805 2009-04-17  Ken Werner  <ken.werner@de.ibm.com>
806
807         * libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
808         avoid executable test.
809         * libc/configure: Regenerate.
810
811 2009-04-17  Jeff johnston  <jjohnstn@redhat.com>
812
813         * configure.in: Remove _HAVE_ARRAY_ALIASING check.
814         * configure: Regenerated.
815         * Makefile.in: Regenerated.
816         * newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
817         * libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
818         * libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
819         avoid executable test.
820         * libm/configure: Regenerated.
821
822 2009-04-16  Jeff johnston  <jjohnstn@redhat.com>
823
824         * libc/misc/init.c (__libc_fini_array): Process fini_array in
825         reverse order as compliant with the ELF specification.
826
827 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
828
829         * libc/machine/spu/Makefile.am: Add new File.
830         * libc/machine/spu/Makefile.in: Regenerate.
831         * libc/machine/spu/fdopen.c: New file.
832
833 2009-04-16  Hans-Peter Nilsson  <hp@axis.com>
834
835         * libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
836
837 2009-04-16  Ken Werner  <ken.werner@de.ibm.com>
838
839         * libm/libm.texinfo: Add long double function support chapter.
840         * libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
841         * libc/include/stdlib.h: Include <machine/ieeefp.h>.
842         (strtold, wcstold): Declare.
843         * libc/stdlib/strtold.c: New File.
844         * libc/stdlib/wcstold.c: Likewise.
845         * libc/configure.in: Add long double check.
846         * libc/configure: Regenerate.
847         * libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
848         * libc/stdlib/Makefile.in: Regenerate.
849         * libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
850         (frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
851         (asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
852         (sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
853         (nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
854         (nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
855         (llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
856         (atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
857         * libm/common/atanl.c: New File.
858         * libm/common/cosl.c: Likewise.
859         * libm/common/sinl.c: Likewise.
860         * libm/common/modfl.c: Likewise.
861         * libm/common/frexpl.c: Likewise.
862         * libm/common/tanhl.c: Likewise.
863         * libm/common/tanl.c: Likewise.
864         * libm/common/expm1l.c: Likewise.
865         * libm/common/log1pl.c: Likewise.
866         * libm/common/ceill.c: Likewise.
867         * libm/common/fabsl.c: Likewise.
868         * libm/common/floorl.c: Likewise.
869         * libm/common/acosl.c: Likewise.
870         * libm/common/asinl.c: Likewise.
871         * libm/common/atan2l.c: Likewise.
872         * libm/common/coshl.c: Likewise.
873         * libm/common/expl.c: Likewise.
874         * libm/common/fmodl.c: Likewise.
875         * libm/common/hypotl.c: Likewise.
876         * libm/common/ldexpl.c: Likewise.
877         * libm/common/log10l.c: Likewise.
878         * libm/common/logl.c: Likewise.
879         * libm/common/powl.c: Likewise.
880         * libm/common/sqrtl.c: Likewise.
881         * libm/common/copysignl.c: Likewise.
882         * libm/common/ilogbl.c: Likewise.
883         * libm/common/nanl.c: Likewise.
884         * libm/common/cbrtl.c: Likewise.
885         * libm/common/asinhl.c: Likewise.
886         * libm/common/nextafterl.c: Likewise.
887         * libm/common/rintl.c: Likewise.
888         * libm/common/scalbnl.c: Likewise.
889         * libm/common/exp2l.c: Likewise.
890         * libm/common/fdiml.c: Likewise.
891         * libm/common/fmal.c: Likewise.
892         * libm/common/fmaxl.c: Likewise.
893         * libm/common/fminl.c: Likewise.
894         * libm/common/lrintl.c: Likewise.
895         * libm/common/lroundl.c: Likewise.
896         * libm/common/nearbyintl.c: Likewise.
897         * libm/common/remquol.c: Likewise.
898         * libm/common/roundl.c: Likewise.
899         * libm/common/scalblnl.c: Likewise.
900         * libm/common/truncl.c: Likewise.
901         * libm/common/acoshl.c: Likewise.
902         * libm/common/atanhl.c: Likewise.
903         * libm/common/erfcl.c: Likewise.
904         * libm/common/erfl.c: Likewise.
905         * libm/common/lgammal.c: Likewise.
906         * libm/common/remainderl.c: Likewise.
907         * libm/common/tgammal.c: Likewise.
908         * libm/common/sinhl.c: Likewise.
909         * libm/common/llroundl.c: Likewise.
910         * libm/configure.in: Add long double check.
911         * libm/configure: Regenerate.
912         * libm/common/Makefile.am: Add new files.
913         * libm/common/Makefile.in: Regenerate.
914
915 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
916
917         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
918         * libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
919         720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
920         class mappings.
921         * libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
922         6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
923         * libc/ctype/isblank.c (isblank): Special case TAB.
924         * libc/ctype/islower.c (islower): Check explicitely for _L flag only
925         in (_U|_L).
926         * libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
927         * libc/include/ctype.h (islower): Same in macro.
928         (isupper): Ditto.
929         (isblank): Special case TAB.  Redefine macro for GCC only.
930
931 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
932
933         * libc/stdlib/local.h (__mbtowc): Declare extern.
934         (__wctomb): Ditto.
935
936 2009-04-09  Corinna Vinschen  <corinna@vinschen.de>
937
938         * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
939         recognizes 0x8e and 0x8f lead bytes.
940         (_iseucjp2): Rename from _iseucjp.
941         * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
942         triplebyte sequences as well.
943         * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
944         triplebyte sequences as well.
945
946 2009-04-08  Ken Werner  <ken.werner@de.ibm.com>
947
948         * configure.in: Add square brackets for the array aliasing conftest.
949         * configure: Regenerate.
950
951 2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>
952
953         * libc/string/strncasecmp.c: Optimized rewrite.
954
955 2009-04-06  Ken Werner  <ken.werner@de.ibm.com>
956
957         * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
958         * libc/include/machine/time.h (nanosleep): Declare.
959
960 2009-04-06  Corinna Vinschen  <corinna@vinschen.de>
961
962         * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
963
964 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
965
966         * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
967
968 2009-04-04  Corinna Vinschen  <corinna@vinschen.de>
969
970         * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
971         * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
972
973 2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
974
975         * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
976         to avoid a warning with -Wmissing-prototypes.
977
978 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
979
980         * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
981
982 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
983
984         * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
985         (linux_getpid, linux_gettid): Declare.
986
987 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
988
989         * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
990         profiling.
991
992 2009-04-03  Ken Werner  <ken.werner@de.ibm.com>
993
994         * libc/include/math.h: Remove duplicate copysign prototype.
995         Fix __math_68881 define typo.  Guard functions of the rint family.
996
997 2009-04-03  Craig Howland <howland@LGSInnovations.com>
998
999         * libm/common/s_llrint.c: New file, implementing llrint().
1000         * libm/common/sf_llrint.c: New file, implementing llrintf().
1001         * libm/common/Makefile.am:  Add s_llrint.c (src); sf_llrint.c (fsrc).
1002         * libm/common/Makefile.in:  Regenerate.
1003
1004 2009-04-02  Corinna Vinschen  <corinna@vinschen.de>
1005
1006         * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
1007         ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case.
1008         (__ctype_ptr__): Constify in !_MB_CAPABLE case.  Otherwise,
1009         de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too.  Add comment.
1010         (__set_ctype): Set __ctype_ptr__ pointer according to definition
1011         of ALLOW_NEGATIVE_CTYPE_INDEX.
1012         * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
1013
1014 2009-03-31  Corinna Vinschen  <corinna@vinschen.de>
1015
1016         * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
1017         source files.  Add a dependency rule for ctype_o to note
1018         changes in ctype_iso.h and ctype_cp.h.
1019         * libc/ctype/Makefile.in: Regenerate.
1020         * libc/ctype/_tolower.c: Remove file.
1021         * libc/ctype/_toupper.c: Remove file.
1022         * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX
1023         is always defined on Cygwin.
1024         (_ctype_b): Don't make `static const' on Cygwin.
1025         (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set.
1026         (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set.
1027         (__ctype_ptr): Drop definition.
1028         (__ctype_ptr__): De-constify.  Mark as __EXPORT symbol.
1029         (_ctype_): Add Cygwin-specifc asm define.
1030         (__set_ctype): New function to set __ctype_ptr__ according to
1031         current charset.
1032         * libc/ctype/ctype_cp.h: New file containing Windows codepage
1033         specific character class tables.
1034         * libc/ctype/ctype_iso.h: New file containing ISO-8859-x
1035         specific character class tables.
1036         * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte
1037         charset if one of the extended charsets is enabled.
1038         * libc/ctype/toupper.c (toupper): Ditto.
1039         * libc/include/ctype.h (_tolower): Define as macro per POSIX.
1040         (_toupper): Ditto.
1041         (__ctype_ptr__): De-constify.
1042         (toupper): Disable macro on systems supporting extended charsets.
1043         (tolower): Ditto.
1044         * libc/include/sys/config.h (__EXPORT): Define empty if not defined.
1045         * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol.
1046         (__set_ctype): Declare unconditionally.
1047         (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
1048
1049 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1050
1051         * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
1052         of "GB2312".  Fix documentation accordingly.
1053
1054 2009-03-26  Corinna Vinschen  <corinna@vinschen.de>
1055
1056         * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
1057         * libc/ctype/isblank.c: Replace hardcoded test with test for having _B
1058         marker in ctype array.
1059         * libc/include/ctype.h (isblank): Add macro.
1060
1061 2009-03-25  Craig Howland <howland@LGSInnovations.com>
1062
1063         * libc/include/math.h:  (llround, llroundf): Declare.
1064         * libm/common/s_llround.c: New file, implementing llround().
1065         * libm/common/sf_llround.c: New file, implementing llroundf().
1066         * libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
1067         version of function.
1068         * libm/common/sf_lrint.c: Ditto.
1069         * libm/common/sf_logb.c:  Corrected return for subnormal argument
1070         by replacing existing function with a version created from sf_ilogb.c.
1071         * libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
1072         added documentation for logb() and logbf().
1073         * libm/common/s_signbit.c:  Add signbit() documentation.
1074         * libm/common/s_log2.c: Update return values to match what w_log2.c has,
1075         since log2 uses log(); add note about being derived instead of direct.
1076         * libm/common/sf_fma.c: Add casts to attempt to get correct results,
1077         as well as comments pointing out problems with the implementation.
1078         * libm/common/s_fma.c: Add fma() and fmaf() documentation.
1079         * libm/common/sf_remquo.c: Incorrect quotient returns for large values
1080         corrected by discarding existing function and replacing with Sun
1081         verion, with some enhancements.
1082         * libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
1083         documentation.
1084         * libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
1085         * libm/common/s_fmin.c: Add fmin() and fminf() documentation.
1086         * libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
1087         documentation.
1088         * libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
1089         * libm/common/s_trunc.c: Add trunc() and truncf() documentation.
1090         * libm/common/s_rint.c: Add rint() and rintf() documentation.
1091         * libm/common/s_round.c: Add round() and roundf() documentation.
1092         * libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
1093         * libm/common/s_infinity.c: Add infinity() and infinityf()
1094         documentation.
1095         * libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
1096         llroundf() documentation.
1097         * libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
1098         documentation.
1099         * libm/common/isgreater.c: New file for documenting math.h function-like
1100         macros isgreater(), isgreaterequal(), isless(), islessequal(),
1101         islessgreater(), and isunordered().
1102         * libm/common/s_isnan.c: Add documentation for function-like macros
1103         fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
1104         * libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
1105         documentation.
1106         * libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
1107         s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
1108         s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
1109         s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
1110         isgreater.def (chobj);
1111         re-name all existing chew files (chobj) to match source file base
1112         names (put in underscores), delete all special targets for chew files
1113         (leaving all to be generated by rule).
1114         * libm/common/Makefile.in: regenerate.
1115         * libm/math/w_exp2.c: Add "base 2" to documentation description (and
1116         delete TRAD_SYNOPSIS).
1117         * libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
1118         with some history behind the function names.
1119         * libm/math/math.tex: Add includes for newly-added documentation (see
1120         .def additions to common/Makefile.am and math/Makefile.am in this
1121         ChangeLog list), adjusted existing .def file names to match source file
1122         base names (added underscores); add mention of HUGE_VALF; rename
1123         "Version of library" section to "Error Handling" and add some text
1124         about floating-point exception; added section "Standards Compliance And
1125         Portability".
1126         * libm/math/Makefile.am: Add w_exp2.def (chobj);
1127         re-name all existing chew files (chobj) to match source file base
1128         names, delete all special targets for chew files (leaving all to be
1129         generated by rule).
1130         * libm/math/Makefile.in: regenerated
1131         * doc/makedoc.c: Change silent ignoring of commands < 5 characters
1132         to a failure when reading macro file for commands < 4 characters;
1133         add -v (verbose) option for printing some debugging information;
1134         get rid of spurious translation of "@*" to "*" (no source files used @*,
1135         so no existing doc pages were affected); clean up some compiler
1136         warnings.
1137         * doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
1138         which has them); Remove ITEM command (redundant with makedoc built-in
1139         "o", not used in any present source file so nothing is lost, anyway).
1140         * HOWTO: New file to hold information for maintainers regarding how
1141         to do things.  Initial sections on documentation and ELIX levels.
1142
1143 2009-03-25  Richard Earnshaw  <rearnsha@arm.com>
1144
1145         * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
1146         detect the nul-byte in a big-endian string.
1147
1148 2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>
1149
1150         * libc/string/wcsdup.c: Fix documentation error.
1151         * libc/string/Makefile.am: Fix CHEWOUT files to contain
1152         wcsdup.def rather than wcsdup.
1153         * libc/string/Makefile.in: Regenerated.
1154
1155 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1156
1157         * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
1158         pointers if category is LC_CTYPE.
1159
1160 2009-03-25  Corinna Vinschen  <corinna@vinschen.de>
1161
1162         * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
1163         "GB2312".  Fix documentation accordingly.
1164
1165 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1166
1167         * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
1168         "eucKR".  Fix documentation accordingly.
1169
1170 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1171
1172         * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
1173         for "eucJP" charset support.
1174
1175 2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>
1176
1177         * libc/include/sys/errno.h: Move EFTYPE to general usage because
1178         it is used in libc/search.
1179
1180 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
1181
1182         * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
1183         _MB_CAPABLE systems.
1184         * libc/ctype/iswblank.c: Ditto.
1185         * libc/ctype/iswcntrl.c: Ditto.
1186         * libc/ctype/iswprint.c: Ditto.
1187         * libc/ctype/iswpunct.c: Ditto.
1188         * libc/ctype/iswspace.c: Ditto.
1189         * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
1190         Explain why.
1191         * libc/ctype/towlower.c: Ditto.
1192         * libc/ctype/towupper.c: Ditto.
1193         * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
1194         and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
1195         defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
1196         * libc/include/sys/reent.h (struct _reent): Mark _current_category
1197         and _current_locale as unused.
1198         * libc/locale/locale.c: Add new charset support to documentation.
1199         Include ../stdio/local.h from here.
1200         (lc_ctype_charset): Set to "ASCII" by default.
1201         (lc_message_charset): Ditto.
1202         (_setlocale_r): Don't set _current_category and _current_locale.
1203         (loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
1204         systems, set __mbtowc and __wctomb function pointers to function
1205         corresponding with current charset.  Don't allow non-existant
1206         ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
1207         On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
1208         call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
1209         _current_category and _current_locale.
1210         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
1211         * libc/stdlib/Makefile.in: Regenerate.
1212         * libc/stdlib/local.h: Add prototype for __locale_charset.
1213         Add prototypes for __mbtowc and __wctomb pointers.
1214         Add prototypes for charset-specific _wctomb_r and _mbtowc_r
1215         functions.
1216         Declare tables and functions from sb_charsets.c.
1217         * libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
1218         by default.
1219         (_mbtowc_r): Just call __mbtowc from here.
1220         (__ascii_mbtowc): New function.
1221         (__iso_mbtowc): New function.
1222         (__cp_mbtowc): New function.
1223         (__utf8_mbtowc): New function.
1224         (__sjis_mbtowc): New function.  Disable on Cygwin.
1225         (__eucjp_mbtowc): New function.  Disable on Cygwin.
1226         (__jis_mbtowc): New function.  Disable on Cygwin.
1227         * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
1228         conversion tables for all ISO and CP charsets.
1229         (__iso_8859_index): New function.
1230         (__cp_index): New function.
1231         * libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
1232         by default.
1233         (_wctomb_r): Just call __wctomb from here.
1234         (__ascii_wctomb): New function.
1235         (__utf8_wctomb): New function.
1236         (__sjis_wctomb): New function.  Disable on Cygwin.
1237         (__eucjp_wctomb): New function.  Disable on Cygwin.
1238         (__jis_wctomb): New function.  Disable on Cygwin.
1239         (__iso_wctomb): New function.
1240         (__cp_wctomb): New function.
1241
1242 2009-03-23  Richard Earnshaw  <rearnsha@arm.com>
1243
1244         * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
1245
1246 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
1247
1248         * libc/locale/locale.c (loadlocale): Fix typo in language and
1249         territory evaluation.
1250
1251 2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
1252
1253         * libc/include/sys/errno.h: Protect various non-standard errnos
1254         with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__.
1255         * libc/include/sys/config.h[__CYGWIN__]: Define
1256         __LINUX_ERRNO_EXTENSIONS__.
1257
1258 2009-03-19  Corinna Vinschen  <corinna@vinschen.de>
1259
1260         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
1261         invalid character sequence.
1262
1263         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
1264         missing declaration of __locale_charset.
1265         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1266
1267 2009-03-18  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1268
1269         * libm/common/s_log2.c: New file.
1270         * libm/common/sf_log2.c: Ditto.
1271         * libm/common/Makefile.am: Add s_log2.c and sf_log2.c.
1272         * libm/common/Makefile.in: Regenerated.
1273         * libc/include/math.h: Add log2 and log2f function prototypes.
1274
1275 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
1276
1277         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination
1278         string correctly.
1279
1280 2009-03-16  Mark Mitchell  <mark@codesourcery.com>
1281
1282         * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode.
1283
1284 2009-03-16  Richard Earnshaw  <rearnsha@arm.com>
1285
1286         * libc/machine/arm/strlen.c (strlen): Correctly detect
1287         end-of-string.
1288         * libc/machine/arm/strcpy.c (strcpy): Likewise.
1289         * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.
1290
1291 2009-03-15  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1292
1293         * libc/include/sys/errno.h (ESTRPIPE): Define.
1294         * libc/string/strerror.c (strerror): Decode it.
1295
1296 2009-03-15  Corinna Vinschen  <corinna@vinschen.de>
1297
1298         * libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.
1299         * libc/string/Makefile.am: Add wcsdup.c.
1300         * libc/string/Makefile.in: Regenerate.
1301         * libc/string/strings.tex: Add wcsdup documentation reference.
1302         * libc/string/wcsdup.c: New file.
1303
1304 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1305
1306         * libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of
1307         !_REENT_ONLY section.
1308
1309 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
1310
1311         * libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
1312         to stdlib.h.
1313         * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
1314         * libc/stdio/mktemp.c: Explain the security risk when using
1315         mktemp.
1316
1317 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1318
1319         * libc/time/time.tex (wcsftime.def):  Include.
1320         * libc/time/wcsftime.c:  Clean up documentation a little.
1321
1322 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1323
1324         * libc/stdio/swscanf.c:  Some documentation corrections.
1325
1326 2009-03-12  Craig Howland <howland@LGSInnovations.com>
1327
1328         * libc/stdio/swprintf.c (_swprintf_r, swprintf):
1329         correct how terminating L'\0' is added;
1330         change return to match standard for when output does not fit;
1331         some corrections and enhancements to the docs.
1332         * libc/stdio/vswprintf.c (_vswprintf_r):  ditto, except for docs.
1333         * libc/stdio/vfwprintf.c:  some corrections to the docs and some
1334         enhancements to comments.  (No code changes.)
1335         * libc/time/strftime.c:  Correct some problems that made wcsftime()
1336         not work correctly:  work properly with swprintf returns that are
1337         different from snprintf returns, correct test vector lengths for
1338         when sizeof(wchar_t) > 1.
1339         * libc/stdio/sprintf.c:  Some documentation and comment corrections and
1340         enhancements to match those done to swprintf.c.
1341
1342 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1343
1344         * libc/include/wchar.h (wcscasecmp, wcsncasecmp): Declare.
1345         * libc/string/Makefile.am: Add wcscasecmp.c, wcsncasecmp.c
1346         * libc/stdio/Makefile.in: Regenerate.
1347         * libc/string/strings.tex: Add new documentation references.
1348         * libc/string/wcscasecmp.c: New file.
1349         * libc/string/wcsncasecmp.c: New file.
1350
1351 2009-03-11  Corinna Vinschen  <corinna@vinschen.de>
1352
1353         * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf,
1354         wscanf): Declare.
1355         (_fwscanf_r, _swscanf_r, _vfwscanf_r, _vswscanf_r, _vwscanf_r,
1356         _wscanf_r): Declare.
1357         * libc/stdio/Makefile.am: Add new wscanf files.
1358         * libc/stdio/Makefile.in: Regenerate.
1359         * libc/stdio/fwscanf.c: New file.
1360         * libc/stdio/local.h (__svfwscanf_r, __ssvfwscanf_r, __svfiwscanf_r,
1361         __ssvfiwscanf_r): Declare.
1362         * libc/stdio/stdio.tex: Add new documentation references.
1363         * libc/stdio/swscanf.c: New file.
1364         * libc/stdio/vfwscanf.c: New file.
1365         * libc/stdio/vswscanf.c: New file.
1366         * libc/stdio/vwscanf.c: New file.
1367         * libc/stdio/wscanf.c: New file.
1368
1369         * libc/stdio/vfscanf.c (_sungetc_r): Make externaly available.  Only
1370         define if INTEGER_ONLY is defined.  Declare otherwise.
1371         (__ssrefill_r): Ditto.
1372         (_sfread_r): Ditto.
1373
1374         Remove static eofread/eofread1 functions and use __seofread
1375         function instead, throughout.
1376         * libc/stdio/local.h (__seofread): Declare.
1377         * libc/stdio/stdio.c (__seofread): Define.
1378
1379         * libc/stdio/fgetwc.c (__fgetwc): Fix compiler warning.
1380         * libc/stdio/fgetws.c (_fgetws_r): Ditto.
1381         * libc/stdio/fread.c (_fread_r): Ditto.
1382         * libc/stdio/vfprintf.c: Ditto.
1383         * libc/stdio/vswprintf.c: Ditto.
1384
1385 2009-03-09  Brooks Moses  <brooks@codesourcery.com>
1386
1387         * libc/machine/arm/arm_asm.h: Fix typo.
1388
1389 2009-03-09  Craig Howland <howland@LGSInnovations.com>
1390
1391         * libc/time/strftime.c:  Adapt for dual-purpose use so not only
1392         defines strftime(), but can also define wcsftime(); add optional
1393         test package; speed up %Y handling.
1394         * libc/time/wcsftime.c:  New file, defining wcsftime() (albeit
1395         indirectly by including strftime.c) and its documentation.
1396         * libc/time/time.tex:  Enhance tm_isdst explanation, change strftime
1397         description to match modified description in strftime.c
1398         * libc/time/Makefile.am:  Add wcsftime.c and wcsftime.def.  Add a rule
1399         so that wcsftime.o gets rebuilt when strftime changes.
1400         * libc/time/Makefile.in:  Regenerate.
1401         * libc/include/wchar.h (wcsftime): Declare.
1402
1403 2009-03-06  Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>,
1404             Corinna Vinschen  <corinna@vinschen.de>
1405
1406         * libc/reent/reent.c (_reclaim_reent): Make a block from MP-related
1407         statements in _REENT_SMALL case.  Check if _atexit is not NULL before
1408         dereferencing it.
1409         (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
1410
1411 2009-03-06  Corinna Vinschen  <corinna@vinschen.de>
1412
1413         * libc/include/stdio.h (__VALIST): Guard against multiple definition.
1414         * libc/include/wchar.h: Include stdarg.h.
1415         (__VALIST): Define conditionally.
1416         (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf): Declare.
1417         (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r,
1418          _wprintf_r): Declare.
1419         * libc/stdio/Makefile.am: Add new files.
1420         * libc/stdio/Makefile.in: Regenerate.
1421         * libc/stdio/fwprintf.c: New file.
1422         * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare.
1423         (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here
1424         and move to the __ namespace.
1425         (__chclass, __state_table, __action_table): Declare.
1426         * libc/stdio/stdio.tex: Add new documentation references.
1427         * libc/stdio/swprintf.c: New file.
1428         * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right
1429         __sprint_r function according to compilation unit.  Use throughout.
1430         (__ssprint_r): Rename STRING_ONLY variant from __sprint_r.
1431         Make externaly available.  Only define if INTEGER_ONLY is defined.
1432         (__sprint_r): Make externaly available.  Only define if INTEGER_ONLY
1433         is defined.  Handle stream orientation.
1434         (__sbprintf): Copy FILE's _flags2 member as well.
1435         (__chclass, __state_table, __action_table): Prepend __ to name and
1436         make externally available.
1437         * libc/stdio/vfwprintf.c: New file.
1438         * libc/stdio/vswprintf.c: New file.
1439         * libc/stdio/vwprintf.c: New file.
1440         * libc/stdio/wprintf.c: New file.
1441
1442 2009-03-03  Corinna Vinschen  <corinna@vinschen.de>
1443
1444         * libc/locale/locale.c (_setlocale_r): New implementation based on
1445         FreeBSD's setlocale.
1446         (currentlocale): New helper function.
1447         (loadlocale): Ditto.
1448         (__locale_charset): New function.
1449         (__locale_msgcharset): Rename from __locale_charset.
1450         * libc/ctype/local.h (__lc_ctype): Remove declaration.
1451         (__locale_charset): Declare.
1452         * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of
1453         using __lc_ctype directly.  Only compare against the charset alone.
1454         * libc/ctype/iswblank.c (iswblank): Ditto.
1455         * libc/ctype/iswcntrl.c (iswcntrl): Ditto.
1456         * libc/ctype/iswprint.c (iswprint): Ditto.
1457         * libc/ctype/iswpunct.c (iswpunct): Ditto.
1458         * libc/ctype/iswspace.c (iswspace): Ditto.
1459         * libc/ctype/towlower.c (towlower): Ditto.
1460         * libc/ctype/towupper.c (towupper): Ditto.
1461         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto.
1462         * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
1463         * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call
1464         __locale_msgcharset instead of __locale_charset.
1465
1466 2009-03-02  Jeff Johnston  <jjohnstn@redhat.com>
1467
1468         * libc/stdlib/wctomb_r.c (_wctomb_r): When checking single-byte
1469         charset, cast wchar to size_t in case wchar_t is signed.
1470         * libc/stdlib/wctomb.c (wctomb): Add similar single-byte check.
1471
1472 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
1473
1474         * libc/stdlib/wctomb_r.c (_wctomb_r): Return EILSEQ in case of an
1475         invalid wchar.  Return -1 if wchar doesn't fit into singlebyte
1476         value in case of using a singlebyte charset.
1477
1478 2009-02-26  Brooks Moses  <brooks@codesourcery.com>
1479
1480         * libc/machine/arm/strcpy.c: Add missing comma.
1481
1482 2009-02-26  Ralf Corsepius  <ralf.corsepius@rtems.org>
1483
1484         * libc/machine/lm32/configure.in: Let
1485         AC_CONFIG_SRCDIR point to setjmp.S instead of setjmp.s
1486         * libs/machine/lm32/configure: Regenerate.
1487
1488 2009-02-25  Brooks Moses  <brooks@codesourcery.com>
1489
1490         * libc/stdlib/Makefile.am (CHEWOUT_FILES): Add
1491           mbsnrtowcs.def, wcsnrtombs.def.
1492         * libc/stdlib/Makefile.in: Regenerate.
1493         * libc/stdlib/stdlib.tex (@menu): Use correct section
1494           names for mbsrtowcs, wcsrtombs.
1495         * libc/stdlib/wcstod.c: Remove stray character in
1496           documentation.
1497
1498 2009-02-25  Corinna Vinschen  <corinna@vinschen.de>
1499
1500         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6
1501         byte UTF-8 sequences since they are invalid in the Unicode standard.
1502         Handle surrogate pairs in case of wchar_t == UTF-16.
1503         * libc/stdlib/wctomb_r.c (_wctomb_r): Don't convert invalid Unicode
1504         wchar_t values beyond 0x10ffff into UTF-8 chars.  Handle surrogate
1505         pairs in case of wchar_t == UTF-16.
1506
1507 2009-02-24  Kevin Buettner  <kevinb@redhat.com>
1508
1509         * libc/stdio/open_memstream.c (stdint.h): Include.
1510
1511 2009-02-23  Craig Howland  <howland@LGSInnovations.com>
1512
1513         * libc/unix/ttyname.c:  Remove ttyname_r() (to a new file to avoid
1514         coupling ttyname_r() and ttyname() due to the latter's large buffer).
1515         * libc/unix/ttyname_r.c:  New file to hold ttyname_r(), previously in
1516         ttyname.c.
1517         * libc/unix/ttyname.h:  New file (common size definition for the 2
1518         ttyname*c files that are now split).
1519         * libc/unix/Makefile.am (ELIX_2_SOURCES):  Add ttyname_r.c.
1520         * libc/unix/Makefile.in:  Regenerate.
1521
1522 2009-02-19  Corinna Vinschen  <corinna@vinschen.de>
1523
1524         * libc/include/wchar.h (mbsnrtowcs): Declare.
1525         (_mbsnrtowcs_r): Declare.
1526         (wcsnrtombs): Declare.
1527         (_wcsnrtombs_r): Declare.
1528         * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c
1529         and wcsnrtombs.c.
1530         * libc/stdlib/Makefile.in: Regenerate.
1531         * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r
1532         and mbsnrtowcs.  Document mbsnrtowcs and mbsrtowcs.
1533         * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r.
1534         (mbsrtowcs): Ditto.
1535         * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r
1536         and wcsnrtombs.  Document wcsrtombs and wcsnrtombs.
1537         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r.
1538         (wcsrtombs): Ditto.
1539         * libc/stdlib/stdlib.tex: Accommodate new documentation.
1540
1541 2009-02-18  Jeff Johnston  <jjohnstn@redhat.com>
1542
1543         * libc/stdio/open_memstream.c (internal_open_memstream_r): Fix max
1544         buffer size to be in wchar_t units if wide == 1 is passed in.  In
1545         this case, also initialize the first character of the buffer to be
1546         wide char null.
1547         (_open_wmemstream_r): Cast buf to be (char **) to avoid warning.
1548         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Change all occurences of
1549         incrementing the size_t value n to first check that n is not already
1550         size_t -1.  Fix some compiler warnings.
1551         * libc/stdlib/wcstod.c: Add includes for <wctype.h> and <math.h>.
1552
1553 2009-02-18  Corinna Vinschen  <corinna@vinschen.de>
1554
1555         * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation.
1556         (struct memstream): Add wide element.
1557         Change saved to a union to take char and wchar_t values.
1558         (memwriter): Accommodate wide-oriented oeprations.
1559         (memseeker): Ditto.
1560         (memseeker64): Ditto.
1561         (memcloser): Ditto.
1562         (internal_open_memstream_r): New static function.  Take functionality
1563         from former _open_memstream_r and handle additional "wide" parameter.
1564         (_open_memstream_r): Just call internal_open_memstream_r with wide==-1
1565         from here.
1566         (_open_wmemstream_r): New function.
1567         (open_wmemstream): Ditto.
1568         * libc/include/wchar.h (open_wmemstream): Declare.
1569         (_open_wmemstream_r): Declare.
1570
1571 2009-02-16  Corinna Vinschen  <corinna@vinschen.de>
1572
1573         * libc/stdio/fputwc.c: Fix typo in man page info.
1574
1575 2009-02-12  Corinna Vinschen  <corinna@vinschen.de>
1576
1577         * libc/include/wchar.h (_wcstod_r): Declare.
1578         (_wcstof_r): Declare.
1579         (wcstod): Declare.
1580         (wcstof): Declare.
1581         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstod.c.
1582         (CHEWOUT_FILES): Add wcstod.def.
1583         * libc/stdlib/Makefile.in: Regenerate.
1584         * libc/stdlib/stdlib.tex: Add wcstod.
1585         * libc/stdlib/wcstod.c: New file.
1586
1587 2009-02-05  Neal H. Walfield  <neal@gnu.org>
1588
1589         * libc/machine/x86_64/memcpy.S (memcpy): Don't use the red zone.
1590
1591 2009-01-28  Jeff Johnston  <jjohnstn@redhat.com>
1592
1593         * libc/stdio/vfscanf.c (__SVFSCANF_R): Add additional check for
1594         inf and nan processing to not proceed if we have already collected
1595         zeroes.
1596
1597 2009-01-26  DJ Delorie  <dj@redhat.com>
1598
1599         * configure.host (m32c-*-*): Add long long I/O support by default.
1600
1601 2009-01-21  Richard Earnshaw  <rearnsha@arm.com>
1602
1603         * libc/machine/arm/arm_asm.h: New file.
1604         * libc/machine/arm/strlen.c: New file.
1605         * libc/machine/arm/strcpy.c: New file.
1606         * libc/machine/arm/strcmp.c: New file.
1607         * libc/machine/arm/Makefile.am: Add new string routines.
1608
1609 2009-01-19  Neal H. Walfield  <neal@gnu.org>
1610
1611         * libc/include/stdint.h (INT64_C, UINT64_C, INTMAX_C, UINTMAX_C)
1612         [__have_long64 && __have_longlong64]: Use L and UL, not LL and ULL.
1613         * libc/include/inttypes.h (__PRI64, __SCN64, __PRIMAX, __SCNMAX,
1614         __PRIPTR, __SCNPTR) [__have_long64 && __have_longlong64]: Use l,
1615         not ll.
1616
1617 2009-01-12  Nathan Froyd  <froydnj@codesourcery.com>
1618
1619         * libc/machine/powerpc/vfscanf.c (__sccl): Remove declaration.
1620
1621 2009-01-12  Jeff Johnston  <jjohnstn@redhat.com>
1622
1623         * libc/stdio/fwalk.c (__fwalk, __fwalk_reent): Remove locking of
1624         each fp.  Let the function being called lock the fp, if necessary.
1625
1626 2009-01-07  Kazu Hirata  <kazu@codesourcery.com>
1627
1628         * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos.
1629
1630 2009-01-05  Craig Howland <howland@LGSInnovations.com>
1631
1632         * libc/stdio/fwide.c:  Correct typo in TRAD_SYNOPSIS for _fwide_r.
1633
1634 2008-12-19  Jeff Johnston  <jjohnstn@redhat.com>
1635
1636         * NEWS: Update with 1.17.0 info.
1637         * README: Ditto.
1638         * acinclude.m4: Change version number to 1.17.0.
1639         * aclocal.m4: Regenerated.
1640         * configure: Ditto.
1641         * doc/aclocal.m4: Ditto.
1642         * doc/configure: Ditto.
1643         * libc/*/aclocal.m4: Ditto.
1644         * libc/*/configure: Ditto.
1645         * libc/libc.texinfo: Ditto.
1646         * libm/*/aclocal.m4: Ditto.
1647         * libm/*/configure: Ditto.
1648         * libm/libm.texinfo: Ditto.
1649         * libc/sys/linux/shared.ld: Add VERS_1.17
1650
1651 2008-12-17  Jon Beniston <jon@beniston.com>
1652
1653         * configure.host: Set syscall_dir for lm32 target.
1654
1655 2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>
1656
1657         * libc/stdio/stdio.tex: Remove putwc and getwc references as they
1658         are included as part of fputwc and fgetwc, respectively.
1659
1660 2008-12-12  Craig Howland <howland@LGSInnovations.com>
1661
1662         * libc/include/wchar.h:  Added wcstok() declaration.
1663         * libc/string/wcstok.c: New file, implementing wcstok.
1664         * libc/string/Makefile.am: Add wcstok support.
1665         * libc/string/wcstrings.tex: Ditto.
1666         * libc/string/Makefile.in: Regenerated.
1667
1668 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1669
1670         * libc/stdio/fputws.c: Fix documentation.
1671         * libc/stdio/getwchar.c: Ditto.
1672         * libc/stdio/putwchar.c: Ditto.
1673
1674 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1675
1676         * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
1677         200112L (SUSv3 compliance).
1678         Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
1679
1680 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1681
1682         * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
1683         _execve(), _exit().
1684
1685 2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1686
1687         * configure.host: Let *rtems* default to c99-formats.
1688
1689 2008-12-12  Craig Howland  <howland@LGSInnovations.com>
1690
1691         * libc/stdio/freopen.c:  Add <string.h> for memset prototype.
1692         * libc/stdio/fseek.c:  Ditto.
1693         * libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.
1694
1695 2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>
1696
1697         * libc/include/sys/time.h (gettimeofday): Change prototype so
1698         2nd parameter is void *, matching SUSV2.
1699         * libc/syscalls/sysgettod.c (gettimeofday): Ditto.
1700
1701 2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
1702
1703         * configure.host: Add lm32
1704         * libc/include/machine/ieeefp.h: Add __lm32__
1705         * libc/include/machine/setjmp.h: Add __lm32__
1706         * libc/machine/configure.in: Add lm32
1707         * libc/machine/configure: Regenerated.
1708         * libc/machine/lm32/aclocal.m4: New file.
1709         * libc/machine/lm32/configure.in: Ditto.
1710         * libc/machine/lm32/configure: Ditto.
1711         * libc/machine/lm32/Makefile.am: Ditto.
1712         * libc/machine/lm32/Makefile.in: Ditto.
1713         * libc/machine/lm32/setjmp.s: Ditto.
1714
1715 2008-12-11  Craig Howland  <howland@LGSInnovations.com>
1716
1717         * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
1718         effect" warnings from gcc.
1719         * libc/include/sys/stdio.h:  Ditto.
1720         * libc/include/sys/time.h:  Correct gettimeofday() prototype.
1721         * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
1722         * libc/stdlib/__ten_mu.c:  Ditto.
1723         * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
1724         * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
1725         already others in file without _ansi method, so did not bother.)
1726         * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
1727         definitions.
1728         * libc/time/mktime.c:  Ditto.
1729         * libc/misc/__dprintf.c:  Ditto.
1730         * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
1731         _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
1732         _funopen_r, and _fopencookie_r.
1733         * libc/include/reent.h:  Add function prototype for _stat64_r, align
1734         _execve_r prototype with POSIX definition for execve.
1735         * libc/reent/execr.c:  Align function prototype with POSIX definition.
1736         * libc/stdio/asniprintf.c:  Add #include "local.h".
1737         * libc/stdio/vasniprintf.c:  Ditto.
1738         * libc/stdio/fread.c:  Remove unused variable newcount.
1739         * libc/stdio/local.h:  Add function prototype for __sccl.
1740         * libc/stdio/open_memstream.c:  Remove unused variable flags.
1741         * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
1742         for __sccl since now in local.h.
1743         * libc/string/memcpy.c:  Add #include <string.h> (for real and for
1744         traditional synopsis), remove extraneous stddef.h and limits.h.
1745         * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
1746         * libc/syscalls/sysfork.c:  Ditto.
1747         * libc/syscalls/sysgetpid.c:  Ditto.
1748         * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
1749         prototype with POSIX definition.
1750         * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
1751         * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
1752         * libc/syscalls/syskill.c:  Add #include <signal.h>.
1753         * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
1754         * libc/syscalls/sysunlink.c:  Ditto.
1755         * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
1756         * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.
1757
1758 2008-12-10  Corinna Vinschen  <corinna@vinschen.de>
1759
1760         Implement basic wide char stdio functionality, based on FreeBSD.
1761         * libc/include/stdio.h (__SORD): Define.
1762         (__SWID): Define.
1763         * libc/include/wchar.h: Add declarations for new wide char functions.
1764         (getwc): Define as macro.
1765         (getwchar): Ditto.
1766         (putwc): Ditto.
1767         (putwchar): Ditto.
1768         * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
1769         (struct __sFILE64): Ditto.
1770         * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
1771         fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
1772         and ungetwc.c.
1773         (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
1774         fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
1775         ungetwc.def.
1776         Add header dependency rules for the new files.
1777         * libc/stdio/Makefile.in: Regenerate.
1778         * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
1779         * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
1780         * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
1781         (__sfmoreglue): Ditto.
1782         * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
1783         * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
1784         * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
1785         * libc/stdio/fread.c (_fread_r): Set stream orientation.
1786         * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
1787         _mbstate.
1788         * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
1789         * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
1790         * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
1791         * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
1792         * libc/stdio/getwchar.c: New file, implementing getwchar and
1793         _getwchar_r.
1794         * libc/stdio/local.h (ORIENT): New macro.
1795         * libc/stdio/puts.c (_puts_r): Set stream orientation.
1796         * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
1797         * libc/stdio/putwchar.c: New file, implementing putwchar and
1798         _putwchar_r.
1799         * libc/stdio/refill.c (__srefill_r): Set stream orientation.
1800         * libc/stdio/stdio.tex: Add documentation for new functions.
1801         * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
1802         * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
1803         * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
1804         * libc/stdio/wbuf.c (__swbuf_r): Ditto.
1805
1806 2008-12-10  Joseph Myers  <joseph@codesourcery.com>
1807
1808         * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
1809         INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
1810         constants with "long" types where appropriate.
1811         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
1812         INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
1813         UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
1814         Correct to match logic for defining corresponding types.
1815         (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
1816         (SIZE_MAX): Define using __SIZE_MAX__ if available.
1817         (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
1818         (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
1819         (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
1820         (UINT8_C, UINT16_C): Define to give signed values if corresponding
1821         types would promote to int.
1822
1823 2008-12-04  Corinna Vinschen  <corinna@vinschen.de>
1824
1825         * libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
1826         (_POSIX_V6_LP64_OFF64): Ditto.
1827         (_POSIX_V6_LPBIG_OFFBIG): Ditto.
1828
1829 2008-11-28  Jeff Johnston  <jjohnstn@redhat.com>
1830
1831         * libc/sys/linux/inode.c: Include <dirent.h> instead of
1832         <linux/dirent.h>.
1833         * libc/sys/linux/io64.c: Add weak alias for _stat64.
1834
1835 2008-11-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1836
1837         * libc/posix/telldir.c: Use #if !defined() instead of #ifndef
1838         to fix GCC warning.
1839
1840 2008-11-27  Ken Werner  <ken.werner@de.ibm.com>
1841
1842         * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
1843         * libc/machine/spu/Makefile.in: Regenerated.
1844         * libc/machine/spu/spu-gmon.c: New file.
1845         * libc/machine/spu/spu-mcount.S: New file.
1846
1847 2008-11-27  Joel Sherrill <joel.sherrill@oarcorp.com>
1848
1849         * configure.host (*-rtems*): Turn on using portion of unix subdirectory.
1850
1851 2008-11-27  Craig Howland <howland@LGSInnovations.com>
1852
1853         * libc/argz/argz_add.c:  Added #include <argz.h> to get function
1854         prototypes.
1855         * libc/argz/argz_append.c: Ditto.
1856         * libc/argz/argz_count.c: Ditto.
1857         * libc/argz/argz_create.c: Ditto.
1858         * libc/argz/argz_create_sep.c: Ditto.
1859         * libc/argz/argz_delete.c: Ditto.
1860         * libc/argz/argz_next.c: Ditto.
1861         * libc/argz/argz_stringify.c: Ditto
1862         * libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
1863         prototypes.
1864         * libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
1865         prototypes, corrected traditional usage comment.
1866         * libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
1867
1868 2008-11-26 Ken Werner <ken.werner@de.ibm.com>
1869
1870         * libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
1871         * libm/machine/spu/headers/asind2.h: Likewise.
1872         * libm/machine/spu/headers/asinhf4.h: Likewise.
1873         * libm/machine/spu/headers/divd2.h: Likewise.
1874         * libm/machine/spu/headers/erf_utils.h: Likewise.
1875         * libm/machine/spu/headers/erfcd2.h: Likewise.
1876         * libm/machine/spu/headers/erfcf4.h: Likewise.
1877         * libm/machine/spu/headers/erfd2.h: Likewise.
1878         * libm/machine/spu/headers/recipd2.h: Likewise.
1879
1880 2008-11-25  Corinna Vinschen  <corinna@vinschen.de>
1881
1882         * libc/stdio/gets.c (_gets_r): Lock stdin here and call
1883         __sgetc_r instead of _getchar_r.
1884
1885 2008-11-24  Craig Howland  <howland@LGSInnovations.com>
1886
1887         * libc/stdlib/wcstoull_r.c:  Add EINVAL return for bad base value,
1888         include wchar.h for prototype, remove extraneous includes, use
1889         C99/POSIX ULLONG_MAX (but allow for poor limits.h).
1890         * libc/stdlib/wcstoull.c:  Fix usage comments (mistakes and to add
1891         base value check noted above), remove extraneous includes.
1892         * libc/stdio/asnprintf.c:  Add #include "local.h" to get function
1893         prototype for _svfprintf_r().
1894         * libc/stdio/vasnprintf.c:  Ditto.
1895         * libc/stdio/local.h:  Add function prototype for __submore().
1896         * libc/include/stdio.h:  Add function prototypes for _fseeko_r and
1897         _ftello_r.
1898         * libc/posix/namespace.h:  Commented out define for write to
1899         eliminate write() prototype being missing for collate.c (which is
1900         the only file that presently includes namespace.h).
1901         * libc/include/reent.h:  Added _rename_r.
1902         * libc/reent/renamer.c:  Corrected function prototypes in synopses.
1903         * libc/locale/ldpart.c:  Use struct stat64 when calling fstat64.
1904
1905 2008-11-24  Jeff Johnston  <jjohnstn@redhat.com>
1906
1907         * libc/search/hash_func.c: Comment out unused static hash functions.
1908         * libc/reent/stat64r.c: New file.
1909         * libc/reent/Makefile.am: Add stat64r.c support.
1910         * libc/reent/Makefile.in: Regenerated.
1911
1912 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1913
1914         * libc/posix/scandir.c: Fix memory leaks.
1915
1916 2008-11-24  Joel Sherrill <joel.sherrill@oarcorp.com>
1917
1918         * libc/posix/Makefile.am: Compile readdir_r.c not readdir.c twice.
1919         * libc/posix/Makefile.in: Regenerated.
1920
1921 2008-11-24  Corinna Vinschen  <corinna@vinschen.de>
1922
1923         * libc/include/stdio.h (__SMOD): Remove definition of unused flag.
1924         * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
1925         * libc/stdio/findfp.c (std): Initialize _flags2.
1926         (__sfp): Ditto.
1927         * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
1928         * libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
1929         * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
1930         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1931
1932 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1933
1934         * libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
1935         be in sync with current kernels.
1936
1937 2008-11-20  Ken Werner  <ken.werner@de.ibm.com>
1938             Patrick Mansfield  <patmans@us.ibm.com>
1939             Joel Schopp   <jschopp@austin.ibm.com>
1940
1941         * libc/machine/spu/configure.in: Add __ea detection.
1942         * libc/machine/spu/Makefile.am: Add new files.
1943         * libc/machine/spu/include/ea.h: New file.
1944         * libc/machine/spu/ea_internal.h: Likewise.
1945         * libc/machine/spu/sys/mman.h: Likewise.
1946         * libc/machine/spu/mmap_ea.c: Likewise.
1947         * libc/machine/spu/munmap_ea.c: Likewise.
1948         * libc/machine/spu/mremap_ea.c: Likewise.
1949         * libc/machine/spu/msync_ea.c: Likewise.
1950         * libc/machine/spu/memchr_ea.c: Likewise.
1951         * libc/machine/spu/memcmp_ea.c: Likewise.
1952         * libc/machine/spu/memcpy_ea.c: Likewise.
1953         * libc/machine/spu/memmove_ea.c: Likewise.
1954         * libc/machine/spu/memset_ea.c: Likewise.
1955         * libc/machine/spu/malloc_ea.c: Likewise.
1956         * libc/machine/spu/realloc_ea.c: Likewise.
1957         * libc/machine/spu/calloc_ea.c: Likewise.
1958         * libc/machine/spu/free_ea.c: Likewise.
1959         * libc/machine/spu/posix_memalign_ea.c: Likewise.
1960         * libc/machine/spu/strcat_ea.c: Likewise.
1961         * libc/machine/spu/strchr_ea.c: Likewise.
1962         * libc/machine/spu/strcmp_ea.c: Likewise.
1963         * libc/machine/spu/strcpy_ea.c: Likewise.
1964         * libc/machine/spu/strcspn_ea.c: Likewise.
1965         * libc/machine/spu/strlen_ea.c: Likewise.
1966         * libc/machine/spu/strncat_ea.c: Likewise.
1967         * libc/machine/spu/strncmp_ea.c: Likewise.
1968         * libc/machine/spu/strncpy_ea.c: Likewise.
1969         * libc/machine/spu/strpbrk_ea.c: Likewise.
1970         * libc/machine/spu/strrchr_ea.c: Likewise.
1971         * libc/machine/spu/strspn_ea.c: Likewise.
1972         * libc/machine/spu/strstr_ea.c: Likewise.
1973         * libc/machine/spu/read_ea.c: Likewise.
1974         * libc/machine/spu/pread_ea.c: Likewise.
1975         * libc/machine/spu/readv_ea.c: Likewise.
1976         * libc/machine/spu/write_ea.c: Likewise.
1977         * libc/machine/spu/pwrite_ea.c: Likewise.
1978         * libc/machine/spu/writev_ea.c: Likewise.
1979
1980 2008-11-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1981
1982         * libc/include/sys/config.h[__mips__]: Don't bother
1983         setting __ATTRIBUTE_IMPURE_PTR__ here.
1984         [__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
1985         macro anymore.
1986
1987 2008-11-19  Jeff Johnston  <jjohnstn@redhat.com>
1988
1989         * libc/sys/linux/bits/dirent.h: New header file.
1990         * libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
1991         <linux/dirent.h>.
1992         * libc/posix/Makefile.am: Remove reallocf.
1993         * libc/posix/Makefile.in: Regenerated.
1994         * libc/posix/reallocf.c: Moved to...
1995         * libc/stdlib/reallocf.c: Here
1996         * libc/stdlib/malloc.c: Add reallocf documentation.
1997         * libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
1998         * libc/stdlib/Makefile.am: Add reallocf.
1999         * libc/stdlib/Makefile.in: Regenerated.
2000         * libc/posix/_isatty.c: Set errno.
2001
2002 2008-11-19  Craig Howland  <howland@LGSInnovations.com>
2003
2004         * libc/unix/collate.c (__collate_err): simplify to remove unnecessary
2005         strdup() and strlen() calls, also getting rid of a compiler warning.
2006
2007 2008-11-19  Ralf Corsepius <ralf.corsepius@rtems.org>
2008
2009         * libc/include/sys/config.h: Don't put
2010         __ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
2011
2012 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2013
2014         * libc/posix/runetype.h: Add include of stddef.h and remove
2015         defining standard types: size_t and wchar_t.
2016
2017 2008-11-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
2018
2019         * libc/include/pthread.h: Remove prototypes for
2020         pthread_attr_getcputime and pthread_attr_setcputime which
2021         were proposed but never approved by the POSIX standard.
2022
2023 2008-11-18  Joel Sherrill <joel.sherrill@oarcorp.com>
2024
2025         * libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
2026
2027 2008-11-18  Jeff Johnston  <jjohnstn@redhat.com>
2028
2029         * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
2030         ignored if desired by a platform.
2031         * libc/unix/dirname.c: Ditto except replace BASENAME with file name.
2032         * libc/unix/getcwd.c: Ditto.
2033         * libc/unix/getlogin.c: Ditto.
2034         * libc/unix/getpass.c: Ditto.
2035         * libc/unix/getpwent.c: Ditto.
2036         * libc/unix/getut.c: Ditto.
2037         * libc/unix/pread.c: Ditto.
2038         * libc/unix/pwrite.c: Ditto.
2039         * libc/unix/sigset.c: Ditto.
2040
2041 2008-11-18  Craig Howland  <howland@LGSInnovations.com>
2042
2043         * libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
2044         ttyname_r.
2045
2046 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2047
2048         * configure.host: RTEMS now uses posix subdirectory.
2049
2050 2008-11-17  Joel Sherrill <joel.sherrill@oarcorp.com>
2051
2052         * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
2053         * sys/rtems/sys/param.h: sys/rtprio.h not needed.
2054
2055 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2056
2057         * libc/stdio/diprintf.c: Modify documentation so eclipse newlib
2058         libhover docs generate properly.
2059         * libc/stdio/dprintf.c: Ditto.
2060         * libc/stdio/fflush.c: Ditto.
2061         * libc/stdio/fopencookie.c: Ditto.
2062         * libc/stdio/fread.c: Ditto.
2063         * libc/stdio/fsetpos.c: Ditto.
2064         * libc/stdio/getc_u.c: Ditto.
2065         * libc/stdio/getchar_u.c: Ditto.
2066         * libc/stdio/putc_u.c: Ditto.
2067         * libc/stdio/putchar_u.c: Ditto.
2068         * libc/stdio/remove.c: Ditto.
2069         * libc/stdio/siprintf.c: Ditto.
2070         * libc/stdio/siscanf.c: Ditto.
2071         * libc/stdio/sprintf.c: Ditto.
2072         * libc/stdio/sscanf.c: Ditto.
2073         * libc/stdio/vfprintf.c: Ditto.
2074         * libc/stdio/vfscanf.c: Ditto.
2075         * libc/stdio/viprintf.c: Ditto.
2076         * libc/stdio/viscanf.c: Ditto.
2077         * libc/stdlib/calloc.c: Ditto.
2078         * libc/stdlib/efgcvt.c: Ditto.
2079         * libc/stdlib/envlock.c: Ditto.
2080         * libc/time/asctime.c: Ditto.
2081         * libc/time/ctime.c: Ditto.
2082         * libc/time/gmtime.c: Ditto.
2083         * libc/time/lcltime.c: Ditto.
2084         * libc/time/tzset.c: Ditto.
2085         * libc/stdlib/envlock.h: Moved to libc/include.
2086
2087 2008-10-31  Jeff Johnston  <jjohnstn@redhat.com>
2088
2089         * libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
2090         * libc/include/envlock.h: New file.
2091         * libc/include/fnmatch.h: Ditto.
2092         * libc/include/glob.h: Ditto.
2093         * libc/include/regex.h: Ditto.
2094         * libc/include/wordexp.h: Ditto.
2095         * libc/posix/Makefile.am: Add new files moved from
2096         libc/sys/linux/stdlib.
2097         * libc/posix/Makefile.in: Regenerated.
2098         * libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
2099         * libc/posix/cclass.h: Ditto.
2100         * libc/posix/cname.h: Ditto.
2101         * libc/posix/collate.c: Ditto.
2102         * libc/posix/collate.h: Ditto.
2103         * libc/posix/collcmp.c: Ditto.
2104         * libc/posix/engine.c: Ditto.
2105         * libc/posix/fnmatch.3: Ditto.
2106         * libc/posix/glob.3: Ditto.
2107         * libc/posix/fnmatch.c: Ditto.
2108         * libc/posix/glob.c: Ditto.
2109         * libc/posix/namespace.h: Ditto.
2110         * libc/posix/reallocf.c: Ditto.
2111         * libc/posix/regcomp.c: Ditto.
2112         * libc/posix/regerror.c: Ditto.
2113         * libc/posix/regex.3: Ditto.
2114         * libc/posix/regex2.h: Ditto.
2115         * libc/posix/regexec.c: Ditto.
2116         * libc/posix/regfree.c: Ditto.
2117         * libc/posix/rune.h: Ditto.
2118         * libc/posix/runetype.h: Ditto.
2119         * libc/posix/scandir.c: Remove advertising clause which is not in
2120         effect.
2121         * libc/posix/sysexits.h: Ditto.
2122         * libc/posix/un-namespace.h: Ditto.
2123         * libc/posix/utils.h: Ditto.
2124         * libc/posix/wordexp.c: Ditto.
2125         * libc/posix/wordfree.c: Ditto.
2126         * libc/posix/execl.c: Add !_NO_EXECVE flag check.
2127         * libc/posix/execle.c: Ditto.
2128         * libc/posix/execlp.c: Ditto.
2129         * libc/posix/execv.c: Ditto.
2130         * libc/posix/execve.c: Ditto.
2131         * libc/posix/execvp.c: Ditto.
2132         * libc/posix/popen.c: Add !_NO_POPEN flag check.
2133         * libc/sys/linux/configure: Regenerated.
2134         * libc/sys/linux/configure.in: Remove stdlib.
2135         * libc/sys/linux/include/limits.h: Add include of linux/limits.h.
2136         * libc/sys/linux/stdlib/Makefile.am: Removed.
2137         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2138         * libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
2139         * libc/sys/linux/stdlib/cclass.h: Ditto.
2140         * libc/sys/linux/stdlib/cname.h: Ditto.
2141         * libc/sys/linux/stdlib/collate.c: Ditto.
2142         * libc/sys/linux/stdlib/collate.h: Ditto.
2143         * libc/sys/linux/stdlib/collcmp.c: Ditto.
2144         * libc/sys/linux/stdlib/engine.c: Ditto.
2145         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
2146         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
2147         * libc/sys/linux/stdlib/glob.3: Ditto.
2148         * libc/sys/linux/stdlib/glob.c: Ditto.
2149         * libc/sys/linux/stdlib/reallocf.c: Ditto.
2150         * libc/sys/linux/stdlib/regcomp.c: Ditto.
2151         * libc/sys/linux/stdlib/regerror.c: Ditto.
2152         * libc/sys/linux/stdlib/regex.3: Ditto.
2153         * libc/sys/linux/stdlib/regex2.h: Ditto.
2154         * libc/sys/linux/stdlib/regexec.c: Ditto.
2155         * libc/sys/linux/stdlib/regfree.c: Ditto.
2156         * libc/sys/linux/stdlib/utils.h: Ditto.
2157         * libc/sys/linux/stdlib/wordexp.c: Ditto.
2158         * libc/sys/linux/stdlib/wordfree.c: Ditto.
2159
2160 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2161
2162         * libc/include/sys/unistd.h: RTEMS follows standard for sync().
2163
2164 2008-10-16  Joel Sherrill <joel.sherrill@oarcorp.com>
2165
2166         * libc/include/time.h: Add CLOCK_MONOTONIC.
2167         * libc/include/sys/features.h: Define
2168         _POSIX_MONOTONIC_CLOCK for RTEMS.
2169
2170 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2171
2172         * newlib.hin: Restore to previous 1.14 version which has no
2173         PACKAGE_ macros.
2174
2175 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
2176
2177         * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2178
2179 2008-10-15  Craig Howland  <howland@LGSInnovations.com>
2180
2181         * libc/include/ctype.h (isblank):  isblank is C99.
2182         * libc/ctype/isblank.c (isblank comments):  ditto.  isblank does not
2183         have a macro version (as was claimed in the description).
2184
2185 2008-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2186
2187         * libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
2188         %S conversions when the EL/IX level is 1.
2189
2190 2008-10-06  Eric Blake  <ebb9@byu.net>
2191
2192         * libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
2193         is 0.5 or 0.75.
2194
2195 2008-10-06  Craig Howland  <howland@LGSInnovations.com>
2196
2197         * libc/time/tzset_r.c (_tzset_r):  Change US default start/end dates to
2198         2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2199
2200 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2201
2202         * libc/string/str-two-way.h (critical_factorization): Cast the index
2203         operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2204
2205 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2206
2207         * libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
2208         be size of size_t, not int.
2209         (SIZE_MIN): Remove.
2210         * libc/sys/linux/sys/stdint.h: Ditto.
2211
2212 2008-10-02  Jeff Johnston  <jjohnstn@redhat.com>
2213
2214         * libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
2215         initialization of _rand_next to 1.
2216
2217 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
2218             Steve Ellcey  <sje@cup.hp.com>
2219
2220         * configure: Regenerate for new libtool.
2221         * aclocal.m4: Ditto.
2222         * Makefile.in: Ditto.
2223         * newlib.hin: Ditto.
2224         * doc/Makefile.in: Ditto.
2225         * doc/configure: Ditto.
2226         * iconvdata/Makefile.in: Ditto.
2227         * iconvdata/aclocal.m4: Ditto.
2228         * iconvdata/configure: Ditto.
2229         * libc/Makefile.in: Ditto.
2230         * libc/aclocal.m4: Ditto.
2231         * libc/configure: Ditto.
2232         * libc/argz/Makefile.in: Ditto.
2233         * libc/ctype/Makefile.in: Ditto.
2234         * libc/errno/Makefile.in: Ditto.
2235         * libc/iconv/Makefile.in: Ditto.
2236         * libc/iconv/ccs/Makefile.in: Ditto.
2237         * libc/iconv/ccs/binary/Makefile.in: Ditto.
2238         * libc/iconv/ces/Makefile.in: Ditto.
2239         * libc/iconv/lib/Makefile.in: Ditto.
2240         * libc/locale/Makefile.in: Ditto.
2241         * libc/machine/Makefile.in: Ditto.
2242         * libc/machine/aclocal.m4: Ditto.
2243         * libc/machine/configure: Ditto.
2244         * libc/machine/a29k/Makefile.in: Ditto.
2245         * libc/machine/a29k/configure: Ditto.
2246         * libc/machine/arm/Makefile.in: Ditto.
2247         * libc/machine/arm/configure: Ditto.
2248         * libc/machine/bfin/Makefile.in: Ditto.
2249         * libc/machine/bfin/configure: Ditto.
2250         * libc/machine/cris/Makefile.in: Ditto.
2251         * libc/machine/cris/configure: Ditto.
2252         * libc/machine/crx/Makefile.in: Ditto.
2253         * libc/machine/crx/configure: Ditto.
2254         * libc/machine/d10v/Makefile.in: Ditto.
2255         * libc/machine/d10v/configure: Ditto.
2256         * libc/machine/d30v/Makefile.in: Ditto.
2257         * libc/machine/d30v/configure: Ditto.
2258         * libc/machine/fr30/Makefile.in: Ditto.
2259         * libc/machine/fr30/configure: Ditto.
2260         * libc/machine/frv/Makefile.in: Ditto.
2261         * libc/machine/frv/configure: Ditto.
2262         * libc/machine/h8300/Makefile.in: Ditto.
2263         * libc/machine/h8300/configure: Ditto.
2264         * libc/machine/h8500/Makefile.in: Ditto.
2265         * libc/machine/h8500/configure: Ditto.
2266         * libc/machine/hppa/Makefile.in: Ditto.
2267         * libc/machine/hppa/configure: Ditto.
2268         * libc/machine/i386/Makefile.in: Ditto.
2269         * libc/machine/i386/aclocal.m4: Ditto.
2270         * libc/machine/i386/configure: Ditto.
2271         * libc/machine/i960/Makefile.in: Ditto.
2272         * libc/machine/i960/configure: Ditto.
2273         * libc/machine/iq2000/Makefile.in: Ditto.
2274         * libc/machine/iq2000/configure: Ditto.
2275         * libc/machine/m32c/Makefile.in: Ditto.
2276         * libc/machine/m32c/configure: Ditto.
2277         * libc/machine/m32r/Makefile.in: Ditto.
2278         * libc/machine/m32r/configure: Ditto.
2279         * libc/machine/m68hc11/Makefile.in: Ditto.
2280         * libc/machine/m68hc11/configure: Ditto.
2281         * libc/machine/m68k/Makefile.in: Ditto.
2282         * libc/machine/m68k/configure: Ditto.
2283         * libc/machine/m88k/Makefile.in: Ditto.
2284         * libc/machine/m88k/configure: Ditto.
2285         * libc/machine/mep/Makefile.in: Ditto.
2286         * libc/machine/mep/configure: Ditto.
2287         * libc/machine/mips/Makefile.in: Ditto.
2288         * libc/machine/mips/configure: Ditto.
2289         * libc/machine/mn10200/Makefile.in: Ditto.
2290         * libc/machine/mn10200/configure: Ditto.
2291         * libc/machine/mn10300/Makefile.in: Ditto.
2292         * libc/machine/mn10300/configure: Ditto.
2293         * libc/machine/mt/Makefile.in: Ditto.
2294         * libc/machine/mt/configure: Ditto.
2295         * libc/machine/necv70/Makefile.in: Ditto.
2296         * libc/machine/necv70/configure: Ditto.
2297         * libc/machine/powerpc/Makefile.in: Ditto.
2298         * libc/machine/powerpc/configure: Ditto.
2299         * libc/machine/sh/Makefile.in: Ditto.
2300         * libc/machine/sh/configure: Ditto.
2301         * libc/machine/sparc/Makefile.in: Ditto.
2302         * libc/machine/sparc/configure: Ditto.
2303         * libc/machine/spu/Makefile.in: Ditto.
2304         * libc/machine/spu/configure: Ditto.
2305         * libc/machine/tic4x/Makefile.in: Ditto.
2306         * libc/machine/tic4x/configure: Ditto.
2307         * libc/machine/tic80/Makefile.in: Ditto.
2308         * libc/machine/tic80/configure: Ditto.
2309         * libc/machine/v850/Makefile.in: Ditto.
2310         * libc/machine/v850/configure: Ditto.
2311         * libc/machine/w65/Makefile.in: Ditto.
2312         * libc/machine/w65/configure: Ditto.
2313         * libc/machine/x86_64/Makefile.in: Ditto.
2314         * libc/machine/x86_64/configure: Ditto.
2315         * libc/machine/xscale/Makefile.in: Ditto.
2316         * libc/machine/xscale/configure: Ditto.
2317         * libc/machine/xstormy16/Makefile.in: Ditto.
2318         * libc/machine/xstormy16/configure: Ditto.
2319         * libc/machine/z8k/Makefile.in: Ditto.
2320         * libc/machine/z8k/configure: Ditto.
2321         * libc/misc/Makefile.in: Ditto.
2322         * libc/posix/Makefile.in: Ditto.
2323         * libc/reent/Makefile.in: Ditto.
2324         * libc/search/Makefile.in: Ditto.
2325         * libc/signal/Makefile.in: Ditto.
2326         * libc/stdio/Makefile.in: Ditto.
2327         * libc/stdio64/Makefile.in: Ditto.
2328         * libc/stdlib/Makefile.in: Ditto.
2329         * libc/string/Makefile.in: Ditto.
2330         * libc/sys/Makefile.in: Ditto.
2331         * libc/sys/aclocal.m4: Ditto.
2332         * libc/sys/configure: Ditto.
2333         * libc/sys/a29khif/Makefile.in: Ditto.
2334         * libc/sys/a29khif/configure: Ditto.
2335         * libc/sys/arc/Makefile.in: Ditto.
2336         * libc/sys/arc/configure: Ditto.
2337         * libc/sys/arm/Makefile.in: Ditto.
2338         * libc/sys/arm/configure: Ditto.
2339         * libc/sys/d10v/Makefile.in: Ditto.
2340         * libc/sys/d10v/configure: Ditto.
2341         * libc/sys/decstation/Makefile.in: Ditto.
2342         * libc/sys/decstation/configure: Ditto.
2343         * libc/sys/h8300hms/Makefile.in: Ditto.
2344         * libc/sys/h8300hms/configure: Ditto.
2345         * libc/sys/h8500hms/Makefile.in: Ditto.
2346         * libc/sys/h8500hms/configure: Ditto.
2347         * libc/sys/linux/Makefile.in: Ditto.
2348         * libc/sys/linux/aclocal.m4: Ditto.
2349         * libc/sys/linux/configure: Ditto.
2350         * libc/sys/linux/argp/Makefile.in: Ditto.
2351         * libc/sys/linux/cmath/Makefile.in: Ditto.
2352         * libc/sys/linux/dl/Makefile.in: Ditto.
2353         * libc/sys/linux/iconv/Makefile.in: Ditto.
2354         * libc/sys/linux/intl/Makefile.in: Ditto.
2355         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
2356         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
2357         * libc/sys/linux/linuxthreads/configure: Ditto.
2358         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
2359         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
2360         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
2361         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
2362         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
2363         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
2364         * libc/sys/linux/machine/Makefile.in: Ditto.
2365         * libc/sys/linux/machine/aclocal.m4: Ditto.
2366         * libc/sys/linux/machine/configure: Ditto.
2367         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
2368         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
2369         * libc/sys/linux/machine/i386/configure: Ditto.
2370         * libc/sys/linux/net/Makefile.in: Ditto.
2371         * libc/sys/linux/stdlib/Makefile.in: Ditto.
2372         * libc/sys/m88kbug/Makefile.in: Ditto.
2373         * libc/sys/m88kbug/configure: Ditto.
2374         * libc/sys/mmixware/Makefile.in: Ditto.
2375         * libc/sys/mmixware/configure: Ditto.
2376         * libc/sys/netware/Makefile.in: Ditto.
2377         * libc/sys/netware/configure: Ditto.
2378         * libc/sys/rdos/Makefile.in: Ditto.
2379         * libc/sys/rdos/configure: Ditto.
2380         * libc/sys/rtems/Makefile.in: Ditto.
2381         * libc/sys/rtems/configure: Ditto.
2382         * libc/sys/sh/Makefile.in: Ditto.
2383         * libc/sys/sh/configure: Ditto.
2384         * libc/sys/sparc64/Makefile.in: Ditto.
2385         * libc/sys/sparc64/configure: Ditto.
2386         * libc/sys/sun4/Makefile.in: Ditto.
2387         * libc/sys/sun4/configure: Ditto.
2388         * libc/sys/sysmec/Makefile.in: Ditto.
2389         * libc/sys/sysmec/configure: Ditto.
2390         * libc/sys/sysnec810/Makefile.in: Ditto.
2391         * libc/sys/sysnec810/configure: Ditto.
2392         * libc/sys/sysnecv850/Makefile.in: Ditto.
2393         * libc/sys/sysnecv850/configure: Ditto.
2394         * libc/sys/sysvi386/Makefile.in: Ditto.
2395         * libc/sys/sysvi386/configure: Ditto.
2396         * libc/sys/sysvnecv70/Makefile.in: Ditto.
2397         * libc/sys/sysvnecv70/configure: Ditto.
2398         * libc/sys/tic80/Makefile.in: Ditto.
2399         * libc/sys/tic80/configure: Ditto.
2400         * libc/sys/w65/Makefile.in: Ditto.
2401         * libc/sys/w65/configure: Ditto.
2402         * libc/sys/z8ksim/Makefile.in: Ditto.
2403         * libc/sys/z8ksim/configure: Ditto.
2404         * libc/syscalls/Makefile.in: Ditto.
2405         * libc/time/Makefile.in: Ditto.
2406         * libc/unix/Makefile.in: Ditto.
2407         * libm/Makefile.in: Ditto.
2408         * libm/aclocal.m4: Ditto.
2409         * libm/configure: Ditto.
2410         * libm/common/Makefile.in: Ditto.
2411         * libm/machine/Makefile.in: Ditto.
2412         * libm/machine/aclocal.m4: Ditto.
2413         * libm/machine/configure: Ditto.
2414         * libm/machine/i386/Makefile.in: Ditto.
2415         * libm/machine/i386/aclocal.m4: Ditto.
2416         * libm/machine/i386/configure: Ditto.
2417         * libm/machine/spu/Makefile.in: Ditto.
2418         * libm/machine/spu/configure: Ditto.
2419         * libm/math/Makefile.in: Ditto.
2420         * libm/mathfp/Makefile.in: Ditto.
2421
2422 2008-09-26  Craig Howland  <howland@LGSInnovations.com>
2423
2424         * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
2425         contains an equal sign.
2426
2427 2008-09-25  Raphael Derossa Pereira  <raphaelpereira@gmail.com>
2428
2429         * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2430         new pthread_mutexattr_gettype and pthread_mutexattr_settype
2431         prototypes.
2432         * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
2433         new mutex type values.
2434         (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
2435         field.
2436
2437 2008-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2438
2439         * libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
2440         name is NULL, empty, or contains equal sign.
2441
2442 2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
2443
2444         Fix setenv/getenv/unsetenv to be OpenGroup compliant:
2445         * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
2446         return types.
2447         * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
2448         names that contain equal chars.
2449         * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
2450         * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
2451         EINVAL if name contains an equal sign.  Do not remove any equal signs
2452         from the value.
2453         (_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
2454         if name contains equal sign.  Return -1 if no variable(s) were found
2455         and return 0 otherwise.
2456
2457 2008-09-19  Eric Blake  <ebb9@byu.net>
2458
2459         Supply missing POSIX errno values.
2460         * libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
2461         * libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2462
2463 2008-09-10  Ken Werner  <ken.werner@de.ibm.com>
2464
2465         * libc/machine/spu/strcpy.h: Add missing header.
2466         * libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
2467         * libm/machine/spu/headers/lgammaf4.h: Add type cast.
2468
2469 2008-09-08  Jeff Johnston  <jjohnstn@redhat.com>
2470
2471         * libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm
2472         statement to use "m" instead of "0".
2473         (atomic_add): Ditto.
2474         * libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
2475         * libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
2476         * libc/sys/linux/stdlib/glob.c: Ditto.
2477
2478 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2479
2480         * libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
2481         * libm/machine/spu/headers/acosf4.h: Likewise.
2482         * libm/machine/spu/headers/acoshd2.h: Likewise.
2483         * libm/machine/spu/headers/acoshf4.h: Likewise.
2484         * libm/machine/spu/headers/asind2.h: Likewise.
2485         * libm/machine/spu/headers/asinf4.h: Likewise.
2486         * libm/machine/spu/headers/asinhd2.h: Likewise.
2487         * libm/machine/spu/headers/asinhf4.h: Likewise.
2488         * libm/machine/spu/headers/atan2d2.h: Likewise.
2489         * libm/machine/spu/headers/atan2f4.h: Likewise.
2490         * libm/machine/spu/headers/atand2.h: Likewise.
2491         * libm/machine/spu/headers/atanf4.h: Likewise.
2492         * libm/machine/spu/headers/atanhd2.h: Likewise.
2493         * libm/machine/spu/headers/atanhf4.h: Likewise.
2494         * libm/machine/spu/headers/cos_sin.h: Likewise.
2495         * libm/machine/spu/headers/cosd2.h: Likewise.
2496         * libm/machine/spu/headers/cosf4.h: Likewise.
2497         * libm/machine/spu/headers/coshd2.h: Likewise.
2498         * libm/machine/spu/headers/coshf4.h: Likewise.
2499         * libm/machine/spu/headers/divd2.h: Likewise.
2500         * libm/machine/spu/headers/divf4.h: Likewise.
2501         * libm/machine/spu/headers/erf_utils.h: Likewise.
2502         * libm/machine/spu/headers/erfcd2.h: Likewise.
2503         * libm/machine/spu/headers/erfcf4.h: Likewise.
2504         * libm/machine/spu/headers/erfd2.h: Likewise.
2505         * libm/machine/spu/headers/erff4.h: Likewise.
2506         * libm/machine/spu/headers/exp2d2.h: Likewise.
2507         * libm/machine/spu/headers/exp2f4.h: Likewise.
2508         * libm/machine/spu/headers/expd2.h: Likewise.
2509         * libm/machine/spu/headers/expf4.h: Likewise.
2510         * libm/machine/spu/headers/expm1d2.h: Likewise.
2511         * libm/machine/spu/headers/expm1f4.h: Likewise.
2512         * libm/machine/spu/headers/floord2.h: Likewise.
2513         * libm/machine/spu/headers/floorf4.h: Likewise.
2514         * libm/machine/spu/headers/hypotd2.h: Likewise.
2515         * libm/machine/spu/headers/hypotf4.h: Likewise.
2516         * libm/machine/spu/headers/isnand2.h: Likewise.
2517         * libm/machine/spu/headers/isnanf4.h: Likewise.
2518         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2519         * libm/machine/spu/headers/ldexpf4.h: Likewise.
2520         * libm/machine/spu/headers/lgammad2.h: Likewise.
2521         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2522         * libm/machine/spu/headers/log10d2.h: Likewise.
2523         * libm/machine/spu/headers/log1pd2.h: Likewise.
2524         * libm/machine/spu/headers/log1pf4.h: Likewise.
2525         * libm/machine/spu/headers/log2d2.h: Likewise.
2526         * libm/machine/spu/headers/log2f4.h: Likewise.
2527         * libm/machine/spu/headers/logbf4.h: Likewise.
2528         * libm/machine/spu/headers/logd2.h: Likewise.
2529         * libm/machine/spu/headers/logf4.h: Likewise.
2530         * libm/machine/spu/headers/nearbyintf4.h: Likewise.
2531         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2532         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2533         * libm/machine/spu/headers/powd2.h: Likewise.
2534         * libm/machine/spu/headers/powf4.h: Likewise.
2535         * libm/machine/spu/headers/recipd2.h: Likewise.
2536         * libm/machine/spu/headers/recipf4.h: Likewise.
2537         * libm/machine/spu/headers/rintf4.h: Likewise.
2538         * libm/machine/spu/headers/scalbnf4.h: Likewise.
2539         * libm/machine/spu/headers/signbitd2.h: Likewise.
2540         * libm/machine/spu/headers/sincosd2.h: Likewise.
2541         * libm/machine/spu/headers/sincosf4.h: Likewise.
2542         * libm/machine/spu/headers/sind2.h: Likewise.
2543         * libm/machine/spu/headers/sinf4.h: Likewise.
2544         * libm/machine/spu/headers/sinhd2.h: Likewise.
2545         * libm/machine/spu/headers/sinhf4.h: Likewise.
2546         * libm/machine/spu/headers/sqrtd2.h: Likewise.
2547         * libm/machine/spu/headers/sqrtf4.h: Likewise.
2548         * libm/machine/spu/headers/tand2.h: Likewise.
2549         * libm/machine/spu/headers/tanf4.h: Likewise.
2550         * libm/machine/spu/headers/tanhd2.h: Likewise.
2551         * libm/machine/spu/headers/tanhf4.h: Likewise.
2552         * libm/machine/spu/headers/tgammad2.h: Likewise.
2553         * libm/machine/spu/headers/tgammaf4.h: Likewise.
2554         * libm/machine/spu/headers/truncd2.h: Likewise.
2555         * libm/machine/spu/headers/truncf4.h: Likewise.
2556         * libm/machine/spu/headers/simdmath.h: Likewise.
2557
2558 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2559
2560         * libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
2561         * libm/machine/spu/headers/asinhd2.h: Likewise.
2562         * libm/machine/spu/headers/atanhd2.h: Likewise.
2563         * libm/machine/spu/headers/atanhf4.h: Likewise.
2564         * libm/machine/spu/headers/erff4.h: Likewise.
2565         * libm/machine/spu/headers/expd2.h: Likewise.
2566         * libm/machine/spu/headers/ldexpd2.h: Likewise.
2567         * libm/machine/spu/headers/lgammaf4.h: Likewise.
2568         * libm/machine/spu/headers/logbf4.h: Likewise.
2569         * libm/machine/spu/headers/nextafterd2.h: Likewise.
2570         * libm/machine/spu/headers/nextafterf4.h: Likewise.
2571         * libm/machine/spu/headers/recipd2.h: Likewise.
2572         * libm/machine/spu/headers/simdmath.h: Likewise.
2573         * libm/machine/spu/headers/acoshd2.: Likewise.
2574
2575 2008-09-04  Ken Werner  <ken.werner@de.ibm.com>
2576
2577         * libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
2578         * libm/machine/spu/headers/cbrtf.h: Likewise.
2579
2580 2008-09-01  Ken Werner  <ken.werner@de.ibm.com>
2581
2582         * libc/machine/spu/include/spu_timer.h: spu_timebase function added.
2583         * libc/machine/spu/spu_timebase.c: New file.
2584         * libc/machine/spu/Makefile.am: Add new file.
2585         * libc/machine/spu/Makefile.in: Regenerated.
2586
2587 2008-08-28  Craig Howland  <howland@LGSInnovations.com>
2588
2589         * libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
2590         any positive value from user (per std) rather than depending
2591         upon 1).
2592
2593 2008-08-28  Corinna Vinschen  <corinna@vinschen.de>
2594
2595         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
2596         for accepting a converted character.
2597
2598 2008-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2599
2600         * libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
2601         from building pdfs.
2602         * libm/libm.texinfo: Likewise.
2603
2604 2008-08-27  Corinna Vinschen  <corinna@vinschen.de>
2605
2606         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
2607         accepting a converted character and continuing the loop.
2608
2609 2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>
2610
2611         * libc/include/ctype.h (_ctype_): Restore for C++ backward
2612         compatability only.
2613
2614 2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>
2615
2616         * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
2617         less than the old __ctype_ptr.
2618         * libc/ctype/isalnum.c: Use __ctype_ptr__.
2619         * libc/ctype/isalpha.c: Ditto.
2620         * libc/ctype/iscntrl.c: Ditto.
2621         * libc/ctype/isdigit.c: Ditto.
2622         * libc/ctype/islower.c: Ditto.
2623         * libc/ctype/isprint.c: Ditto.
2624         * libc/ctype/ispunct.c: Ditto.
2625         * libc/ctype/isspace.c: Ditto.
2626         * libc/ctype/isupper.c: Ditto.
2627         * libc/ctype/isxdigit.c: Ditto.
2628         * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
2629         and add declaration of __ctype_ptr__.  Remove older ctype table pointers
2630         from here even though they can still work.
2631
2632 2008-07-18  Ken Werner  <ken.werner@de.ibm.com>
2633
2634         * libc/machine/spu/strcpy.h: Fix error in previous patch.
2635
2636 2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>
2637
2638         * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
2639         __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2640
2641 2008-07-17  Ken Werner  <ken.werner@de.ibm.com>
2642
2643         * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2644
2645 2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
2646
2647         * libc/machine/mn10300/memset.S: Fix bug where return value is
2648         incorrectly set if number of bytes set is a multiple of 4.
2649
2650 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
2651
2652         * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
2653         (strncpy): Cast src to uintptr_t before checking alignment with "&".
2654
2655 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2656
2657         * libc/argz/argz_count.c: Include stddef.h to get size_t.
2658         * libc/argz/argz_extract.c: Ditto.
2659         * libc/argz/argz_stringify.c: Ditto.
2660         * libc/search/hash.h: Ditto.
2661         * libc/sys/linux/include/sched.h: Ditto.
2662         * libc/sys/linux/sys/types.h: Ditto.
2663
2664 2008-07-02  Jeff Johnston  <jjohnstn@redhat.com>
2665
2666         * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
2667         source data is taken care of before loop unrolling.
2668
2669 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2670
2671         Fix strict-aliasing issues with _strtod_r and Storeinc.
2672         * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
2673         rv, rv0 from double to type U.  Use accessor macros dval, dword0
2674         and dword1 for all accesses except for the ULtod call, where rv.i
2675         replaces the pointer cast.
2676         * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
2677         of access macros.  Tweak comment.
2678         Remove #ifdef'd YES_ALIAS code.
2679         (dword0, dword1, dval): Define in terms of uncast union member
2680         access.  Ditto for _DOUBLE_IS_32BITS variants.
2681         (Storeinc): Replace aliasing-flawed microoptimized definition with
2682         alternative suggested in comment.  Remove now stale comment.
2683
2684 2008-06-21  Corinna Vinschen  <corinna@vinschen.de>
2685
2686         * libc/include/machine/setjmp.h (_longjmp): Define as function on
2687         Cygwin.
2688         (_setjmp): Ditto.
2689
2690 2008-06-18  Eric Blake  <ebb9@byu.net>
2691
2692         Per Posix, strsignal returns non-const char*.
2693         * libc/include/string.h (strsignal): Fix return type.
2694
2695 2008-06-17  Ken Werner  <ken.werner@de.ibm.com>
2696
2697         * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
2698         support.
2699
2700 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2701
2702         * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
2703         * libc/machine/spu/sys/sched.h: Likewise.
2704         * libc/machine/spu/sys/syscall.h: Likewise.
2705
2706 2008-06-16  Ken Werner  <ken.werner@de.ibm.com>
2707
2708         * libc/machine/spu/mk_syscalls: Provide .type and .size directives
2709         in generated assembler files.
2710         * libc/machine/spu/fprintf.S: Regenerate.
2711         * libc/machine/spu/fscanf.S: Regenerate.
2712         * libc/machine/spu/printf.S: Regenerate.
2713         * libc/machine/spu/scanf.S: Regenerate.
2714         * libc/machine/spu/snprintf.S: Regenerate.
2715         * libc/machine/spu/sprintf.S: Regenerate.
2716         * libc/machine/spu/sscanf.S: Regenerate.
2717         * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
2718         and .size directives.
2719         * libc/machine/spu/setjmp.S (setjmp): Likewise.
2720         (longjmp): Likewise.
2721
2722 2008-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2723
2724         * libc/include/machine/_default_types.h: Fix GNUC check to
2725         handle 4.0 and greater.
2726
2727 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2728
2729         * libc/machine/spu/Makefile.am: Add new files.
2730         * libc/machine/spu/Makefile.in: Likewise.
2731         * libc/machine/spu/include/spu_timer.h: New file to add timer support
2732         using interrupts.
2733         * libc/machine/spu/spu_clock_stop.c: Likewise.
2734         * libc/machine/spu/spu_clock_svcs.c: Likewise.
2735         * libc/machine/spu/spu_timer_flih.S: Likewise.
2736         * libc/machine/spu/spu_timer_free.c: Likewise.
2737         * libc/machine/spu/spu_timer_internal.h: Likewise.
2738         * libc/machine/spu/spu_timer_slih.c: Likewise.
2739         * libc/machine/spu/spu_timer_slih_reg.c: Likewise.
2740         * libc/machine/spu/spu_timer_stop.c: Likewise.
2741         * libc/machine/spu/spu_timer_svcs.c: Likewise.
2742
2743 2008-06-09  Ken Werner  <ken.werner@de.ibm.com>
2744
2745         * libc/machine/spu/strcat.c: Return value fixed.
2746         * libc/machine/spu/strncat.c: Likewise.
2747
2748 2008-05-28  Eric Blake  <ebb9@byu.net>
2749
2750         Fix bug in previous patch.
2751         * libc/machine/i386/memset.S (memset): Mask second arg correctly.
2752
2753 2008-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2754
2755         * libc/string/memset.c: Fix documented prototype to remove
2756         erroneous const attribute on first parameter.
2757
2758 2008-05-26  Eric Blake  <ebb9@byu.net>
2759
2760         Optimize the generic and x86 memchr.
2761         * libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
2762         Pre-align pointer so unaligned searches aren't penalized.
2763         * libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
2764         operations are faster than repnz byte searches.
2765
2766 2008-05-26  Eric Blake  <ebb9@byu.net>
2767
2768         Optimize the generic and x86 memset.
2769         * libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
2770         Pre-align pointer so unaligned stores aren't penalized.
2771         * libc/machine/i386/memset.S (memset) [!__OPTIMIZE_SIZE__]:
2772         Pre-align pointer so unaligned stores aren't penalized.  Prefer
2773         8-byte over 4-byte alignment.  Reduce register pressure.
2774
2775 2008-05-26  Eric Blake  <ebb9@byu.net>
2776
2777         Optimize the generic and x86 strlen.
2778         * libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
2779         data so unaligned searches aren't penalized.
2780         * libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
2781         Word operations are faster than repnz byte searches.
2782
2783 2008-05-23  Corinna Vinschen  <corinna@vinschen.de>
2784
2785         * libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2786
2787 2008-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2788
2789         * libc/include/sys/reent.h: Add _h_errno field.
2790         * libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
2791         now used in net directory.
2792         * libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
2793         * libc/sys/linux/include/hesiod.h: Add needed macros for new code
2794         in net directory.
2795         * libc/sys/linux/include/netdb.h: Ditto.
2796         * libc/sys/linux/include/resolv.h: Ditto.
2797         * libc/sys/linux/include/stdint.h: Ditto.
2798         * libc/sys/linux/include/arpa/nameser.h: Ditto.
2799         * libc/sys/linux/include/net/ethernet.h: Ditto.
2800         * libc/sys/linux/include/net/if_ppp.h: Ditto.
2801         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
2802         * libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
2803         * libc/sys/linux/machine/i386/include/endian.h: Protect macros with
2804         flags to avoid duplicate definition.
2805         * libc/sys/linux/machine/i386/include/param.h: Ditto.
2806         * libc/sys/linux/net/Makefile.am: Modified to account for removed and
2807         added files.
2808         * libc/sys/linux/net/Makefile.in: Regenerated.
2809         * libc/sys/linux/net/base64.c: Replaced with glibc version of code.
2810         * libc/sys/linux/net/getaddrinfo.c: Ditto.
2811         * libc/sys/linux/net/getnameinfo.c: Ditto.
2812         * libc/sys/linux/net/getproto.c: Ditto.
2813         * libc/sys/linux/net/getservent.c: Ditto.
2814         * libc/sys/linux/net/inet_netof.c: Ditto.
2815         * libc/sys/linux/net/inet_lnaof.c: Ditto.
2816         * libc/sys/linux/net/ns_name.c: Ditto.
2817         * libc/sys/linux/net/ns_netint.c: Ditto.
2818         * libc/sys/linux/net/inet_ntoa.c: Ditto.
2819         * libc/sys/linux/net/ns_parse.c: Ditto.
2820         * libc/sys/linux/net/ns_print.c: Ditto.
2821         * libc/sys/linux/net/ns_ttl.c: Ditto.
2822         * libc/sys/linux/net/nsap_addr.c: Ditto.
2823         * libc/sys/linux/net/rcmd.c: Ditto.
2824         * libc/sys/linux/net/res_comp.c: Ditto.
2825         * libc/sys/linux/net/res_data.c: Ditto.
2826         * libc/sys/linux/net/res_debug.c: Ditto.
2827         * libc/sys/linux/net/res_init.c: Ditto.
2828         * libc/sys/linux/net/res_mkquery.c: Ditto.
2829         * libc/sys/linux/net/res_query.c: Ditto.
2830         * libc/sys/linux/net/res_send.c: Ditto.
2831         * libc/sys/linux/net/send.c: Ditto.
2832         * libc/sys/linux/stdlib/collate.c: Ditto.
2833         * libc/sys/linux/sys/ioctl.h: Ditto.
2834         * libc/sys/linux/sys/socket.h: Ditto.
2835         * libc/sys/linux/sys/unistd.h: Ditto.
2836         * libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
2837         used or because licensing includes advertising clause that cannot be
2838         ignored.
2839         * libc/sys/linux/iconv/strtab.c: Ditto.
2840         * libc/sys/linux/include/libc_private.h: Ditto.
2841         * libc/sys/linux/include/nsswitch.h: Ditto.
2842         * libc/sys/linux/include/net/if_atm.h: Ditto.
2843         * libc/sys/linux/include/net/if_media.h: Ditto.
2844         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
2845         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
2846         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
2847         * libc/sys/linux/intl/locale.alias: Ditto.
2848         * libc/sys/linux/net/addr2ascii.3: Ditto.
2849         * libc/sys/linux/net/bindresvport.c: Ditto.
2850         * libc/sys/linux/net/byteorder.3: Ditto.
2851         * libc/sys/linux/net/res_config.h: Ditto.
2852         * libc/sys/linux/net/ether_addr.c: Ditto.
2853         * libc/sys/linux/net/ethers.3: Ditto.
2854         * libc/sys/linux/net/getaddrinfo.3: Ditto.
2855         * libc/sys/linux/net/gethostbydns.c: Ditto.
2856         * libc/sys/linux/net/gethostbyht.c: Ditto.
2857         * libc/sys/linux/net/gethostbyname.3: Ditto.
2858         * libc/sys/linux/net/gethostbynis.c: Ditto.
2859         * libc/sys/linux/net/gethostnamadr.c: Ditto.
2860         * libc/sys/linux/net/getifaddrs.3: Ditto.
2861         * libc/sys/linux/net/getifaddrs.c: Ditto.
2862         * libc/sys/linux/net/getipnodebyname.3: Ditto.
2863         * libc/sys/linux/net/getnameinfo.3: Ditto.
2864         * libc/sys/linux/net/getnetbydns.c: Ditto.
2865         * libc/sys/linux/net/getnetbyht.c: Ditto.
2866         * libc/sys/linux/net/getnetbynis.c: Ditto.
2867         * libc/sys/linux/net/getnetent.3: Ditto.
2868         * libc/sys/linux/net/getnetnamadr.c: Ditto.
2869         * libc/sys/linux/net/getprotoent.3: Ditto.
2870         * libc/sys/linux/net/getprotoent.c: Ditto.
2871         * libc/sys/linux/net/getprotoname.c: Ditto.
2872         * libc/sys/linux/net/getservbyname.c: Ditto.
2873         * libc/sys/linux/net/getservbyport.c: Ditto.
2874         * libc/sys/linux/net/getservent.3: Ditto.
2875         * libc/sys/linux/net/herror.c: Ditto.
2876         * libc/sys/linux/net/hesiod.3: Ditto.
2877         * libc/sys/linux/net/hesiod.c: Ditto.
2878         * libc/sys/linux/net/if_indextoname.3: Ditto.
2879         * libc/sys/linux/net/inet.3: Ditto.
2880         * libc/sys/linux/net/inet6_option_space.3: Ditto.
2881         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
2882         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
2883         * libc/sys/linux/net/inet_net.3: Ditto.
2884         * libc/sys/linux/net/inet_network.c: Ditto.
2885         * libc/sys/linux/net/innetgr-stub.c: Ditto.
2886         * libc/sys/linux/net/ip6opt.c: Ditto.
2887         * libc/sys/linux/net/iso_addr.3: Ditto.
2888         * libc/sys/linux/net/iso_addr.c: Ditto.
2889         * libc/sys/linux/net/linkaddr.3: Ditto.
2890         * libc/sys/linux/net/linkaddr.c: Ditto.
2891         * libc/sys/linux/net/map_v4v6.c: Ditto.
2892         * libc/sys/linux/net/name6.c: Ditto.
2893         * libc/sys/linux/net/namespace.h: Ditto.
2894         * libc/sys/linux/net/ns.3: Ditto.
2895         * libc/sys/linux/net/ns_addr.c: Ditto.
2896         * libc/sys/linux/net/ns_ntoa.c: Ditto.
2897         * libc/sys/linux/net/nsdispatch.3: Ditto.
2898         * libc/sys/linux/net/nsdispatch.c: Ditto.
2899         * libc/sys/linux/net/nslexer.c: Ditto.
2900         * libc/sys/linux/net/nslexer.l: Ditto.
2901         * libc/sys/linux/net/nsparser.c: Ditto.
2902         * libc/sys/linux/net/nsparser.h: Ditto.
2903         * libc/sys/linux/net/nsparser.y: Ditto.
2904         * libc/sys/linux/net/rcmd.3: Ditto.
2905         * libc/sys/linux/net/rcmdsh.3: Ditto.
2906         * libc/sys/linux/net/res_mkupdate.c: Ditto.
2907         * libc/sys/linux/net/res_update.c: Ditto.
2908         * libc/sys/linux/net/resolver.3: Ditto.
2909         * libc/sys/linux/net/rthdr.c: Ditto.
2910         * libc/sys/linux/net/vars.c: Ditto.
2911         * libc/sys/linux/shlib-compat.h: New file.
2912         * libc/sys/linux/machine/i386/atomic.h: Ditto.
2913         * libc/sys/linux/net/XXX-lookup.c: Ditto.
2914         * libc/sys/linux/net/alias-lookup.c: Ditto.
2915         * libc/sys/linux/net/res_libc.c: Ditto.
2916         * libc/sys/linux/net/aliases.h: Ditto.
2917         * libc/sys/linux/net/check_pf.c: Ditto.
2918         * libc/sys/linux/net/databases.def: Ditto.
2919         * libc/sys/linux/net/digits_dots.c: Ditto.
2920         * libc/sys/linux/net/ether_aton.c: Ditto.
2921         * libc/sys/linux/net/ether_aton_r.c: Ditto.
2922         * libc/sys/linux/net/ether_hton.c: Ditto.
2923         * libc/sys/linux/net/ether_line.c: Ditto.
2924         * libc/sys/linux/net/ether_ntoa.c: Ditto.
2925         * libc/sys/linux/net/ether_ntoa_r.c: Ditto.
2926         * libc/sys/linux/net/ether_ntoh.c: Ditto.
2927         * libc/sys/linux/net/etherent.h: Ditto.
2928         * libc/sys/linux/net/ethers-lookup.c: Ditto.
2929         * libc/sys/linux/net/function.def: Ditto.
2930         * libc/sys/linux/net/getXXbyYY.c: Ditto.
2931         * libc/sys/linux/net/getXXbyYY_r.c: Ditto.
2932         * libc/sys/linux/net/getXXent.c: Ditto.
2933         * libc/sys/linux/net/getXXent_r.c: Ditto.
2934         * libc/sys/linux/net/getaliasent.c: Ditto.
2935         * libc/sys/linux/net/getaliasent_r.c: Ditto.
2936         * libc/sys/linux/net/getaliasname.c: Ditto.
2937         * libc/sys/linux/net/getaliasname_r.c: Ditto.
2938         * libc/sys/linux/net/gethstbyad.c: Ditto.
2939         * libc/sys/linux/net/gethstbyad_r.c: Ditto.
2940         * libc/sys/linux/net/gethstbynm.c: Ditto.
2941         * libc/sys/linux/net/gethstbynm2.c: Ditto.
2942         * libc/sys/linux/net/gethstbynm2_r.c: Ditto.
2943         * libc/sys/linux/net/gethstbynm_r.c: Ditto.
2944         * libc/sys/linux/net/gethstent.c: Ditto.
2945         * libc/sys/linux/net/gethstent_r.c: Ditto.
2946         * libc/sys/linux/net/getnetbyad.c: Ditto.
2947         * libc/sys/linux/net/getnetbyad_r.c: Ditto.
2948         * libc/sys/linux/net/getnetbynm.c: Ditto.
2949         * libc/sys/linux/net/getnetbynm_r.c: Ditto.
2950         * libc/sys/linux/net/getnetent.c: Ditto.
2951         * libc/sys/linux/net/getnetent_r.c: Ditto.
2952         * libc/sys/linux/net/getnetgrent.c: Ditto.
2953         * libc/sys/linux/net/getnetgrent_r.c: Ditto.
2954         * libc/sys/linux/net/getnssent.c: Ditto.
2955         * libc/sys/linux/net/getnssent_r.c: Ditto.
2956         * libc/sys/linux/net/getproto_r.c: Ditto.
2957         * libc/sys/linux/net/getprtent.c: Ditto.
2958         * libc/sys/linux/net/getprtent_r.c: Ditto.
2959         * libc/sys/linux/net/getprtname.c: Ditto.
2960         * libc/sys/linux/net/getprtname_r.c: Ditto.
2961         * libc/sys/linux/net/getrpcbyname.c: Ditto.
2962         * libc/sys/linux/net/getrpcbyname_r.c: Ditto.
2963         * libc/sys/linux/net/getrpcbynumber.c: Ditto.
2964         * libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
2965         * libc/sys/linux/net/getrpcent.c: Ditto.
2966         * libc/sys/linux/net/getrpcent_r.c: Ditto.
2967         * libc/sys/linux/net/getservent_r.c: Ditto.
2968         * libc/sys/linux/net/getsrvbynm.c: Ditto.
2969         * libc/sys/linux/net/getsrvbynm_r.c: Ditto.
2970         * libc/sys/linux/net/getsrvbypt.c: Ditto.
2971         * libc/sys/linux/net/getsrvbypt_r.c: Ditto.
2972         * libc/sys/linux/net/grp-lookup.c: Ditto.
2973         * libc/sys/linux/net/herrno.c: Ditto.
2974         * libc/sys/linux/net/hosts-lookup.c: Ditto.
2975         * libc/sys/linux/net/ifaddrs.h: Ditto.
2976         * libc/sys/linux/net/ifreq.c: Ditto.
2977         * libc/sys/linux/net/ifreq.h: Ditto.
2978         * libc/sys/linux/net/in6_addr.c: Ditto.
2979         * libc/sys/linux/net/inet6_option.c: Ditto.
2980         * libc/sys/linux/net/inet_mkadr.c: Ditto.
2981         * libc/sys/linux/net/inet_net.c: Ditto.
2982         * libc/sys/linux/net/key-lookup.c: Ditto.
2983         * libc/sys/linux/net/local.h: Ditto.
2984         * libc/sys/linux/net/netgroup.h: Ditto.
2985         * libc/sys/linux/net/netgrp-lookup.c: Ditto.
2986         * libc/sys/linux/net/network-lookup.c: Ditto.
2987         * libc/sys/linux/net/not-cancel.h: Ditto.
2988         * libc/sys/linux/net/ns_samedomain.c: Ditto.
2989         * libc/sys/linux/net/nscd-types.h: Ditto.
2990         * libc/sys/linux/net/nss.h: Ditto.
2991         * libc/sys/linux/net/nsswitch.c: Ditto.
2992         * libc/sys/linux/net/nsswitch.h: Ditto.
2993         * libc/sys/linux/net/opensock.c: Ditto.
2994         * libc/sys/linux/net/proto-lookup.c: Ditto.
2995         * libc/sys/linux/net/pwd-lookup.c: Ditto.
2996         * libc/sys/linux/net/res_debug.h: Ditto.
2997         * libc/sys/linux/net/res_hconf.c: Ditto.
2998         * libc/sys/linux/net/res_hconf.h: Ditto.
2999         * libc/sys/linux/net/rexec.c: Ditto.
3000         * libc/sys/linux/net/rpc-lookup.c: Ditto.
3001         * libc/sys/linux/net/ruserpass.c: Ditto.
3002         * libc/sys/linux/net/service-lookup.c: Ditto.
3003         * libc/sys/linux/net/spwd-lookup.c: Ditto.
3004         * libc/sys/linux/net/nscd/nscd-client.h: Ditto.
3005         * libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
3006
3007 2008-05-21  Eric Blake  <ebb9@byu.net>
3008
3009         Optimize the generic strchr.
3010         * libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
3011         data so unaligned searches aren't penalized.  Special-case
3012         searching for 0.
3013
3014         Optimize strchr for x86.
3015         * libc/machine/i386/strchr.S (strchr) [!__OPTIMIZE_SIZE__]:
3016         Pre-align data so unaligned searches aren't penalized.
3017         Special-case searching for 0.
3018
3019 2008-05-20  Nick Clifton  <nickc@redhat.com>
3020
3021         * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
3022
3023 2008-05-20  DJ Delorie  <dj@redhat.com>
3024
3025         * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
3026
3027 2008-05-14  Jeff Johnston  <jjohnstn@redhat.com>
3028
3029         * libc/include/sys/reent.h: Change _REENT_INIT... macros to
3030         access macro parameter with parentheses around it.
3031
3032 2008-04-26  Mark Mitchell  <mark@codesourcery.com>
3033
3034         * libc/include/stdint.h (SIZE_MIN): Remove.
3035         (SIZE_MAX): Define.
3036         * testsuite/newlib.stdlib/stdlib.exp: New.
3037         * testsuite/newlib.stdlib/size_max.c: Likewise.
3038
3039 2008-04-29  Eric Blake  <ebb9@byu.net>
3040
3041         Fix 2008-04-14 regression in asprintf(ptr,"").
3042         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
3043         baggage.
3044         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
3045         * libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
3046         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
3047         * libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
3048         * libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
3049         an initial buffer for asprintf.
3050
3051 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3052
3053         * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
3054         (fstatat): Fix type of third parameter.
3055
3056 2008-04-25  Nick Clifton  <nickc@redhat.com>
3057
3058         * libc/machine/arm/setjmp.S: Fix thumb2 support.
3059
3060 2008-04-24  Nick Clifton  <nickc@redhat.com>
3061
3062         * libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
3063         should be _DOUBLE_IS_32BITS.
3064
3065 2008-04-24  Corinna Vinschen  <corinna@vinschen.de>
3066
3067         * libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
3068         (UTIME_OMIT): Ditto.
3069         (utimensat): Declare for Cygwin.
3070         (futimens): Ditto.
3071
3072 2008-04-23  Ken Werner  <ken.werner@de.ibm.com>
3073
3074         * libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
3075         * libc/include/math.h: Likewise.
3076
3077 2008-04-23  Corinna Vinschen  <corinna@vinschen.de>
3078
3079         * libc/include/stdio.h (renameat): Declare for Cygwin.
3080         (symlinkat): Ditto.
3081         * libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
3082         (faccessat): Declare for Cygwin.
3083         (fchownat): Ditto.
3084         (linkat): Ditto.
3085         (readlinkat): Ditto.
3086         * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
3087         (AT_EACCESS): Ditto.
3088         (AT_SYMLINK_NOFOLLOW): Ditto.
3089         (AT_SYMLINK_FOLLOW): Ditto.
3090         (AT_REMOVEDIR): Ditto.
3091         (futimesat): Declare for Cygwin.
3092         (openat): Ditto.
3093         (unlinkat): Ditto.
3094         * libc/include/sys/stat.h (fchmodat): Ditto.
3095         (fstatat): Ditto.
3096         (mkdirat): Ditto.
3097         (mkfifoat): Ditto.
3098         (mknodat): Ditto.
3099
3100 2008-04-22  Nick Clifton  <nickc@redhat.com>
3101
3102         * libc/machine/arm/setjmp.S: Add support for thumb2 multiple
3103         register load/store instructions.
3104
3105 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3106
3107         * libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
3108
3109 2008-04-16  Patrick Mansfield  <patmans@us.ibm.com>
3110
3111         * libc/machine/spu/impure.c: Add missing underscore to impure_data.
3112
3113 2008-04-14  Patrick Mansfield  <patmans@us.ibm.com>
3114
3115         * libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
3116         * libc/machine/spu/Makefile.am: Add new file impure.c.
3117         * libc/machine/spu/Makefile.in: Regenerate.
3118         * libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
3119
3120 2008-04-14  Jeff Johnston  <jjohnstn@redhat.com>
3121
3122         * libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
3123         -DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
3124         to build special versions for sprintf/sscanf family functions.
3125         * libc/stdio/Makefile.in: Regenerated.
3126         * libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
3127         Redefine to be _svfiprintf_r which is optimized to work with siprintf
3128         family of functions (i.e. no I/O) and does not support floating-point.
3129         [STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
3130         _svfprintf_r which is optimized to work with sprintf family of
3131         functions and not use I/O.
3132         [STRING_ONLY](__sprint_r): New string only version of static function.
3133         designed to work with sprintf family of functions.
3134         * libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
3135         Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
3136         family of functions (i.e. no I/O) and no float-point support.
3137         [STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
3138         __ssvfscanf_r which is optimized to work with sscanf family of
3139         functions and does not require I/O functions.
3140         * libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
3141         * libc/stdio/snprintf.c: Ditto.
3142         * libc/stdio/sprintf.c: Ditto.
3143         * libc/stdio/vasnprintf.c: Ditto.
3144         * libc/stdio/vasprintf.c: Ditto.
3145         * libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
3146         * libc/stdio/sniprintf.c: Ditto.
3147         * libc/stdio/vasiprintf.c: Ditto.
3148         * libc/stdio/vsiprintf.c: Ditto.
3149         * libc/stdio/vsniprintf.c: Ditto.
3150         * libc/stdio/vsprintf.c: Ditto.
3151         * libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
3152         _ssvfscanf_r, and _ssvfiscanf_r.
3153         * libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
3154         * libc/stdio/vsscanf.c: Ditto.
3155         * libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
3156         * libc/stdio/vsiscanf.c: Ditto.
3157
3158 2008-04-04  DJ Delorie  <dj@redhat.com>
3159
3160         * libm/machine/spu/configure: Regenerate with autoconf 2.61.
3161         * libc/sys/configure: Regenerate with autoconf 2.61.
3162         * libc/machine/configure: Regenerate with autoconf 2.61.
3163
3164 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3165
3166         * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
3167         * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
3168         * libc/machine/spu/Makefile.am: Add memcmp.c.
3169         * libc/machine/spu/Makefile.in: Rebuild.
3170         * libc/machine/spu/strncmp.c: Use _strncmp_internal.
3171
3172 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3173
3174         * configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
3175           -DMISSING_SYSCALL_NAMES.
3176
3177 2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
3178
3179         * libc/machine/spu/Makefile.am: Add assert.c.
3180         * libc/machine/spu/Makefile.in: Regenerate.
3181         * libc/machine/spu/assert.c: New file.
3182
3183 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
3184
3185         * libc/include/reent.h: Define _func_r functions in this file to
3186         func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
3187         defined.
3188
3189 2008-03-27  Corinna Vinschen  <corinna@vinschen.de>
3190
3191         * libc/include/sys/unistd.h: Declare lockf(2) and define lockf
3192         constants when building for Cygwin.
3193
3194 2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>
3195
3196         * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
3197         stdin gets resolved properly before refilling.
3198
3199 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3200
3201         * libc/include/getopt.h: Hide newlib extensions under
3202         the __need_getopt_newlib flag.
3203         * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
3204         getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
3205         with their own getopt implementation.
3206         * configure.host: Specify HAVE_GETOPT for x86-linux.
3207
3208 2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>
3209
3210         * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
3211         this macro completely instead of referring to CHECK_STD_INIT which
3212         is only found in libc/stdio/local.h.
3213         * libc/stdio/dprintf.c: Add include of local.h.
3214         * libc/stdio/vdprintf.c: Ditto.
3215         * libc/stdio/vdiprintf.c: Ditto.
3216
3217 2008-03-04  Eric Blake  <ebb9@byu.net>
3218
3219         Fix strtod("nan()", ptr).
3220         * libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
3221         n-char-sequence is omitted, still parse the ().
3222
3223 2008-03-03  Eric Blake  <ebb9@byu.net>
3224
3225         Fix ftell bug after ungetc.
3226         * libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
3227         ftell.
3228         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
3229         * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
3230         repositioning underlying fd offset.
3231
3232 2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>
3233
3234         * libc/include/getopt.h (no_argument): Added for glibc compatibility.
3235         (required_argument, optional_argument): Ditto.
3236
3237 2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>
3238
3239         * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
3240         data area so as to support reentrant calls.  Change all callers
3241         to fill in data area with global values and restore any changes
3242         to the global values after call.
3243         (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
3244         to support reentrancy that add a data area argument.
3245         * libc/include/getopt.h: Add new _r routines and provide macros
3246         so they can be called with using double-underscores.
3247
3248 2008-02-21  Eric Blake  <ebb9@byu.net>
3249
3250         Fix strtod("-0x", NULL).
3251         * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
3252         fails.
3253
3254 2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>
3255
3256         * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare
3257         for user specifying --disable-newlib-io-long-long on configure.
3258         Call _fflush_r instead of fflush.  For _mbtowc_r, pass the
3259         reentrant pointer passed in rather than _REENT.
3260
3261 2008-02-12  Peter Rosin  <peda@lysator.liu.se>
3262
3263         * libc/stdlib/getopt.c (getopt_internal): Handle optional
3264         arguments better for long options and short options not
3265         appearing as the first option in a sequence.
3266
3267 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3268
3269         * libc/machine/spu/straddr.h: New file, supplies _straddr.
3270         * libc/machine/spu/strcat.c: Use _straddr and _strcpy.
3271         * libc/machine/spu/strcpy.c: Use _strcpy.
3272         * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU
3273         str[n]cpy and str[n]cat.
3274         * libc/machine/spu/strncat.c: Use _straddr and _strcpy.
3275         * libc/machine/spu/strncpy.c: Use _strcpy.
3276
3277 2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>
3278
3279         * libc/machine/spu/strlen.c: Remove the len variable and unneeded
3280         calculation of its value.
3281
3282 2008-01-25  Hans-Peter Nilsson  <hp@bitrange.com>
3283
3284         * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
3285         Make ISO C.
3286
3287 2008-01-21  DJ Delorie  <dj@redhat.com>
3288
3289         * libc/sys/sh/syscalls.c (_isatty): New.
3290
3291 2008-01-21  Neal H. Walfield  <neal@gnu.org>
3292
3293         * Makefile.am (crt1.o): Use correct source.
3294         * Makefile.in: Regenerated.
3295
3296 2008-01-15  Eric Blake  <ebb9@byu.net>
3297
3298         * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
3299         * libc/string/Makefile: Regenerate.
3300
3301 2008-01-15  Corinna Vinschen  <corinna@vinschen.de>
3302
3303         * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
3304         pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
3305         (sigsetjmp): Use __SIGMASK_FUNC.
3306         (siglongjmp): Ditto.
3307         (_setjmp): Define as macro.
3308         (_longjmp): Ditto.
3309
3310 2008-01-11  Eric Blake  <ebb9@byu.net>
3311
3312         Make strstr and strcasestr O(n), not O(n^2); add memmem.
3313         * libc/string/str-two-way.h: New file.
3314         * libc/string/memmem.c (memmem): New file.
3315         * libc/include/string.h (memmem): Declare for all platforms.
3316         * libc/string/strstr.c (strstr): Provide O(n) implementation when
3317         not optimizing for space.
3318         * libc/string/strcasestr.c (strcasestr): Likewise.
3319         * libc/string/Makefile.am (ELIX_SOURCES): Rename to...
3320         (ELIX_2_SOURCES): ...this.
3321         (ELIX_4_SOURCES): New category, for memmem.
3322         (lib_a_SOURCES, libstring_la_SOURCES): Build new file.
3323         (CHEWOUT_FILES): Build documentation for memmem.
3324         * libc/string/strings.tex: Include new docs.
3325
3326 2008-01-08  Jeff Johnston  <jjohnstn@redhat.com>
3327
3328         * libc/machine/m68k/memcpy.S: Remove % from register references
3329         as this is already handled by m68kasm.h.
3330         * libc/machine/m68k/memset.S: Ditto.
3331
3332 2008-01-07  Jeff Johnston  <jjohnstn@redhat.com>
3333
3334         * libc/machine/m68k/m68kasm.h: New file.
3335         * libc/machine/m68k/setjmp.S: Remove common definitions and
3336         place in m68kasm.h.  Include "m68kasm.h".
3337         * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
3338         SYM() macro when referencing function name.
3339         * libc/machine/m68k/memset.S: Ditto.
3340
3341 2008-01-03  Jeff Johnston  <jjohnstn@redhat.com>
3342
3343         Make isatty syscall handling consistent with other newlib syscalls.
3344
3345         * libc/include/_syslist.h: Add _isatty.
3346         * libc/include/reent.h: Add _isatty_r.
3347         * libc/include/sys/unistd.h: Add _isatty.
3348         * libc/posix/Makefile.am: Add new _isatty.c file.
3349         * libc/posix/Makefile.in: Regenerated.
3350         * libc/posix/_isatty.c: New file.
3351         * libc/posix/isatty.c: Changed to call _isatty().
3352         * libc/reent/Makefile.am: Add new isattyr.c file.
3353         * libc/reent/Makefile.in: Regenerated.
3354         * libc/reent/isattyr.c: New file.
3355         * libc/stdio/freopen.c: Changed to call _isatty_r().
3356         * libc/stdio/makebuf.c: Ditto.
3357         * libc/sys/a29khif/_isatty.S: Change isatty to _isatty.
3358         * libc/sys/arc/isatty.c: Ditto.
3359         * libc/sys/arm/syscalls.c: Ditto.
3360         * libc/sys/d10v/syscalls.c: Ditto.
3361         * libc/sys/h8300hms/syscalls.c: Ditto.
3362         * libc/sys/h8500hms/syscalls.c: Ditto.
3363         * libc/sys/linux/Makefile.am: Add new isatty.c file.
3364         * libc/sys/linux/Makefile.in: Regenerated.
3365         * libc/sys/linux/isatty.c: New file.
3366         * libc/syscalls/Makefile.am: Add new sysisatty.c file.
3367         * libc/syscalls/Makefile.in: Regenerated.
3368         * libc/syscalls/sysisatty.c: New file.
3369
3370 2008-01-02  Jeff Johnston  <jjohnstn@redhat.com>
3371
3372         * libc/syscalls/sysclose.c: Always call reentrant version of the
3373         underlying syscall since one is guaranteed to exist in libc/reent.
3374         * libc/syscalls/sysexecve.c: Ditto.
3375         * libc/syscalls/sysfcntl.c: Ditto.
3376         * libc/syscalls/sysfork.c: Ditto.
3377         * libc/syscalls/sysfstat.c: Ditto.
3378         * libc/syscalls/sysgetpid.c: Ditto.
3379         * libc/syscalls/sysgettod.c: Ditto.
3380         * libc/syscalls/syskill.c: Ditto.
3381         * libc/syscalls/syslink.c: Ditto.
3382         * libc/syscalls/syslseek.c: Ditto.
3383         * libc/syscalls/sysopen.c: Ditto.
3384         * libc/syscalls/sysread.c: Ditto.
3385         * libc/syscalls/syssbrk.c: Ditto.
3386         * libc/syscalls/sysstat.c: Ditto.
3387         * libc/syscalls/systimes.c: Ditto.
3388         * libc/syscalls/sysunlink.c: Ditto.
3389         * libc/syscalls/syswait.c: Ditto.
3390         * libc/syscalls/syswrite.c: Ditto.
3391
3392 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3393
3394         * NEWS: Update with 1.16.0 info.
3395         * README: Ditto.
3396         * acinclude.m4: Change version number to 1.16.0.
3397         * aclocal.m4: Regenerated.
3398         * configure: Ditto.
3399         * doc/aclocal.m4: Ditto.
3400         * doc/configure: Ditto.
3401         * libc/*/aclocal.m4: Ditto.
3402         * libc/*/configure: Ditto.
3403         * libc/libc.texinfo: Ditto.
3404         * libm/*/aclocal.m4: Ditto.
3405         * libm/*/configure: Ditto.
3406         * libm/libm.texinfo: Ditto.
3407         * libc/sys/linux/shared.ld: Add VERS_1.16.
3408
3409 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3410
3411         * libc/string/strcasestr.c: Remove id macro.
3412         * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority
3413         field reference to be __sched_priority.
3414         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
3415         * libc/sys/linux/linuxthreads/manager.c: Ditto.
3416         * libc/sys/linux/stdlib/collate.c: Remove id macro.
3417         * libc/sys/linux/stdlib/collcmp.c: Ditto.
3418         * libc/sys/linux/stdlib/engine.c: Ditto.
3419         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
3420         * libc/sys/linux/stdlib/glob.c: Ditto.
3421         * libc/sys/linux/stdlib/reallocf.c: Ditto.
3422         * libc/sys/linux/stdlib/regcomp.c: Ditto.
3423         * libc/sys/linux/stdlib/regerror.c: Ditto.
3424         * libc/sys/linux/stdlib/regexec.c: Ditto.
3425         * libc/sys/linux/stdlib/regfree.c: Ditto.
3426         * libc/sys/linux/sys/cdefs.h: Replace with latest version.
3427         * libc/sys/linux/include/argp.h: Ditto.
3428         * libc/sys/linux/sys/libc-lock.h: New file.
3429         * libc/sys/linux/sys/stdint.h: Ditto.
3430         * libc/sys/linux/include/sched.h: New file.
3431
3432 2007-12-19  Dave Korn  <dave.korn@artimi.com>
3433             Jeff Johnston  <jjohnstn@redhhat.com>
3434
3435         * libc/include/_ansi.h: Add _LONG_LONG definition.
3436         * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add
3437         prototypes.
3438         * libc/machine/i386/machine/fastmath.h: Add support for new i386
3439         fast math versions of rint, lrint, and llrint family functions.
3440         * libm/machine/i386/Makefile.am: Add new files.
3441         * libm/machine/i386/Makefile.in: Regenerated.
3442         * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c,
3443         libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c,
3444         libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c,
3445         libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c,
3446         libm/machine/i386/f_rintl.c:  New files with fast math implementations.
3447
3448 2007-12-19  Jeff Johnston  <jjohnstn@redhat.com>
3449
3450         * libc/include/sys/features.h: Add checks for C90 compilers using
3451         -ansi.
3452
3453 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3454
3455         * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
3456         * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and
3457         wcpncpy.c.
3458         (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def.
3459         * libc/string/Makefile.in: Regenerate.
3460         * libc/string/wcpcpy.c: New file.
3461         * libc/string/wcpncpy.c: New file.
3462         * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
3463
3464 2007-12-19  Corinna Vinschen  <corinna@vinschen.de>
3465
3466         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
3467         _wcsrtombs_r.
3468
3469 2007-11-19  Nick Clifton  <nickc@redhat.com>
3470
3471         * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2.
3472         * libc/machine/mn10300/Makefile.in: Regenerate.
3473         * libc/machine/mn10300/memchar.S: Remove redundant labels.  Add
3474         .debug_frame section.
3475         * libc/machine/mn10300/memcmp.S: Likewise.
3476         * libc/machine/mn10300/memcpy.S: Likewise.
3477         * libc/machine/mn10300/memset.S: Likewise.
3478         * libc/machine/mn10300/strchr.S: Likewise.
3479         * libc/machine/mn10300/strcmp.S: Likewise.
3480         * libc/machine/mn10300/strcpy.S: Likewise.
3481         * libc/machine/mn10300/strlen.S: Likewise.
3482
3483 2007-11-15  Jeff Johnston  <jjohnstn@redhat.com>
3484
3485         * libc/include/sys/_default_fcntl.h: New header file that
3486         is the default version of sys/fcntl.h.
3487         * libc/include/sys/fcntl.h: Changed to simply include
3488         sys/_default_fcntl.h.
3489         * libc/sys/arm/sys/fcntl.h: New file that includes
3490         sys/_default_fcntl.h and defines O_BINARY.
3491
3492 2007-11-08  Corinna Vinschen  <corinna@vinschen.de>
3493
3494         * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
3495
3496 2007-11-07  Dave Brolley  <brolley@redhat.com>
3497
3498         * libc/machine/configure: Regenerated to pick up mep-elf changes.
3499
3500         * Contribute mep-elf from Red Hat
3501         2006-10-27  DJ Delorie  <dj@redhat.com>
3502
3503         * libc/include/machine/setjmp.h: Add MeP support.
3504
3505         2003-04-17  DJ Delorie  <dj@redhat.com>
3506
3507         * configure.host (mep-*-*): Support "long long" type.
3508
3509         2001-06-06  DJ Delorie  <dj@redhat.com>
3510
3511         * libc/include/machine/ieeefp.h (mep): Support little endian too.
3512
3513         2001-05-14  DJ Delorie  <dj@redhat.com>
3514
3515         * configure.host: Add mep's machine_dir.
3516         * libc/include/setjmp.h: Add mep support.
3517         * libc/machine/mep: New.
3518         * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp.
3519
3520         2001-05-04  DJ Delorie  <dj@redhat.com>
3521
3522         * configure.host: Add mep.
3523         * libc/include/machine/ieeefp.h: Ditto.
3524
3525 2007-10-31  DJ Delorie  <dj@redhat.com>
3526
3527         * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
3528         signal table, just use a default, in case initialization cause
3529         recursion.
3530
3531 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3532
3533         * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
3534         size if output buffer is NULL.
3535
3536 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3537
3538         * libm/mathfp/s_logarithm.c: Fix error introduced by previous
3539         fix when handling negative input values.  Make function
3540         consistent with math directory and glibc version such that
3541         inf and nan values return inf and nan respectively with no
3542         errno setting.
3543         * libm/mathfp/sf_logarithm.c: Ditto.
3544         * libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
3545         * libm/math/wf_log.c: Ditto.
3546         * libm/math/w_log10.c: Ditto.
3547         * libm/math/wf_log10.c: Ditto.
3548
3549 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3550
3551         * libm/mathfp/s_logarithm.c: Fix case where input is 0 to
3552         return -inf.
3553         * libm/mathfp/sf_logarithm.c: Ditto.
3554
3555 2007-10-17  Jeff Johnston  <jjohnstn@redhat.com>
3556
3557         * libc/machine/i386/machine/fastmath.h: New file.
3558
3559 2007-10-13  Eric Blake  <ebb9@byu.net>
3560
3561         * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
3562         Correctly nest else within conditionals.
3563         Reported by Artur Lipowski.
3564
3565 2007-10-09  Nick Clifton  <nickc@redhat.com>
3566
3567         * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with
3568         the STT_COMMON type.
3569
3570 2007-10-09  Ben Elliston  <bje@au.ibm.com>
3571
3572         * libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
3573         before simdmath.h to get a definition for `vector'.
3574         * libm/machine/spu/headers/asind2.h: Likewise.
3575
3576 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3577
3578         * libm/machine/spu/headers/dom_chkd_less_than.h: New file.
3579         * libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
3580         * libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
3581         * libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
3582         * libm/machine/spu/headers/acos.h: Add domain check.
3583         * libm/machine/spu/headers/acosf.h: Ditto.
3584         * libm/machine/spu/headers/acosh.h: Ditto.
3585         * libm/machine/spu/headers/acoshf.h: Ditto.
3586         * libm/machine/spu/headers/asin.h: Ditto.
3587         * libm/machine/spu/headers/asinf.h: Ditto.
3588         * libm/machine/spu/headers/atanh.h: Ditto.
3589         * libm/machine/spu/headers/atanhf.h: Ditto.
3590         * libm/machine/spu/headers/fmod.h: Ditto.
3591         * libm/machine/spu/headers/fmodf.h: Ditto.
3592         * libm/machine/spu/headers/log.h: Ditto.
3593         * libm/machine/spu/headers/log10.h: Ditto.
3594         * libm/machine/spu/headers/log1p.h: Ditto.
3595         * libm/machine/spu/headers/log1pf.h: Ditto.
3596         * libm/machine/spu/headers/log2.h: Ditto.
3597         * libm/machine/spu/headers/log2f.h: Ditto.
3598         * libm/machine/spu/headers/sqrt.h: Ditto.
3599         * libm/machine/spu/headers/sqrtf.h: Ditto.
3600         * libm/machine/spu/headers/tgamma.h: Ditto.
3601         * libm/machine/spu/headers/tgammaf.h: Ditto.
3602
3603 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3604
3605         * libm/machine/spu/Makefile.am: Add new C files.
3606         * libm/machine/spu/Makefile.in: Regenerate.
3607         * libm/machine/spu/headers/acos.h: New file.
3608         * libm/machine/spu/headers/acosd2.h: Ditto.
3609         * libm/machine/spu/headers/acosf.h: Ditto.
3610         * libm/machine/spu/headers/acosf4.h: Ditto.
3611         * libm/machine/spu/headers/acosh.h: Ditto.
3612         * libm/machine/spu/headers/acoshd2.h: Ditto.
3613         * libm/machine/spu/headers/acoshf.h: Ditto.
3614         * libm/machine/spu/headers/acoshf4.h: Ditto.
3615         * libm/machine/spu/headers/asin.h: Ditto.
3616         * libm/machine/spu/headers/asind2.h: Ditto.
3617         * libm/machine/spu/headers/asinf.h: Ditto.
3618         * libm/machine/spu/headers/asinf4.h: Ditto.
3619         * libm/machine/spu/headers/asinh.h: Ditto.
3620         * libm/machine/spu/headers/asinhd2.h: Ditto.
3621         * libm/machine/spu/headers/asinhf.h: Ditto.
3622         * libm/machine/spu/headers/asinhf4.h: Ditto.
3623         * libm/machine/spu/headers/atan.h: Ditto.
3624         * libm/machine/spu/headers/atan2.h: Ditto.
3625         * libm/machine/spu/headers/atan2d2.h: Ditto.
3626         * libm/machine/spu/headers/atan2f.h: Ditto.
3627         * libm/machine/spu/headers/atan2f4.h: Ditto.
3628         * libm/machine/spu/headers/atand2.h: Ditto.
3629         * libm/machine/spu/headers/atanf4.h: Ditto.
3630         * libm/machine/spu/headers/atanh.h: Ditto.
3631         * libm/machine/spu/headers/atanhd2.h: Ditto.
3632         * libm/machine/spu/headers/atanhf.h: Ditto.
3633         * libm/machine/spu/headers/atanhf4.h: Ditto.
3634         * libm/machine/spu/headers/cos.h: Ditto.
3635         * libm/machine/spu/headers/cos_sin.h: Ditto.
3636         * libm/machine/spu/headers/cosd2.h: Ditto.
3637         * libm/machine/spu/headers/cosf.h: Ditto.
3638         * libm/machine/spu/headers/cosf4.h: Ditto.
3639         * libm/machine/spu/headers/cosh.h: Ditto.
3640         * libm/machine/spu/headers/coshd2.h: Ditto.
3641         * libm/machine/spu/headers/coshf.h: Ditto.
3642         * libm/machine/spu/headers/coshf4.h: Ditto.
3643         * libm/machine/spu/headers/divd2.h: Ditto.
3644         * libm/machine/spu/headers/divf4.h: Ditto.
3645         * libm/machine/spu/headers/erf.h: Ditto.
3646         * libm/machine/spu/headers/erf_utils.h: Ditto.
3647         * libm/machine/spu/headers/erfc.h: Ditto.
3648         * libm/machine/spu/headers/erfcd2.h: Ditto.
3649         * libm/machine/spu/headers/erfcf.h: Ditto.
3650         * libm/machine/spu/headers/erfcf4.h: Ditto.
3651         * libm/machine/spu/headers/erfd2.h: Ditto.
3652         * libm/machine/spu/headers/erff.h: Ditto.
3653         * libm/machine/spu/headers/erff4.h: Ditto.
3654         * libm/machine/spu/headers/exp.h: Ditto.
3655         * libm/machine/spu/headers/exp2.h: Ditto.
3656         * libm/machine/spu/headers/exp2d2.h: Ditto.
3657         * libm/machine/spu/headers/exp2f4.h: Ditto.
3658         * libm/machine/spu/headers/expd2.h: Ditto.
3659         * libm/machine/spu/headers/expf4.h: Ditto.
3660         * libm/machine/spu/headers/expm1.h: Ditto.
3661         * libm/machine/spu/headers/expm1d2.h: Ditto.
3662         * libm/machine/spu/headers/expm1f.h: Ditto.
3663         * libm/machine/spu/headers/expm1f4.h: Ditto.
3664         * libm/machine/spu/headers/floord2.h: Ditto.
3665         * libm/machine/spu/headers/floorf4.h: Ditto.
3666         * libm/machine/spu/headers/hypot.h: Ditto.
3667         * libm/machine/spu/headers/hypotd2.h: Ditto.
3668         * libm/machine/spu/headers/hypotf.h: Ditto.
3669         * libm/machine/spu/headers/hypotf4.h: Ditto.
3670         * libm/machine/spu/headers/isnan.h: Ditto.
3671         * libm/machine/spu/headers/isnand2.h: Ditto.
3672         * libm/machine/spu/headers/isnanf.h: Ditto.
3673         * libm/machine/spu/headers/isnanf4.h: Ditto.
3674         * libm/machine/spu/headers/ldexpd2.h: Ditto.
3675         * libm/machine/spu/headers/ldexpf4.h: Ditto.
3676         * libm/machine/spu/headers/lgamma.h: Ditto.
3677         * libm/machine/spu/headers/lgammad2.h: Ditto.
3678         * libm/machine/spu/headers/lgammaf.h: Ditto.
3679         * libm/machine/spu/headers/lgammaf4.h: Ditto.
3680         * libm/machine/spu/headers/log.h: Ditto.
3681         * libm/machine/spu/headers/log10.h: Ditto.
3682         * libm/machine/spu/headers/log10d2.h: Ditto.
3683         * libm/machine/spu/headers/log1p.h: Ditto.
3684         * libm/machine/spu/headers/log1pd2.h: Ditto.
3685         * libm/machine/spu/headers/log1pf.h: Ditto.
3686         * libm/machine/spu/headers/log1pf4.h: Ditto.
3687         * libm/machine/spu/headers/log2.h: Ditto.
3688         * libm/machine/spu/headers/log2d2.h: Ditto.
3689         * libm/machine/spu/headers/log2f4.h: Ditto.
3690         * libm/machine/spu/headers/logbf.h: Ditto.
3691         * libm/machine/spu/headers/logbf4.h: Ditto.
3692         * libm/machine/spu/headers/logd2.h: Ditto.
3693         * libm/machine/spu/headers/logf4.h: Ditto.
3694         * libm/machine/spu/headers/nearbyintf.h: Ditto.
3695         * libm/machine/spu/headers/nearbyintf4.h: Ditto.
3696         * libm/machine/spu/headers/nextafter.h: Ditto.
3697         * libm/machine/spu/headers/nextafterd2.h: Ditto.
3698         * libm/machine/spu/headers/nextafterf.h: Ditto.
3699         * libm/machine/spu/headers/nextafterf4.h: Ditto.
3700         * libm/machine/spu/headers/pow.h: Ditto.
3701         * libm/machine/spu/headers/powd2.h: Ditto.
3702         * libm/machine/spu/headers/powf.h: Ditto.
3703         * libm/machine/spu/headers/powf4.h: Ditto.
3704         * libm/machine/spu/headers/recipd2.h: Ditto.
3705         * libm/machine/spu/headers/recipf4.h: Ditto.
3706         * libm/machine/spu/headers/rintf.h: Ditto.
3707         * libm/machine/spu/headers/rintf4.h: Ditto.
3708         * libm/machine/spu/headers/scalbnf4.h: Ditto.
3709         * libm/machine/spu/headers/signbit.h: Ditto.
3710         * libm/machine/spu/headers/signbitd2.h: Ditto.
3711         * libm/machine/spu/headers/simdmath.h: Ditto.
3712         * libm/machine/spu/headers/sin.h: Ditto.
3713         * libm/machine/spu/headers/sincos.h: Ditto.
3714         * libm/machine/spu/headers/sincosd2.h: Ditto.
3715         * libm/machine/spu/headers/sincosf.h: Ditto.
3716         * libm/machine/spu/headers/sincosf4.h: Ditto.
3717         * libm/machine/spu/headers/sind2.h: Ditto.
3718         * libm/machine/spu/headers/sinf.h: Ditto.
3719         * libm/machine/spu/headers/sinf4.h: Ditto.
3720         * libm/machine/spu/headers/sinh.h: Ditto.
3721         * libm/machine/spu/headers/sinhd2.h: Ditto.
3722         * libm/machine/spu/headers/sinhf.h: Ditto.
3723         * libm/machine/spu/headers/sinhf4.h: Ditto.
3724         * libm/machine/spu/headers/sqrtd2.h: Ditto.
3725         * libm/machine/spu/headers/sqrtf.h: Ditto.
3726         * libm/machine/spu/headers/sqrtf4.h: Ditto.
3727         * libm/machine/spu/headers/tan.h: Ditto.
3728         * libm/machine/spu/headers/tand2.h: Ditto.
3729         * libm/machine/spu/headers/tanf.h: Ditto.
3730         * libm/machine/spu/headers/tanf4.h: Ditto.
3731         * libm/machine/spu/headers/tanh.h: Ditto.
3732         * libm/machine/spu/headers/tanhd2.h: Ditto.
3733         * libm/machine/spu/headers/tanhf.h: Ditto.
3734         * libm/machine/spu/headers/tanhf4.h: Ditto.
3735         * libm/machine/spu/headers/tgamma.h: Ditto.
3736         * libm/machine/spu/headers/tgammad2.h: Ditto.
3737         * libm/machine/spu/headers/tgammaf.h: Ditto.
3738         * libm/machine/spu/headers/tgammaf4.h: Ditto.
3739         * libm/machine/spu/headers/truncd2.h: Ditto.
3740         * libm/machine/spu/headers/truncf4.h: Ditto.
3741         * libm/machine/spu/log2.c: Ditto.
3742         * libm/machine/spu/s_asinh.c: Ditto.
3743         * libm/machine/spu/s_atan.c: Ditto.
3744         * libm/machine/spu/s_cos.c: Ditto.
3745         * libm/machine/spu/s_erf.c: Ditto.
3746         * libm/machine/spu/s_expm1.c: Ditto.
3747         * libm/machine/spu/s_isnan.c: Ditto.
3748         * libm/machine/spu/s_log1p.c: Ditto.
3749         * libm/machine/spu/s_nextafter.c: Ditto.
3750         * libm/machine/spu/s_sin.c: Ditto.
3751         * libm/machine/spu/s_tan.c: Ditto.
3752         * libm/machine/spu/s_tanh.c: Ditto.
3753         * libm/machine/spu/sf_asinh.c: Ditto.
3754         * libm/machine/spu/sf_cos.c: Ditto.
3755         * libm/machine/spu/sf_erf.c: Ditto.
3756         * libm/machine/spu/sf_expm1.c: Ditto.
3757         * libm/machine/spu/sf_log1p.c: Ditto.
3758         * libm/machine/spu/sf_logb.c: Ditto.
3759         * libm/machine/spu/sf_nearbyint.c: Ditto.
3760         * libm/machine/spu/sf_nextafter.c: Ditto.
3761         * libm/machine/spu/sf_rint.c: Ditto.
3762         * libm/machine/spu/sf_sin.c: Ditto.
3763         * libm/machine/spu/sf_tan.c: Ditto.
3764         * libm/machine/spu/sf_tanh.c: Ditto.
3765         * libm/machine/spu/w_acos.c: Ditto.
3766         * libm/machine/spu/w_acosh.c: Ditto.
3767         * libm/machine/spu/w_asin.c: Ditto.
3768         * libm/machine/spu/w_atan2.c: Ditto.
3769         * libm/machine/spu/w_atanh.c: Ditto.
3770         * libm/machine/spu/w_cosh.c: Ditto.
3771         * libm/machine/spu/w_exp.c: Ditto.
3772         * libm/machine/spu/w_exp2.c: Ditto.
3773         * libm/machine/spu/w_hypot.c: Ditto.
3774         * libm/machine/spu/w_lgamma.c: Ditto.
3775         * libm/machine/spu/w_log.c: Ditto.
3776         * libm/machine/spu/w_log10.c: Ditto.
3777         * libm/machine/spu/w_pow.c: Ditto.
3778         * libm/machine/spu/w_sincos.c: Ditto.
3779         * libm/machine/spu/w_sinh.c: Ditto.
3780         * libm/machine/spu/w_tgamma.c: Ditto.
3781         * libm/machine/spu/wf_acos.c: Ditto.
3782         * libm/machine/spu/wf_acosh.c: Ditto.
3783         * libm/machine/spu/wf_asin.c: Ditto.
3784         * libm/machine/spu/wf_atan2.c: Ditto.
3785         * libm/machine/spu/wf_atanh.c: Ditto.
3786         * libm/machine/spu/wf_cosh.c: Ditto.
3787         * libm/machine/spu/wf_hypot.c: Ditto.
3788         * libm/machine/spu/wf_lgamma.c: Ditto.
3789         * libm/machine/spu/wf_pow.c: Ditto.
3790         * libm/machine/spu/wf_sincos.c: Ditto.
3791         * libm/machine/spu/wf_sinh.c: Ditto.
3792         * libm/machine/spu/wf_sqrt.c: Ditto.
3793         * libm/machine/spu/wf_tgamma.c: Ditto.
3794
3795 2007-09-28  Patrick Mansfield  <patmans@us.ibm.com>
3796
3797         * configure.host: Define _POSIX_MODE to match the existing vector
3798         math code, as we don't support the matherr callout.
3799         * libm/machine/spu/Makefile.am: New file.
3800         * libm/machine/spu/Makefile.in: Auto-generated.
3801         * libm/machine/spu/headers/atanf.h: New file.
3802         * libm/machine/spu/headers/cbrt.h: Ditto.
3803         * libm/machine/spu/headers/cbrtf.h: Ditto.
3804         * libm/machine/spu/headers/ceil.h: Ditto.
3805         * libm/machine/spu/headers/ceilf.h: Ditto.
3806         * libm/machine/spu/headers/copysign.h: Ditto.
3807         * libm/machine/spu/headers/copysignf.h: Ditto.
3808         * libm/machine/spu/headers/exp2f.h: Ditto.
3809         * libm/machine/spu/headers/expf.h: Ditto.
3810         * libm/machine/spu/headers/fabs.h: Ditto.
3811         * libm/machine/spu/headers/fabsf.h: Ditto.
3812         * libm/machine/spu/headers/fdim.h: Ditto.
3813         * libm/machine/spu/headers/fdimf.h: Ditto.
3814         * libm/machine/spu/headers/floor.h: Ditto.
3815         * libm/machine/spu/headers/floorf.h: Ditto.
3816         * libm/machine/spu/headers/fma.h: Ditto.
3817         * libm/machine/spu/headers/fmaf.h: Ditto.
3818         * libm/machine/spu/headers/fmax.h: Ditto.
3819         * libm/machine/spu/headers/fmaxf.h: Ditto.
3820         * libm/machine/spu/headers/fmin.h: Ditto.
3821         * libm/machine/spu/headers/fminf.h: Ditto.
3822         * libm/machine/spu/headers/fmod.h: Ditto.
3823         * libm/machine/spu/headers/fmodf.h: Ditto.
3824         * libm/machine/spu/headers/frexp.h: Ditto.
3825         * libm/machine/spu/headers/frexpf.h: Ditto.
3826         * libm/machine/spu/headers/ilogb.h: Ditto.
3827         * libm/machine/spu/headers/ilogbf.h: Ditto.
3828         * libm/machine/spu/headers/ldexp.h: Ditto.
3829         * libm/machine/spu/headers/ldexpf.h: Ditto.
3830         * libm/machine/spu/headers/llrint.h: Ditto.
3831         * libm/machine/spu/headers/llrintf.h: Ditto.
3832         * libm/machine/spu/headers/llround.h: Ditto.
3833         * libm/machine/spu/headers/llroundf.h: Ditto.
3834         * libm/machine/spu/headers/log10f.h: Ditto.
3835         * libm/machine/spu/headers/log2f.h: Ditto.
3836         * libm/machine/spu/headers/logf.h: Ditto.
3837         * libm/machine/spu/headers/lrint.h: Ditto.
3838         * libm/machine/spu/headers/lrintf.h: Ditto.
3839         * libm/machine/spu/headers/lround.h: Ditto.
3840         * libm/machine/spu/headers/lroundf.h: Ditto.
3841         * libm/machine/spu/headers/nearbyint.h: Ditto.
3842         * libm/machine/spu/headers/remainder.h: Ditto.
3843         * libm/machine/spu/headers/remainderf.h: Ditto.
3844         * libm/machine/spu/headers/remquo.h: Ditto.
3845         * libm/machine/spu/headers/remquof.h: Ditto.
3846         * libm/machine/spu/headers/rint.h: Ditto.
3847         * libm/machine/spu/headers/round.h: Ditto.
3848         * libm/machine/spu/headers/roundf.h: Ditto.
3849         * libm/machine/spu/headers/scalbn.h: Ditto.
3850         * libm/machine/spu/headers/scalbnf.h: Ditto.
3851         * libm/machine/spu/headers/sqrt.h: Ditto.
3852         * libm/machine/spu/headers/trunc.h: Ditto.
3853         * libm/machine/spu/headers/truncf.h: Ditto.
3854         * libm/machine/spu/headers/vec_literal.h: Ditto.
3855         * libm/machine/spu/llrint.c: Ditto.
3856         * libm/machine/spu/llrintf.c: Ditto.
3857         * libm/machine/spu/llround.c: Ditto.
3858         * libm/machine/spu/llroundf.c: Ditto.
3859         * libm/machine/spu/log2f.c: Ditto.
3860         * libm/machine/spu/s_cbrt.c: Ditto.
3861         * libm/machine/spu/s_ceil.c: Ditto.
3862         * libm/machine/spu/s_copysign.c: Ditto.
3863         * libm/machine/spu/s_fabs.c: Ditto.
3864         * libm/machine/spu/s_fdim.c: Ditto.
3865         * libm/machine/spu/s_floor.c: Ditto.
3866         * libm/machine/spu/s_fma.c: Ditto.
3867         * libm/machine/spu/s_fmax.c: Ditto.
3868         * libm/machine/spu/s_fmin.c: Ditto.
3869         * libm/machine/spu/s_frexp.c: Ditto.
3870         * libm/machine/spu/s_ilogb.c: Ditto.
3871         * libm/machine/spu/s_ldexp.c: Ditto.
3872         * libm/machine/spu/s_lrint.c: Ditto.
3873         * libm/machine/spu/s_lround.c: Ditto.
3874         * libm/machine/spu/s_nearbyint.c: Ditto.
3875         * libm/machine/spu/s_remquo.c: Ditto.
3876         * libm/machine/spu/s_rint.c: Ditto.
3877         * libm/machine/spu/s_round.c: Ditto.
3878         * libm/machine/spu/s_scalbn.c: Ditto.
3879         * libm/machine/spu/s_trunc.c: Ditto.
3880         * libm/machine/spu/sf_atan.c: Ditto.
3881         * libm/machine/spu/sf_cbrt.c: Ditto.
3882         * libm/machine/spu/sf_ceil.c: Ditto.
3883         * libm/machine/spu/sf_copysign.c: Ditto.
3884         * libm/machine/spu/sf_fabs.c: Ditto.
3885         * libm/machine/spu/sf_fdim.c: Ditto.
3886         * libm/machine/spu/sf_floor.c: Ditto.
3887         * libm/machine/spu/sf_fma.c: Ditto.
3888         * libm/machine/spu/sf_fmax.c: Ditto.
3889         * libm/machine/spu/sf_fmin.c: Ditto.
3890         * libm/machine/spu/sf_frexp.c: Ditto.
3891         * libm/machine/spu/sf_ilogb.c: Ditto.
3892         * libm/machine/spu/sf_ldexp.c: Ditto.
3893         * libm/machine/spu/sf_lrint.c: Ditto.
3894         * libm/machine/spu/sf_lround.c: Ditto.
3895         * libm/machine/spu/sf_remquo.c: Ditto.
3896         * libm/machine/spu/sf_round.c: Ditto.
3897         * libm/machine/spu/sf_scalbn.c: Ditto.
3898         * libm/machine/spu/sf_trunc.c: Ditto.
3899         * libm/machine/spu/w_fmod.c: Ditto.
3900         * libm/machine/spu/w_remainder.c: Ditto.
3901         * libm/machine/spu/w_sqrt.c: Ditto.
3902         * libm/machine/spu/wf_exp.c: Ditto.
3903         * libm/machine/spu/wf_exp2.c: Ditto.
3904         * libm/machine/spu/wf_fmod.c: Ditto.
3905         * libm/machine/spu/wf_log.c: Ditto.
3906         * libm/machine/spu/wf_log10.c: Ditto.
3907         * libm/machine/spu/wf_remainder.c: Ditto.
3908
3909 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3910
3911         * libc/machine/spu/sys/uio.h: New file for readv and writev use.
3912
3913 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3914
3915         * libc/include/sched.h: New file, just include sys/sched.h.
3916         * libc/machine/spu/sys/sched.h: New file, has just sched_yield
3917         prototype.
3918         * libc/machine/spu/sys/utime.h: New file, has utime prototype and
3919         struct utimbuf definition.
3920
3921 2007-09-21  Patrick Mansfield  <patmans@us.ibm.com>
3922
3923         * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
3924         specific struct and typedef.
3925
3926 2007-09-18  Patrick Mansfield  <patmans@us.ibm.com>
3927
3928         * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
3929         typedef dev_t, gid_t, and uid_t.
3930         * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
3931         types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
3932         Change to lower case for all __foo_t_defined names.
3933         * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
3934         __uid_t, and __gid_t making them all four bytes. Change to lower case
3935         for all __foo_t_defined names.
3936
3937 2007-09-18  Jeff Johnston  <jjohnstn@redhat.com>
3938
3939         * libc/reent/renamer.c: New file.
3940         * libc/reent/Makefile.am: Add new file.
3941         * libc/reent/Makefile.in: Regenerated.
3942         * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
3943         and add check for rename syscall.
3944
3945 2007-09-17  Eric Blake  <ebb9@byu.net>
3946
3947         Obey POSIX on printf("%.s", (char*)NULL).
3948         * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
3949         for %s on NULL.  Skip NULL check when optimizing for size.
3950
3951 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3952
3953         * libc/include/sys/_types.h: Protect all types with flag
3954         checks to allow definition in machine/_types.h.
3955
3956 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3957
3958         * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
3959         definitions in light of the previous change.
3960
3961 2007-09-07  Patrick Mansfield  <patmans@us.ibm.com>
3962
3963         * libc/include/machine/_default_types.h: New file, contains what
3964         was previously in libc/include/machine/_types.h.
3965         * libc/include/machine/_types.h: Now only includes
3966         machine/_default_types.h.
3967         * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
3968         * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
3969         with conditional declarations.
3970         * libc/machine/spu/machine/_types.h: New file, add SPU specific
3971         typedefs for _fpos_t and _fpos64_t.
3972
3973 2007-09-07  Jeff Johnston  <jjohnstn@redhat.com>
3974
3975         * libc/include/math.h (_M_LOG2E): Replace with..
3976         (_M_LOG2_E): New macro.
3977         (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
3978
3979 2007-09-06  Brian Dessent  <brian@dessent.net>
3980
3981         * libc/reent/getreent.c: Allow for case where __getreent is
3982         defined as a macro.
3983
3984 2007-09-06  Jeff Johnston  <jjohnstn@redhat.com>
3985
3986         * libc/include/math.h (_M_LOG2E): New log2 of e macro.
3987         (log2): Use _M_LOG2E instead of M_LOG2E.
3988         (log2f): Ditto.
3989         (M_LOG2E): Define to be _M_LOG2E.
3990
3991 2007-09-04  Kazunori Asayama <asayama@sm.sony.co.jp>
3992
3993         * libm/math/wf_tgamma.c: Add missing include.
3994
3995 2007-08-31  Antony King  <antony.king@st.com>
3996
3997         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
3998         bits and redefine associated dword0 macro (rvalue issue).
3999         * libc/stdio/vfieeefp.h: Ditto.
4000         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
4001         to prevent setting dword1 which is an rvalue only.
4002
4003 2007-08-28  Hans Kester  <hans.kester@ellips.nl>
4004
4005         * configure.host: Added support for x86_64.
4006         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
4007         * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
4008         * libc/machine/x86_64/aclocal.m4: Generated.
4009         * libc/machine/x86_64/configure.in: New.
4010         * libc/machine/x86_64/configure: Generated.
4011         * libc/machine/x86_64/Makefile.am: New.
4012         * libc/machine/x86_64/Makefile.in: Generated.
4013         * libc/machine/x86_64/setjmp.S: New.
4014         * libc/machine/x86_64/memcpy.S: New.
4015         * libc/machine/x86_64/memset.S: New.
4016         * libc/machine/configure.in: Added support for x86_64.
4017         * libc/machine/configure: Regenerated.
4018
4019 2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>
4020
4021         * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
4022         to int before comparing it to a signed int value.
4023
4024 2007-08-24  Hans-Peter Nilsson  <hp@axis.com>
4025
4026         * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
4027         (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
4028         Define.
4029
4030 2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
4031
4032         Reduce the memory consumption of variable argument functions
4033         for SPU (cell):
4034         * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
4035           to assembler sources.
4036         * libc/machine/spu/Makefile.in: Regenerated.
4037         * libc/machine/spu/stdio.c: Add __check_init function wrapping
4038           CHECK_INIT macro to use from assembler routines.
4039         * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
4040         * libc/machine/spu/fiprintf.S: New file.
4041         * libc/machine/spu/fiscanf.S: Ditto.
4042         * libc/machine/spu/fprintf.S: Ditto.
4043         * libc/machine/spu/fscanf.S: Ditto.
4044         * libc/machine/spu/iprintf.S: Ditto.
4045         * libc/machine/spu/iscanf.S: Ditto.
4046         * libc/machine/spu/printf.S: Ditto.
4047         * libc/machine/spu/scanf.S: Ditto.
4048         * libc/machine/spu/siprintf.S: Ditto.
4049         * libc/machine/spu/siscanf.S: Ditto.
4050         * libc/machine/spu/sniprintf.S: Ditto.
4051         * libc/machine/spu/snprintf.S: Ditto.
4052         * libc/machine/spu/sprintf.S: Ditto.
4053         * libc/machine/spu/sscanf.S: Ditto.
4054         * libc/machine/spu/stack_reg_va.S: Ditto.
4055         * libc/machine/spu/syscall.def: Ditto. (for maintenance)
4056         * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
4057         * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
4058         * libc/machine/spu/fiscanf.c: Ditto.
4059         * libc/machine/spu/fprintf.c: Ditto.
4060         * libc/machine/spu/fscanf.c: Ditto.
4061         * libc/machine/spu/iprintf.c: Ditto.
4062         * libc/machine/spu/iscanf.c: Ditto.
4063         * libc/machine/spu/printf.c: Ditto.
4064         * libc/machine/spu/scanf.c: Ditto.
4065         * libc/machine/spu/siprintf.c: Ditto.
4066         * libc/machine/spu/siscanf.c: Ditto.
4067         * libc/machine/spu/sniprintf.c: Ditto.
4068         * libc/machine/spu/snprintf.c: Ditto.
4069         * libc/machine/spu/sprintf.c: Ditto.
4070         * libc/machine/spu/sscanf.c: Ditto.
4071
4072 2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>
4073
4074         * libc/include/tar.h: New.
4075
4076 2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>
4077
4078         * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
4079         lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
4080         * libc/sys/linux/intl/Makefile.in: Regenerated.
4081         * libc/sys/linux/intl/stpcpy.c: Renamed to...
4082         * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
4083
4084 2007-08-02  Eric Blake  <ebb9@byu.net>
4085
4086         Implement fmemopen and open_memstream.
4087         * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
4088         * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
4089         New file.
4090         * libc/stdio/fopencookie.c (fcwriter): Minor optimization.
4091         * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
4092         functions together.
4093         (fmemopen, open_memstream): Declare new functions.
4094         * libc/stdio/stdio.tex: Document them.
4095         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
4096         fmemopen and open_memstream.
4097         * libc/stdio/Makefile.in: Regenerate.
4098
4099 2007-07-31  Eric Blake  <ebb9@byu.net>
4100
4101         More POSIX stream corner cases.
4102         * libc/stdio/findfp.c (__sinit): Open stderr read/write.
4103         * libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
4104         requested.
4105         * libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
4106
4107 2007-07-18  Eric Blake  <ebb9@byu.net>
4108
4109         Fix 'make info'.
4110         * libc/stdio/stdio.tex: Add missing include.
4111         * libc/stdio/vfprintf.c: Use expected node name.
4112         * libc/stdio/vfscanf.c: Likewise.
4113         * libc/stdio/sscanf.c: Likewise.
4114         * libc/stdio/sprintf.c: Likewise.
4115         * libc/stdio/siscanf.c: Likewise.
4116         * libc/stdio/siprintf.c: Likewise.
4117         * libc/stdio/fopencookie.c: Quote raw {}.
4118         Reported by DJ Delorie.
4119
4120 2007-07-13  Eric Blake  <ebb9@byu.net>
4121
4122         Fix fflush issues.
4123         * libc/stdio/fflush.c (_fflush_r): New function.
4124         (fflush): Fix reentrancy and large offset behavior.
4125         * libc/include/stdio.h (_fflush_r): Add prototype.
4126         * libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
4127         * libc/stdio/freopen.c (_freopen_r): Likewise.
4128         * libc/stdio/fseek.c (_fseek_r): Likewise.
4129         * libc/stdio/ftell.c (_ftell_r): Likewise.
4130         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4131         * libc/stdio/refill.c (__srefill_r): Likewise.
4132         * libc/stdio/setvbuf.c (setvbuf): Likewise.
4133         * libc/stdio/ungetc.c (_ungetc_r): Likewise.
4134         * libc/stdio/vfprintf.c (__sbprintf): Likewise.
4135         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
4136         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4137         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
4138         32-bit version if not large file.
4139         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4140         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
4141
4142         Documentation updates.
4143         * libc/stdio/ungetc.c: Document ungetc.
4144         * libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
4145         of files with documentation.
4146         * libc/stdio/Makefile.in: Regenerate.
4147         * libc/stdio/stdio.tex: Sort and update stdio documentation index.
4148
4149 2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>
4150
4151         * libc/include/math.h: Fix so C99 functions/macros are accessible
4152         when -std=c99 is used when compiling and not when using C89.
4153
4154 2007-07-06  Corinna Vinschen  <corinna@vinschen.de>
4155
4156         * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
4157         wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
4158         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
4159         (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
4160         wcstoull_r.c.
4161         (CHEWOUT_FILES): Add .def files accordingly.
4162         * libc/stdlib/Makefile.in: Regenerate.
4163         * libc/stdlib/stdlib.tex: Add documentation links for above functions.
4164         * libc/stdlib/strtoll.c: Fix portability note.
4165         * libc/stdlib/strtoull.c: Ditto.
4166         * libc/stdlib/wcstol.c: New file.
4167         * libc/stdlib/wcstoll.c: New file.
4168         * libc/stdlib/wcstoll_r.c: New file.
4169         * libc/stdlib/wcstoul.c: New file.
4170         * libc/stdlib/wcstoull.c: New file.
4171         * libc/stdlib/wcstoull_r.c: New file.
4172
4173 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4174
4175         * libc/include/sys/time.h (gettimeofday): Change to proper
4176         prototype where second parameter is void *.
4177         * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
4178         accordingly.
4179         * libc/include/reent.h: Fix prototype for _gettimeofday_r.
4180         * libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
4181         * libc/sys/rdos/gettod.c: Ditto.
4182         * libc/sys/sh/syscalls.c: Ditto.
4183         * libc/time/time.c (time): Change call to _gettimeofday_r
4184         to pass NULL as 2nd argument.
4185
4186 2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>
4187
4188         * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
4189         * libc/sys/linux/intl/l10nflist.c: Ditto.
4190
4191 2007-07-04  Corinna Vinschen  <corinna@vinschen.de>
4192
4193         * libc/include/wchar.h: Add prototype for wcsxfrm.
4194         * libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
4195         (CHEWOUT_FILES): Add wcsxfrm.def.
4196         * libc/string/Makefile.in: Regenerate.
4197         * libc/string/wcsxfrm.c: New file.
4198         * libc/string/wcstrings.tex: Add wcsxfrm.
4199
4200 2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
4201
4202         * libc/include/string.h: Add prototypes for stpcpy and stpncpy.
4203         * libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
4204         stpncpy.c.
4205         (CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
4206         * libc/string/Makefile.in: Regenerate.
4207         * libc/string/stpcpy.c: New file.
4208         * libc/string/stpncpy.c: New file.
4209         * libc/string/strings.tex: Add stpcpy and stpncpy.
4210
4211 2007-06-27  Eric Blake  <ebb9@byu.net>
4212
4213         Support __func__ in assert, as required by C99.
4214         * libc/stdlib/assert.c (__assert_func): New function.
4215         (__assert): Use __assert_func.
4216         * libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
4217         possible.
4218
4219 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4220
4221         * libc/machine/spu/perror.c: Pass errno as the second argument to
4222         the assist call.
4223
4224 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4225
4226         * libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
4227         defines; expose ftruncate, truncate and sync prototypes.
4228
4229 2007-06-20  Patrick Mansfield  <patmans@us.ibm.com>
4230
4231         * libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
4232         * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
4233         visible.
4234
4235 2007-06-15  Patrick Mansfield  <patmans@us.ibm.com>
4236
4237         * libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
4238         from a dropped patch.
4239         * libc/machine/spu/Makefile.in: Regenerate.
4240
4241 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4242
4243         * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
4244         it just calls open with appropriate arguments.
4245         * libc/machine/spu/Makefile.am: Add creat.c.
4246         * libc/machine/spu/Makefile.in: Regenerate.
4247
4248 2007-06-13  Jeff Johnston  <jjohnstn@redhat.com>
4249
4250         * libc/machine/spu/Makefile.am: Re-add back setjmp.S which
4251         I accidentally dropped.
4252         * libc/machine/spu/Makefile.in: Regenerated.
4253
4254 2007-06-13  Patrick Mansfield  <patmans@us.ibm.com>
4255
4256         * libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
4257         * libc/include/sys/unistd.h: Change usleep prototype to Posix
4258         form and move outside of OS flag checks.
4259         * libc/machine/spu/Makefile.am: Add sleep and usleep.
4260         * libc/machine/spu/Makefile.in: Regenerate.
4261         * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
4262         * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
4263
4264 2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
4265
4266         * libc/include/sys/unistd.h: Declare confstr for Cygwin.
4267         Define confstr constants for Cygwin.  Add comment.
4268
4269 2007-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
4270
4271         * libc/sys/mmixware/access.c (access): Do not try to use a magic
4272         file-handle and a direct syscall, just use _open.
4273         * libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
4274         file-handle.
4275
4276         * libc/sys/mmixware/_exit.c (_exit): Update comment about
4277         passing on the exit value.
4278
4279 2007-06-08  Jeff Johnston  <jjohnstn@redhat.com>
4280
4281         * libc/string/strcasestr.c: New file.
4282         * libc/include/string.h: Add strcasestr.
4283         * libc/string/strings.tex: Add strcasestr.
4284         * libc/string/Makefile.am: Ditto.
4285         * libc/string/Makefile.in: Regenerated.
4286
4287 2007-06-06  Christian Groessler  <chris@groessler.org>
4288
4289         * libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
4290         rnd is done after the last local variable declaration.
4291
4292 2007-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4293
4294         * libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
4295
4296 2007-06-05  Christian Groessler  <chris@groessler.org>
4297
4298         * libc/argz/argz_insert.c (argz_insert): Move delta variable
4299         declaration to top of function in keeping with C89 standard.
4300
4301 2007-06-04  Eric Blake  <ebb9@byu.net>
4302
4303         Implement funopen, fopencookie.
4304         * libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
4305         Switch to reentrant callbacks.
4306         * libc/include/stdio.h (funopen): Fix declaration.
4307         (fopencookie): Declare.
4308         * libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
4309         (__sseek64, __swrite64): Fix prototypes.
4310         [__SCLE]: Pull in setmode declaration.
4311         * libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
4312         reentrancy.
4313         * libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
4314         (__sseek64, __swrite64): Fix reentrancy.
4315         * libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
4316         reentrancy.
4317         * libc/stdio/ftell.c (_ftell_r): Likewise.
4318         * libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
4319         * libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
4320         * libc/stdio/freopen.c (_freopen_r): Likewise.
4321         * libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
4322         * libc/stdio/refill.c (__srefill_r): Likewise.
4323         * libc/stdio/siscanf.c (eofread): Likewise.
4324         * libc/stdio/sscanf.c (eofread): Likewise.
4325         * libc/stdio/vsiscanf.c (eofread1): Likewise.
4326         * libc/stdio/vsscanf.c (eofread1): Likewise.
4327         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
4328         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
4329         * libc/stdio64/ftello64.c (_ftello64_r): Likewise.
4330         * libc/stdio/fflush.c (fflush): Improve reentrancy, although more
4331         could be fixed.
4332         * libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
4333         * libc/stdio/funopen.c (_funopen_r, funopen): New file.
4334         * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
4335         new files.
4336         * libc/stdio/Makefile.in: Regenerate.
4337
4338 2007-05-29  Eric Blake  <ebb9@byu.net>
4339
4340         Avoid more compiler warnings.
4341         * libc/stdlib/btowc.c: Add missing header.
4342         * libc/stdlib/getopt.c (getopt_internal): Initialize variable.
4343         * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
4344         * libc/stdlib/wctob.c: Add missing header.
4345         * libc/string/strcpy.c (strcpy): Avoid warnings.
4346         * libc/string/strrchr.c (strrchr): Likewise.
4347
4348 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
4349
4350         * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
4351         argument.
4352         * libc/argz/argz_append.c (argz_append): Handle empty buf argument.
4353         * libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
4354         on empty input strings.
4355         * libc/argz/argz_extract.c (argz_extract): Check argz_len before
4356         looping through argz.
4357         * libc/argz/argz_stringify.c (argz_stringify): Ditto.
4358
4359 2007-05-27  Brian Dessent  <brian@dessent.net>
4360
4361         * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
4362         handling %p.
4363
4364 2007-05-25  Eric Blake  <ebb9@byu.net>
4365
4366         * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
4367
4368 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
4369             Charles Wilson  <libtool@cwilson.fastmail.fm>
4370
4371         * libtool.m4: removed
4372         * configure.in: invoke _LD_DECL_SED before conditionally initializing
4373         libtool.  Move AC_PROG_AWK outside conditional.
4374         * libc/sys/linux/configure.in: Ditto.
4375         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4376         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4377         * libc/sys/linux/machine/i386/configure.in: Ditto.
4378
4379         * iconvdata/configure.in: invoke _LD_DECL_SED before conditionally
4380         initializing libtool.
4381         * libc/configure.in: Ditto.
4382         * libc/machine/configure.in: Ditto.
4383         * libc/machine/i386/configure.in: Ditto.
4384         * libc/sys/configure.in: Ditto.
4385         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4386         * libc/sys/linux/machine/configure.in: Ditto.
4387         * libm/configure.in: Ditto.
4388         * libm/machine/configure.in: Ditto.
4389
4390         * Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
4391         * doc/Makefile.am: Ditto.
4392         * iconvdata/Makefile.am: Ditto.
4393         * libc/Makefile.am: Ditto.
4394         * libc/machine/Makefile.am: Ditto.
4395         * libc/machine/a29k/Makefile.am: Ditto.
4396         * libc/machine/arm/Makefile.am: Ditto.
4397         * libc/machine/bfin/Makefile.am: Ditto.
4398         * libc/machine/cris/Makefile.am: Ditto.
4399         * libc/machine/crx/Makefile.am: Ditto.
4400         * libc/machine/d10v/Makefile.am: Ditto.
4401         * libc/machine/d30v/Makefile.am: Ditto.
4402         * libc/machine/fr30/Makefile.am: Ditto.
4403         * libc/machine/frv/Makefile.am: Ditto.
4404         * libc/machine/h8300/Makefile.am: Ditto.
4405         * libc/machine/h8500/Makefile.am: Ditto.
4406         * libc/machine/hppa/Makefile.am: Ditto.
4407         * libc/machine/i386/Makefile.am: Ditto.
4408         * libc/machine/i960/Makefile.am: Ditto.
4409         * libc/machine/iq2000/Makefile.am: Ditto.
4410         * libc/machine/m32c/Makefile.am: Ditto.
4411         * libc/machine/m32r/Makefile.am: Ditto.
4412         * libc/machine/m68hc11/Makefile.am: Ditto.
4413         * libc/machine/m68k/Makefile.am: Ditto.
4414         * libc/machine/m88k/Makefile.am: Ditto.
4415         * libc/machine/mips/Makefile.am: Ditto.
4416         * libc/machine/mn10200/Makefile.am: Ditto.
4417         * libc/machine/mn10300/Makefile.am: Ditto.
4418         * libc/machine/mt/Makefile.am: Ditto.
4419         * libc/machine/necv70/Makefile.am: Ditto.
4420         * libc/machine/powerpc/Makefile.am: Ditto.
4421         * libc/machine/sh/Makefile.am: Ditto.
4422         * libc/machine/sparc/Makefile.am: Ditto.
4423         * libc/machine/spu/Makefile.am: Ditto.
4424         * libc/machine/tic4x/Makefile.am: Ditto.
4425         * libc/machine/tic80/Makefile.am: Ditto.
4426         * libc/machine/v850/Makefile.am: Ditto.
4427         * libc/machine/w65/Makefile.am: Ditto.
4428         * libc/machine/xscale/Makefile.am: Ditto.
4429         * libc/machine/xstormy16/Makefile.am: Ditto.
4430         * libc/machine/z8k/Makefile.am: Ditto.
4431         * libc/sys/Makefile.am: Ditto.
4432         * libc/sys/a29khif/Makefile.am: Ditto.
4433         * libc/sys/arc/Makefile.am: Ditto.
4434         * libc/sys/arm/Makefile.am: Ditto.
4435         * libc/sys/d10v/Makefile.am: Ditto.
4436         * libc/sys/decstation/Makefile.am: Ditto.
4437         * libc/sys/h8300hms/Makefile.am: Ditto.
4438         * libc/sys/h8500hms/Makefile.am: Ditto.
4439         * libc/sys/linux/Makefile.am: Ditto.
4440         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4441         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4442         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4443         * libc/sys/linux/machine/Makefile.am: Ditto.
4444         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
4445         * libc/sys/m88kbug/Makefile.am: Ditto.
4446         * libc/sys/mmixware/Makefile.am: Ditto.
4447         * libc/sys/netware/Makefile.am: Ditto.
4448         * libc/sys/rdos/Makefile.am: Ditto.
4449         * libc/sys/rtems/Makefile.am: Ditto.
4450         * libc/sys/sh/Makefile.am: Ditto.
4451         * libc/sys/sparc64/Makefile.am: Ditto.
4452         * libc/sys/sun4/Makefile.am: Ditto.
4453         * libc/sys/sysmec/Makefile.am: Ditto.
4454         * libc/sys/sysnec810/Makefile.am: Ditto.
4455         * libc/sys/sysnecv850/Makefile.am: Ditto.
4456         * libc/sys/sysvi386/Makefile.am: Ditto.
4457         * libc/sys/sysvnecv70/Makefile.am: Ditto.
4458         * libc/sys/tic80/Makefile.am: Ditto.
4459         * libc/sys/w65/Makefile.am: Ditto.
4460         * libc/sys/z8ksim/Makefile.am: Ditto.
4461         * libm/Makefile.am: Ditto.
4462         * libm/machine/Makefile.am: Ditto.
4463         * libm/machine/i386/Makefile.am: Ditto.
4464         * libm/machine/spu/Makefile.am: Ditto.
4465
4466         * aclocal.m4: Regenerate.
4467         * iconvdata/aclocal.m4: Regenerate.
4468         * libc/aclocal.m4: Regenerate.
4469         * libc/machine/aclocal.m4: Regenerate.
4470         * libc/machine/i386/aclocal.m4: Regenerate.
4471         * libc/sys/aclocal.m4: Regenerate.
4472         * libc/sys/linux/aclocal.m4: Regenerate.
4473         * libc/sys/linux/linuxthreads/aclocal.m4: Regenerate.
4474         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Regenerate.
4475         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Regenerate.
4476         * libc/sys/linux/machine/aclocal.m4: Regenerate.
4477         * libc/sys/linux/machine/i386/aclocal.m4: Regenerate.
4478         * libm/aclocal.m4: Regenerate.
4479         * libm/machine/aclocal.m4: Regenerate.
4480         * libm/machine/i386/aclocal.m4: Regenerate.
4481
4482         * Makefile.in: Regenerate.
4483         * doc/Makefile.in: Regenerate.
4484         * iconvdata/Makefile.in: Regenerate.
4485         * libc/Makefile.in: Regenerate.
4486         * libc/argz/Makefile.in: Regenerate.
4487         * libc/ctype/Makefile.in: Regenerate.
4488         * libc/errno/Makefile.in: Regenerate.
4489         * libc/iconv/Makefile.in: Regenerate.
4490         * libc/iconv/ccs/Makefile.in: Regenerate.
4491         * libc/iconv/ccs/binary/Makefile.in: Regenerate.
4492         * libc/iconv/ces/Makefile.in: Regenerate.
4493         * libc/iconv/lib/Makefile.in: Regenerate.
4494         * libc/locale/Makefile.in: Regenerate.
4495         * libc/machine/Makefile.in: Regenerate.
4496         * libc/machine/a29k/Makefile.in: Regenerate.
4497         * libc/machine/arm/Makefile.in: Regenerate.
4498         * libc/machine/bfin/Makefile.in: Regenerate.
4499         * libc/machine/cris/Makefile.in: Regenerate.
4500         * libc/machine/crx/Makefile.in: Regenerate.
4501         * libc/machine/d10v/Makefile.in: Regenerate.
4502         * libc/machine/d30v/Makefile.in: Regenerate.
4503         * libc/machine/fr30/Makefile.in: Regenerate.
4504         * libc/machine/frv/Makefile.in: Regenerate.
4505         * libc/machine/h8300/Makefile.in: Regenerate.
4506         * libc/machine/h8500/Makefile.in: Regenerate.
4507         * libc/machine/hppa/Makefile.in: Regenerate.
4508         * libc/machine/i386/Makefile.in: Regenerate.
4509         * libc/machine/i960/Makefile.in: Regenerate.
4510         * libc/machine/iq2000/Makefile.in: Regenerate.
4511         * libc/machine/m32c/Makefile.in: Regenerate.
4512         * libc/machine/m32r/Makefile.in: Regenerate.
4513         * libc/machine/m68hc11/Makefile.in: Regenerate.
4514         * libc/machine/m68k/Makefile.in: Regenerate.
4515         * libc/machine/m88k/Makefile.in: Regenerate.
4516         * libc/machine/mips/Makefile.in: Regenerate.
4517         * libc/machine/mn10200/Makefile.in: Regenerate.
4518         * libc/machine/mn10300/Makefile.in: Regenerate.
4519         * libc/machine/mt/Makefile.in: Regenerate.
4520         * libc/machine/necv70/Makefile.in: Regenerate.
4521         * libc/machine/powerpc/Makefile.in: Regenerate.
4522         * libc/machine/sh/Makefile.in: Regenerate.
4523         * libc/machine/sparc/Makefile.in: Regenerate.
4524         * libc/machine/spu/Makefile.in: Regenerate.
4525         * libc/machine/tic4x/Makefile.in: Regenerate.
4526         * libc/machine/tic80/Makefile.in: Regenerate.
4527         * libc/machine/v850/Makefile.in: Regenerate.
4528         * libc/machine/w65/Makefile.in: Regenerate.
4529         * libc/machine/xscale/Makefile.in: Regenerate.
4530         * libc/machine/xstormy16/Makefile.in: Regenerate.
4531         * libc/machine/z8k/Makefile.in: Regenerate.
4532         * libc/misc/Makefile.in: Regenerate.
4533         * libc/posix/Makefile.in: Regenerate.
4534         * libc/reent/Makefile.in: Regenerate.
4535         * libc/search/Makefile.in: Regenerate.
4536         * libc/signal/Makefile.in: Regenerate.
4537         * libc/stdio/Makefile.in: Regenerate.
4538         * libc/stdio64/Makefile.in: Regenerate.
4539         * libc/stdlib/Makefile.in: Regenerate.
4540         * libc/string/Makefile.in: Regenerate.
4541         * libc/sys/Makefile.in: Regenerate.
4542         * libc/sys/a29khif/Makefile.in: Regenerate.
4543         * libc/sys/arc/Makefile.in: Regenerate.
4544         * libc/sys/arm/Makefile.in: Regenerate.
4545         * libc/sys/d10v/Makefile.in: Regenerate.
4546         * libc/sys/decstation/Makefile.in: Regenerate.
4547         * libc/sys/h8300hms/Makefile.in: Regenerate.
4548         * libc/sys/h8500hms/Makefile.in: Regenerate.
4549         * libc/sys/linux/Makefile.in: Regenerate.
4550         * libc/sys/linux/argp/Makefile.in: Regenerate.
4551         * libc/sys/linux/cmath/Makefile.in: Regenerate.
4552         * libc/sys/linux/dl/Makefile.in: Regenerate.
4553         * libc/sys/linux/iconv/Makefile.in: Regenerate.
4554         * libc/sys/linux/intl/Makefile.in: Regenerate.
4555         * libc/sys/linux/linuxthreads/Makefile.in: Regenerate.
4556         * libc/sys/linux/linuxthreads/machine/Makefile.in: Regenerate.
4557         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerate.
4558         * libc/sys/linux/machine/Makefile.in: Regenerate.
4559         * libc/sys/linux/machine/i386/Makefile.in: Regenerate.
4560         * libc/sys/linux/net/Makefile.in: Regenerate.
4561         * libc/sys/linux/stdlib/Makefile.in: Regenerate.
4562         * libc/sys/m88kbug/Makefile.in: Regenerate.
4563         * libc/sys/mmixware/Makefile.in: Regenerate.
4564         * libc/sys/netware/Makefile.in: Regenerate.
4565         * libc/sys/rdos/Makefile.in: Regenerate.
4566         * libc/sys/rtems/Makefile.in: Regenerate.
4567         * libc/sys/sh/Makefile.in: Regenerate.
4568         * libc/sys/sparc64/Makefile.in: Regenerate.
4569         * libc/sys/sun4/Makefile.in: Regenerate.
4570         * libc/sys/sysmec/Makefile.in: Regenerate.
4571         * libc/sys/sysnec810/Makefile.in: Regenerate.
4572         * libc/sys/sysnecv850/Makefile.in: Regenerate.
4573         * libc/sys/sysvi386/Makefile.in: Regenerate.
4574         * libc/sys/sysvnecv70/Makefile.in: Regenerate.
4575         * libc/sys/tic80/Makefile.in: Regenerate.
4576         * libc/sys/w65/Makefile.in: Regenerate.
4577         * libc/sys/z8ksim/Makefile.in: Regenerate.
4578         * libc/syscalls/Makefile.in: Regenerate.
4579         * libc/time/Makefile.in: Regenerate.
4580         * libc/unix/Makefile.in: Regenerate.
4581         * libm/Makefile.in: Regenerate.
4582         * libm/common/Makefile.in: Regenerate.
4583         * libm/machine/Makefile.in: Regenerate.
4584         * libm/machine/i386/Makefile.in: Regenerate.
4585         * libm/machine/spu/Makefile.in: Regenerate.
4586         * libm/math/Makefile.in: Regenerate.
4587         * libm/mathfp/Makefile.in: Regenerate.
4588
4589         * configure: Regenerate.
4590         * iconvdata/configure: Regenerate.
4591         * libc/configure: Regenerate.
4592         * libc/machine/configure: Regenerate.
4593         * libc/machine/i386/configure: Regenerate.
4594         * libc/sys/configure: Regenerate.
4595         * libc/sys/linux/configure: Regenerate.
4596         * libc/sys/linux/linuxthreads/configure: Regenerate.
4597         * libc/sys/linux/linuxthreads/machine/configure: Regenerate.
4598         * libc/sys/linux/linuxthreads/machine/i386/configure: Regenerate.
4599         * libc/sys/linux/machine/configure: Regenerate.
4600         * libc/sys/linux/machine/i386/configure: Regenerate.
4601         * libm/configure: Regenerate.
4602         * libm/machine/configure: Regenerate.
4603         * libm/machine/i386/configure: Regenerate.
4604
4605 2007-05-23  Eric Blake  <ebb9@byu.net>
4606
4607         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
4608         sizeof(void*) is 8 but sizeof(long) is 4.
4609         * libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise.  Fix %i scanning
4610         of "-0x".  Support "-nan" and "inf" for %e.  Audit usage of ungetc
4611         to fix reentrancy and bug on encoding error in multibyte locales.
4612         Always return EOF on read error.
4613
4614 2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
4615
4616         * libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
4617         prototype.
4618         * libc/machine/spu/fclose.c: Use the __send_to_ppe return value
4619         instead of the slot 0 value, remove any now unused variables, and
4620         for some cases, now store the result in an int vs int*.
4621         * libc/machine/spu/feof.c: Ditto.
4622         * libc/machine/spu/ferror.c: Ditto.
4623         * libc/machine/spu/fflush.c: Ditto.
4624         * libc/machine/spu/fgetc.c: Ditto.
4625         * libc/machine/spu/fgetpos.c: Ditto.
4626         * libc/machine/spu/fgets.c: Ditto.
4627         * libc/machine/spu/fileno.c: Ditto.
4628         * libc/machine/spu/fopen.c: Ditto.
4629         * libc/machine/spu/fprintf.c: Ditto.
4630         * libc/machine/spu/fputc.c: Ditto.
4631         * libc/machine/spu/fputs.c: Ditto.
4632         * libc/machine/spu/fread.c: Ditto.
4633         * libc/machine/spu/freopen.c: Ditto.
4634         * libc/machine/spu/fscanf.c: Ditto.
4635         * libc/machine/spu/fseek.c: Ditto.
4636         * libc/machine/spu/fsetpos.c: Ditto.
4637         * libc/machine/spu/ftell.c: Ditto.
4638         * libc/machine/spu/fwrite.c: Ditto.
4639         * libc/machine/spu/getc.c: Ditto.
4640         * libc/machine/spu/getchar.c: Ditto.
4641         * libc/machine/spu/gets.c: Ditto.
4642         * libc/machine/spu/printf.c: Ditto.
4643         * libc/machine/spu/putc.c: Ditto.
4644         * libc/machine/spu/putchar.c: Ditto.
4645         * libc/machine/spu/puts.c: Ditto.
4646         * libc/machine/spu/remove.c: Ditto.
4647         * libc/machine/spu/rename.c: Ditto.
4648         * libc/machine/spu/scanf.c: Ditto.
4649         * libc/machine/spu/setvbuf.c: Ditto.
4650         * libc/machine/spu/snprintf.c: Ditto.
4651         * libc/machine/spu/sprintf.c: Ditto.
4652         * libc/machine/spu/sscanf.c: Ditto.
4653         * libc/machine/spu/tmpfile.c: Ditto.
4654         * libc/machine/spu/tmpnam.c: Ditto.
4655         * libc/machine/spu/ungetc.c: Ditto.
4656         * libc/machine/spu/vfprintf.c: Ditto.
4657         * libc/machine/spu/vfscanf.c: Ditto.
4658         * libc/machine/spu/vprintf.c: Ditto.
4659         * libc/machine/spu/vscanf.c: Ditto.
4660         * libc/machine/spu/vsnprintf.c: Ditto.
4661         * libc/machine/spu/vsprintf.c: Ditto.
4662         * libc/machine/spu/vsscanf.c: Ditto.
4663
4664 2007-05-23  Eric Blake  <ebb9@byu.net>
4665
4666         * libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
4667         Avoid warning when !FLOATING_POINT.
4668         * libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
4669         slightly.
4670
4671 2007-05-23  Corinna Vinschen  <vinschen@redhat.com>
4672
4673         * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
4674         to zero.
4675         * libc/include/argz.h: Guard against multiple inclusion.  Guard for
4676         use with C++.
4677
4678 2007-05-18  Eric Blake  <ebb9@byu.net>
4679
4680         * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
4681         compilers.
4682         * libc/stdio/vfscanf.c: Likewise.
4683
4684 2007-05-17  Cary R.  <cygcary <at> yahoo.com>
4685
4686         * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
4687         (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
4688         * libm/math/wf_atan2.c: Ditto.
4689
4690 2007-05-17  Yaakov Selkowitz  <yselkowitz <at> users.sourceforge.net>
4691
4692         * libm/common/Makefile.am: Add support for exp10, exp10f,
4693         pow10, and pow10f functions.
4694         * libm/common/Makefile.in: Regenerated.
4695         * libm/common/s_pow10.c: New file.
4696         * libm/common/sf_pow10.c: Ditto.
4697         * libm/common/s_exp10.c: Ditto.
4698         * libm/common/sf_exp10.c: Ditto.
4699         * libc/include/math.h [!pow10]: New pow10 prototype.
4700         [!pow10f]: New pow10f prototype.
4701         [!exp10]: New exp10 prototype.
4702         [!exp10f]: New exp10f prototype.
4703
4704 2007-05-17  Charles Wilson  <cygwin@...>
4705
4706         * stdio/tmpfile.c: Include <sys/stat.h>.
4707         * stdio64/tmpfile64.c: Ditto.
4708
4709 2007-05-16  Eric Blake  <ebb9@byu.net>
4710
4711         Close security hole in tmpfile.
4712         * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
4713         generation and opening the fd.
4714         * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
4715
4716         * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
4717         (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
4718         required by POSIX.
4719         * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
4720         avoid clash with <math.h>.
4721
4722         * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
4723         * libc/search/hash.c (__hash_open): Likewise.
4724
4725 2007-05-14 Eric Blake <ebb9@byu.net>
4726
4727         Reduce stack size of *printf.
4728         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
4729         in %f.  Avoid malloc when possible for %S.
4730         (BUF): Improve stack locality by using smaller size.
4731         (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
4732         (exponent): Use smaller stack size.
4733
4734 2007-05-11  Eric Blake  <ebb9@byu.net>
4735
4736         Minimize printf/scanf size on platforms that don't need C99.
4737         * acconfig.h (_WANT_IO_C99_FORMATS): New macro.
4738         * newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
4739         * configure.in (newlib-io-c99-formats): New configure option.
4740         (_WANT_IO_C99_FORMATS): Define appropriately.
4741         * configure.host (*-linux*, cygwin): Default c99-formats to yes.
4742         * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
4743         Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
4744         * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
4745         Likewise.
4746         * configure: Regenerate.
4747
4748         * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
4749         (get_arg): Support '%a' and '%A'.
4750
4751 2007-05-09  Eric Blake  <ebb9@byu.net>
4752
4753         Allow zero size with non-null buf in *asnprintf.
4754         * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
4755         user's buf.
4756         * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
4757         * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
4758         * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
4759
4760 2007-05-07  Charles Wilson  <cygwin@...>
4761
4762         * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
4763
4764 2007-05-03  Eric Blake  <ebb9@byu.net>
4765
4766         Add support for asnprintf, and improve *printf documentation.
4767         * libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
4768         (ELIX_2_SOURCES): ...to this.
4769         (ELIX_4_SOURCES): Add new variable.  Build asnprintf.
4770         (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
4771         (CHEWOUT_FILES): Include diprintf in documentation.
4772         * libc/stdio/Makefile.in: Regenerate.
4773         * libc/stdio/diprintf.c: Improve documentation.
4774         * libc/stdio/dprintf.c: Likewise.
4775         * libc/stdio/siprintf.c: Likewise.
4776         * libc/stdio/sprintf.c: Likewise.
4777         * libc/stdio/vfprintf.c: Likewise.
4778         * libc/stdio/viprintf.c: Likewise.
4779         * libc/stdio/vsniprintf.c: Consolidate documentation.
4780         * libc/stdio/asiprintf.c: Refer to documentation.
4781         * libc/stdio/asprintf.c: Likewise.
4782         * libc/stdio/fiprintf.c: Likewise.
4783         * libc/stdio/fprintf.c: Likewise.
4784         * libc/stdio/iprintf.c: Likewise.
4785         * libc/stdio/printf.c: Likewise.
4786         * libc/stdio/sniprintf.c: Likewise.
4787         * libc/stdio/vdiprintf.c: Likewise.
4788         * libc/stdio/vdprintf.c: Likewise.
4789         * libc/stdio/vsiprintf.c: Likewise.
4790         * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
4791         * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
4792         * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
4793         * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
4794         file.
4795         * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
4796         * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
4797         typical case.
4798         * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
4799         * libc/include/stdio.h: Add prototypes for new functions; sort
4800         existing functions.
4801
4802 2007-05-03  Kazu Hirata  <kazu@codesourcery.com>
4803
4804         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4805         and memset.S.
4806         * libc/machine/m68k/Makefile.in: Regenerate.
4807         * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
4808         * libc/machine/m68k/memset.S: Likewise.
4809
4810 2007-05-01  Eric Blake  <ebb9@byu.net>
4811
4812         * libc/stdio64/local64.h: Delete, move contents to...
4813         * libc/stdio/local.h: ...here.
4814         * libc/stdio64/fdopen64.c: Update includes.
4815         * libc/stdio64/fopen64.c: Likewise.
4816         * libc/stdio64/freopen64.c: Likewise.
4817         * libc/stdio64/fseeko64.c: Likewise.
4818         * libc/stdio64/ftello64.c: Likewise.
4819         * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
4820         and stderr with 64-bit offset.
4821         * libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
4822         * libc/stdio/makebuf.c (__smakebuf_r): Likewise.
4823         * libc/stdio/mktemp.c (_gettemp): Likewise.
4824
4825 2007-05-01  Cary R.  <cygcary <at> yahoo.com>
4826
4827         * libm/math/e_pow.c: Fix to be consistent with glibc with regards
4828         to treatment of NaN and +-inf arguments.
4829         * libm/math/ef_pow.c: Ditto.
4830         * libm/math/w_pow.c: Ditto.
4831         * libm/math/wf_pow.c: Ditto.
4832         * libm/math/w_acos.c: Fix domain errors to return NaN.
4833         * libm/math/w_asin.c: Ditto.
4834         * libm/math/wf_acos.c: Ditto.
4835         * libm/math/wf_asin.c: Ditto.
4836         * libm/math/w_log.c: Fix to return NaN for negative number inputs.
4837         * libm/math/wf_log.c: Ditto.
4838         * libm/math/wf_log10.c: Ditto.
4839         * libm/math/w_log10.c: Ditto.
4840
4841 2007-04-27  Jeff Johnston  <jjohnstn@redhat.com>
4842
4843         * libc/machine/m68k/Makefile.am: Temporarily remove
4844         memcpy.S and memset.S until logic can be confirmed for
4845         !(__mcoldfile__) case.
4846         * libc/machine/m68k/Makefile.in: Regenerated.
4847
4848 2007-04-27  Kazu Hirata  <kazu@codesourcery.com>
4849
4850         * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
4851         and memset.S.
4852         * libc/machine/m68k/Makefile.in: Regenerate.
4853         * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
4854
4855 2007-04-26  Patrick Mansfield <patmans@us.ibm.com>
4856
4857         * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
4858         overridden via machine/ieeefp.h.
4859         * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
4860         macros for isnan and related macros.
4861         * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
4862         overridden via machine/ieeefp.h.
4863         * libm/machine/spu/Makefile.am: Add new files.
4864         * libm/machine/spu/Makefile.in: Autogenerate with new files.
4865         * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
4866         * libm/machine/spu/sf_finite.c: Add SPU specific finitef.
4867         * libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
4868         * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
4869         * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
4870         * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
4871         * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
4872
4873 2007-04-25  Jeff Johnston  <jjohnstn@redhat.com>
4874
4875         * libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
4876         * libm/common/sf_fpclassify.c: ...here.  New file.
4877         * libm/common/Makefile.am: Add sf_fpclassify.c.
4878         * libm/common/Makefile.in: Regenerated.
4879
4880 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4881
4882         * libc/machine/spu/sys/errno.h: New file, so spu errno values match
4883         ppu linux values. This file is a copy of the cris/sys/errno.h plus
4884         a few changes (see spu errno.h comments).
4885
4886 2007-04-25  Eric Blake  <ebb9@byu.net>
4887
4888         * libc/stdio/vfprintf.c (get_arg): Support %1$lc.  Simplify types
4889         that promote to int.
4890
4891 2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
4892
4893         * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so
4894         we clear the proper bits in the fpscr, and don't set some random ones.
4895
4896 2007-04-24  Eric Blake  <ebb9@byu.net>
4897
4898         * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
4899         or NaN with %05f.
4900
4901         * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
4902         _MB_CAPABLE.
4903
4904         * libc/include/limits.h (NL_ARGMAX): Define a default value.
4905         * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
4906         NL_ARGMAX, if present.
4907
4908 2007-04-23  Brian Dessent  <brian@dessent.net>
4909
4910         * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
4911         has been specified with types 'f', 'F', 'g', or 'G', ensure the
4912         trailing decimal is printed.
4913
4914 2007-04-23  Ralf Wildenhues  <Ralf.Wildenhues <at> gmx.de>
4915
4916         * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
4917         file.  Override Autoconf-2.59's version of these macros with
4918         fixed handling of multiple adjacent whitespace in arguments.
4919         * aclocal.m4: Regenerated forcefully.
4920         * configure: Ditto.
4921         * Makefile.in: Ditto.
4922         * libc/*Makefile.in: Ditto.
4923         * libc/*aclocal.m4: Ditto.
4924         * libc/*configure: Ditto.
4925         * libm/*Makefile.in: Ditto.
4926         * libm/*aclocal.m4: Ditto.
4927         * libm/*configure: Ditto.
4928
4929 2007-04-23  Jeff Johnston  <jjohnstn@redhat.com>
4930
4931         * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
4932         * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
4933         and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
4934         * libc/sys/arc/Makefile.in: Regenerated.
4935
4936 2007-04-17  Brian Dessent  <brian@dessent.net>
4937
4938         * libc/stdio/sscanf.c: Update documentation comments.
4939         * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
4940
4941 2007-04-12  Eric Blake  <ebb9@byu.net>
4942
4943         * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
4944         (chclass): Recognize 'F', 'X', 'n', and not 'W'.
4945         (get_arg): Handle %1$F, %1$n.
4946
4947 2007-04-10  Eric Blake  <ebb9@byu.net>
4948
4949         * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
4950         CFLAGS=-O0.
4951
4952 2007-04-09  Eric Blake  <ebb9@byu.net>
4953
4954         * libc/include/stdio.h: Add gcc format attributes to printf and
4955         scanf families.
4956
4957 2007-04-09  Joel Schopp <jschopp@austin.ibm.com>
4958
4959         * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
4960         even if the passed in length n is shorter than the source string.
4961         This matches both the non-spu specific and the glibc strxfrm
4962         behaviour.
4963
4964 2007-04-04  Mark Mitchell  <mark@codesourcery.com>
4965
4966         * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
4967         functions registering additional atexit functions.
4968
4969         * testsuite/lib/flags.exp (newlib_include_flags): Drop
4970         -I${newlib_dir}.
4971
4972 2007-04-04  Patrick Mansfield <patmans@us.ibm.com>
4973
4974         * libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
4975         prototype.
4976         * libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
4977         * libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
4978         * libc/machine/spu/fclose.c: Ditto.
4979         * libc/machine/spu/feof.c: Ditto.
4980         * libc/machine/spu/ferror.c: Ditto.
4981         * libc/machine/spu/fflush.c: Ditto.
4982         * libc/machine/spu/fgetc.c: Ditto.
4983         * libc/machine/spu/fgetpos.c: Ditto.
4984         * libc/machine/spu/fgets.c: Ditto.
4985         * libc/machine/spu/fileno.c: Ditto.
4986         * libc/machine/spu/fopen.c: Ditto.
4987         * libc/machine/spu/fprintf.c: Ditto.
4988         * libc/machine/spu/fputc.c: Ditto.
4989         * libc/machine/spu/fputs.c: Ditto.
4990         * libc/machine/spu/fread.c: Ditto.
4991         * libc/machine/spu/freopen.c: Ditto.
4992         * libc/machine/spu/fscanf.c: Ditto.
4993         * libc/machine/spu/fseek.c: Ditto.
4994         * libc/machine/spu/fsetpos.c: Ditto.
4995         * libc/machine/spu/ftell.c: Ditto.
4996         * libc/machine/spu/fwrite.c: Ditto.
4997         * libc/machine/spu/getc.c: Ditto.
4998         * libc/machine/spu/getchar.c: Ditto.
4999         * libc/machine/spu/gets.c: Ditto.
5000         * libc/machine/spu/perror.c: Ditto.
5001         * libc/machine/spu/printf.c: Ditto.
5002         * libc/machine/spu/putc.c: Ditto.
5003         * libc/machine/spu/putchar.c: Ditto.
5004         * libc/machine/spu/puts.c: Ditto.
5005         * libc/machine/spu/remove.c: Ditto.
5006         * libc/machine/spu/rename.c: Ditto.
5007         * libc/machine/spu/rewind.c: Ditto.
5008         * libc/machine/spu/scanf.c: Ditto.
5009         * libc/machine/spu/setbuf.c: Ditto.
5010         * libc/machine/spu/setvbuf.c: Ditto.
5011         * libc/machine/spu/snprintf.c: Ditto.
5012         * libc/machine/spu/sprintf.c: Ditto.
5013         * libc/machine/spu/sscanf.c: Ditto.
5014         * libc/machine/spu/tmpfile.c: Ditto.
5015         * libc/machine/spu/tmpnam.c: Ditto.
5016         * libc/machine/spu/ungetc.c: Ditto.
5017         * libc/machine/spu/vfprintf.c: Ditto.
5018         * libc/machine/spu/vfscanf.c: Ditto.
5019         * libc/machine/spu/vprintf.c: Ditto.
5020         * libc/machine/spu/vscanf.c: Ditto.
5021         * libc/machine/spu/vsnprintf.c: Ditto.
5022         * libc/machine/spu/vsprintf.c: Ditto.
5023         * libc/machine/spu/vsscanf.c: Ditto.
5024
5025 2007-04-04  Jeff Johnston  <jjohnstn@redhat.com>
5026
5027         * libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
5028
5029 2007-04-04  Eric Blake  <ebb9@byu.net>
5030
5031         * libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
5032         (asiprintf): Avoid overhead.
5033         * libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
5034         (asprintf): Avoid overhead.
5035         * libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
5036         * libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
5037         * libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
5038         (fiprintf): Avoid overhead.
5039         * libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
5040         (fprintf): Avoid overhead.
5041         * libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
5042         (iprintf): Avoid overhead.
5043         * libc/stdio/printf.c (_printf_r): Use _DEFUN.
5044         (printf): Avoid overhead.
5045         * libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
5046         * libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
5047         * libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
5048         * libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
5049         * libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
5050         * libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
5051         * libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
5052         * libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
5053         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
5054         vdiprintf.c.
5055         * libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
5056         (_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
5057
5058 2007-03-30  Dave Korn  <dave.korn@artimi.com>
5059
5060         * libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
5061         conflicting inline semantics between C99 and GNU89.
5062         (__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
5063         compatible with -fkeep-inline-functions usage.
5064         (__sputc_r):  Likewise for consistency even though disabled.
5065
5066 2007-03-29  Nick Clifton  <nickc@redhat.com>
5067
5068         Reflect changes made to generic vfprintf.c:
5069         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5070         and add a "struct reent *" argument.
5071         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5072         argument and call _VFPRINTF_R instead of VFPRINTF.
5073         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5074         Fix uses of __sprint() and __sbprintf.
5075
5076 2007-03-20  Nick Clifton  <nickc@redhat.com>
5077
5078         Reflect changes made to generic vfprintf.c:
5079         * libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r
5080         and add a "struct reent *" argument.
5081         (__sbprintf): Rename to __sbprintf_r, add a "struct reent *"
5082         argument and call _VFPRINTF_R instead of VFPRINTF.
5083         (_VFPRINTF_R): Add data pointer to call to cantwrite().
5084         Fix uses of __sprint() and __sbprintf.
5085
5086 2007-03-16  Charles Wilson  <cygwin@...>
5087
5088         * libc/argz/argz_insert.c: "before" pointer is
5089         invalid after *argz realloc.  Compute offset
5090         between "before" and *argz, and use it after
5091         reallocation instead.
5092
5093 2007-03-16  Eric Blake  <ebb9@byu.net>
5094
5095         * libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
5096         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
5097
5098 2007-03-15  Jeff Johnston  <jjohnstn@redhat.com>
5099
5100         * configure.in: Add new --enable-newlib-reent-small option.
5101         * configure: Regenerated.
5102         * acconfig.h: Add _WANT_REENT_SMALL.
5103         * newlib.hin: Regenerated minus PACKAGE macros to add
5104         _WANT_REENT_SMALL macro.
5105         * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
5106         if not already set.
5107         * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
5108         there is no buffer.
5109         * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
5110         use reentrant pointer passed in when resetting the file
5111         pointer to one of the std streams.
5112
5113 2007-03-15  Eric Blake  <ebb9@byu.net>
5114
5115         * libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
5116         (__smakebuf): Rename...
5117         (__smakebuf_r): to this.
5118         * libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
5119         * libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
5120         allocation, then rename...
5121         (__smakebuf_r): ...to this and fix reentrancy.
5122         * libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
5123         allocation, then rename...
5124         (__swsetup_r): ...to this and fix reentrancy.
5125         * libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
5126         * libc/stdio/refill.c (__srefill_r): Likewise.
5127         * libc/stdio/fclose.c (_fclose_r): Likewise.
5128         * libc/stdio/fread.c (_fread_r): Likewise.
5129         * libc/stdio/freopen.c (_freopen_r): Likewise.
5130         * libc/stdio/wbuf.c (__swbuf_r): Likewise.
5131         * libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
5132         * libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
5133         failed asprintf allocation, and fix reentrancy.
5134         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
5135         as required by POSIX.
5136         * libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
5137         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
5138         * libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
5139
5140 2007-03-12  Eric Blake  <ebb9@byu.net>
5141
5142         * libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
5143         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
5144         allocation to caller.
5145         * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
5146         * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
5147         * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
5148
5149 2007-02-23  Jeff Johnston  <jjohnstn@redhat.com>
5150
5151         * libm/math/w_pow.c: Fix typo in documentation comment.
5152
5153 2007-02-21  Patrick Mansfield <patmans@us.ibm.com>
5154
5155         * libc/reent/timer.c: Removed (split into two new files).
5156         * libc/reent/timesr.c: New file for _times_r.
5157         * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
5158         * reent/Makefile.in: Remove timer.c, add timesr.c and
5159         gettimeofdayr.c.
5160         * libc/reent/Makefile.am: Regenerate.
5161
5162 2007-02-20  Patrick Mansfield <patmans@us.ibm.com>
5163
5164         * configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
5165
5166 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5167
5168         * libc/machine/spu/Makefile.am: Add new objects.
5169         * libc/machine/spu/Makefile.in: Regenerated.
5170         * libc/machine/spu/fiprintf.c: New file. Add implementation of
5171         integer-only version.
5172         * libc/machine/spu/fiscanf.c: Ditto.
5173         * libc/machine/spu/iprintf.c: Ditto.
5174         * libc/machine/spu/iscanf.c: Ditto.
5175         * libc/machine/spu/siprintf.c: Ditto.
5176         * libc/machine/spu/siscanf.c: Ditto.
5177         * libc/machine/spu/sniprintf.c: Ditto.
5178         * libc/machine/spu/vfiprintf.c: Ditto.
5179         * libc/machine/spu/vfiscanf.c: Ditto.
5180         * libc/machine/spu/viprintf.c: Ditto.
5181         * libc/machine/spu/viscanf.c: Ditto.
5182         * libc/machine/spu/vsiprintf.c: Ditto.
5183         * libc/machine/spu/vsiscanf.c: Ditto.
5184         * libc/machine/spu/vsniprintf.c: Ditto.
5185         * libc/machine/spu/fprintf.c: Add support for integer-only
5186         version.
5187         * libc/machine/spu/fscanf.c: Ditto.
5188         * libc/machine/spu/printf.c: Ditto.
5189         * libc/machine/spu/scanf.c: Ditto.
5190         * libc/machine/spu/snprintf.c: Ditto.
5191         * libc/machine/spu/sprintf.c: Ditto.
5192         * libc/machine/spu/sscanf.c: Ditto.
5193         * libc/machine/spu/vfprintf.c: Ditto.
5194         * libc/machine/spu/vfscanf.c: Ditto.
5195         * libc/machine/spu/vprintf.c: Ditto.
5196         * libc/machine/spu/vscanf.c: Ditto.
5197         * libc/machine/spu/vsnprintf.c: Ditto.
5198         * libc/machine/spu/vsprintf.c: Ditto.
5199         * libc/machine/spu/vsscanf.c: Ditto.
5200
5201 2007-02-20  Kazunori Asayama <asayama@sm.sony.co.jp>
5202
5203         * libc/include/stdio.h: Add declaration for vsiprintf.
5204
5205 2007-02-14  Patrick Mansfield <patmans@us.ibm.com>
5206
5207         Add a floating point environment for SPU (cell):
5208
5209         * configure.host: add libm_machine_dir=spu.
5210         * libm/machine/configure: Add spu.
5211         * libm/machine/configure.in: regenerated with spu added.
5212         * libc/machine/spu/include/fenv.h: New file.
5213         * libc/machine/spu/sys/fenv.h: Ditto.
5214         * libm/machine/spu/Makefile.am: Ditto.
5215         * libm/machine/spu/Makefile.in: Ditto.
5216         * libm/machine/spu/aclocal.m4: Ditto.
5217         * libm/machine/spu/configure: Ditto.
5218         * libm/machine/spu/configure.in: Ditto.
5219         * libm/machine/spu/fe_dfl_env.c: Ditto.
5220         * libm/machine/spu/feclearexcept.c: Ditto.
5221         * libm/machine/spu/fegetenv.c: Ditto.
5222         * libm/machine/spu/fegetexceptflag.c: Ditto.
5223         * libm/machine/spu/fegetround.c: Ditto.
5224         * libm/machine/spu/feholdexcept.c: Ditto.
5225         * libm/machine/spu/feraiseexcept.c: Ditto.
5226         * libm/machine/spu/fesetenv.c: Ditto.
5227         * libm/machine/spu/fesetexceptflag.c: Ditto.
5228         * libm/machine/spu/fesetround.c: Ditto.
5229         * libm/machine/spu/fetestexcept.c: Ditto.
5230         * libm/machine/spu/feupdateenv.c: Ditto.
5231         * libm/machine/spu/headers/feclearexcept.h: Ditto.
5232         * libm/machine/spu/headers/fefpscr.h: Ditto.
5233         * libm/machine/spu/headers/fegetenv.h: Ditto.
5234         * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
5235         * libm/machine/spu/headers/fegetround.h: Ditto.
5236         * libm/machine/spu/headers/feholdexcept.h: Ditto.
5237         * libm/machine/spu/headers/feraiseexcept.h: Ditto.
5238         * libm/machine/spu/headers/fesetenv.h: Ditto.
5239         * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
5240         * libm/machine/spu/headers/fesetround.h: Ditto.
5241         * libm/machine/spu/headers/fetestexcept.h: Ditto.
5242         * libm/machine/spu/headers/feupdateenv.h: Ditto.
5243
5244 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
5245
5246         * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
5247         Cygwin.
5248
5249 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
5250
5251         * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
5252         Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
5253
5254 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
5255
5256         * libc/include/sys/features.h: Add definition of all supported
5257         _POSIX_xxx values for Cygwin.
5258         * libc/include/sys/types.h (pthread_rwlock_t): Omit definition
5259         on Cygwin.
5260         (pthread_rwlockattr_t): Ditto.
5261         * libc/include/sys/unistd.h: Define all _SC_xxx values as
5262         required by SUSv3.  Unify formatting.
5263
5264 2007-02-02  Ralf Corsépius <ralf.corsepius@rtems.org>
5265
5266         * libc/include/sys/errno.h: Add ECANCELED.
5267
5268 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5269             Kazunori Asayama <asayama@sm.sony.co.jp>
5270
5271         * libc/machine/spu/Makefile.am: Add objects.
5272         * libc/machine/spu/Makefile.in: Regenerated.
5273         * libc/machine/spu/vsscanf.c: New file. Add a stdio function
5274         implementation.
5275         * libc/machine/spu/snprintf.c: Ditto.
5276         * libc/machine/spu/sprintf.c: Ditto.
5277         * libc/machine/spu/sscanf.c: Ditto.
5278         * libc/machine/spu/remove.c: Ditto.
5279         * libc/machine/spu/rename.c: Ditto.
5280         * libc/machine/spu/tmpnam.c: Ditto.
5281         * libc/machine/spu/vsnprintf.c: Add initialization routine of
5282         stdio stuffs.
5283         * libc/machine/spu/vsprintf.c: Ditto.
5284
5285 2007-02-01  Joel Schopp <jschopp@austin.ibm.com>
5286             Kazunori Asayama <asayama@sm.sony.co.jp>
5287
5288         * configure.host: Enable SPU specific stdio directory.
5289         * libc/machine/spu/Makefile.am: Add objects.
5290         * libc/machine/spu/Makefile.in: Regenerated.
5291         * libc/machine/spu/c99ppe.h: Add macros and function
5292         declarations to initialize SPU specific stdio stuffs.
5293         * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
5294         specific FILE structures.
5295         * libc/machine/spu/perror.c: Add initialization routine of
5296         stdio stuffs.
5297         * libc/machine/spu/printf.c: Ditto.
5298         * libc/machine/spu/putchar.c: Ditto.
5299         * libc/machine/spu/puts.c: Ditto.
5300         * libc/machine/spu/vprintf.c: Ditto.
5301         * libc/machine/spu/clearerr.c: New file. Add a stdio function
5302         implementation.
5303         * libc/machine/spu/feof.c: Ditto.
5304         * libc/machine/spu/ferror.c: Ditto.
5305         * libc/machine/spu/fileno.c: Ditto.
5306         * libc/machine/spu/fopen.c: Ditto.
5307         * libc/machine/spu/fclose.c: Ditto.
5308         * libc/machine/spu/freopen.c: Ditto.
5309         * libc/machine/spu/fflush.c: Ditto.
5310         * libc/machine/spu/fseek.c: Ditto.
5311         * libc/machine/spu/ftell.c: Ditto.
5312         * libc/machine/spu/rewind.c: Ditto.
5313         * libc/machine/spu/fgetpos.c: Ditto.
5314         * libc/machine/spu/fsetpos.c: Ditto.
5315         * libc/machine/spu/fread.c: Ditto.
5316         * libc/machine/spu/fwrite.c: Ditto.
5317         * libc/machine/spu/getc.c: Ditto.
5318         * libc/machine/spu/getchar.c: Ditto.
5319         * libc/machine/spu/gets.c: Ditto.
5320         * libc/machine/spu/fgetc.c: Ditto.
5321         * libc/machine/spu/fgets.c: Ditto.
5322         * libc/machine/spu/ungetc.c: Ditto.
5323         * libc/machine/spu/putc.c: Ditto.
5324         * libc/machine/spu/fputc.c: Ditto.
5325         * libc/machine/spu/fputs.c: Ditto.
5326         * libc/machine/spu/vfprintf.c: Ditto.
5327         * libc/machine/spu/vfscanf.c: Ditto.
5328         * libc/machine/spu/fprintf.c: Ditto.
5329         * libc/machine/spu/fscanf.c: Ditto.
5330         * libc/machine/spu/scanf.c: Ditto.
5331         * libc/machine/spu/vscanf.c: Ditto.
5332         * libc/machine/spu/setbuf.c: Ditto.
5333         * libc/machine/spu/setvbuf.c: Ditto.
5334         * libc/machine/spu/tmpfile.c: Ditto.
5335
5336 2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>
5337
5338         * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
5339         * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
5340         around stdio macros that manipulate fields in the normal file
5341         structure.
5342         * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
5343         <sys/custom_file.h> to define custom FILE structure.
5344         * libc/include/sys/custom_file.h: New default header file
5345         that generates error if not overridden when __CUSTOM_FILE_IO__ set.
5346         * libc/machine/spu/sys/custom_file.h: New file.
5347
5348 2007-01-31  Kazunori Asayama <asayama@sm.sony.co.jp>
5349
5350         * configure.host: Define stdio directory as a variable.
5351         * libc/Makefile.am: Define stdio related names
5352         as macros.
5353         * libc/configure.in: Add detection routine of stdio directory.
5354         * libc/Makefile.in: Regenerated.
5355         * libc/configure: Ditto.
5356         * libc/argz/Makefile.in: Ditto.
5357         * libc/ctype/Makefile.in: Ditto.
5358         * libc/errno/Makefile.in: Ditto.
5359         * libc/iconv/Makefile.in: Ditto.
5360         * libc/iconv/ccs/Makefile.in: Ditto.
5361         * libc/iconv/ccs/binary/Makefile.in: Ditto.
5362         * libc/iconv/ces/Makefile.in: Ditto.
5363         * libc/iconv/lib/Makefile.in: Ditto.
5364         * libc/locale/Makefile.in: Ditto.
5365         * libc/misc/Makefile.in: Ditto.
5366         * libc/posix/Makefile.in: Ditto.
5367         * libc/reent/Makefile.in: Ditto.
5368         * libc/search/Makefile.in: Ditto.
5369         * libc/signal/Makefile.in: Ditto.
5370         * libc/stdio/Makefile.in: Ditto.
5371         * libc/stdio64/Makefile.in: Ditto.
5372         * libc/stdlib/Makefile.in: Ditto.
5373         * libc/string/Makefile.in: Ditto.
5374         * libc/syscalls/Makefile.in: Ditto.
5375         * libc/time/Makefile.in: Ditto.
5376         * libc/unix/Makefile.in: Ditto.
5377
5378 2007-01-30  Ben Elliston  <bje@au.ibm.com>
5379
5380         * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
5381         fmt member.
5382         * libc/machine/spu/printf.c (c99_printf_t): Likewise.
5383         (printf): Pass fmt to va_start to suppress a warning.
5384
5385         * libc/search/hash.c (init_hash): Make `info' parameter const.
5386
5387 2007-01-19  Kazunori Asayama <asayama@sm.sony.co.jp>
5388
5389         * libc/machine/spu/c99ppe.h: Replace vector with __vector.
5390         * libc/machine/spu/vec_literal.h: Ditto.
5391         * libc/machine/spu/strncmp.c: Ditto.
5392
5393 2007-01-15  Joseph Myers  <joseph@codesourcery.com>
5394             Kazu Hirata  <kazu@codesourcery.com>
5395
5396         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
5397         for E500V1 and E500V2.
5398
5399 2007-01-11  Jeff Johnston  <jjohnstn@redhat.com>
5400
5401         * libm/configure.in: Always configure machine directory.
5402         * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
5403         unconditionally.
5404         * libm/configure: Regenerated.
5405         * libm/Makefile.in: Ditto.
5406         * libm/*/Makefile.in: Ditto.
5407
5408 2007-01-05  Brian Ford  <Brian.Ford@FlightSafety.com>
5409
5410         * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
5411
5412 2007-01-02  Ben Elliston  <bje@au.ibm.com>
5413
5414         * doc/makedoc.c: Include <stdlib.h>.
5415         (malloc, realloc): Remove extern declarations.
5416
5417 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5418
5419         * NEWS: Update with 1.15.0 info.
5420         * README: Ditto.
5421         * acinclude.m4: Change version number to 1.15.0.
5422         * aclocal.m4: Regenerated.
5423         * configure: Ditto.
5424         * doc/aclocal.m4: Ditto.
5425         * doc/configure: Ditto.
5426         * libc/*/aclocal.m4: Ditto.
5427         * libc/*/configure: Ditto.
5428         * libc/libc.texinfo: Ditto.
5429         * libm/*/aclocal.m4: Ditto.
5430         * libm/*/configure: Ditto.
5431         * libm/libm.texinfo: Ditto.
5432         * libc/sys/linux/shared.ld: Add VERS_1.15.
5433
5434 2006-12-18  Kazu Hirata  <kazu@codesourcery.com>
5435
5436         Merge from newlib-csl-20060320-branch:
5437         2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
5438                     Kazu Hirata  <kazu@codesourcery.com>
5439
5440         * configure.host: Recognize fido.
5441
5442 2006-12-18  Joel Schopp <jschopp@austin.ibm.com>
5443
5444         * libc/machine/spu/c99ppe.h: New file
5445         * libc/machine/spu/perror.c: New file to override libc/stdio version.
5446         * libc/machine/spu/printf.c: New file
5447         * libc/machine/spu/putchar.c: New file
5448         * libc/machine/spu/puts.c: New file
5449         * libc/machine/spu/vprintf.c: New file
5450         * libc/machine/spu/vsnprintf.c: New file
5451         * libc/machine/spu/vsprintf.c: New file
5452         * libc/machine/spu/Makefile.am: Add new targets.
5453         * libc/machine/spu/Makefile.in: Regenerated.
5454
5455 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5456
5457         * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
5458         * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
5459
5460 2006-12-18  Jeff Johnston  <jjohnstn@redhat.com>
5461
5462         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
5463         2.6.5 version of Doug Lea's malloc which is the basis of
5464         this code.
5465
5466 2006-12-18  Kazunori Asayama <asayama@sm.sony.co.jp>
5467
5468         * libc/include/machine/setjmp.h[__SPU__]: Replace vector with __vector.
5469
5470 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
5471             Eric Blake  <ebb9@byu.net>
5472
5473         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5474         read but unused data.
5475         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
5476         even read streams may have side effects that must happen.
5477
5478 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5479
5480         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
5481         correctly.
5482
5483 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
5484
5485         * libc/include/alloca.h: Add undef alloca to work with xlc.
5486
5487 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
5488
5489         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
5490         cell spu.
5491
5492 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5493
5494         * libc/machine/spu/strncpy.c: Add padding.
5495
5496 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
5497
5498         * testsuite/newlib.string/tstring.c:
5499
5500 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
5501
5502         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
5503         * libc/machine/spu/strrchr.c: Ditto.
5504
5505 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
5506
5507         * libc/include/math.h: Allow C99 functions/macros to be
5508         defined for C++ even when __STRICT_ANSI__.
5509
5510 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
5511
5512         * libc/stdio/makebuf.c (__smakebuf): If dealing with
5513         an asprintf-family buffer, make the default initial size 64.
5514
5515 2006-11-29  Eric Blake  <ebb9@byu.net>
5516
5517         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
5518         asprintf, as well as quadratic realloc behavior.
5519
5520 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
5521
5522         * libc/machine/spu/memset.c: Fix type of explicit cast.
5523         * libc/machine/spu/strncmp.c: Add explicit cast.
5524         * libc/machine/spu/strrchr.c: Ditto.
5525         * libc/machine/spu/strspn.c: Ditto.
5526
5527 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
5528
5529         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
5530         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
5531         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
5532         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
5533         * libc/machine/spu/strncat.c: Explicit cast.
5534         * libc/machine/spu/strncmp.c: Use spu_splats.
5535         * libc/machine/spu/strncpy.c: Explicit cast.
5536         * libc/machine/spu/strrchr.c: Use spu_splats.
5537         * libc/machine/spu/strspn.c: Use spu_splats.
5538
5539 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
5540
5541         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
5542
5543 2006-11-14  Eric Blake  <ebb9@byu.net>
5544
5545         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
5546         (chclass): ' is a flag.  j, t, and z are modifiers.
5547
5548 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
5549
5550         * configure.host: Add support for bfin.
5551         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
5552         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
5553         * libc/machine/bfin/aclocal.m4: Generate.
5554         * libc/machine/bfin/configure.in: New.
5555         * libc/machine/bfin/configure: Generate.
5556         * libc/machine/bfin/Makefile.am: New.
5557         * libc/machine/bfin/Makefile.in: Generate.
5558         * libc/machine/bfin/setjmp.S: New.
5559         * libc/machine/bfin/longjmp.S: New.
5560         * libc/machine/configure.in: Add bfin support.
5561         * libc/machine/configure: Generate.
5562
5563 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
5564
5565         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
5566         (_PC_FILESIZEBITS): Add definition.
5567         (_PC_2_SYMLINKS): Ditto.
5568         (_PC_SYMLINK_MAX): Ditto.
5569
5570 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
5571
5572         * libc/machine/spu/memcpy.c: Override generic function with vectorized
5573         version optimized for the cell spu.
5574         * libc/machine/spu/memmove.c: Ditto.
5575         * libc/machine/spu/memset.c: Ditto.
5576         * libc/machine/spu/strcat.c: Ditto.
5577         * libc/machine/spu/strchr.c: Ditto.
5578         * libc/machine/spu/strcmp.c: Ditto.
5579         * libc/machine/spu/strcpy.c: Ditto.
5580         * libc/machine/spu/strcspn.c: Ditto.
5581         * libc/machine/spu/strlen.c: Ditto.
5582         * libc/machine/spu/strncat.c: Ditto.
5583         * libc/machine/spu/strncmp.c: Ditto.
5584         * libc/machine/spu/strncpy.c: Ditto.
5585         * libc/machine/spu/strpbrk.c: Ditto.
5586         * libc/machine/spu/strrchr.c: Ditto.
5587         * libc/machine/spu/strspn.c: Ditto.
5588         * libc/machine/spu/strxfrm.c: Ditto.
5589         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
5590         removing altivec style initializers.
5591         * libc/machine/spu/Makefile.am: Add new files to list so they build
5592         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
5593
5594 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
5595
5596         * README: Add a brief section on how to regenerate
5597         configuration files in newlib.
5598
5599 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
5600
5601         * libc/include/math.h: (exception): Add a comment
5602         telling fixincludes that we handle C vs. C++ issue.
5603
5604 2006-10-11  Yang Tse  <yangsita@gmail.com>
5605
5606         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
5607         braced-groups.
5608
5609 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
5610
5611         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
5612
5613 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
5614
5615         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
5616         for clearerr, feof, or fileno.
5617         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
5618         the dummy std stream scheme to use pointers to const external
5619         fake files, one for each standard stream.
5620         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
5621         argument.  For _REENT_SMALL, reset the file pointer if it
5622         matches one of the fake std stream pointers.
5623         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
5624         argument.
5625         * libc/stdio/fclose.c: Ditto.
5626         * libc/stdio/feof.c: Ditto.
5627         * libc/stdio/ferror.c: Ditto.
5628         * libc/stdio/fflush.c: Ditto.
5629         * libc/stdio/fgetc.c: Ditto.
5630         * libc/stdio/fgets.c: Ditto.
5631         * libc/stdio/fileno.c: Ditto.
5632         * libc/stdio/findfp.c: Ditto.
5633         * libc/stdio/fputc.c: Ditto.
5634         * libc/stdio/fputs.c: Ditto.
5635         * libc/stdio/fread.c: Ditto.
5636         * libc/stdio/freopen.c: Ditto.
5637         * libc/stdio/fseek.c: Ditto.
5638         * libc/stdio/ftell.c: Ditto.
5639         * libc/stdio/fwrite.c: Ditto.
5640         * libc/stdio/getc.c: Ditto.
5641         * libc/stdio/getdelim.c: Ditto.
5642         * libc/stdio/putc.c: Ditto.
5643         * libc/stdio/refill.c: Ditto.
5644         * libc/stdio/setvbuf.c: Ditto.
5645         * libc/stdio/ungetc.c: Ditto.
5646         * libc/stdio/vfprintf.c: Ditto.
5647         * libc/stdio/vfscanf.c: Ditto.
5648         * libc/stdio/wbuf.c: Ditto.: Ditto.
5649         * libc/stdio/wsetup.c: Ditto.
5650         * libc/stdio64/freopen64.c: Ditto.
5651         * libc/stdio64/fseeko64.c: Ditto.
5652         * libc/stdio64/ftello64.c: Ditto.
5653         * libc/machine/powerpc/vfprintf.c: Ditto.
5654         * libc/machine/powerpc/vfscanf.c: Ditto.
5655
5656 2006-09-22  Paul Brook  <paul@codesourcery.com>
5657
5658         * libc/include/sys/reent.h: Define and use __reent_assert.
5659
5660 2006-09-13  Joel Sherrill <joel@oarcorp.com>
5661
5662         * libc/include/pthread.h: Add pthread barriers,
5663         rwlocks, and spinlocks.  Change const to
5664         _CONST and prefix parameter names with
5665         an underscore.
5666         * libc/include/sys/types.h: Add id and attribute
5667         types for barriers, wrlocks, and spinlocks.
5668         * libc/include/sys/features.h: Enable barriers,
5669         wrlocks, and spinlocks for RTEMS.
5670
5671 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
5672
5673         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
5674         supposed to be writable.
5675         * libm/common/s_lib_ver.c: Ditto.
5676
5677 2006-09-12  Paul Brook  <paul@codesourcery.com>
5678
5679         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
5680
5681 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
5682
5683
5684         * libc/machine/xstormy16/Makefile.am:
5685         Add $(lpfx) prefix to LIBADD objects.
5686         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
5687         * libc/machine/xstormy16/Makefile.in: Regenerated.
5688
5689 2006-09-06  Eric Blake  <ebb9@byu.net>
5690
5691         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
5692         't', and 'z' modifiers.
5693
5694 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
5695
5696         Merge from newlib-csl-20060320-branch:
5697         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
5698
5699         * configure.host: Tell it we have _rename and _system when
5700         building m68k-unknown-elf.
5701
5702 2006-08-29  Paul Brook  <paul@codesourcery.com>
5703
5704         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
5705
5706 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
5707
5708         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
5709         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
5710         This is needed to build all AVR and H8300 RTEMS multilib variants.
5711
5712 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
5713
5714         * libc/machine/configure.in: Add configuration for SPU.
5715         * libc/machine/configure: Regenerated.
5716         * libc/machine/spu/memcpy.c: Include string.h.
5717
5718 2006-08-22  Eric Blake  <ebb9@byu.net>
5719
5720         * libc/posix/popen.c (popen): Don't close output end of pipe in
5721         child if stdout was closed on entry.
5722         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
5723
5724 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
5725
5726         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
5727         line.
5728
5729 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
5730
5731         * libc/time/gmtime.c: Correct man page; clock is not a
5732         local time and no conversion occurs.
5733
5734 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5735
5736         * configure.host (newlib_cflags) [spu]: Add special compiler
5737         options to reduce size.
5738
5739 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
5740
5741         * configure.host: Add spu support.
5742         * libc/include/stdint.h: Ditto.
5743         * libc/include/machine/ieeefp.h: Ditto.
5744         * libc/include/machine/setjmp.h: Ditto.
5745         * libc/include/sys/config.h: Ditto.
5746         * libc/include/sys/types.h: Ditto.
5747         * libc/machine/spu/Makefile.am: New file.
5748         * libc/machine/spu/Makefile.in: Ditto.
5749         * libc/machine/spu/aclocal.m4: Ditto.
5750         * libc/machine/spu/configure: Ditto.
5751         * libc/machine/spu/configure.in: Ditto.
5752         * libc/machine/spu/memcpy.c: Ditto.
5753         * libc/machine/spu/setjmp.S: Ditto.
5754
5755 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
5756
5757         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
5758         properly.
5759
5760 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
5761
5762         * libc/Makefile.am: Add libc_TEXINFOS dependency on
5763         generated .texi files.
5764         * libm/Makefile.am: Add libm_TEXINFOS dependency on
5765         generated .texi files.
5766         * libc/Makefile.in: Regenerated.
5767         * libm/Makefile.in: Ditto.
5768
5769 2006-08-01  Thiemo Seufer  <ths@mips.com>
5770             Nigel Stephens  <nigel@mips.com>
5771
5772         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
5773         define this to force _impure_ptr to live in the .sdata section.
5774
5775 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5776
5777         * acinclude.m4: Check for readelf tool.
5778         * configure.in: Use ${READELF} instead of hard-coding.
5779         * Regenerate all aclocal.m4, Makefile.in, and configure files.
5780
5781 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
5782
5783         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
5784         to avoid conflict with newer glibc's revision of mremap.
5785
5786 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>
5787
5788         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
5789         floating-point format support.  Also redefine
5790         dword0 and dword1 macros.
5791         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
5792         to prevent setting dword1 which is an rvalue only.
5793
5794 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5795
5796         * libc/stdlib/Makefile.am: Add new gdtoa routines.
5797         * libc/stdlib/Makefile.in: Regenerated.
5798         * libc/stdlib/gd_qnan.h: New file.
5799         * libc/stdlib/gdtoa-gethex.c: Ditto.
5800         * libc/stdlib/gdtoa-hexnan.c: Ditto.
5801         * libc/stdlib/gdtoa.h: Ditto.
5802         * libc/stdlib/mprec.c: Add new helper routines needed by
5803         the new gdtoa code.
5804         * libc/stdlib/mprec.h: Integrate some defines and prototypes
5805         used by gdtoa routines here.
5806         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
5807         which adds C99 support such as nan, inf, and hexadecimal input
5808         format.
5809
5810 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
5811
5812         * libc/include/stdio.h (__sgetc_r): Fix typo.
5813         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
5814         * libc/stdio/rget.c (__srbuf): Reinstantiate.
5815         * libc/stdio/wbuf.c (__swbuf): Ditto.
5816
5817 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>
5818
5819         * libc/include/stdio.h: Add new reentrant I/O prototypes for
5820         read/write functions.  Change getc/putc macros to have reentrant underlying
5821         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
5822         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
5823         new reentrant I/O functions/macros for reading/writing.
5824         * libc/stdio/fgets.c: Ditto.
5825         * libc/stdio/fputc.c: Ditto.
5826         * libc/stdio/fputs.c: Ditto.
5827         * libc/stdio/fread.c: Ditto.
5828         * libc/stdio/fseek.c: Ditto.
5829         * libc/stdio64/fseeko64.c: Ditto.
5830         * libc/stdio/fwrite.c: Ditto.
5831         * libc/stdio/getc.c: Ditto.
5832         * libc/stdio/getc_u.c: Ditto.
5833         * libc/stdio/getchar.c: Ditto.
5834         * libc/stdio/getchar_u.c: Ditto.
5835         * libc/stdio/putc.c: Ditto.
5836         * libc/stdio/putc_u.c: Ditto.
5837         * libc/stdio/putchar.c: Ditto.
5838         * libc/stdio/puts.c: Ditto.
5839         * libc/stdio/vfprintf.c: Ditto.
5840         * libc/stdio/vfscanf.c: Ditto.
5841         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
5842         Change all previous callers of __sfvwrite.  Set errno to EBADF and
5843         set error flag on if attempt is made to write to file that does not
5844         allow writing.
5845         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
5846         * libc/stdio/local.h: Ditto.
5847         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
5848         Set errno to EBADF and the error flag on if attempt is made to
5849         read unreadable file.  Change all previous callers of __srefill.
5850         * libc/stdio/rget.c
5851         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
5852         all previous callers of __swbuf.
5853         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
5854         huge value macros are already defined correctly for i386 by <math.h>.
5855
5856 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
5857
5858         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
5859         Make them do something useful in the ARM_RDI_MONITOR case.
5860
5861 2006-06-07  Fred Fish  <fnf@specifix.com>
5862
5863         * libc/search/hash_bigkey.c (MIN,MAX): Remove
5864         defines that are already supplied by <sys/param.h>.
5865
5866 2006-06-07  Fred Fish  <fnf@specifix.com>
5867
5868         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
5869
5870 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5871
5872         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
5873         usleep.c.
5874         * libc/posix/Makefile.in: Regenerate.
5875         * libc/posix/sleep.c: New file.
5876         * libc/posix/usleep.c: Ditto.
5877
5878 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
5879
5880         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
5881         -DABORT_PROVIDED flag.
5882         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
5883         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
5884
5885 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
5886
5887         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
5888         * Makefile.in: Regenerated.
5889         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
5890         extraneous CFLAGS reference now that CCASFLAGS are being extended
5891         properly via multilib.
5892         * libc/machine/sh/Makefile.in: Regenerated.
5893
5894 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
5895
5896         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
5897         sigismember.
5898
5899 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5900
5901         * libc/misc/dprintf.c: Removed.
5902         * libc/misc/__dprintf.c: Renamed from dprintf.c.
5903         * libc/misc/Makefile.am: Changed appropriately for rename.
5904         * libc/misc/Makefile.in: Regenerated.
5905
5906 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
5907
5908         * libc/include/stdio.h: Protect dprintf prototype
5909         with #ifndef dprintf so as to not interfere with
5910         historical code defining their own dprintf macro.
5911
5912 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
5913
5914         * libc/include/stdio.h: Add prototypes for fiscanf,
5915         iscanf, and siscanf.
5916
5917 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
5918
5919         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
5920         (DEF_NEWLIB_VERSION).
5921         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
5922         * configure: Regenerate.
5923
5924 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
5925
5926         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
5927         lib_a_SOURCES.
5928         * libc/ctype/Makefile.in: Regenerated.
5929
5930 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
5931
5932         * libc/machine/arm/Makefile.am: Fix a typo.
5933         * libc/machine/arm/Makefile.in: Regenerated.
5934
5935 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
5936
5937         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5938         * libc/machine/sh/Makefile.in: Regenerate.
5939
5940 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
5941
5942         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
5943         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
5944
5945 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
5946
5947         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
5948         .s.
5949         * libc/sys/sysnec810/Makefile.in: Regenerated.
5950         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
5951         * libc/sys/sysnec810/io.S: Ditto.
5952         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
5953         * libc/sys/sysnec810/io.s: Ditto.
5954
5955 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
5956
5957         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
5958         be specified instead of object, do so.
5959         * libc/ctype/Makefile.am: Ditto.
5960         * libc/iconv/ccs/Makefile.am: Ditto.
5961         * libc/iconv/ces/Makefile.am: Ditto.
5962         * libc/iconv/lib/Makefile.am: Ditto.
5963         * libc/locale/Makefile.am: Ditto.
5964         * libc/posix/Makefile.am: Ditto.
5965         * libc/reent/Makefile.am: Ditto.
5966         * libc/search/Makefile.am: Ditto.
5967         * libc/stdio/Makefile.am: Ditto.
5968         * libc/stdio64/Makefile.am: Ditto.
5969         * libc/stdlib/Makefile.am: Ditto.
5970         * libc/string/Makefile.am: Ditto.
5971         * libc/syscalls/Makefile.am: Ditto.
5972         * libc/unix/Makefile.am: Ditto.
5973         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
5974         prefix added automatically.  Any specified rules must use $(lpfx) for
5975         object file names.
5976         * libc/machine/arm/Makefile.am: Ditto.
5977         * libc/machine/cris/Makefile.am: Ditto.
5978         * libc/machine/crx/Makefile.am: Ditto.
5979         * libc/machine/d10v/Makefile.am: Ditto.
5980         * libc/machine/d30v/Makefile.am: Ditto.
5981         * libc/machine/fr30/Makefile.am: Ditto.
5982         * libc/machine/frv/Makefile.am: Ditto.
5983         * libc/machine/h8300/Makefile.am: Ditto.
5984         * libc/machine/h8500/Makefile.am: Ditto.
5985         * libc/machine/hppa/Makefile.am: Ditto.
5986         * libc/machine/i386/Makefile.am: Ditto.
5987         * libc/machine/i960/Makefile.am: Ditto.
5988         * libc/machine/iq2000/Makefile.am: Ditto.
5989         * libc/machine/m32c/Makefile.am: Ditto.
5990         * libc/machine/m32r/Makefile.am: Ditto.
5991         * libc/machine/m68hc11/Makefile.am: Ditto.
5992         * libc/machine/m68k/Makefile.am: Ditto.
5993         * libc/machine/m88k/Makefile.am: Ditto.
5994         * libc/machine/mips/Makefile.am: Ditto.
5995         * libc/machine/mn10200/Makefile.am: Ditto.
5996         * libc/machine/mn10300/Makefile.am: Ditto.
5997         * libc/machine/mt/Makefile.am: Ditto.
5998         * libc/machine/necv70/Makefile.am: Ditto.
5999         * libc/machine/powerpc/Makefile.am: Ditto.
6000         * libc/machine/sh/Makefile.am: Ditto.
6001         * libc/machine/sh/Makefile.in: Ditto.
6002         * libc/machine/sparc/Makefile.am: Ditto.
6003         * libc/machine/tic4x/Makefile.am: Ditto.
6004         * libc/machine/tic80/Makefile.am: Ditto.
6005         * libc/machine/v850/Makefile.am: Ditto.
6006         * libc/machine/w65/Makefile.am: Ditto.
6007         * libc/machine/xscale/Makefile.am: Ditto.
6008         * libc/machine/xstormy16/Makefile.am: Ditto.
6009         * libc/machine/z8k/Makefile.am: Ditto.
6010         * libc/sys/a29khif/Makefile.am: Ditto.
6011         * libc/sys/arm/Makefile.am: Ditto.
6012         * libc/sys/d10v/Makefile.am: Ditto.
6013         * libc/sys/h8300hms/Makefile.am: Ditto.
6014         * libc/sys/h8500hms/Makefile.am: Ditto.
6015         * libc/sys/linux/Makefile.am: Ditto.
6016         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6017         * libc/sys/linux/net/Makefile.am: Ditto.
6018         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6019         * libc/sys/m88kbug/Makefile.am: Ditto.
6020         * libc/sys/mmixware/Makefile.am: Ditto.
6021         * libc/sys/rdos/Makefile.am: Ditto.
6022         * libc/sys/rtems/Makefile.am: Ditto.
6023         * libc/sys/sh/Makefile.am: Ditto.
6024         * libc/sys/sun4/Makefile.am: Ditto.
6025         * libc/sys/sysmec/Makefile.am: Ditto.
6026         * libc/sys/sysnec810/Makefile.am: Ditto.
6027         * libc/sys/sysnecv850/Makefile.am: Ditto.
6028         * libc/sys/sysvi386/Makefile.am: Ditto.
6029         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6030         * libc/sys/tic80/Makefile.am: Ditto.
6031         * libc/sys/w65/Makefile.am: Ditto.
6032         * libc/sys/z8ksim/Makefile.am: Ditto.
6033         * libc/machine/necv70/fastmath.S: Renamed from .s file.
6034         * libc/machine/necv70/setjmp.S: Ditto.
6035         * libc/machine/necv70/fastmath.s: Removed.
6036         * libc/machine/necv70/setjmp.s: Ditto.
6037         * libc/machine/w65/*.S: New files renamed from .s files.
6038         * libc/machine/w65/*.s: Renamed and removed.
6039         * libc/sys/a29khif/*.S: New files renamed from .s files.
6040         * libc/sys/a29khif/*.s: Renamed and removed.
6041         * libc/sys/sysvi386/*.S: New files renamed from .s files.
6042         * libc/sys/sysvi386/*.s: Renamed and removed.
6043         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
6044         * libc/sys/sysvnecv70/*.s: Renamed and removed.
6045         * libc/*Makefile.in: Regenerated as appropriate.
6046
6047 2006-04-24  DJ Delorie  <dj@redhat.com>
6048
6049         * libc/machine/sh/configure.in: Avoid link tests.
6050         * libc/machine/sh/configure: Regenerate.
6051
6052 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
6053
6054         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
6055         (sigaddset, sigemptyset): Add return code.
6056
6057 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
6058
6059         * acinclude.m4: New _NEWLIB_VERSION.
6060         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
6061         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
6062         Use new form of AC_INIT_AUTOMAKE.
6063         * configure.in: AC_PREREQ(2.59).
6064         Use autoconf-2.5.x version of AC_INIT.
6065         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
6066         autoconf-2.13's AC_OUTPUT.
6067         * libm/configure.in: Ditto.
6068         * libm/machine/configure.in: Ditto.
6069         * libm/machine/i386/configure.in: Ditto.
6070         * libc/configure.in: Ditto.
6071         * libc/machine/a29k/configure.in: Ditto.
6072         * libc/machine/arm/configure.in: Ditto.
6073         * libc/machine/configure.in: Ditto.
6074         * libc/machine/mn10300/configure.in: Ditto.
6075         * libc/machine/powerpc/configure.in: Ditto.
6076         * libc/machine/z8k/configure.in: Ditto.
6077         * libc/machine/h8300/configure.in: Ditto.
6078         * libc/machine/mips/configure.in: Ditto.
6079         * libc/machine/crx/configure.in: Ditto.
6080         * libc/machine/m68hc11/configure.in: Ditto.
6081         * libc/machine/h8500/configure.in: Ditto.
6082         * libc/machine/xscale/configure.in: Ditto.
6083         * libc/machine/d10v/configure.in: Ditto.
6084         * libc/machine/fr30/configure.in: Ditto.
6085         * libc/machine/sh/configure.in: Ditto.
6086         * libc/machine/tic80/configure.in: Ditto.
6087         * libc/machine/m32r/configure.in: Ditto.
6088         * libc/machine/xstormy16/configure.in: Ditto.
6089         * libc/machine/i386/configure.in: Ditto.
6090         * libc/machine/d30v/configure.in: Ditto.
6091         * libc/machine/mn10200/configure.in: Ditto.
6092         * libc/machine/frv/configure.in: Ditto.
6093         * libc/machine/mt/configure.in: Ditto.
6094         * libc/machine/i960/configure.in: Ditto.
6095         * libc/machine/v850/configure.in: Ditto.
6096         * libc/machine/necv70/configure.in: Ditto.
6097         * libc/machine/tic4x/configure.in: Ditto.
6098         * libc/machine/cris/configure.in: Ditto.
6099         * libc/machine/m68k/configure.in: Ditto.
6100         * libc/machine/m32c/configure.in: Ditto.
6101         * libc/machine/hppa/configure.in: Ditto.
6102         * libc/machine/w65/configure.in: Ditto.
6103         * libc/machine/iq2000/configure.in: Ditto.
6104         * libc/machine/sparc/configure.in: Ditto.
6105         * libc/machine/m88k/configure.in: Ditto.
6106         * libc/sys/linux/configure.in: Ditto.
6107         * libc/sys/linux/machine/configure.in: Ditto.
6108         * libc/sys/linux/machine/i386/configure.in: Ditto.
6109         * libc/sys/linux/linuxthreads/configure.in: Ditto.
6110         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6111         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
6112         * libc/sys/arm/configure.in: Ditto.
6113         * libc/sys/configure.in: Ditto.
6114         * libc/sys/decstation/configure.in: Ditto.
6115         * libc/sys/a29khif/configure.in: Ditto.
6116         * libc/sys/sysnecv850/configure.in: Ditto.
6117         * libc/sys/d10v/configure.in: Ditto.
6118         * libc/sys/netware/configure.in: Ditto.
6119         * libc/sys/mmixware/configure.in: Ditto.
6120         * libc/sys/h8500hms/configure.in: Ditto.
6121         * libc/sys/sh/configure.in: Ditto.
6122         * libc/sys/tic80/configure.in: Ditto.
6123         * libc/sys/rdos/configure.in: Ditto.
6124         * libc/sys/sysmec/configure.in: Ditto.
6125         * libc/sys/sysvi386/configure.in: Ditto.
6126         * libc/sys/h8300hms/configure.in: Ditto.
6127         * libc/sys/sparc64/configure.in: Ditto.
6128         * libc/sys/arc/configure.in: Ditto.
6129         * libc/sys/sysnec810/configure.in: Ditto.
6130         * libc/sys/m88kbug/configure.in: Ditto.
6131         * libc/sys/sysvnecv70/configure.in: Ditto.
6132         * libc/sys/z8ksim/configure.in: Ditto.
6133         * libc/sys/rtems/configure.in: Ditto.
6134         * libc/sys/w65/configure.in: Ditto.
6135         * libc/sys/sun4/configure.in: Ditto.
6136         * doc/configure.in: Ditto.
6137         * iconvdata/configure.in: Ditto.
6138         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
6139
6140 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6141
6142         * acinclude.m4: Properly add square brackets for
6143         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
6144         macros no longer available.  Add LIB_AM_PROG_AS to
6145         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
6146         macro.  Substitute lpfx (library object prefix).
6147         * configure.host: Set lpfx depending on whether
6148         libtool is used or not.
6149         * configure.in: Individually specify libc and libm
6150         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
6151         necessary.
6152         * Makefile.am: Use $(lpfx) to get object names for
6153         math-library functions that should also be in libc.
6154         * libc/machine/configure.in: Use case statement to determine
6155         AC_CONFIG_SUBDIRS statement.
6156         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
6157         * libc/sys/linux/machine/configure.in: Ditto.
6158         * libc/sys/configure.in: Ditto.
6159         * libm/machine/configure.in: Ditto.
6160         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
6161         * libm/configure.in: Add AM_CONDITIONAL statement
6162         for HAVE_LIBM_MACHINE_DIR.
6163         * libc/machine/a29k/Makefile.am: Modified to work with
6164         latest automake.  Change includes setting AM_CCASFLAGS
6165         so building .S files will properly pick up flags used
6166         to build C files.
6167         * libc/machine/arm/Makefile.am: Ditto.
6168         * libc/machine/crx/Makefile.am: Ditto.
6169         * libc/machine/d10v/Makefile.am: Ditto.
6170         * libc/machine/d30v/Makefile.am: Ditto.
6171         * libc/machine/fr30/Makefile.am: Ditto.
6172         * libc/machine/frv/Makefile.am: Ditto.
6173         * libc/machine/h8300/Makefile.am: Ditto.
6174         * libc/machine/h8500/Makefile.am: Ditto.
6175         * libc/machine/hppa/Makefile.am: Ditto.
6176         * libc/machine/i386/Makefile.am: Ditto.
6177         * libc/machine/iq2000/Makefile.am: Ditto.
6178         * libc/machine/m32c/Makefile.am: Ditto.
6179         * libc/machine/m32r/Makefile.am: Ditto.
6180         * libc/machine/m68hc11/Makefile.am: Ditto.
6181         * libc/machine/m68k/Makefile.am: Ditto.
6182         * libc/machine/m88k/Makefile.am: Ditto.
6183         * libc/machine/mips/Makefile.am: Ditto.
6184         * libc/machine/mn10200/Makefile.am: Ditto.
6185         * libc/machine/mn10300/Makefile.am: Ditto.
6186         * libc/machine/mt/Makefile.am: Ditto.
6187         * libc/machine/necv70/Makefile.am: Ditto.
6188         * libc/machine/powerpc/Makefile.am: Ditto.
6189         * libc/machine/sh/Makefile.am: Ditto.
6190         * libc/machine/sparc/Makefile.am: Ditto.
6191         * libc/machine/tic4x/Makefile.am: Ditto.
6192         * libc/machine/tic80/Makefile.am: Ditto.
6193         * libc/machine/v850/Makefile.am: Ditto.
6194         * libc/machine/w65/Makefile.am: Ditto.
6195         * libc/machine/xscale/Makefile.am: Ditto.
6196         * libc/machine/xstormy16/Makefile.am: Ditto.
6197         * libc/machine/z8k/Makefile.am: Ditto.
6198         * libc/sys/a29khif/Makefile.am: Ditto.
6199         * libc/sys/arc/Makefile.am: Ditto.
6200         * libc/sys/arm/Makefile.am: Ditto.
6201         * libc/sys/d10v/Makefile.am: Ditto.
6202         * libc/sys/decstation/Makefile.am: Ditto.
6203         * libc/sys/h8300hms/Makefile.am: Ditto.
6204         * libc/sys/h8500hms/Makefile.am: Ditto.
6205         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
6206         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
6207         * libc/sys/m88kbug/Makefile.am: Ditto.
6208         * libc/sys/mmixware/Makefile.am: Ditto.
6209         * libc/sys/netware/Makefile.am: Ditto.
6210         * libc/sys/rdos/Makefile.am: Ditto.
6211         * libc/sys/rtems/Makefile.am: Ditto.
6212         * libc/sys/sh/Makefile.am: Ditto.
6213         * libc/sys/sparc64/Makefile.am: Ditto.
6214         * libc/sys/sysmec/Makefile.am: Ditto.
6215         * libc/sys/sysnec810/Makefile.am: Ditto.
6216         * libc/sys/sysnecv850/Makefile.am: Ditto.
6217         * libc/sys/sysvi386/Makefile.am: Ditto.
6218         * libc/sys/sysvnecv70/Makefile.am: Ditto.
6219         * libc/sys/tic80/Makefile.am: Ditto.
6220         * libc/sys/w65/Makefile.am: Ditto.
6221         * libc/sys/z8ksim/Makefile.am: Ditto.
6222         * libm/machine/i386/Makefile.am: Ditto.
6223         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
6224         trap.S so that automake will generate a .S.o suffix rule.
6225         * libc/argz/Makefile.am: Modified to work with
6226         latest automake.  Change includes adding lib_a_CFLAGS
6227         so automake doesn't complain about libtool and non-libtool
6228         libraries sharing objects.
6229         * libc/ctype/Makefile.am: Ditto.
6230         * libc/errno/Makefile.am: Ditto.
6231         * libc/iconv/ccs/Makefile.am: Ditto.
6232         * libc/iconv/ces/Makefile.am: Ditto.
6233         * libc/iconv/lib/Makefile.am: Ditto.
6234         * libc/locale/Makefile.am: Ditto.
6235         * libc/misc/Makefile.am: Ditto.
6236         * libc/posix/Makefile.am: Ditto.
6237         * libc/reent/Makefile.am: Ditto.
6238         * libc/search/Makefile.am: Ditto.
6239         * libc/signal/Makefile.am: Ditto.
6240         * libc/stdio/Makefile.am: Ditto.
6241         * libc/stdio64/Makefile.am: Ditto.
6242         * libc/stdlib/Makefile.am: Ditto.
6243         * libc/string/Makefile.am: Ditto.
6244         * libc/sys/linux/Makefile.am: Ditto.
6245         * libc/sys/linux/argp/Makefile.am: Ditto.
6246         * libc/sys/linux/cmath/Makefile.am: Ditto.
6247         * libc/sys/linux/dl/Makefile.am: Ditto.
6248         * libc/sys/linux/iconv/Makefile.am: Ditto.
6249         * libc/sys/linux/intl/Makefile.am: Ditto.
6250         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
6251         * libc/sys/linux/net/Makefile.am: Ditto.
6252         * libc/sys/linux/stdlib/Makefile.am: Ditto.
6253         * libc/syscalls/Makefile.am: Ditto.
6254         * libc/time/Makefile.am: Ditto.
6255         * libc/unix/Makefile.am: Ditto.
6256         * libm/Makefile.am: Ditto.
6257         * libm/common/Makefile.am: Ditto.
6258         * libm/math/Makefile.am: Ditto.
6259         * libm/mathfp/Makefile.am: Ditto.
6260         * Regenerate all aclocal.m4, Makefile.in, and configure files.
6261
6262 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
6263
6264         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
6265         anymore.  Assume there is a gettimeofday syscall.
6266
6267 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6268
6269         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
6270         for the declaration of n_long.
6271
6272 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6273
6274         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
6275         struct sockaddr.
6276         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
6277         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
6278         (IFF_NOTRAILERS): New define.
6279         (struct ifreq): Add ifru_netmask.
6280         (ifr_netmask): New define.
6281
6282 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6283
6284         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
6285         match sys/ioctl.h.
6286
6287 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
6288
6289         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
6290         linux-newlib libc implementations.
6291
6292 2006-03-29  Eric Blake  <ebb9@byu.net>
6293
6294         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
6295         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
6296
6297 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6298
6299         * libc/sys/linux/io.c (__mknod): Fix declaration of
6300         syscall to pass a dev_t as third argument rather than
6301         a pointer to dev_t.
6302
6303 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
6304
6305         * libc/sys/linux/net/name6.c: Fix struct references.
6306
6307 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
6308
6309         * configure.host: Allow hosts to set the default
6310         newlib_atexit_dynamic_alloc value.
6311         * configure.in: Likewise.
6312         * configure: Regenerated.
6313
6314 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
6315
6316         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
6317         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
6318         option.
6319         * configure: Regenerated.
6320         * newlib.hin: Regenerated.
6321         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
6322         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6323         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
6324         if _ATEXIT_DYNAMIC_ALLOC is undefined.
6325
6326 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
6327
6328         * libc/sys/linux/linuxthreads/config.h: Remove definition
6329         of UINT32_C.
6330
6331 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
6332
6333         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
6334         for a string I/O file that isn't using the asprintf family.
6335
6336 2006-03-07  Eric Blake  <ebb9@byu.net>
6337
6338         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
6339         filename, allow read-only or write-only FILE atop O_RDWR file
6340         descriptor.
6341         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
6342
6343 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
6346         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
6347
6348 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
6349
6350         * libm/math/math.tex: Fix reference to sisnan.def which
6351         is now in common subdirectory.
6352         * libm/mathfp/mathfp.tex: Ditto.
6353
6354 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
6355
6356         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
6357         s_isnand, and sf_isnanf object files.
6358         * Makefile.in: Regenerated.
6359         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
6360         conflict if <math.h> has previously been included.
6361         * libc/include/math.h
6362         * libc/include/math.h: Make isnan and isinf macros to
6363         conform to C99.
6364         (__isinfd, __isinff, __isnand, __isnanf): New functions.
6365         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
6366         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
6367         sf_isinf files which have been moved from math/mathfp directories.
6368         * libm/common/Makefile.in: Regenerated.
6369         * libm/common/s_isinfd.c: New file.
6370         * libm/common/s_isnand.c: Ditto.
6371         * libm/common/sf_isinff.c: Ditto.
6372         * libm/common/sf_isnanf.c: Ditto.
6373         * libm/common/s_isinf.c: Moved from libm/math directory.
6374         * libm/common/s_isnan.c: Ditto.
6375         * libm/common/sf_isinf.c: Ditto.
6376         * libm/common/sf_isnan.c: Ditto.
6377         * libm/math/Makefile.am: Remove isinf and isnan family functions
6378         which have been moved into common directory.
6379         * libm/mathfp/Makefile.am: Ditto.
6380         * libm/math/Makefile.in: Regenerated.
6381         * libm/mathfp/Makefile.in: Ditto.
6382         * libm/math/s_isinf.c: Removed.
6383         * libm/math/s_isnan.c: Ditto.
6384         * libm/math/sf_isinf.c: Ditto.
6385         * libm/math/sf_isnan.c: Ditto.
6386         * libm/mathfp/s_isinf.c: Ditto.
6387         * libm/mathfp/s_isnan.c: Ditto.
6388         * libm/mathfp/sf_isinf.c: Ditto.
6389         * libm/mathfp/sf_isnan.c: Ditto.
6390
6391 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
6392
6393         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
6394         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
6395         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
6396         seek, turn off the __SNPT no-optimization flag.
6397
6398 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
6399
6400         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
6401         will be defined.
6402         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
6403         <features.h> to preset special flags.
6404
6405 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
6406
6407         * libc/include/sys/time.h (struct timeval): Change member types
6408         according to SUSv3.
6409         * libc/include/sys/types.h (useconds_t): Change to unsigned
6410         according to SUSv3.
6411         (suseconds_t): Define type.
6412
6413 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
6414             David Carne  <davidcarne@gmail.com>
6415
6416         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
6417         instead of strlen to determine number of bytes to copy.
6418         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
6419         before looking at storage location.
6420
6421 2006-02-07  Paul Brook  <paul@codesourcery.com>
6422
6423         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
6424         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
6425         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
6426         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
6427         * libc/sys/arm/trap.S: Disable for Thumb-2.
6428
6429 2006-01-31  Leif Ekblad  <leif@rdos.net>
6430
6431         * configure.host: RDOS support added
6432         * libc/include/sys/config.h: Ditto.
6433         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
6434         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
6435         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
6436         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
6437         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
6438         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
6439         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
6440         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
6441         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
6442         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
6443         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
6444         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
6445         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
6446         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
6447         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
6448         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
6449         * libc/sys/rdos/write.c: Ditto.
6450
6451 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
6452
6453         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
6454         so as not to define PACKAGE and VERSION in newlib.h.
6455         * aclocal.m4: Regenerated.
6456         * configure: Ditto.
6457         * newlib.hin: Ditto.
6458
6459 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
6460
6461         * acconfig.h: New file to generate newlib.hin from.
6462         * newlib.hin: Regenerated.
6463         * stamp-h.in: Regenerated.
6464         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
6465         called automatically.
6466         * Makefile.in: Regenerated.
6467         * acinclude.m4: Add proper comment for hack in previous change.
6468         * aclocal.m4 */aclocal.m4: Regenerated.
6469         * configure */configure: Regenerated.
6470
6471 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
6472
6473         * acinclude.m4: Add hack to prevent INSTALL in subdirs
6474         from being set to "../".
6475         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
6476         * aclocal.m4: Regenerated.
6477         * configure: Ditto.
6478         * Makefile.in: Ditto.
6479         * doc/aclocal.m4: Ditto.
6480         * doc/configure: Ditto.
6481         * iconvdata/aclocal.m4: Ditto.
6482         * iconvdata/configure: Ditto.
6483         * libc/*/aclocal.m4: Ditto.
6484         * libc/*/configure: Ditto.
6485         * libc/libc.texinfo: Ditto.
6486         * libm/*/aclocal.m4: Ditto.
6487         * libm/*/configure: Ditto.
6488
6489 2006-01-10  Eric Blake  <ebb9@byu.net>
6490
6491         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
6492         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6493
6494 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
6495
6496         * libm/mathfp/s_frexp.c: Check for special values on
6497         the original input, not the manipulated output value.
6498         * libm/mathfp/sf_frexp.c: Ditto.
6499         * libm/mathfp/s_atangent.c: Don't use local value branch
6500         when checking for quadrant.
6501         * libm/mathfp/sf_atangent.c: Ditto.
6502
6503 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
6504
6505         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
6506         * libc/stdio64/freopen64.c: Ditto.
6507
6508 2006-01-09  Eric Blake  <ebb9@byu.net>
6509
6510         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
6511         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
6512
6513 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6514
6515         * libc/sys/linux/include/getopt.h: Add macros needed by
6516         new version of getopt.c in libc/stdlib.
6517
6518 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
6519
6520         * libc/stdlib/getopt.c: Replaced with version
6521         that adds getopt_long and getopt_long_only support.
6522         * libc/include/getopt.h: New file.
6523
6524 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6525
6526         * NEWS: Update with 1.14.0 info.
6527         * README: Ditto.
6528         * acinclude.m4: Change version number to 1.14.0.
6529         * aclocal.m4: Regenerated.
6530         * configure: Ditto.
6531         * doc/aclocal.m4: Ditto.
6532         * doc/configure: Ditto.
6533         * libc/*/aclocal.m4: Ditto.
6534         * libc/*/configure: Ditto.
6535         * libc/libc.texinfo: Ditto.
6536         * libm/*/aclocal.m4: Ditto.
6537         * libm/*/configure: Ditto.
6538         * libm/libm.texinfo: Ditto.
6539         * libc/sys/linux/shared.ld: Add VERS_1.14.
6540
6541 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
6542
6543         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
6544         take a pointer to struct stat64 rather than struct stat.
6545
6546 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
6547
6548         * libc/include/stdint.h: Prefer long over int for int32_t.
6549         Use __have_long32 to set up int32_t.
6550         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
6551         (Sync with stdint.h).
6552
6553 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
6554
6555         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
6556         typo in O_NDELAY comment.
6557
6558 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
6559
6560         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
6561         * libc/include/machine/setjmp.h (__mt__): Likewise.
6562         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
6563         * libc/machine/configure.in: Ditto.
6564
6565 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
6566
6567         * configure.host: Replace ms1 arch with mt arch.
6568         * libc/machine/mt: Renamed from ms1 dir.
6569
6570 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
6571
6572         * libc/include/sys/types.h: Remove the ifdef armour around
6573         standard POSIX types.
6574
6575 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6576
6577         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
6578         rtems_gxx_key_delete, rtems_gxx_getspecific,
6579         rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
6580         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
6581         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
6582
6583 2005-12-05  Christopher Faylor  <cgf@timesys.com>
6584
6585         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
6586         file.  Declare unsetenv and _unsetenv_r when not cygwin.
6587
6588 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
6589
6590         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
6591         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
6592
6593 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6594
6595         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
6596
6597 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6598
6599         * include/time.h: Remove more cygwin-specific stuff.
6600
6601 2005-11-18  Christopher Faylor  <cgf@timesys.com>
6602
6603         * include/time.h: Move cygwin declarations to cygwin-specific header.
6604         * include/sys/time.h: Rename cygwin include to "sys_time.h".
6605
6606 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
6607
6608         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
6609         in libc/sys/linux/include.
6610         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
6611         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
6612         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
6613         in libc/sys/linux/dl.
6614
6615 2005-11-11  Christopher Faylor  <cgf@timesys.com>
6616
6617         * libc/include/sys/time.h: For cygwin, use general header rather than
6618         specific "sys/select.h".
6619
6620 2005-11-08  Tom Walsh  <tom@openhardware.net>
6621
6622         * libc/time/tzvars.c: New file.
6623         * libc/time/tzset_r.c: Moved globals into tzvars.c
6624         so other time functions needn't link in __tzset_r and its
6625         dependencies.
6626         * libc/time/Makefile.am: Add the new file.
6627         * libc/time/Makefile.in: Regenerated.
6628
6629 2005-11-08  Christopher Faylor  <cgf@timesys.com>
6630
6631         * libc/include/string.h: Add cygwin-specific function declaration.
6632
6633 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
6634
6635         * libc/include/ieeefp.h: Add C++ guards.
6636
6637 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
6638
6639         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
6640         * libc/unix/getlogin.c: Ditto.
6641         * libc/unix/getpass.c: Ditto.
6642         * libc/unix/getut.c: Ditto.
6643         * libc/unix/ttyname.c: Ditto.
6644
6645 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
6646
6647         * libc/include/sys/unistd.h (readlink, symlink): Provide these
6648         prototypes by default.
6649         * libc/sys/linux/include/unistd.h (readlink): Remove this
6650         prototype.
6651         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
6652         prototypes.
6653
6654 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
6655
6656         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
6657
6658 2005-10-31  Darin Johnson  <darin@usa.net>
6659
6660         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
6661         correct for constants.
6662
6663 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6664
6665         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
6666         * libc/stdio/siscanf.c: Likewise.
6667         * libc/stdio/sprintf.c: Likewise.
6668         * libc/stdio/sscanf.c: Likewise.
6669         * libc/stdio/vfprintf.c: Likewise.
6670         * libc/stdio/vfscanf.c: Likewise.
6671         * libc/stdio/viprintf.c: Likewise.
6672         * libc/stdio/viscanf.c: Likewise.
6673
6674 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6675
6676         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
6677         example to use "_end" symbol instead of "end".  Change write  example
6678         to use "outbyte" instead of "writechar".
6679
6680 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6681
6682         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
6683         * libc/ctype/islower.c: Likewise.
6684         * libc/ctype/isupper.c: Likewise.
6685         * libc/ctype/iswalnum.c: Likewise.
6686         * libc/ctype/iswalpha.c: Likewise.
6687         * libc/ctype/iswblank.c: Likewise.
6688         * libc/ctype/iswcntrl.c: Likewise.
6689         * libc/ctype/iswdigit.c: Likewise.
6690         * libc/ctype/iswgraph.c: Likewise.
6691         * libc/ctype/iswlower.c: Likewise.
6692         * libc/ctype/iswprint.c: Likewise.
6693         * libc/ctype/iswpunct.c: Likewise.
6694         * libc/ctype/iswspace.c: Likewise.
6695         * libc/ctype/iswupper.c: Likewise.
6696         * libc/ctype/iswxdigit.c: Likewise.
6697         * libc/ctype/tolower.c: Likewise.
6698         * libc/ctype/toupper.c: Likewise.
6699         * libc/ctype/towctrans.c: Likewise.
6700         * libc/ctype/towlower.c: Likewise.
6701         * libc/ctype/towupper.c: Likewise.
6702         * libc/string/strcasecmp.c: Likewise.
6703         * libc/string/strcoll.c: Likewise.
6704         * libc/string/strings.tex: Likewise.
6705         * libc/string/strlwr.c: Likewise.
6706         * libc/string/strncasecmp.c: Likewise.
6707         * libc/string/strupr.c: Likewise.
6708         * libc/string/wcscoll.c: Likewise.
6709         * libc/string/wcslcat.c: Likewise.
6710         * libc/string/wcslcpy.c: Likewise.
6711         * libc/string/wcsnlen.c: Likewise.
6712         * libc/string/wcsstr.c: Likewise.
6713         * libc/string/wcstrings.tex: Likewise.
6714         * libc/string/wmemchr.c: Likewise.
6715         * libc/string/wmemcmp.c: Likewise.
6716         * libc/string/wmemcpy.c: Likewise.
6717         * libc/string/wmemmove.c: Likewise.
6718         * libc/string/wmemset.c: Likewise.
6719
6720 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
6721
6722         * libc/misc/unctrl.c: Replace FUNCTION description.
6723         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
6724         * libc/stdio/getdelim.c: Fix spelling errors.
6725         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
6726         * libc/stdio/putw.c: Likewise.
6727         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
6728         documentation.
6729         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
6730         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
6731         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
6732         * libc/stdlib/mlock.c: Likewise.
6733         * libc/stdlib/mstats.c: Likewise.
6734         * libc/time/tzlock.c: Likewise.
6735         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
6736         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
6737         and hyphenate "pseudo-random".
6738         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
6739         * libc/string/strncat.c: Likewise.
6740         * libc/string/memchr.c: Remove extra ">" character in  documentation.
6741         * libc/string/strcspn.c: Use "characters" instead of "chars".
6742         * libc/string/strpbrk.c: Likewise.
6743         * libc/string/strerror_r.c: Capitalize "GNU".
6744         * libc/string/strnlen.c: Likewise.
6745         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
6746         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
6747         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
6748         * libc/string/wcschr.c: Likewise.
6749         * libc/string/wcscmp.c: Likewise.
6750         * libc/string/wcscpy.c: Likewise.
6751         * libc/string/wcscspn.c: Likewise.
6752         * libc/string/wcslen.c: Likewise.
6753         * libc/string/wcsncat.c: Likewise.
6754         * libc/string/wcsncmp.c: Likewise.
6755         * libc/string/wcsncpy.c: Likewise.
6756         * libc/string/wcsnlen.c: Likewise.
6757         * libc/string/wcspbrk.c: Likewise.
6758         * libc/string/wcsrchr.c: Likewise.
6759         * libc/string/wcsspn.c: Likewise.
6760         * libc/string/wmemchr.c: Likewise.
6761         * libc/string/wmemcmp.c: Likewise.
6762         * libc/string/wmemcpy.c: Likewise.
6763         * libc/string/wmemset.c: Likewise.
6764         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
6765         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
6766         * libc/string/wcwidth.c: Likewise.
6767         * libm/common/s_modf.c: Remove extra period from documentation.
6768         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
6769         documentation.
6770         * libm/mathfp/s_isnan.c: Likewise.
6771         * libm/math/s_ldexp.c: Fix punctuation.
6772         * libm/mathfp/s_ldexp.c: Likewise.
6773         * libm/math/w_log.c: Likewise.
6774         * libm/mathfp/s_logarithm.c: Likewise.
6775         * libm/math/w_j0.c: Add spaces to FUNCTION description.
6776         * libm/mathfp/w_jn.c: Likewise.
6777
6778 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
6779
6780         * libc/posix/scandir.c (scandir): Update the function
6781         prototype to match the header.
6782         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
6783         extraneous #endif.
6784         * libc/sys/linux/sys/lock.h: Do not include
6785         machine/weakalias.h, since it's not used by this file.
6786
6787 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
6788
6789         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
6790         directories can override properly.
6791
6792 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
6793
6794         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
6795         gcc is 3.3 or greater, use special gcc builtins.
6796
6797 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
6798
6799         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
6800
6801 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
6802
6803         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
6804
6805 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6806
6807         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
6808         * libm/common/Makefile.am: Add s_infconst.c support.
6809         * libm/common/Makefile.in: Regenerated.
6810         * libm/common/s_infconst.c: New file with float and
6811         long double infinity support added.
6812         * libm/math/Makefile.am: Remove s_infconst.c support.
6813         * libm/math/Makefile.in: Regenerated.
6814         * libm/math/s_infconst.c: Moved to common directory.
6815         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
6816         * libm/mathfp/Makefile.in: Regenerated.
6817         * libm/mathfp/s_infconst.c: Moved to common directory.
6818
6819 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6820
6821         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
6822         dbgprintf to prevent conflict with new dprintf function.
6823
6824 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6825
6826         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
6827         "nan" processing for systems that have long double support.
6828
6829 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
6830
6831         * libc/sys/linux/sys/types.h (int8_t): Add type.
6832
6833 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6834
6835         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
6836         * libm/common/Makefile.in: Regenerate.
6837         * libm/common/common.tex: Delete file.
6838         * libm/math/math.tex: Include .def files from common/.
6839         * libm/mathfp/mathfp.tex: Likewise.
6840
6841 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6842
6843         * libc/libc.texinfo (Top): Surround this node with @ifnottex
6844         instead of @ifinfo.  Update menu to add Introduction and match
6845         SUBDIRS order.
6846         (Introduction): New section.
6847
6848 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
6849
6850         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
6851         with "Red Hat newlib C Library".
6852         * libc/sys.tex (Stubs): Likewise.
6853         * libm/math/math.tex (Math): Likewise.
6854         * libm/mathfp/mathfp.tex (Math): Likewise.
6855
6856 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
6857
6858         * libc/include/stdio.h (dprintf): New declaration.
6859         (vdprintf): Ditto.
6860         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
6861         and vdprintf.c.
6862         * libc/stdio/Makefile.in: Regenerate.
6863         * libc/stdio/dprintf.c: New file.
6864         * libc/stdio/vdprintf.c: New file.
6865         * libc/stdio/stdio.tex (dprintf): New entry.
6866
6867 2005-10-11  David Weatherford  <weath@tensilica.com>
6868
6869         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
6870         Print "inf" and "nan" in lowercase for e/f/g formats and in
6871         uppercase for E/F/G formats.
6872
6873 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
6874
6875         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
6876         to ENOMEM on failure.
6877
6878 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
6879
6880         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
6881
6882 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
6883
6884         * libc/include/stdint.h: Move magic to set __have_long* to the
6885         beginning.  Use #if __have* instead of #if defined(__have*).
6886         Minor typo fixes.
6887
6888 2005-10-04  James E Wilson  <wilson@specifix.com>
6889
6890         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
6891         #error.
6892
6893 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
6894
6895         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
6896         incorporate Ralf's change below.
6897
6898 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
6899
6900         * libc/include/stdint.h:
6901         Use __INTMAX_TYPE__ to derive intmax_t.
6902         Use __UINTMAX_TYPE__ to derive uintmax_t.
6903         Fix minor typo.
6904
6905 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
6906
6907         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
6908         handling GCC >= 4.
6909
6910 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6911
6912         * libc/sys/linux/include/stdint.h: Update to match functionality
6913         of generic newlib stdint.h.
6914
6915 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6916
6917         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
6918         and do not #undef the macro after it is used.  Fix typos.
6919         Also change 64-bit constants to use the __have_long64 and
6920         __have_longlong64 flags to determine if long or long long
6921         constants should be used.
6922         * libc/include/inttypes.h: Include stddef.h to get wchar_t
6923         type defined.
6924
6925 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
6926
6927         * libc/include/stdint.h: Fix typo in names of
6928         LEAST macros.
6929
6930 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
6931
6932         * libc/sys/rtems/include/inttypes.h: Moved to...
6933         * libc/include/inttypes.h: ...here.
6934
6935 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
6936
6937         * libc/sys/rtems/include/stdint.h: Moved to...
6938         * libc/include/stdint.h: ...here.
6939
6940 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
6941
6942         * Makefile.am: Add include files under bits sub-directory.
6943         * Makefile.in: Regenerated.
6944         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
6945         actual value of 1 to be compatible with newer glibc headers.
6946         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
6947         glibc headers.
6948         * libc/sys/linux/sys/dirent.h: Ditto.
6949         * libc/sys/linux/argp/argp-xinl.c: Ditto.
6950         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
6951         profile_fixup routines are marked used so they won't be
6952         optimized away.
6953         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
6954         to mark functions as weak.
6955         * libc/sys/linux/dl/dl-open.c: Ditto.
6956         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
6957         rules about lvalues.
6958         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
6959         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
6960         weak_extern macro to mark functions as weak.  Instead always
6961         use #pragma weak.
6962         * iconvdata/jis0208.h: Fix to work with gcc4.
6963         * libc/sys/linux/dl/dl-load.c: Ditto.
6964         * libc/sys/linux/dl/dl-reloc.c: Ditto.
6965         * libc/sys/linux/dl/do-rel.h: Ditto.
6966         * libc/sys/linux/dl/dynamic-link.h: Ditto.
6967         * libc/sys/linux/include/ltdl.h: Ditto.
6968         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
6969         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
6970         * libc/sys/linux/net/ns_ntoa.c: Ditto.
6971         * libc/sys/linux/bits/initspin.h: New file.
6972         * libc/sys/linux/bits/libc-lock.h: Ditto.
6973         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
6974         * libc/sys/linux/bits/typesizes.h: Ditto.
6975
6976 2005-09-08  Eric Blake  <ebb9@byu.net>
6977
6978         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
6979         before is NULL.
6980
6981 2005-09-08  Brian Dessent  <brian@dessent.net>
6982
6983         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
6984         mantissa.
6985         * s_lrint.c: Ditto.
6986
6987 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
6988
6989         * libc/include/stdio.h: Add prototype for viprintf.
6990
6991 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
6992
6993         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
6994         any positive power results in 0.
6995         * libm/mathfp/sf_pow.c (powf): Ditto.
6996
6997 2005-08-31  Paul Brook  <paul@codesourcery.com>
6998
6999         * configure.host: Set have_crt0 to no for Arm targts when not
7000         providing syscalls.  Set sys_dir=arm unconditionally.
7001         Default have_crt0 based on sys_dir.
7002         * configure.in: Use have_crt0.
7003         * libc/configure.in: Ditto.
7004         * libc/sys/configure.in: Ditto.
7005         * configure: Regenerate.
7006         * libc/configure: Regenerate.
7007         * libc/sys/configure: Regenerate.
7008         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
7009         Only build other files when providing syscalls.
7010         * libc/sys/arm/Makefile.in: Regenerate.
7011         * libc/sys/arm/aeabi_atexit.c: New file.
7012
7013 2005-08-26  Christopher Faylor  <cgf@timesys.com>
7014
7015         * libc/include/string.h: Revert previous change.
7016
7017 2005-08-25  Christopher Faylor  <cgf@timesys.com>
7018
7019         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
7020
7021 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
7022
7023         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
7024         define _opendir as opendir, _readdir as readdir, and
7025         _closedir as closedir so that the implementations in
7026         libc/posix will be used.
7027
7028 2005-08-10  DJ Delorie  <dj@redhat.com>
7029
7030         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
7031
7032 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
7033
7034         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
7035         * libm/common/s_max.c: Ditto.
7036         * libm/common/sf_fmin.c: Ditto.
7037         * libm/common/s_min.c: Ditto.
7038
7039 2005-08-10  DJ Delorie  <dj@redhat.com>
7040
7041         * configure.host: Add m32c support.
7042         * libc/include/machine/ieeefp.h: Likewise.
7043         * libc/include/machine/setjmp.h: Likewise.
7044         * libc/include/sys/config.h: Likewise.
7045         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
7046         * libc/machine/m32c/aclocal.m4: New file.
7047         * libc/machine/m32c/configure: Ditto.
7048         * libc/machine/m32c/configure.in: Ditto.
7049         * libc/machine/m32c/Makefile.am: Ditto.
7050         * libc/machine/m32c/Makefile.in: Ditto.
7051         * libc/machine/m32c/setjmp.S: Ditto.
7052
7053 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
7054
7055         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
7056         to the value for 2^126.
7057
7058 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
7059
7060         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
7061         used.
7062
7063 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
7064            Darin Petkov <darin@tensilica.com>
7065
7066        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
7067
7068 2005-07-19  Paul Brook  <paul@codesourcery.com>
7069
7070         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
7071
7072 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
7073
7074         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
7075         names after PASS and FAIL which do not depend on source directory
7076         name or on whether test passed or failed.
7077         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
7078
7079 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
7080
7081         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
7082
7083 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
7084
7085         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
7086         twice for the same directory. _closedir calls free, and freeing
7087         the same pointer twice may cause a crash.
7088
7089 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
7090
7091         * configure.host: Added entry for ms1*.
7092         * libc/include/machine/ieeefp.h: Handle ms1.
7093         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
7094         * libc/machine/ms1/aclocal.m4: New.
7095         * libc/machine/ms1/configure: New.
7096         * libc/machine/ms1/configure.in: New.
7097         * libc/machine/ms1/Makefile.am: New.
7098         * libc/machine/ms1/Makefile.in: New.
7099         * libc/machine/ms1/setjmp.S: New.
7100
7101 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
7102
7103         * Makefile.am (site.exp): Set tmpdir.
7104         * Makefile.in: Regenerated.
7105         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
7106         executables in $tmpdir.
7107         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
7108         libgloss version if not running in the build directory.
7109         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
7110         $tmpdir.
7111         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
7112         in $tmpdir.
7113
7114 2005-06-28  Dave Korn  <dave.korn@artimi.com>
7115
7116         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
7117         and miscalculation caused by fp representation of zero.
7118         * libm/common/sf_lrint.c (lrintf):  Likewise.
7119
7120 2005-06-16  Christopher Faylor  <cgf@timesys.com>
7121
7122         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
7123         determine characteristics of long double.  Use a union instead.
7124         * ldtoa.c (_ldtoa_r): Ditto.
7125         (_ldcheck): Ditto.
7126         (_strtold): Ditto.
7127         (union uconv): New union.
7128
7129 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7130
7131         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
7132         instead of memcpy.
7133
7134 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7135
7136         * configure.host (mn10300-*): Add long long I/O support by default.
7137
7138 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
7139
7140         * libc/sys/linux/getpwuid.c: Removed.
7141         * libc/sys/linux/getpwnam.c: Removed.
7142         * libc/sys/linux/getpwent.c: New file containing logic
7143         from files removed above.  This allows overriding of file
7144         in libc/unix.
7145         * libc/sys/linux/Makefile.am: Support changes above.
7146         * libc/sys/linux/Makefile.in: Regenerated.
7147
7148 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
7149
7150         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
7151         when checking for multiple flags.
7152
7153 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
7154
7155         * configure.host <cris-*-* | crisv32-*-*>: Set
7156         default_newlib_io_long_long="yes".
7157
7158 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7159
7160         * libc/include/libgen.h: New file.
7161
7162 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
7163
7164         * libc/unix/Makefile.am: Add support for basename and dirname.
7165         * libc/unix/Makefile.in: Regenerated.
7166         * libc/unix/basename.c: New file.
7167         * libc/unix/dirname.c: New file.
7168
7169 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7170
7171         * libc/sys/linux/inode.c (lchown): New function.
7172
7173 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
7174
7175         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
7176         ELIX level is defined.
7177         * libc/unix/Makefile.in: Regenerated.
7178
7179 2005-04-05  Dave Korn  <dave.korn@artimi.com>
7180
7181         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
7182         something that looks like a "NaN", put back the characters processed.
7183
7184 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
7185
7186         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
7187
7188 2005-03-23  Christopher Faylor  <cgf@timesys.com>
7189
7190         * configure.host: For cygwin, redefine CC with cygwin include directory
7191         first to mimic the behavior of the top-level configury.  Move include
7192         directory out of newlib_cflags.
7193
7194 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
7195
7196         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
7197         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
7198         than errno.
7199
7200 2005-03-22  Christopher Faylor  <cgf@timesys.com>
7201
7202         * libc/include/machine/_types.h: Make trivial change to comment to
7203         avoid a spurious warning from gcc.
7204
7205 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
7206
7207         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
7208         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
7209         reent.h include.
7210
7211 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
7212             Corinna Vinschen  <corinna@vinschen.de>
7213
7214         * libc/include/ctype.h: Remove invalid +1 offset from
7215         ctype macro references to __ctype_ptr.
7216         (_ctype_): Move declaration outside #ifndef __cplusplus.
7217
7218 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
7219
7220         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
7221         evaluate first parameter only once.
7222         (siglongjmp): Ditto.
7223
7224 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
7225
7226         * configure.in: Add new check to see if compiler supports
7227         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
7228         * configure: Regenerated.
7229         * Makefile.in: Ditto.
7230         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
7231         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
7232         aliasing the _ctype_ array to _ctype_b.
7233         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
7234         _ctype_ as deprecated.
7235
7236 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
7237
7238         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
7239         -DCOMPACT_CTYPE.
7240
7241 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7242
7243         * libc/sys/rtems/include/inttypes.h: New file.
7244         * libc/sys/rtems/include/stdint.h: Ditto.
7245
7246 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7247
7248         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
7249
7250 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
7251
7252         * libc/include/machine/_types.h: New file.
7253         * libc/include/sys/types.h: Do not check for __rtems__
7254         when including <machine/_types.h>.  Remove some redundant
7255         declarations now that <machine/_types.h> is included.
7256         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
7257         shared header file.
7258
7259 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
7260
7261         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
7262         L qualifier for these long constants.
7263
7264 2005-02-25  Eric Blake  <ebb9@byu.net>
7265
7266         * libc/include/time.h (__tzrule_struct): Make offset long, since
7267         a 16-bit int overflows on a 12-hour offset.
7268         * libc/sys/linux/include/time.h: Ditto.
7269         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
7270         * libc/time/mktm_r.c: Ditto.
7271         * libc/time/gettzinfo.c: Ditto.
7272         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
7273         years.  Fix '%z' to use long, not int.
7274
7275 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7276
7277         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
7278         manipulate float values in integer form.
7279         * libm/common/sf_round.c: Ditto.
7280
7281 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
7282
7283         * libc/include/sys/types.h [__rtems__]: Include new
7284         header file machine/_types.h.
7285         * libc/include/machine/types.h: Ditto.
7286         * libc/sys/rtems/machine/_types.h: New file.
7287
7288 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7289
7290         * libc/include/time.h (_timezone): Change to long also for Cygwin.
7291         (timezone): Drop cast from definition.
7292
7293 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
7294
7295         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
7296         (__tzrule_type, __tzinfo_type): New types.
7297         (__gettzinfo): New function.
7298         * libc/sys/linux/include/time.h: Ditto.
7299         * libc/time/Makefile.am: Add gettzinfo.c.
7300         * libc/time/Makefile.in: Regenerated.
7301         * libc/time/local.h: Moved __tzrule_type to time.h.
7302         * libc/time/mktime.c: Call __gettzinfo to reference
7303         __tznorth, __tzyear, and __tzrule array.
7304         * libc/time/mktm_r.c: Ditto.
7305         * libc/time/strftime.c: Ditto.
7306         * libc/time/tzset_r.c: Ditto.  Also remove definition
7307         of __tzrule which is now in gettzinfo.c.  Change _timezone
7308         references to not cast to time_t.
7309         * libc/time/gettzinfo.c: New file.
7310
7311 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
7312
7313         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
7314
7315 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
7316
7317         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
7318
7319 2005-02-16  Eric Blake  <ebb9@byu.net>
7320
7321         * libc/time/time.tex: Improve the documentation.
7322         * libc/time/strftime.c: Improve the documentation.
7323         (iso_year_adjust): New helper function.
7324         (strftime): Simplify '%E' and '%O'. Change '%c' to use
7325         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
7326         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
7327         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
7328         Avoid core dumps on valid inputs (maxsize == 0, or
7329         tim_p->tm_isdst > 1).
7330
7331 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
7332
7333         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
7334         members to uid_t and gid_t according to SUSv3.
7335         * libc/include/sys/time.h (utimes):  Change second parameter
7336         to const according to SUSv3.
7337
7338 2005-02-07  Antony King  <antony.king@st.com>
7339
7340         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
7341         called before _flockfile to prevent lock object use before
7342         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
7343         take a struct _reent * instead of a FILE *.
7344         * libc/stdio/fclose.c (_fclose_r): Ditto.
7345         * libc/stdio/feof.c (feof): Ditto.
7346         * libc/stdio/ferror.c (ferror): Ditto.
7347         * libc/stdio/fflush.c (fflush): Ditto.
7348         * libc/stdio/fgetc.c (fgetc): Ditto.
7349         * libc/stdio/fgets.c (fgets): Ditto.
7350         * libc/stdio/fileno.c (fileno): Ditto.
7351         * libc/stdio/fputc.c (fputc): Ditto.
7352         * libc/stdio/fputs.c (fputs): Ditto.
7353         * libc/stdio/fread.c (fread): Ditto.
7354         * libc/stdio/freopen.c (_freopen_r): Ditto.
7355         * libc/stdio/fseek.c (_fseek_r): Ditto.
7356         * libc/stdio/ftell.c (_ftell_r): Ditto.
7357         * libc/stdio/fwrite.c (fwrite): Ditto.
7358         * libc/stdio/getc.c (getc): Ditto.
7359         * libc/stdio/getdelim.c (__getdelim): Ditto.
7360         * libc/stdio/putc.c (putc): Ditto.
7361         * libc/stdio/setvbuf.c (setvbuf): Ditto.
7362         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
7363         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
7364         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
7365         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
7366         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
7367         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
7368         _reent * instead of a FILE * and so replace incorrect use of
7369         _REENT with argument.
7370         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
7371         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
7372         CHECK_INIT() take a struct _reent * instead of a FILE *.
7373         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
7374         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
7375         * libc/stdio/perror.c (perror): Ditto.
7376         * libc/stdio/printf.c (printf, _printf_r): Ditto.
7377         * libc/stdio/putchar.c (putchar): Ditto.
7378         * libc/stdio/puts.c (puts): Ditto.
7379         * libc/stdio/refill.c (__srefill): Ditto.
7380         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
7381         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
7382         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
7383         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
7384         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
7385         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
7386         * libc/stdio/wbuf.c (__swbuf): Ditto.
7387         * libc/stdio/wsetup.c (__swsetup): Ditto.
7388         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
7389         * libc/stdlib/mstats.c (_mstats_r): Ditto.
7390         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
7391         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
7392         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
7393         to _flockfile and _funlockfile; rely on locking in _ftell_r.
7394         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
7395         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
7396         initialision of _data field in FILE structure.
7397         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
7398
7399 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7400
7401         * libc/stdio/findfp.c (__sinit): Protect with new lock.
7402         (__sinit_lock): New lock.
7403         (__sinit_lock_acquire, __sinit_lock_release): New functions.
7404         * libc/stdio/local.h: Add reference to new __sinit locking
7405         functions.
7406
7407 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7408
7409         * libc/include/math.h (isfinite, isnormal, isunordered): Change
7410         input variable names to avoid mixups with nesting macros.
7411
7412 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7413
7414         * configure.host: Add support for cris-*-* and crisv32-*-*.
7415         * libc/include/machine/ieeefp.h: Ditto.
7416         * libc/include/machine/setjmp.h: Ditto.
7417         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
7418         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
7419         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
7420         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
7421         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
7422         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
7423         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
7424         files.
7425
7426 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7427
7428         * testsuite/newlib.string/memmove1.c: New test.
7429
7430 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7431
7432         * testsuite/include/check.h: Include stdlib.h.
7433
7434 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
7435
7436         * Makefile.am (stmp-targ-include): Support include header files
7437         from machine directories.
7438         (install-data-local): Ditto.
7439         * Makefile.in: Regenerate.
7440
7441 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
7442
7443         * libc/include/string.h: Remove Linux-specific declaration of
7444         strsignal and add #include <sys/string.h>.
7445         * libc/include/sys/string.h: New file.
7446         * libc/include/sys/linux/sys/string.h: New file with strsignal
7447         declaration deleted above.
7448
7449 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
7450
7451         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
7452         to POSIX standard for "C" locale.  Allow %E and %O modifiers
7453         to be ignored as long as they precede valid specifiers according
7454         to POSIX.
7455
7456 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7457
7458         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7459         environment variable is set.
7460
7461 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
7462
7463         * tzset_r.c (_tzname): Add a comma.
7464
7465 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
7466
7467         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
7468         _VFPRINTF_R.
7469
7470 2005-01-07  Paul Brook  <paul@codesourcery.com>
7471
7472         * configure.in: Add test for .init_array.
7473         * configure: Regenerate.
7474         * newlib.hin: Add HAVE_INITFINI_ARRAY.
7475         * libc/misc/Makefile.am: Add init.c
7476         * libc/misc/Makefile.in: Regenerate.
7477         * libc/misc/init.c: New file.
7478         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
7479         _init/_fini if they exist.
7480
7481 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
7482
7483         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
7484         * (strtof): Ditto.
7485         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
7486         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
7487         functions for use by strtod and strtof.
7488         * Makefile.in: Regenerated.
7489
7490 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7491
7492         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
7493         bit-test in combination with NULL test.
7494
7495 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
7496
7497         * README: Fix typo of LGPL.  Change "license" to "copyright".
7498
7499 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
7500
7501         * NEWS: Update with 1.13.0 info.
7502         * README: Ditto.
7503         * acinclude.m4: Change version number to 1.13.0.
7504         * aclocal.m4: Regenerated.
7505         * configure: Ditto.
7506         * doc/aclocal.m4: Ditto.
7507         * doc/configure: Ditto.
7508         * libc/*/aclocal.m4: Ditto.
7509         * libc/*/configure: Ditto.
7510         * libc/libc.texinfo: Ditto.
7511         * libm/*/aclocal.m4: Ditto.
7512         * libm/*/configure: Ditto.
7513         * libm/libm.texinfo: Ditto.
7514         * libc/sys/linux/shared.ld: Add VERS_1.13.
7515
7516 2004-12-17  Christian Groessler  <chris@groessler.org>
7517
7518         * libc/machine/z8k/memcmp.S: New file.
7519         * libc/machine/z8k/memcpy.S: Ditto.
7520         * libc/machine/z8k/memmove.S: Ditto.
7521         * libc/machine/z8k/memset.S: Ditto.
7522         * libc/machine/z8k/Makefile.am: Add new files.
7523         * libc/machine/z8k/Makefile.in: Regenerated.
7524         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
7525         part.  Implement Z8002 stdcall version.
7526
7527 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
7528
7529         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
7530         a low-level read if we don't get the full amount of bytes so
7531         EOF or error flags will be set.
7532
7533 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
7534
7535         * libc/time/tzset_r (_tzset_r): Properly skip over
7536         '/' when it is detected.
7537
7538 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7539
7540         * libc/time/tzset_r (_tzset_r): Fix loop.
7541
7542 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
7543
7544         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
7545         m_day.
7546         (__tzcalc_limits): Fix reference to month array to be zero-based.
7547
7548 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
7549
7550         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
7551         and usleep.
7552
7553 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
7554
7555         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
7556         libgcc dependencies.
7557         (libm_la_LDFLAGS): Ditto.
7558         * Makefile.in: Regenerated.
7559
7560 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
7561
7562         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
7563         our link to use readlink so as to preserve any relative link created
7564         by install-toollibLIBRARIES.
7565         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
7566
7567 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
7568
7569         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
7570         time_t before including sys/stat.h, which uses it.
7571         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
7572         <linux/time.h> just prior to definition of __KERNEL__ so as to
7573         allow building on Debian Linux where otherwise, mktime would
7574         be redefined.
7575
7576 2004-11-26  Paul Brook  <paul@codesourcery.com>
7577
7578         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
7579
7580 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7581
7582         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
7583         const for value string parameter to match Single Unix and glibc.
7584         * libc/stdlib/putenv.c: Ditto.
7585         * libc/stdlib/putenv_r.c: Ditto.
7586
7587 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
7588
7589         * libc/stdio/Makefile.am: Fix missing vfscanf.
7590         * libc/stdio/Makefile.in: Regenerated.
7591
7592 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
7593
7594         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
7595         do some reordering.
7596         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
7597         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
7598         family functions.
7599         * libc/stdio/Makefile.in: Regenerated.
7600         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
7601         * libc/stdio/iprintf.c: Ditto.
7602         * libc/stdio/local.h (__svfiscanf_r): New prototype.
7603         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
7604         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
7605         * libc/stdio/stdio.tex: Add new functions.
7606         * libc/stdio/vfscanf.c: Split out __sccl function to separate
7607         file and add special name defines so this file can be used
7608         to build vfiscanf.o.
7609         * libc/stdio/asiprintf.c: New file.
7610         * libc/stdio/fiscanf.c: Ditto.
7611         * libc/stdio/iscanf.c: Ditto.
7612         * libc/stdio/sccl.c: Ditto.
7613         * libc/stdio/siscanf.c: Ditto.
7614         * libc/stdio/vasiprintf.c: Ditto.
7615         * libc/stdio/viprintf.c: Ditto.
7616         * libc/stdio/viscanf.c: Ditto.
7617         * libc/stdio/vsiprintf.c: Ditto.
7618         * libc/stdio/vsiscanf.c: Ditto.
7619         * libc/stdio/vsniprintf.c: Ditto.
7620
7621 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
7622
7623         * libc/include/stdio.h: Add sniprintf.
7624         * libc/stdio/Makefile.am: Add sniprintf.c.
7625         * libc/stdio/Makefile.in: Regenerated.
7626         * libc/stdio/sniprintf.c: New file.
7627         * libc/stdio/stdio.tex: Add sniprintf.
7628
7629 2004-11-17  Christopher Faylor  <cgf@timesys.com>
7630
7631         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
7632         EOF flag if successful.
7633
7634 2004-10-28  Christopher Faylor  <cgf@timesys.com>
7635
7636         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
7637         so that all relevant definitions have been performed for use in the
7638         include.
7639
7640 2004-10-26  Jason Tishler  <jason@tishler.net>
7641
7642         * libc/stdio/fread.c (fread): Fix return value for unbuffered
7643         fread.
7644
7645 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7646
7647         * libc/include/machine/setjmp.h: Add AVR support.
7648         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
7649
7650 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
7651
7652         * libc/include/sys/signal.h: If <signal.h> didn't include
7653         this header file, include <signal.h> to account for
7654         applications that take advantage that the two header
7655         files are the same in glibc.
7656
7657 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
7658
7659         * configure.host: Add support for crx.
7660         * libc/include/machine/ieeefp.h: Ditto.
7661         * libc/include/machine/setjmp.h: Ditto.
7662         * libc/machine/crx/Makefile.am: New file.
7663         * libc/machine/crx/configure.in: Ditto.
7664         * libc/machine/crx/setjmp.S: Ditto.
7665         * libc/machine/crx/getenv.c: Ditto.
7666         * libc/machine/crx/aclocal.m4: Generate.
7667         * libc/machine/crx/configure: Ditto.
7668         * libc/machine/crx/Makefile.in: Ditto.
7669         * libc/machine/crx/sys/asm.h: New file.
7670         * libc/machine/crx/sys/libh.h: Ditto.
7671         * libc/machine/crx/sys/syscall.h: Ditto.
7672
7673 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
7674
7675         * Makefile.am (stmp-targ-include): Support sys header files
7676         from machine directories.
7677         * Makefile.in: Regenerated.
7678
7679 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
7680
7681         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
7682         count skipped zero characters as part of the nread count for %n.
7683         * libc/machine/powerpc/vfscanf.c: Ditto.
7684
7685 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
7686
7687         * libc/stdio/local.h: Include <stdlib.h>.
7688
7689 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
7690
7691         * libc/stdio/fread.c (fread): Include <malloc.h>.
7692
7693 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
7694
7695         * libc/stdio/fread.c (fread):  For non-space-optimized case,
7696         add special code for unbuffered files to use user buffer and
7697         only require one low-level system read.
7698
7699 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
7700
7701         * libc/machine/xscale/setjmp.S: New file, copied from
7702         libc/machine/arm/setjmp.S.
7703         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
7704         * libc/machine/xscale/Makefile.in: Regenerate.
7705
7706 2004-09-16  Antony King  <antony.king@st.com>
7707
7708         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
7709         with locking API.
7710         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
7711         check for__SSTR in _flags and if set, skip lock request.
7712         (_funlockfile)[!SINGLE_THREAD]: Ditto.
7713         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
7714         not NULL.
7715         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
7716         initialisation of _file to -1 in local FILE.
7717         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
7718         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
7719         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
7720         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7721         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
7722         _flags in local FILE to prevent locking.
7723         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
7724
7725 2004-09-16  Antony King  <antony.king@st.com>
7726
7727         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
7728         and only walk the reentrancy parameter.
7729         (_fwalk_reent): Ditto.
7730         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
7731
7732 2004-09-16  Antony King  <antony.king@st.com>
7733
7734         * libc/stdio64/freopen64.c: Remove casting of fp lock to
7735         _LOCK_RECURSIVE_T.
7736
7737 2004-09-16  Antony King  <antony.king@st.com>
7738
7739         * libc/time/tzlock.c: Add default stubs that use generic
7740         locking code.
7741
7742 2004-09-16  Antony King  <antony.king@st.com>
7743
7744         * libc/ctype/ctype.tex: Added missing documentation.
7745         * libc/stdio/stdio.tex Ditto.
7746         * libc/stdlib/stdlib.tex Ditto.
7747         * libc/string/strings.tex Ditto.
7748         * libc/time/time.tex: Ditto.
7749         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
7750
7751 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
7752
7753         * libc/reent/impure.c (reent_data): Define as alias to impure_data
7754         when building for Cygwin.
7755         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
7756         _global_impure_ptr.
7757
7758 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
7759
7760         * configure.host: Reverting 2004-09-14 change as fix has occurred on
7761         Cygwin side.
7762         * configure.in: Ditto.
7763         * libc/configure.in: Ditto.
7764         * libc/sys/configure.in: Ditto.
7765         * configure: Ditto.
7766         * libc/configure: Ditto.
7767         * libc/sys/configure: Ditto.
7768         * libc/include/sys/reent.h: Ditto.
7769         * libc/stdlib/__atexit.c: Ditto.
7770         * libc/stdlib/__call_atexit.c: Ditto.
7771         * libc/stdlib/cxa_atexit.c: Ditto.
7772         * libc/stdlib/cxa_finalize.c: Ditto.
7773         * libc/sys/cygwin/Makefile.am: Removed again.
7774         * libc/sys/cygwin/Makefile.in: Ditto.
7775         * libc/sys/cygwin/aclocal.m4: Ditto.
7776         * libc/sys/cygwin/configure: Ditto.
7777         * libc/sys/cygwin/configure.in: Ditto.
7778         * libc/sys/cygwin/dummy.c: Ditto.
7779         * libc/sys/cygwin/sys/reent.h: Ditto.
7780
7781 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
7782
7783         * configure.host: Add Cygwin sys directory.
7784         * configure.in: Do not set CRT0 for cygwin.
7785         * libc/configure.in: Ditto.
7786         * libc/sys/configure.in: Ditto.
7787         * configure: Regenerated.
7788         * libc/configure: Ditto.
7789         * libc/sys/configure: Ditto.
7790         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
7791         * libc/stdlib/__atexit.c: Keep cxa support protected by new
7792         __REENT_HAS_CXA_SUPPORT flag.
7793         * libc/stdlib/__call_atexit.c: Ditto.
7794         * libc/stdlib/cxa_atexit.c: Ditto.
7795         * libc/stdlib/cxa_finalize.c: Ditto.
7796         * libc/sys/cygwin/Makefile.am: New file.
7797         * libc/sys/cygwin/Makefile.in: Ditto.
7798         * libc/sys/cygwin/aclocal.m4: Ditto.
7799         * libc/sys/cygwin/configure: Ditto.
7800         * libc/sys/cygwin/configure.in: Ditto.
7801         * libc/sys/cygwin/dummy.c: Ditto.
7802         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
7803         version of reent.h.
7804
7805 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7806
7807         * libc/iconv/iconv.tex: Updated with new content.
7808         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
7809         instead of NLS_DEFAULT_NLSPATH.
7810         * libc/iconv/lib/iconvnls.h: Fix typo.
7811         * libc/include/sys/iconvnls.h: New file.
7812
7813 2004-09-09  Paul Brook  <paul@codesourcery.com>
7814
7815         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
7816         and _is_cxa.
7817         (struct _atexit): Add _next when _REENT_SMALL.
7818         (struct _reent): Add _atexit0 when _REENT_SMALL.
7819         (_REENT_INIT_PTR): Adjust.
7820         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
7821         __call_exit.c.
7822         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
7823         * libc/stdlib/Makefile.in: Regenerate.
7824         * libc/stdlib/__atexit.c: New file.
7825         * libc/stdlib/__call_atexit.c: New file.
7826         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
7827         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
7828         * libc/stdlib/cxa_atexit.c: New file.
7829         * libc/stdlib/cxa_finalize.c: New file.
7830         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
7831         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
7832         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
7833         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
7834         _on_exit_args_ptr.
7835
7836 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
7837
7838         * libc/include/sys/unistd.h (getpass): Change prototype to use
7839         const instead of __const.
7840
7841 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7842
7843         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
7844         #if.
7845
7846 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
7847
7848         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
7849         on linux systems with glibc 2.3.3 installed.
7850         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
7851         profile_fixup so newlib can build on fc3 system.
7852
7853 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
7854
7855         Introduce SH2a support.
7856         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
7857         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
7858         __SH2A_SINGLE_ONLY__, too.
7859         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
7860         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
7861         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
7862         2004-02-10  DJ Delorie  <dj@redhat.com>
7863         * libc/sys/sh/crt0.S (start_l): Support sh2a.
7864
7865 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
7866
7867         * libc/time/strptime.c: Correct full-name of "March" typo.
7868
7869 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
7870
7871         * configure.host (h8300*-*-*): Default long long printing support.
7872
7873 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
7874
7875         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
7876         calls, if realloc fails, free up buffer as it is no longer
7877         used.
7878
7879 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7880
7881         * libc/iconv/iconv.tex: Updated to represent recent changes.
7882         * libc/iconv/lib/iconv.c: Documentation updated.
7883
7884 2004-07-07  Nick Clifton  <nickc@redhat.com>
7885
7886         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
7887         for xStormy16.
7888
7889 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
7890
7891         * configure.host (mips*-*-elf*): Default long long printing
7892         support.
7893
7894 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
7895
7896         * libc/Makefile.am (libc.dvi): Add target and specify
7897         same dependencies as libc.info.
7898         * libc/Makefile.in: Regenerated.
7899         * libm/Makefile.am (libm.dvi): Add target and specify
7900         same dependencies as libm.info.
7901         * libm/Makefile.in: Regenerated.
7902
7903 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7904
7905         * acinclude.m4: Move --enable-newlib-iconv option back here.
7906         * configure.in: Remove --enable-newlib-iconv option.  Don't
7907         tie iconv support to --enable-newlib-mb.
7908         * aclocal.m4: Regenerated.
7909         * configure: Ditto.
7910         * doc/aclocal.m4, doc/configure: Ditto.
7911         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
7912         * libm/*/aclocal.m4: Ditto.
7913         * libm/*/configure: Ditto.
7914         * libc/*/aclocal.m4: Ditto.
7915         * libc/*/configure: Ditto.
7916
7917 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
7918
7919         * acinclude.m4: Move iconv options into configure.in.
7920         * aclocal.m4: Regenerated.
7921         * configure: Ditto.
7922         * configure.in: Add iconv options.
7923         * newlib.hin: Add new iconv encodings and remove deleted ones.
7924         * doc/aclocal.m4: Regenerated.
7925         * doc/configure: Ditto.
7926         * iconvdata/aclocal.m4: Ditto.
7927         * iconvdata/configure: Ditto.
7928         * libc/iconv: Design change.  New size-optimized ccs format.
7929         * libc/iconv/AUTHORS: Removed.
7930         * libc/iconv/COPYING: Ditto.
7931         * libc/iconv/README.ORIGINAL: Ditto.
7932         * libc/iconv/README.TODO: Ditto.
7933         * libc/iconv/charset.aliases: Ditto.
7934         * libc/iconv/encoding.aliases: New file.
7935         * libc/iconv/Makefile.am: Updated.
7936         * libc/iconv/Makefile.in: Regenerated.
7937         * libc/iconv/iconv.tex: Updated.
7938         * libc/iconv/ccs/Makefile.am: Ditto.
7939         * libc/iconv/ccs/Makefile.in: Regenerated.
7940         * libc/iconv/ccs/big5.c: Updated.
7941         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
7942         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
7943         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
7944         * libc/iconv/ccs/cp775.c: Ditto.
7945         * libc/iconv/ccs/cp850.c: Ditto.
7946         * libc/iconv/ccs/cp852.c: Ditto.
7947         * libc/iconv/ccs/cp855.c: Ditto.
7948         * libc/iconv/ccs/cp866.c: Ditto.
7949         * libc/iconv/ccs/iso_8859_1.c: Ditto.
7950         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
7951         * libc/iconv/ccs/gb_2312_80.c: Ditto.
7952         * libc/iconv/ccs/iconv_mktbl: Ditto.
7953         * libc/iconv/ccs/jis_x0201.c: Ditto.
7954         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
7955         * libc/iconv/ccs/shift_jis.c: Ditto.
7956         * libc/iconv/ccs/us_ascii.c: Ditto.
7957         * libc/iconv/ccs/ccs.h: New file.
7958         * libc/iconv/ccs/ccsbi.c: Ditto.
7959         * libc/iconv/ccs/ccsbi.h: Ditto.
7960         * libc/iconv/ccs/ccsnames.h: Ditto.
7961         * libc/iconv/ccs/iso_8859_10.c: Ditto.
7962         * libc/iconv/ccs/iso_8859_11.c: Ditto.
7963         * libc/iconv/ccs/iso_8859_13.c: Ditto.
7964         * libc/iconv/ccs/iso_8859_14.c: Ditto.
7965         * libc/iconv/ccs/iso_8859_3.c: Ditto.
7966         * libc/iconv/ccs/iso_8859_6.c: Ditto.
7967         * libc/iconv/ccs/iso_8859_7.c: Ditto.
7968         * libc/iconv/ccs/iso_8859_8.c: Ditto.
7969         * libc/iconv/ccs/iso_8859_9.c: Ditto.
7970         * libc/iconv/ccs/iso_ir_111.c: Ditto.
7971         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
7972         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
7973         * libc/iconv/ccs/koi8_ru.c: Ditto.
7974         * libc/iconv/ccs/koi8_uni.c: Ditto.
7975         * libc/iconv/ccs/mktbl.pl: Ditto.
7976         * libc/iconv/ccs/win_1250.c: Ditto.
7977         * libc/iconv/ccs/win_1251.c: Ditto.
7978         * libc/iconv/ccs/win_1252.c: Ditto.
7979         * libc/iconv/ccs/win_1253.c: Ditto.
7980         * libc/iconv/ccs/win_1254.c: Ditto.
7981         * libc/iconv/ccs/win_1255.c: Ditto.
7982         * libc/iconv/ccs/win_1256.c: Ditto.
7983         * libc/iconv/ccs/win_1257.c: Ditto.
7984         * libc/iconv/ccs/win_1258.c: Ditto.
7985         * libc/iconv/ccs/iso_8859_15.c: Updated.
7986         * libc/iconv/ccs/iso_8859_2.c: Ditto.
7987         * libc/iconv/ccs/iso_8859_4.c: Ditto.
7988         * libc/iconv/ccs/iso_8859_5.c: Ditto.
7989         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
7990         * libc/iconv/ccs/koi8_r.c: Ditto.
7991         * libc/iconv/ccs/koi8_u.c: Ditto.
7992         * libc/iconv/ccs/ksx1001.c: Ditto.
7993         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
7994         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
7995         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
7996         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
7997         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
7998         * libc/iconv/ccs/binary/Makefile.am: Updated.
7999         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
8000         * libc/iconv/ccs/binary/big5.cct: Updated.
8001         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8002         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8003         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8004         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
8005         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
8006         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
8007         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
8008         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
8009         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8010         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8011         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8012         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8013         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8014         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8015         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8016         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8017         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8018         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
8019         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
8020         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
8021         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
8022         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
8023         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
8024         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
8025         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
8026         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
8027         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
8028         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
8029         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
8030         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
8031         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
8032         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
8033         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
8034         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
8035         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
8036         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
8037         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
8038         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
8039         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
8040         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
8041         * libc/iconv/ces/Makefile.am: Updated.
8042         * libc/iconv/ces/Makefile.in: Regenerated.
8043         * libc/iconv/ces/ucs-2-internal.c: Updated.
8044         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8045         * libc/iconv/ces/utf-16.c: Ditto.
8046         * libc/iconv/ces/utf-8.c: Ditto.
8047         * libc/iconv/ces/cesbi.c: New file.
8048         * libc/iconv/ces/cesbi.h: Ditto.
8049         * libc/iconv/ces/cesdeps.h: Ditto.
8050         * libc/iconv/ces/euc.c: Ditto.
8051         * libc/iconv/ces/mkdeps.pl: Ditto.
8052         * libc/iconv/ces/table-pcs.c: Ditto.
8053         * libc/iconv/ces/table.c: Ditto.
8054         * libc/iconv/ces/ucs-2.c: Ditto.
8055         * libc/iconv/ces/ucs-4.c: Ditto.
8056         * libc/iconv/ces/us-ascii.c: Ditto.
8057         * libc/iconv/ces/euc-jp.c: Removed.
8058         * libc/iconv/ces/euc-kr.c: Ditto.
8059         * libc/iconv/ces/euc-tw.c: Ditto.
8060         * libc/iconv/ces/gb2312.c: Ditto.
8061         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
8062         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8063         * libc/iconv/lib/Makefile.am: Updated.
8064         * libc/iconv/lib/Makefile.in: Regenerated.
8065         * libc/iconv/lib/endian.h: Updated.
8066         * libc/iconv/lib/iconv.c: Ditto.
8067         * libc/iconv/lib/local.h: Ditto.
8068         * libc/iconv/lib/aliases.c: Removed.
8069         * libc/iconv/lib/bialiasesi.c: Ditto.
8070         * libc/iconv/lib/biccs.c: Ditto.
8071         * libc/iconv/lib/bices.c: Ditto.
8072         * libc/iconv/lib/ccs.c: Ditto.
8073         * libc/iconv/lib/ces.c: Ditto.
8074         * libc/iconv/lib/ces_euc.c: Ditto.
8075         * libc/iconv/lib/ces_iso2022.c: Ditto.
8076         * libc/iconv/lib/ces_table.c: Ditto.
8077         * libc/iconv/lib/converter.c: Ditto.
8078         * libc/iconv/lib/deps.h: Ditto.
8079         * libc/iconv/lib/loaddata.c: Ditto.
8080         * libc/iconv/lib/aliasesbi.c: New file.
8081         * libc/iconv/lib/aliasesi.c: Ditto.
8082         * libc/iconv/lib/conv.h: Ditto.
8083         * libc/iconv/lib/encnames.h: Ditto.
8084         * libc/iconv/lib/encoding.deps: Ditto.
8085         * libc/iconv/lib/iconvnls.c: Ditto.
8086         * libc/iconv/lib/iconvnls.h: Ditto.
8087         * libc/iconv/lib/nullconv.c: Ditto.
8088         * libc/iconv/lib/ucsconv.c: Ditto.
8089         * libc/iconv/lib/ucsconv.h: Ditto.
8090         * libc/include/iconv.h: Update copyright.
8091         * libc/*/aclocal.m4: Regenerated.
8092         * libc/*/configure: Ditto.
8093         * libm/*/aclocal.m4: Ditto.
8094         * libm/*/configure: Ditto.
8095
8096 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
8097
8098         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
8099         instead of typedefing jmp_buf.
8100
8101         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
8102         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
8103         * libc/machine/h8300/defines.h (LEN): New macro.
8104         * libc/machine/h8300/memcpy.S: Add h8sx version.
8105         * libc/machine/h8300/memset.S: Likewise.
8106         * libc/machine/h8300/strcmp.S: Likewise.
8107         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
8108         * libc/machine/h8300/h8sx_strcpy.S: New file.
8109         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
8110         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
8111         __H8300SX__.
8112         * libc/include/machine/setjmp.h: Likewise.
8113         * libc/include/sys/config.h: Likewise.
8114         * libc/machine/h8300/defines.h: Likewise.
8115         * libc/machine/h8300/setjmp.S: Likewise.
8116         * libc/machine/h8300/strcmp.S: Likewise.
8117         * libc/sys/h8300hms/close.S: Likewise.
8118         * libc/sys/h8300hms/fstat.S: Likewise.
8119         * libc/sys/h8300hms/lseek.S: Likewise.
8120         * libc/sys/h8300hms/read.S: Likewise.
8121         * libc/sys/h8300hms/write.S: Likewise.
8122         * libc/sys/h8300hms/crt0.S: Likewise.
8123         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
8124         __H8300SX__ is defined.
8125         * libc/sys/h8300hms/setarch.h: Likewise.
8126
8127 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
8128
8129         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
8130         out change which set _GLOBAL_REENT to _global_impure_ptr until
8131         we understand why Cygwin breaks because of it.
8132
8133 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
8134
8135         * libc/sys/linux/machine/i386/syscall.h: For now, set up
8136         __syscall_return macro for systems with vsyscall.
8137
8138 2004-06-11  Antony King  <antony.king@st.com>
8139
8140         * libc/include/sys/_types.h: Include <sys/lock.h> and change
8141         _flock_t to be of type _LOCK_RECURSIVE_T.
8142         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
8143         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
8144         (_global_impure_ptr): New declaration.
8145         (_GLOBAL_REENT): Change to be _global_impure_ptr.
8146         * libc/include/sys/stdio.h: Include <sys/lock.h> and
8147         <sys/reent.h>.
8148         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
8149         (_funlockfile)[!SINGLE_THREAD]: Ditto.
8150         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
8151         * libc/stdio/fclose.c: Remove casting of fp lock to
8152         _LOCK_RECURSIVE_T.
8153         * libc/stdio/findfp.c: Ditto.
8154         * libc/stdio/fopen.c: Ditto.
8155         * libc/stdio/freopen.c: Ditto.
8156         * libc/stdio/vfprintf.c: Ditto.
8157         * libc/stdio64/fopen64.c: Ditto.
8158         * libc/stdlib/envlock.c: Add default stubs that use generic
8159         locking code.
8160         * libc/stdlib/mlock.c: Ditto.
8161
8162         Jeff Johnston  <jjohnstn@redhat.com>
8163         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
8164         (_flock_t): Change to be a struct containing a single member
8165         named mutex which is of type __flock_mutex_t.
8166
8167 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
8168
8169         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
8170         from /usr/include/asm/signal.h instead of kernel sources.  Also
8171         default max to 32 if not found in header file.
8172         * libc/sys/linux/Makefile.in: Regenerated.
8173         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
8174         systems where __syscall_return is not defined.
8175         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
8176         systems to use syscall() function instead of assembler interrupt.
8177
8178 2004-06-09  Toralf Lund  <toralf@procaptura.com>
8179
8180         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
8181         files from libc/sys/arm to libc/machine/arm.
8182         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
8183         library build support for files moved from libc/sys/arm.
8184         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
8185         references to access and setjmp.
8186         * configure.host: Add checks for newlib_may_supply_syscalls to
8187         determine whether or not to use sys/arm directory and use
8188         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
8189
8190 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
8191
8192         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
8193         reset digit flags appropriately after we have discovered "0x".
8194         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
8195
8196 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
8197
8198         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
8199         from here ...
8200         (_VFPRINTF_R): ... to here so all I/O printf routines
8201         are covered.
8202
8203 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
8204
8205         * libc/search/hash_buf.c: Protect MAX and MIN macros from
8206         redefinition.
8207         * libc/search/hash.c: Ditto.
8208
8209 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8210
8211         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
8212         (_WANT_IO_LONG_LONG): Ditto.
8213         (_WANT_IO_LONG_DOUBLE): Ditto.
8214         * configure.in: Add new configuration options
8215         --enable-newlib-io-long-long and --enable-newlib-io-long-double
8216         which tie to new defines in newlib.hin.
8217         * configure: Regenerated.
8218         * configure.host: Add checks for new configuration options.  Also
8219         fix up check for --enable-newlib-io-pos-args so configuration
8220         option will override any default for a given platform.
8221         Remove defining compiler flags for the _WANT_IO* options.
8222         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
8223         instead of looking for old compiler flags.
8224         * libc/stdio/vfscanf.c: Ditto.
8225         * libc/stdio/vfieeefp.h: Ditto.
8226         * libc/machine/powerpc/vfprintf.c: Ditto.
8227         * libc/machine/powerpc/vfscanf.c: Ditto.
8228
8229 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
8230
8231         * testsuite/include/check.h: Add include of <stdio.h>.
8232
8233 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
8234
8235         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
8236
8237 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8238
8239         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
8240         of free.
8241
8242 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8243
8244         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
8245         list for reentrant pointer.  Call _vfiprintf_r.
8246         * libc/stdio/siprintf.c (_siprintf_r): New function.
8247         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
8248         pointer argument.  Change all callers.  Call _VFPRINTF_R.
8249         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
8250         prototypes.
8251
8252 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8253
8254         * libc/include/sys/param.h: Remove endian info and include
8255         <machine/endian.h> instead.
8256         * libc/include/machine/endian.h: New file.
8257         * libc/include/machine/param.h: Ditto.
8258         * libc/machine/arm/machine/endian.h: Ditto.
8259         * libc/machine/arm/machine/param.h: Ditto.
8260         * libc/sys/arm/sys/param.h: Removed.
8261         * libc/sys/sysvi386/sys/param.h: Ditto.
8262         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
8263
8264 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8265
8266         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
8267         multibyte functions return failure for %C, %S, %lc, and %ls
8268         format specifiers.
8269
8270 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8271
8272         * testsuite/include/check.h (CHECK): Add flush of stdout.
8273
8274 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8275
8276         * libc/include/stdio.h (_ungetc_r): New prototype.
8277         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
8278         (__submore): Add reentrant struct pointer argument.
8279         (ungetc): Change to call _ungetc_r.
8280
8281 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8282
8283         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
8284         function pointer argument.
8285         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
8286         to specify function pointer arguments.
8287         (__fwalk, __fwalk_reent): Ditto.
8288
8289 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
8290
8291         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
8292         CT_INT case.
8293
8294 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8295
8296         * configure.in: Define _MB_CAPABLE if mb supported.
8297         * configure: Regenerated.
8298         * configure.host: Remove manual setting of MB_CAPABLE compiler
8299         flag.
8300         * newlib.hin: Add _MB_CAPABLE flag.
8301         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
8302         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
8303         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
8304         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
8305         * libc/ctype/jp2uc.c: Ditto.
8306         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
8307         * libc/locale/locale.c: Ditto
8308         * libc/machine/powerpc/vfscanf.c: Ditto
8309         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
8310         * libc/stdlib/mblen.c: Ditto
8311         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
8312         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
8313         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
8314         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
8315         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
8316         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
8317         * libc/sys/linux/intl/explodename.c: Ditto
8318         * libc/sys/linux/intl/finddomain.c: Ditto
8319         * libc/sys/linux/intl/l10nflist.c: Ditto
8320         * libc/sys/linux/intl/loadmsgcat.c: Ditto
8321         * libc/sys/linux/intl/localealias.c: Ditto
8322
8323 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8324
8325         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
8326         (__svfscanf_r): In integer conversions, leave out leading zeroes
8327         which are not part of a base prefix.
8328         Keep track of width truncation to fit into buf, not counting left-out
8329         zeroes against width till the truncation has been compensated for.
8330         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
8331
8332 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
8333
8334         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
8335
8336 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8337
8338         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
8339         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
8340         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
8341         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
8342         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
8343         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
8344         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
8345         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
8346         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
8347         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
8348         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
8349         libc/stdio/getchar.c libc/stdio/getchar_u.c,
8350         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
8351         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
8352         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
8353         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
8354         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
8355         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
8356         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
8357         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
8358         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
8359         libc/stdio/siprintf.c libc/stdio/snprintf.c,
8360         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
8361         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
8362         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
8363         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
8364         libc/stdio/vprintf.c libc/stdio/vscanf.c,
8365         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
8366         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
8367         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
8368         copyright notices to top of file, ensure that <_ansi.h> is
8369         included, be consistent with open parentheses, use _DEFUN macro,
8370         include "local.h" where needed, and remove various compiler
8371         warnings.
8372
8373 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
8374
8375         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
8376         (__svfscanf_r): In integer conversions, leave out leading zeroes
8377         which are not part of a base prefix.
8378         Keep track of width truncation to fit into buf, not counting left-out
8379         zeroes against width till the truncation has been compensated for.
8380
8381 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8382
8383         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
8384
8385 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
8386
8387         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
8388
8389 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
8390
8391         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
8392         to SUSv3.
8393
8394 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8395
8396         * libc/stdio/fclose.c (_fclose_r): New function.
8397         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
8398         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
8399         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
8400         * libc/include/stdio.h (_fclose_r): New prototype.
8401         * libc/stdio/fopen.c: Fix typo in comment.
8402
8403 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
8404
8405         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
8406         to handle _r reentrant functions.
8407
8408 2004-04-08  Eric Christopher  <echristo@redhat.com>
8409
8410         * libc/include/machine/setjmp.h: Fix endif locations.
8411
8412 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8413
8414         * libc/time/strptime.c: Add standard includes to avoid
8415         warning messages at compilation time.
8416
8417 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
8418
8419         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
8420         of file.
8421
8422 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
8423
8424         * libc/machine/h8300/Makefile.am: Reformat slightly.
8425         * libc/machine/h8300/Makefile.in: Regenerate.
8426
8427 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
8428
8429         * libc/stdio/findfp.c (__fp_lock_all): Add call to
8430         __sfp_lock_acquire.
8431         (__fp_unlock_all): Add call to __sfp_lock_release.
8432
8433 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
8434
8435         * libc/stdio/fclose.c (fclose): Protect file pointer list when
8436         releasing a file.
8437          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
8438         fwalk.
8439         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
8440         _flockfile/_funlockfile.
8441         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
8442         to recursive.
8443         Change __lock_acquire/__lock_release calls for __sfp_lock to
8444         __sfp_lock_acquire/__sfp_lock_release throughout.
8445         (std): Make sure that file lock is only initialized once.
8446         (__sfp): Move _file initialization. Initialize file lock.
8447         (__sfp_lock_acquire): New function.
8448         (__sfp_lock_release): Ditto.
8449         (__fp_lock_all): Remove __sfp_lock_acquire call.
8450         (__fp_unlock_all): Remove __sfp_lock_release call.
8451         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
8452         Add calls to _flockfile/_funlockfile. Remove
8453         __lock_init_recursive call.
8454         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
8455         * libc/stdio/fwalk.c (__fwalk): New static function.
8456         (_fwalk): Protect file pointer list. Use __fwalk to walk through
8457         file pointers.
8458         * libc/stdio/local.h: Add defines for
8459         __sfp_lock_acquire/__sfp_lock_release when
8460         single threaded. Add function prototypes otherwise.
8461         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
8462         _flockfile/_funlockfile.
8463         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
8464         Add calls to _flockfile/_funlockfile. Remove
8465          __lock_init_recursive call.
8466         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
8467         list.
8468
8469 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
8470
8471         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
8472         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
8473         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
8474         to be __LOCK_INIT_RECURSIVE.
8475
8476 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
8477
8478         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
8479         _exit.c with _exit.S.
8480         * libc/sys/h8300hms/Makefile.in: Regenerate.
8481         * libc/sys/h8300hms/_exit.c: Remove.
8482         * libc/sys/h8300hms/_exit.S: New.
8483
8484 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
8485
8486         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
8487         Change __sfp_lock to static global.
8488         (__fp_lock): New static function.
8489         (__fp_unlock): Ditto.
8490         (__fp_lock_all): New function.
8491         (__fp_unlock_all): Ditto.
8492
8493 2004-02-10  Christopher Faylor  <cgf@redhat.com>
8494
8495         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
8496         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
8497         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
8498         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
8499
8500 2004-02-09  Christopher Faylor  <cgf@redhat.com>
8501
8502         * libc/include/time.h (TIMER_RELTIME): New define.
8503
8504 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
8505
8506         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
8507         * libc/stdlib/Makefile.in: Regenerated.
8508
8509 2004-02-08  Christopher Faylor  <cgf@redhat.com>
8510
8511         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
8512         * libc/include/sys/reent.h (__getreent): Protect against possibly being
8513         defined.
8514         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
8515
8516 2004-02-05  Paul Brook  <paul@codesourcery.com>
8517
8518         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set
8519         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
8520
8521 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
8522
8523         * NEWS: Update with 1.12.0 info.
8524         * README: Ditto.
8525         * acinclude.m4: Change version number to 1.12.0.
8526         * aclocal.m4: Regenerated.
8527         * configure: Ditto.
8528         * doc/aclocal.m4: Ditto.
8529         * doc/configure: Ditto.
8530         * libc/*/aclocal.m4: Ditto.
8531         * libc/*/configure: Ditto.
8532         * libc/libc.texinfo: Ditto.
8533         * libm/*/aclocal.m4: Ditto.
8534         * libm/*/configure: Ditto.
8535         * libm/libm.texinfo: Ditto.
8536         * libc/sys/linux/shared.ld: Add VERS_1.12.
8537
8538 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
8539
8540         * configure.host: Add support for tic4x.
8541         * libc/include/machine/ieeefp.h: Ditto.
8542         * libc/include/machine/setjmp.h: Ditto.
8543         * libc/machine/tic4x/Makefile.am: New file.
8544         * libc/machine/tic4x/configure.in: Ditto.
8545         * libc/machine/tic4x/setjmp.S: Ditto.
8546         * libc/machine/tic4x/aclocal.m4: Generated.
8547         * libc/machine/tic4x/configure: Ditto.
8548         * libc/machine/tic4x/Makefile.in: Ditto.
8549
8550 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
8551
8552         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
8553         file chain on the passed in reentrancy struct if it
8554         is _GLOBAL_REENT.
8555
8556 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8557             Jeff Johnston  <jjohnstn@redhat.com>
8558
8559         * libc/iconv/iconv.tex: Updated with more information.
8560
8561 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
8562             Jeff Johnston  <jjohnstn@redhat.com>
8563
8564         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
8565         struct for std streams and traverse the global reeentrancy
8566         struct for all other streams.
8567
8568 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
8569
8570         * libc/stdlib/atexit.c: Protect global atexit list with a
8571         lock when newlib is multithreaded.
8572
8573 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8574
8575         * configure.in: Add support to generate iconv converter flags
8576         for newlib.h
8577         * newlib.hin: Add iconv converter flags.
8578         * configure: Regenerated.
8579         * libc/Makefile.in: Ditto.
8580         * libc/configure.in: Moved iconv converter parsing logic to
8581         top level newlib configure.in.
8582         * libc/configure: Regenerated.
8583         * libc/iconv/Makefile.in: Ditto.
8584         * libc/iconv/README.TODO
8585         * libc/iconv/charset.aliases: Remove wrong BE aliases for
8586         UCS2/UCS4/UTF8.
8587         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
8588         newlib.h can be used.
8589         * libc/iconv/ces/Makefile.am: Ditto.
8590         * libc/iconv/lib/Makefile.am: Ditto.
8591         * libc/iconv/ccs/Makefile.in: Regenerated.
8592         * libc/iconv/ces/Makefile.in: Ditto.
8593         * libc/iconv/lib/Makefile.in: Ditto.
8594         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
8595         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
8596         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
8597         defined in newlib.h.
8598         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
8599         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
8600         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
8601         * libc/iconv/ccs/cp775.c: Ditto.
8602         * libc/iconv/ccs/cp850.c: Ditto.
8603         * libc/iconv/ccs/cp852.c: Ditto.
8604         * libc/iconv/ccs/cp855.c: Ditto.
8605         * libc/iconv/ccs/cp866.c: Ditto.
8606         * libc/iconv/ccs/gb_2312_80.c: Ditto.
8607         * libc/iconv/ccs/iso_8859_1.c: Ditto.
8608         * libc/iconv/ccs/iso_8859_15.c: Ditto.
8609         * libc/iconv/ccs/iso_8859_2.c: Ditto.
8610         * libc/iconv/ccs/iso_8859_4.c: Ditto.
8611         * libc/iconv/ccs/iso_8859_5.c: Ditto.
8612         * libc/iconv/ccs/jis_x0201.c: Ditto.
8613         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
8614         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
8615         * libc/iconv/ccs/koi8_r.c: Ditto.
8616         * libc/iconv/ccs/koi8_u.c: Ditto.
8617         * libc/iconv/ccs/ksx1001.c: Ditto.
8618         * libc/iconv/ccs/shift_jis.c: Ditto.
8619         * libc/iconv/ccs/us_ascii.c: Ditto.
8620         * libc/iconv/ccs/binary/big5.cct: Newly generated.
8621         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
8622         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
8623         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
8624         * libc/iconv/ccs/binary/cp775.cct: Ditto.
8625         * libc/iconv/ccs/binary/cp850.cct: Ditto.
8626         * libc/iconv/ccs/binary/cp852.cct: Ditto.
8627         * libc/iconv/ccs/binary/cp855.cct: Ditto.
8628         * libc/iconv/ccs/binary/cp866.cct: Ditto.
8629         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
8630         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
8631         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
8632         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
8633         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
8634         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
8635         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
8636         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
8637         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
8638         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
8639         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
8640         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
8641         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
8642         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
8643         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
8644         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
8645         * libc/iconv/ces/euc-kr.c: Ditto.
8646         * libc/iconv/ces/euc-tw.c: Ditto.
8647         * libc/iconv/ces/gb2312.c: Ditto.
8648         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
8649         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
8650         * libc/iconv/ces/ucs-2-internal.c: Ditto.
8651         * libc/iconv/ces/ucs-4-internal.c: Ditto.
8652         * libc/iconv/ces/utf-16.c: Ditto.
8653         * libc/iconv/ces/utf-8.c: Ditto.
8654         * libc/iconv/lib/aliases.c: Ditto.
8655         * libc/iconv/lib/biccs.c: Ditto.
8656         * libc/iconv/lib/bices.c: Ditto.
8657         * libc/iconv/lib/ccs.c: Ditto.
8658         * libc/iconv/lib/ces.c: Ditto.
8659         * libc/iconv/lib/ces_euc.c: Ditto.
8660         * libc/iconv/lib/ces_iso2022.c: Ditto.
8661         * libc/iconv/lib/ces_table.c: Ditto.
8662         * libc/iconv/lib/converter.c: Ditto.
8663         * libc/iconv/lib/deps.h: Ditto.
8664         * libc/iconv/lib/endian.h: Ditto.
8665         * libc/iconv/lib/iconv.c: Ditto.
8666         * libc/iconv/lib/loaddata.c: Ditto.
8667         * libc/iconv/lib/local.h: Include newlib.h.
8668         * libc/argz/Makefile.in: Regenerated.
8669         * libc/ctype/Makefile.in: Ditto.
8670         * libc/errno/Makefile.in: Ditto.
8671         * libc/iconv/ccs/binary/Makefile.in: Ditto.
8672         * libc/locale/Makefile.in: Ditto.
8673         * libc/misc/Makefile.in: Ditto.
8674         * libc/posix/Makefile.in: Ditto.
8675         * libc/reent/Makefile.in: Ditto.
8676         * libc/search/Makefile.in: Ditto.
8677         * libc/signal/Makefile.in: Ditto.
8678         * libc/stdio/Makefile.in: Ditto.
8679         * libc/stdio64/Makefile.in: Ditto.
8680         * libc/stdlib/Makefile.in: Ditto.
8681         * libc/string/Makefile.in: Ditto.
8682         * libc/syscalls/Makefile.in: Ditto.
8683         * libc/time/Makefile.in: Ditto.
8684         * libc/unix/Makefile.in: Ditto.
8685         * testsuite/newlib.iconv/iconv.exp: New file.
8686         * testsuite/newlib.iconv/iconvjp.c: Ditto.
8687         * testsuite/newlib.iconv/iconvnm.c: Ditto.
8688         * testsuite/newlib.iconv/iconvru.c: Ditto.
8689
8690 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8691
8692         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
8693         (--enable-newlib-builtin-converters): Ditto.
8694         * configure.in: Add code to set _ICONV_ENABLED flag.
8695         Set _MB_LEN_MAX to 1 if not mb enabled.
8696         * configure: Regenerated.
8697         * aclocal.m4: Ditto.
8698         * Makefile.in: Ditto.
8699         * newlib.hin: Add _ICONV_ENABLED flag.
8700         * libc/Makefile.am: Add support for iconv.
8701         * libc/configure.in: Ditto.
8702         * libc/Makefile.in: Regenerated.
8703         * libc/aclocal.m4: Ditto.
8704         * libc/configure: Ditto.
8705         * libc/libc.texinfo: Add iconv documentation.
8706         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
8707         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
8708         libc/iconv/README.TODO, libc/iconv/charset.aliases,
8709         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
8710         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
8711         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
8712         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
8713         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
8714         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
8715         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
8716         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
8717         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
8718         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
8719         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
8720         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
8721         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
8722         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
8723         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
8724         libc/iconv/ccs/binary/big5.cct,
8725         libc/iconv/ccs/binary/cns11643_plane1.cct,
8726         libc/iconv/ccs/binary/cns11643_plane14.cct,
8727         libc/iconv/ccs/binary/cns11643_plane2.cct,
8728         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
8729         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
8730         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
8731         libc/iconv/ccs/binary/iso_8859_1.cct,
8732         libc/iconv/ccs/binary/iso_8859_15.cct,
8733         libc/iconv/ccs/binary/iso_8859_2.cct,
8734         libc/iconv/ccs/binary/iso_8859_4.cct,
8735         libc/iconv/ccs/binary/iso_8859_5.cct,
8736         libc/iconv/ccs/binary/jis_x0201.cct,
8737         libc/iconv/ccs/binary/jis_x0208_1983.cct,
8738         libc/iconv/ccs/binary/jis_x0212_1990.cct,
8739         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
8740         libc/iconv/ccs/binary/ksx1001.cct,
8741         libc/iconv/ccs/binary/shift_jis.cct,
8742         libc/iconv/ccs/binary/us_ascii.cct,
8743         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
8744         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
8745         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
8746         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
8747         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
8748         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
8749         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
8750         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
8751         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
8752         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
8753         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
8754         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
8755         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
8756         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
8757         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
8758         * libc/sys/linux/include/iconv.h: Ditto.
8759         * libc/include/sys/_types.h (_iconv_t): Added.
8760         * doc/aclocal.m4: Regenerated.
8761         * doc/configure: Ditto.
8762         * doc/Makefile.in: Ditto.
8763         * iconvdata/Makefile.in: Ditto.
8764         * iconvdata/aclocal.m4: Ditto.
8765         * iconvdata/configure: Ditto.
8766         * libc/*aclocal.m4: Ditto.
8767         * libc/*Makefile.in: Ditto.
8768         * libc/*configure: Ditto.
8769         * libm/*aclocal.m4: Ditto.
8770         * libm/*Makefile.in: Ditto.
8771         * libm/*configure: Ditto.
8772
8773 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8774
8775         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
8776         by a lock when newlib is multithreaded.
8777
8778 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
8779
8780         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
8781         pointer to match C99 spec.
8782         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
8783         dst is NULL.  Also fix to not alter src pointer when dst is NULL
8784         and call _mbrtowc_r instead of _mbtowc_r.
8785         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
8786         of _wctomb_r.
8787
8788 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
8789
8790         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
8791         * libc/stdio/freopen.c (freopen): Ditto.
8792
8793 2004-01-16  Christopher Faylor  <cgf@redhat.com>
8794
8795         * libc/stdio/vfprintf.c: Add sys/lock.h include.
8796
8797 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
8798
8799         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
8800         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
8801         Add calls to __lock_init_recursive and __lock_close_recursive
8802         instead.
8803
8804 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
8805
8806         * libc/stdio/fclose.c: Include sys/lock.h.
8807         (fclose): Destroy lock when file is closed.
8808         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
8809         member.
8810         * libc/stdio/freopen.c: Include sys/lock.h.
8811         (_freopen_r): Destroy lock when file is closed.
8812         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
8813         _lock member.
8814
8815 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8816
8817         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
8818         Remove warnings.
8819
8820 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
8821
8822         * libc/sys/rtems/sys/queue.h: New file.
8823         * libc/include/sys/signal.h: Reflect renumbering of signals to
8824         fit into 32-bit mask.
8825         * libc/include/sys/unistd.h: Add fdatasync() prototype.
8826         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
8827         required.  In particular, add the reentrant variants of libc calls.
8828         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
8829
8830 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
8831
8832         * libc/sys/arm/syscalls.c (unistd.h): Include it.
8833         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
8834         Similarly for stdout and stderr.
8835
8836 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
8837
8838         * libc/libc.texinfo: Correct escape character for @ sign
8839         so file will be processed by make info.  Update copyright years.
8840         * libm/libm.texinfo: Ditto.
8841
8842 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8843
8844         * libc/include/sys/stat.h: No longer include stat-dj.h.
8845         * libc/include/sys/stat-dj.h: Removed.
8846
8847 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
8848
8849         * libc/include/wchar.h: Include <sys/reent.h>.
8850
8851 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8852
8853         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
8854         when defining _mbrtowc.
8855         * libc/stdlib/mbsinit.c: Ditto.
8856         * libc/stdlib/mbsrtowcs.c: Ditto.
8857         * libc/stdlib/wcrtomb.c: Ditto.
8858         * libc/stdlib/wcsrtombs.c: Ditto.
8859         * libc/stdlib/wctob.c: Ditto.
8860
8861 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8862
8863         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
8864         errors when defining _mbrtowc.
8865         * libc/stdlib/mbsinit.c: Ditto.
8866         * libc/stdlib/mbsrtowcs.c: Ditto.
8867
8868 2003-12-05  Christopher Faylor  <cgf@redhat.com>
8869
8870         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
8871         errors when defining _mbrtowc.
8872
8873 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8874
8875         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
8876         of mb routines for %lc and %ls support.
8877         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
8878         %ls, and %S support.  Remove CYGNUS_NEC markers and
8879         code within.
8880
8881 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
8882
8883         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
8884         _wcrtomb_r, and _wcsrtombs_r.
8885
8886 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
8887
8888         * libc/include/sys/fcntl.h: Don't define struct flock when on
8889         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
8890
8891 2003-11-28  Christopher Faylor  <cgf@redhat.com>
8892
8893         * libc/include/sys/signal.h: Use system specific signal file when
8894         building on cygwin.
8895
8896 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8897
8898         * libc/include/stdlib.h (_atoi_r): New prototype.
8899         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
8900
8901 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
8902
8903         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
8904         * libc/stdlib/atol.c (_atol_r): New reentrant function.
8905         * libc/stdlib/atoll.c (_atoll_r): Ditto.
8906
8907 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8908             Jeff Johnston  <jjohnstn@redhat.com>
8909
8910         * libc/include/stdlib.h (lldiv_t): New type.
8911         (atoll, llabs, lldiv): New prototypes.
8912         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
8913         * libc/stdlib/stdlib.tex: Ditto.
8914         * libc/stdlib/Makefile.in: Regenerated.
8915         * libc/stdlib/atoll.c: New file.
8916         * libc/stdlib/llabs.c: Ditto.
8917         * libc/stdlib/lldiv.c: Ditto.
8918
8919 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
8920
8921         * libc/include/fcntl.h: Declare syscalls only when building newlib.
8922         * libc/include/unistd.h: Ditto.
8923         * libc/include/stat.h: Ditto.  Also declare struct stat64.
8924
8925 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8926
8927         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
8928         specifier to use ch instead of *fmt.
8929
8930 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
8931
8932         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
8933         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
8934         use simple byte logic.
8935
8936 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
8937
8938         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
8939         _strtold routine for processing floats and doubles since it
8940         is not as fast as _strtod_r.
8941
8942 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8943
8944         * libc/machine/h8300/defines.h : Correct pointer register defines
8945         for normal mode.
8946         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
8947         for normal mode.
8948         * libc/machine/h8300/reg_memcpy.S : Likewise.
8949         * libc/machine/h8300/reg_memset.S : Likewise.
8950         * libc/machine/h8300/strcmp.S : Likewise.
8951
8952 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
8953
8954         * configure.host: Enable positional arguments for printf
8955         family for Cygwin.
8956         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
8957         pointer reference for quad_ptr_t.
8958
8959 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
8960
8961         * libc/stdio/scanf.c: Don't include local.h more than once.
8962
8963 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
8964
8965         * libc/include/sys/fcntl.h: Declare _open64.
8966         * libc/include/sys/stat.h: Declare _fstat64.
8967         * libc/include/sys/unistd.h: Declare _lseek64.
8968
8969 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
8970
8971         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
8972         (setprogname): Ditto.
8973
8974 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
8975
8976         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
8977         to use (Ebits + 1) which accounts for the sign-bit.
8978
8979 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
8980
8981         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
8982         x86 build.
8983         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
8984         and set up default flags to pass to aclocal.
8985         * iconvdata/Makefile.in: Regenerated.
8986         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
8987         and getpwuid routines.
8988         * libc/sys/linux/Makefile.in: Regenerated.
8989         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
8990         applications to link with newlib's shared libc library.
8991         * libc/sys/linux/getpwnam.c: Ditto.
8992         * libc/sys/linux/getpwuid.c: Ditto.
8993         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
8994         that were formerly supplied by /usr/include/linux/types.h with
8995         kernel types.
8996         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
8997         test _ELIX_LEVEL macro.
8998
8999 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
9000
9001         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
9002         referring to _NO_LONGLONG macro.
9003
9004 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
9005
9006         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
9007         in LOG() macro so this will compile on gcc 3.4 and up.
9008         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9009         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9010         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9011         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9012         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9013         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9014         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9015         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9016         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9017         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9018         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9019         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9020         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9021         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9022         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9023         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9024         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9025         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9026         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9027         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9028         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9029         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9030         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9031         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9032         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9033         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9034         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9035         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9036         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9037         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9038         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9039         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9040         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9041         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9042         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9043         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9044
9045 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9046             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9047
9048         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
9049         %ls, %S, %lc, and %C format specifiers.
9050         (get_arg): Ditto.
9051         * libc/stdio/sprintf.c: Add documentation regarding new
9052         format specifiers added in vfprintf.c.
9053
9054 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
9055
9056         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
9057         to make code work as specified in standard.
9058
9059 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
9060
9061         * configure.in: Use absolute newlib basedir when forming
9062         CC_FOR_NEWLIB include options.
9063         * configure: Regenerated.
9064
9065 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
9066
9067         * libc/string/wcsnlen.c: New file.
9068         * libc/include/wchar.h: Add wcsnlen prototype.
9069         * libc/string/Makefile.am: Add wcsnlen support.
9070         * libc/string/Makefile.in: Regenerated.
9071         * libc/string/wcstrings.tex: Add wcsnlen documentation.
9072
9073 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
9074
9075         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
9076
9077 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
9078
9079         * libc/locale/locale.c: Use double quotes in code.
9080         * libc/locale/locale.tex: Likewise.
9081         * libc/libc.texinfo: Hyphenate "floating-point".
9082         * libc/machine/necv70/necv70.tex: Likewise.
9083         * libc/stdio/sprintf.c: Likewise.
9084         * libc/stdio/sscanf.c: Likewise.
9085         * libc/stdlib/atof.c: Likewise.
9086         * libc/stdlib/ldtoa.c: Fix comment typo.
9087         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
9088         * libc/stdlib/ldiv.c: Likewise.
9089         * libm/common/s_expm1.c: Likewise.
9090         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
9091         * libm/common/s_infinity: Hyphenate "double- and single-precision".
9092         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
9093         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
9094         and "floating-point".
9095         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
9096         * libm/math/e_pow.c: Fix comment typo.
9097         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
9098         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
9099         * libm/math/s_atan.c: Likewise.
9100         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
9101         * libm/math/s_isnan.c: Hyphenate "single-precision" and
9102         "floating-point".  Use "nonzero".
9103         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9104         * libm/math/w_acos.c: Likewise.
9105         * libm/math/w_acosh.c: Likewise.
9106         * libm/math/w_asin.c: Likewise.
9107         * libm/math/w_atan2.c: Likewise.
9108         * libm/math/w_atanh.c: Likewise.
9109         * libm/math/w_cosh.c: Likewise.
9110         * libm/math/w_exp.c: Likewise.
9111         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
9112         version of 2^x in the description.
9113         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
9114         * libm/math/w_gamma.c: Likewise.
9115         * libm/math/w_hypot.c: Likewise.
9116         * libm/math/w_j0.c: Likewise.
9117         * libm/math/w_sinh.c: Likewise.
9118         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
9119         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
9120         "floating-point".
9121         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
9122         * libm/mathfp/e_atanh.c: Likewise.
9123         * libm/mathfp/e_hypot.c: Likewise.
9124         * libm/mathfp/er_lgamma.c: Likewise.
9125         * libm/mathfp/s_acos.c: Likewise.
9126         * libm/mathfp/s_asine.c: Likewise.
9127         * libm/mathfp/s_asinh.c: Likewise.
9128         * libm/mathfp/s_atan.c: Likewise.
9129         * libm/mathfp/s_atan2.c: Likewise.
9130         * libm/mathfp/s_atangent.c: Likewise.
9131         * libm/mathfp/s_cosh.c: Likewise.
9132         * libm/mathfp/s_exp.c: Likewise.
9133         * libm/mathfp/s_fmod.c: Likewise.
9134         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
9135         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
9136         "floating-point".  Use "nonzero".
9137         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
9138         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
9139         * libm/mathfp/s_sineh.c: Likewise.
9140         * libm/mathfp/w_jn.c: Likewise.
9141
9142 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
9143
9144         * Makefile.am: Add $(MAKE) comments to multido and multiclean
9145         lines, to enable parallel make.
9146         * Makefile.in: Rebuilt.
9147
9148 2003-10-14  Christopher Faylor  <cgf@redhat.com>
9149
9150         * libc/time/clock.c: Clarify documentation of return value when no
9151         measurement is available.
9152
9153 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
9154
9155         * libm/configure.in: Check libm_machine_dir, not machine_dir.
9156         * libm/configure: Regenerate.
9157         * libm/Makefile.in: Ditto.
9158
9159 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
9160
9161         * libc/machine/sh/strncpy.S: New file.
9162         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
9163         * libc/machine/sh/Makefile.in: Regenerate.
9164
9165 2003-09-11  James E Wilson  <wilson@specifixinc.com>
9166
9167         * MAINTAINERS: Update my e-mail address.
9168
9169 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
9170
9171         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
9172
9173 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
9174
9175         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
9176         prototype.
9177         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
9178         _simdldcheck().  Also add unsigned cast for index variable in
9179         for loop using sizeof operators.
9180         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
9181         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
9182         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
9183         plus fix shift calculation for determining if there is a
9184         carry from word2.
9185
9186 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
9187
9188         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
9189         setgroupent for Cygwin.
9190
9191 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
9192
9193         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
9194         is different for _REENT_SMALL than when using regular reent
9195         struct.
9196
9197 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
9198
9199         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
9200         modern versions of GCC issue a warning.
9201
9202         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
9203         after continuation characters that induces a warning from modern
9204         versions of GCC.
9205
9206 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
9207
9208         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
9209         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
9210
9211 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
9212
9213         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
9214         * libc/stdlib/exit.c : Ditto.
9215         * libc/stdlib/on_exit.c: Ditto.
9216
9217 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
9218
9219         * libc/include/reent.h: Define stat64 as __stat64 when
9220         compiling newlib for Cygwin.
9221
9222 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9223
9224         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
9225         __stat64 when compiling newlib.
9226
9227 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
9228
9229         * libc/include/stdio.h: Allow the io64 function prototypes for
9230         Cygwin when compiling newlib.
9231         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
9232         to expose the Cygwin struct __stat64 type.
9233         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
9234         pointer.
9235         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
9236
9237 2003-08-23  Christopher Faylor  <cgf@redhat.com>
9238
9239         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
9240         definition to fseeko64.
9241
9242 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
9243
9244         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
9245         * libc/stdio: Globally remove/replace all references to fp->_data.
9246         Replace with _REENT or _GLOBAL_REENT where appropriate.
9247         * libc/stdio/asprintf.c: Ditto.
9248         * libc/stdio/fclose.c: Ditto.
9249         * libc/stdio/fvwrite.c: Ditto.
9250         * libc/stdio/makebuf.c: Ditto.
9251         * libc/stdio/refill.c: Ditto.
9252         * libc/stdio/local.h: Ditto.
9253         * libc/stdio/setvbuf.c: Ditto.
9254         * libc/stdio/sscanf.c: Ditto.
9255         * libc/stdio/stdio.c: Ditto.
9256         * libc/stdio/ungetc.c: Ditto.
9257         * libc/stdio/vfscanf.c: Ditto.
9258         * libc/stdio/vsscanf.c: Ditto.
9259         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
9260         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
9261         * libc/stdio/vsnprintf.c: Ditto.
9262         * libc/stdio/vsprintf.c: Ditto.
9263         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
9264         instead of _REENT to walk file list.
9265         * libc/stdio/fflush.c: Ditto.
9266         * libc/stdio/fgetpos.c: Add reentrant version and have regular
9267         version call reentrant version with _REENT argument.
9268         * libc/stdio/fsetpos.c: Ditto.
9269         * libc/stdio/fseek.c: Ditto.
9270         * libc/stdio/fseeko.c: Ditto.
9271         * libc/stdio/ftell.c: Ditto.
9272         * libc/stdio/ftello.c: Ditto.
9273         * libc/stdio/freopen.c: Ditto.
9274         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
9275         new files to chain.  Also use _GLOBAL_REENT pointer for
9276         cleaning up.
9277         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
9278         * libc/stdio/siprintf.c: Ditto.
9279         * libc/stdio/iprintf.c: Ditto.
9280         * libc/stdio/fprintf.c: Ditto.
9281         * libc/stdio/printf.c: Ditto.
9282         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
9283         * libc/stdio/sprintf.c: Ditto.
9284         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
9285         * libc/stdio/rewind.c: Call _fseek_r directly.
9286         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
9287         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
9288         data pointer.
9289         (get_arg): Add extra struct _reent pointer argument.
9290         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
9291         to fp->_data.
9292         * libc/stdio64/fopen64.c: Ditto.
9293         * libc/stdio64/freopen64.c: Ditto.
9294         * libc/stdio64/fsetpos64.c: Ditto.
9295         * libc/stdio64/ftello64.c: Ditto.
9296         * libc/stdio64/local64.h: Ditto.
9297         * libc/stdio64/stdio64.c: Ditto.
9298         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
9299         _fstat64_r for the meantime.
9300
9301 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
9302
9303         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
9304         overflow detection.
9305
9306 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
9307
9308         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
9309         extern "C".
9310
9311 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
9312
9313         * libc/include/math.h: Add prototypes for __signbitf and
9314         __signbitd.
9315
9316 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
9317
9318         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
9319         correct type of conversion when dealing with EUCJP or SJIS.
9320         * libc/ctype/iswblank.c: Ditto.
9321         * libc/ctype/iswcntrl.c: Ditto.
9322         * libc/ctype/iswprint.c: Ditto.
9323         * libc/ctype/iswpunct.c: Ditto.
9324         * libc/ctype/iswspace.c: Ditto.
9325         * libc/ctype/towlower.c: Ditto.
9326         * libc/ctype/towupper.c: Ditto.
9327
9328 2003-07-31  Nick Clifton  <nickc@redhat.com>
9329
9330         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
9331         before calling main, in case it saves its argument registers.
9332         Remove reference to deleted v850ea port.
9333         * configure.host: Remove reference to deleted v850ea port.
9334         Do not use -mv850 when building for v850e target.  This
9335         prevents the ctbp system register from being initialised.
9336
9337 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
9338
9339         * libc/stdio/vfprintf.c: Set output size to 1 when
9340         we have %f format with precision 0 and # flag not specified.
9341
9342 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
9343
9344         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
9345         .am33_2.
9346
9347 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9348
9349         * libc/stdio64/fdopen64.c: Include sys/lock.h.
9350
9351 2003-07-25  Christopher Faylor  <cgf@redhat.com>
9352
9353         * configure.host: Find cygwin include directory, when appropriate.
9354
9355 2003-07-24  Christopher Faylor  <cgf@redhat.com>
9356
9357         * libc/stdio64/fdopen64.c: New file.
9358         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
9359         * libc/stdio64/Makefile.in: Regenerate.
9360         * libc/include/stdio.h (fdopen64): Define.
9361         * libc/include/stdio.h (_fdopen64_r): Ditto.
9362
9363 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9364
9365         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9366         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
9367         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
9368         restore callee-saved FP registers.
9369
9370 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9371
9372         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
9373         for __sh__.
9374         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
9375         truncate.c.
9376         * libc/sys/sh/Makefile.in: Regenerate.
9377         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
9378         * libc/sys/sh/ftruncate.c: New file.
9379         * libc/sys/sh/truncate.c: Likewise.
9380
9381 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9382
9383         * libc/include/math.h (nan, nanf): Update prototype to C99.
9384         * libm/common/s_nan.c (nan): Likewise.
9385         * libm/common/s_nanf.c (nanf, nan): Likewise.
9386         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
9387
9388 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
9389
9390         * libc/include/stdbool.h: Removed as this is defined by gcc.
9391
9392 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
9393
9394         * libc/include/stdbool.h: New header file defined by C99.
9395
9396 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9397
9398         * libc/include/sys/types.h (int8_t): Make signed.
9399
9400 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
9401
9402         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
9403
9404 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
9405
9406         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
9407         on if we actually created the shared memory file exclusively.
9408
9409 2003-06-27  Joe Vornehm  <joev@mitre.org>
9410
9411         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
9412         comparisons to account for unsigned internal value w.
9413
9414 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
9415
9416         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
9417         wrbuf for a non-creating open.
9418
9419 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
9420
9421         * libc/machine/h8300/setarch.h: New.
9422         * libc/machine/h8300/memcpy.S: Use it.
9423         * libc/machine/h8300/memset.S: Likewise.
9424         * libc/machine/h8300/reg_memcpy.S: Likewise.
9425         * libc/machine/h8300/reg_memset.S: Likewise.
9426         * libc/machine/h8300/setjmp.S: Likewise.
9427         * libc/machine/h8300/strcmp.S: Likewise.
9428
9429 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
9430
9431         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
9432         to atexit().
9433
9434 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9435
9436         * configure.host (iq2000): Add tabs.
9437
9438 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
9439
9440         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
9441         to handle latest on_exit change.
9442         * libc/sys/linux/Makefile.am: Remove special compilation
9443         for malloc.c and mcheck.c.
9444         * libc/sys/linux/Makefile.in: Regenerated.
9445         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
9446         after including <features.h>.
9447         * libc/sys/linux/mcheck.c: Ditto.
9448         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
9449         for <features.h>.
9450         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
9451         add -DNOT_IN_libc to C flags.
9452         * libc/sys/linux/intl/Makefile.in: Regenerated.
9453         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
9454         * libc/sys/linux/linuxthreads/semaphore.h: Include
9455         <bits/pthreadtypes.h>.
9456         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
9457         including <features.h>.
9458         * libc/sys/linux/sys/lock.h: Ditto.
9459
9460 2003-06-11  Nick Clifton  <nickc@redhat.com>
9461
9462         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
9463         _on_exit_args_ptr.
9464
9465 2003-06-10  Stan Cox  <scox@redhat.com>
9466             Anthony Green  <green@redhat.com>
9467
9468         * configure.host: Add iq2000 support.
9469         * newlib/libc/include/machine/ieeefp.h: Ditto.
9470         * newlib/libc/include/machine/setjmp.h: Ditto.
9471         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
9472         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
9473         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
9474         libc/machine/iq2000/Makefile.in: New files.
9475
9476 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
9477
9478         * libc/sys/h8300hms/setarch.h: New file.
9479         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
9480         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
9481         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
9482         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
9483
9484 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
9485
9486         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
9487         definition.
9488         * libc/argz/argz_add_sep.c: Ditto.
9489         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
9490         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
9491         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
9492         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
9493         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
9494         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
9495         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
9496         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
9497         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
9498         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
9499         * libc/posix/execl.c libc/posix/execle.c: Ditto.
9500         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
9501         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
9502         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
9503         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
9504         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
9505         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
9506         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
9507         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
9508         * libc/search/twalk.c libc/signal/signal.c: Ditto.
9509
9510 2003-06-05  Nick Clifton  <nickc@redhat.com>
9511
9512         * libc/include/sys/reent.h (struct _on_exit_args): New
9513         structure containing fields used by the on_exit() function.
9514         (struct _atexit): Include struct _on_exit_args.  For
9515         _REENT_SMALL do his via a pointer that is initialised when
9516         needed.
9517         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
9518         structure, if one has been allocated.
9519         * libc/stdlib/atexit.c (atexit): Update indirection to
9520         _fntypes field.
9521         * libc/stdlib/on_exit.c (on_exit): Indirect via the
9522         _on_exit_args structure.  For _REENT_SMALL, allocate a
9523         structure if one does not exist.
9524         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
9525         structure.
9526
9527 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
9528
9529         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
9530         * libc/sys/linux/net/Makefile.in: Regenerated.
9531
9532 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
9533
9534         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
9535         * libc/reent/fcntlr.c: Ditto.
9536         * libc/reent/fstat64r.c: Ditto.
9537         * libc/reent/linkr.c: Ditto.
9538         * libc/reent/lseek64r.c: Ditto.
9539         * libc/reent/lseekr.c: Ditto.
9540         * libc/reent/openr.c: Ditto.
9541         * libc/reent/readr.c: Ditto.
9542         * libc/reent/reent.c: Ditto.
9543         * libc/reent/sbrkr.c: Ditto.
9544         * libc/reent/signalr.c: Ditto.
9545         * libc/reent/signgam.c: Ditto.
9546         * libc/reent/statr.c: Ditto.
9547         * libc/reent/timer.c: Ditto.
9548         * libc/reent/unlinkr.c: Ditto.
9549         * libc/reent/writer.c: Ditto.
9550         * libc/syscalls/sysclose.c: Ditto.
9551         * libc/syscalls/sysexecve.c: Ditto.
9552         * libc/syscalls/sysfcntl.c: Ditto.
9553         * libc/syscalls/sysfork.c: Ditto.
9554         * libc/syscalls/sysfstat.c: Ditto.
9555         * libc/syscalls/sysgetpid.c: Ditto.
9556         * libc/syscalls/sysgettod.c: Ditto.
9557         * libc/syscalls/syskill.c: Ditto.
9558         * libc/syscalls/syslink.c: Ditto.
9559         * libc/syscalls/syslseek.c: Ditto.
9560         * libc/syscalls/sysopen.c: Ditto.
9561         * libc/syscalls/sysread.c: Ditto.
9562         * libc/syscalls/syssbrk.c: Ditto.
9563         * libc/syscalls/sysstat.c: Ditto.
9564         * libc/syscalls/systimes.c: Ditto.
9565         * libc/syscalls/sysunlink.c: Ditto.
9566         * libc/syscalls/syswait.c: Ditto.
9567         * libc/syscalls/syswrite.c: Ditto.
9568
9569 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
9570
9571         * libc/time/tzset_r.c: Change local variables that are
9572         set via sscanf using the %h format specifier to be unsigned short
9573         instead of int.
9574
9575 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
9576
9577         * configure.host:  Allow i[34567]86 variant.
9578         * configure.in: Likewise.
9579         * README: Likewise to the docs.
9580         * configure: Regenerated.
9581         * Makefile.in: Ditto.
9582
9583 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
9584             Tom Fitzsimmons  <fitzsim@redhat.com>
9585
9586         * configure.in: Add iconvdata support for x86 linux.
9587         * configure: Regenerated.
9588         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic
9589         library, iconv, and linuxthreads support.
9590         * libc/sys/linux/configure.in: Ditto.
9591         * libc/sys/linux/Makefile.in: Regenerated.
9592         * libc/sys/linux/configure: Ditto.
9593         * iconvdata/EUC-JP.irreversible: New file.
9594         * iconvdata/Makefile.am: Ditto.
9595         * iconvdata/Makefile.in: Ditto.
9596         * iconvdata/SJIS.irreversible: Ditto.
9597         * iconvdata/aclocal.m4: Ditto.
9598         * iconvdata/configure: Ditto.
9599         * iconvdata/configure.in: Ditto.
9600         * iconvdata/dummy.c: Ditto.
9601         * iconvdata/euc-jp.c: Ditto.
9602         * iconvdata/gconv-modules: Ditto.
9603         * iconvdata/jis0201.c: Ditto.
9604         * iconvdata/jis0201.h: Ditto.
9605         * iconvdata/jis0208.c: Ditto.
9606         * iconvdata/jis0208.h: Ditto.
9607         * iconvdata/jis0212.c: Ditto.
9608         * iconvdata/jis0212.h: Ditto.
9609         * iconvdata/sjis.c: Ditto.
9610         * libc/include/errno.h: Protect definition of error_t.
9611         * libc/sys/linux/gethostid.c: New file.
9612         * libc/sys/linux/sethostid.c: Ditto.
9613         * libc/sys/linux/dl/Makefile.am: Ditto.
9614         * libc/sys/linux/dl/Makefile.in: Ditto.
9615         * libc/sys/linux/dl/abi-tag.h: Ditto.
9616         * libc/sys/linux/dl/atomicity.h: Ditto.
9617         * libc/sys/linux/dl/dl-addr.c: Ditto.
9618         * libc/sys/linux/dl/dl-cache.c: Ditto.
9619         * libc/sys/linux/dl/dl-cache.h: Ditto.
9620         * libc/sys/linux/dl/dl-close.c: Ditto.
9621         * libc/sys/linux/dl/dl-debug.c: Ditto.
9622         * libc/sys/linux/dl/dl-deps.c: Ditto.
9623         * libc/sys/linux/dl/dl-dst.h: Ditto.
9624         * libc/sys/linux/dl/dl-error.c: Ditto.
9625         * libc/sys/linux/dl/dl-fini.c: Ditto.
9626         * libc/sys/linux/dl/dl-init.c: Ditto.
9627         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
9628         * libc/sys/linux/dl/dl-libc.c: Ditto.
9629         * libc/sys/linux/dl/dl-librecon.h: Ditto.
9630         * libc/sys/linux/dl/dl-load.c: Ditto.
9631         * libc/sys/linux/dl/dl-lookup.c: Ditto.
9632         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
9633         * libc/sys/linux/dl/dl-minimal.c: Ditto.
9634         * libc/sys/linux/dl/dl-misc.c: Ditto.
9635         * libc/sys/linux/dl/dl-object.c: Ditto.
9636         * libc/sys/linux/dl/dl-open.c: Ditto.
9637         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
9638         * libc/sys/linux/dl/dl-profile.c: Ditto.
9639         * libc/sys/linux/dl/dl-profstub.c: Ditto.
9640         * libc/sys/linux/dl/dl-reloc.c: Ditto.
9641         * libc/sys/linux/dl/dl-runtime.c: Ditto.
9642         * libc/sys/linux/dl/dl-support.c: Ditto.
9643         * libc/sys/linux/dl/dl-sym.c: Ditto.
9644         * libc/sys/linux/dl/dl-version.c: Ditto.
9645         * libc/sys/linux/dl/dlfcn.h: Ditto.
9646         * libc/sys/linux/dl/do-lookup.h: Ditto.
9647         * libc/sys/linux/dl/do-rel.h: Ditto.
9648         * libc/sys/linux/dl/dynamic-link.h: Ditto.
9649         * libc/sys/linux/dl/kernel-features.h: Ditto.
9650         * libc/sys/linux/dl/ldsodefs.h: Ditto.
9651         * libc/sys/linux/dl/libintl.h: Ditto.
9652         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
9653         * libc/sys/linux/dl/unsecvars.h: Ditto.
9654         * libc/sys/linux/iconv/Makefile.am: Ditto.
9655         * libc/sys/linux/iconv/Makefile.in: Ditto.
9656         * libc/sys/linux/iconv/categories.def: Ditto.
9657         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
9658         * libc/sys/linux/iconv/gconv.c: Ditto.
9659         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
9660         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
9661         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
9662         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
9663         * libc/sys/linux/iconv/gconv_close.c: Ditto.
9664         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
9665         * libc/sys/linux/iconv/gconv_db.c: Ditto.
9666         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
9667         * libc/sys/linux/iconv/gconv_int.h: Ditto.
9668         * libc/sys/linux/iconv/gconv_open.c: Ditto.
9669         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
9670         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
9671         * libc/sys/linux/iconv/hash-string.h: Ditto.
9672         * libc/sys/linux/iconv/iconv.c: Ditto.
9673         * libc/sys/linux/iconv/iconv.h: Ditto.
9674         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
9675         * libc/sys/linux/iconv/iconv_close.c: Ditto.
9676         * libc/sys/linux/iconv/iconv_open.c: Ditto.
9677         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
9678         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
9679         * libc/sys/linux/iconv/loadinfo.h: Ditto.
9680         * libc/sys/linux/iconv/localeinfo.h: Ditto.
9681         * libc/sys/linux/iconv/loop.c: Ditto.
9682         * libc/sys/linux/iconv/skeleton.c: Ditto.
9683         * libc/sys/linux/iconv/strtab.c: Ditto.
9684         * libc/sys/linux/include/dl-hash.h: Ditto.
9685         * libc/sys/linux/include/dlfcn.h: Ditto.
9686         * libc/sys/linux/include/fnmatch.h: Ditto.
9687         * libc/sys/linux/include/gconv.h: Ditto.
9688         * libc/sys/linux/include/glob.h: Ditto.
9689         * libc/sys/linux/include/hesiod.h: Ditto.
9690         * libc/sys/linux/include/ifaddrs.h: Ditto.
9691         * libc/sys/linux/include/libc_private.h: Ditto.
9692         * libc/sys/linux/include/link.h: Ditto.
9693         * libc/sys/linux/include/namespace.h: Ditto.
9694         * libc/sys/linux/include/netconfig.h: Ditto.
9695         * libc/sys/linux/include/netdb.h: Ditto.
9696         * libc/sys/linux/include/nsswitch.h: Ditto.
9697         * libc/sys/linux/include/regex.h: Ditto.
9698         * libc/sys/linux/include/resolv.h: Ditto.
9699         * libc/sys/linux/include/rune.h: Ditto.
9700         * libc/sys/linux/include/runetype.h: Ditto.
9701         * libc/sys/linux/include/semaphore.h: Ditto.
9702         * libc/sys/linux/include/setlocale.h: Ditto.
9703         * libc/sys/linux/include/un-namespace.h: Ditto.
9704         * libc/sys/linux/include/wordexp.h: Ditto.
9705         * libc/sys/linux/include/arpa/ftp.h: Ditto.
9706         * libc/sys/linux/include/arpa/inet.h: Ditto.
9707         * libc/sys/linux/include/arpa/nameser.h: Ditto.
9708         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
9709         * libc/sys/linux/include/arpa/telnet.h: Ditto.
9710         * libc/sys/linux/include/arpa/tftp.h: Ditto.
9711         * libc/sys/linux/include/net/bpf.h: Ditto.
9712         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
9713         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
9714         * libc/sys/linux/include/net/bridge.h: Ditto.
9715         * libc/sys/linux/include/net/ethernet.h: Ditto.
9716         * libc/sys/linux/include/net/fddi.h: Ditto.
9717         * libc/sys/linux/include/net/if.h: Ditto.
9718         * libc/sys/linux/include/net/if_arc.h: Ditto.
9719         * libc/sys/linux/include/net/if_arp.h: Ditto.
9720         * libc/sys/linux/include/net/if_atm.h: Ditto.
9721         * libc/sys/linux/include/net/if_dl.h: Ditto.
9722         * libc/sys/linux/include/net/if_gif.h: Ditto.
9723         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
9724         * libc/sys/linux/include/net/if_llc.h: Ditto.
9725         * libc/sys/linux/include/net/if_media.h: Ditto.
9726         * libc/sys/linux/include/net/if_mib.h: Ditto.
9727         * libc/sys/linux/include/net/if_ppp.h: Ditto.
9728         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
9729         * libc/sys/linux/include/net/if_slvar.h: Ditto.
9730         * libc/sys/linux/include/net/if_sppp.h: Ditto.
9731         * libc/sys/linux/include/net/if_stf.h: Ditto.
9732         * libc/sys/linux/include/net/if_tap.h: Ditto.
9733         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
9734         * libc/sys/linux/include/net/if_tun.h: Ditto.
9735         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
9736         * libc/sys/linux/include/net/if_types.h: Ditto.
9737         * libc/sys/linux/include/net/if_var.h: Ditto.
9738         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
9739         * libc/sys/linux/include/net/intrq.h: Ditto.
9740         * libc/sys/linux/include/net/iso88025.h: Ditto.
9741         * libc/sys/linux/include/net/net_osdep.h: Ditto.
9742         * libc/sys/linux/include/net/netisr.h: Ditto.
9743         * libc/sys/linux/include/net/pfil.h: Ditto.
9744         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
9745         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
9746         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
9747         * libc/sys/linux/include/net/radix.h: Ditto.
9748         * libc/sys/linux/include/net/raw_cb.h: Ditto.
9749         * libc/sys/linux/include/net/route.h: Ditto.
9750         * libc/sys/linux/include/net/slcompress.h: Ditto.
9751         * libc/sys/linux/include/net/slip.h: Ditto.
9752         * libc/sys/linux/include/net/zlib.h: Ditto.
9753         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
9754         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
9755         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
9756         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
9757         * libc/sys/linux/include/netinet/igmp.h: Ditto.
9758         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
9759         * libc/sys/linux/include/netinet/in.h: Ditto.
9760         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
9761         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
9762         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
9763         * libc/sys/linux/include/netinet/in_var.h: Ditto.
9764         * libc/sys/linux/include/netinet/ip.h: Ditto.
9765         * libc/sys/linux/include/netinet/ip6.h: Ditto.
9766         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
9767         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
9768         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
9769         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
9770         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
9771         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
9772         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
9773         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
9774         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
9775         * libc/sys/linux/include/netinet/tcp.h: Ditto.
9776         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
9777         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
9778         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
9779         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
9780         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
9781         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
9782         * libc/sys/linux/include/netinet/udp.h: Ditto.
9783         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
9784         * libc/sys/linux/include/netinet6/ah.h: Ditto.
9785         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
9786         * libc/sys/linux/include/netinet6/esp.h: Ditto.
9787         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
9788         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
9789         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
9790         * libc/sys/linux/include/netinet6/in6.h: Ditto.
9791         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
9792         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
9793         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
9794         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
9795         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
9796         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
9797         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
9798         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
9799         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
9800         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
9801         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
9802         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
9803         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
9804         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
9805         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
9806         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
9807         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
9808         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
9809         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
9810         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
9811         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
9812         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
9813         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
9814         * libc/sys/linux/include/netns/idp.h: Ditto.
9815         * libc/sys/linux/include/netns/idp_var.h: Ditto.
9816         * libc/sys/linux/include/netns/ns.h: Ditto.
9817         * libc/sys/linux/include/netns/ns_error.h: Ditto.
9818         * libc/sys/linux/include/netns/ns_if.h: Ditto.
9819         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
9820         * libc/sys/linux/include/netns/sp.h: Ditto.
9821         * libc/sys/linux/include/netns/spidp.h: Ditto.
9822         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
9823         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
9824         * libc/sys/linux/include/netns/spp_var.h: Ditto.
9825         * libc/sys/linux/include/rpc/Makefile: Ditto.
9826         * libc/sys/linux/include/rpc/auth.h: Ditto.
9827         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
9828         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
9829         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
9830         * libc/sys/linux/include/rpc/clnt.h: Ditto.
9831         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
9832         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
9833         * libc/sys/linux/include/rpc/des.h: Ditto.
9834         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
9835         * libc/sys/linux/include/rpc/nettype.h: Ditto.
9836         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
9837         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
9838         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
9839         * libc/sys/linux/include/rpc/raw.h: Ditto.
9840         * libc/sys/linux/include/rpc/rpc.h: Ditto.
9841         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
9842         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
9843         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
9844         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
9845         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
9846         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
9847         * libc/sys/linux/include/rpc/svc.h: Ditto.
9848         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
9849         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
9850         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
9851         * libc/sys/linux/include/rpc/types.h: Ditto.
9852         * libc/sys/linux/include/rpc/xdr.h: Ditto.
9853         * libc/sys/linux/intl/Makefile.am: Ditto.
9854         * libc/sys/linux/intl/Makefile.in: Ditto.
9855         * libc/sys/linux/intl/bindtextdom.c: Ditto.
9856         * libc/sys/linux/intl/catgets.c: Ditto.
9857         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
9858         * libc/sys/linux/intl/config.h: Ditto.
9859         * libc/sys/linux/intl/dcgettext.c: Ditto.
9860         * libc/sys/linux/intl/dcigettext.c: Ditto.
9861         * libc/sys/linux/intl/dcngettext.c: Ditto.
9862         * libc/sys/linux/intl/dgettext.c: Ditto.
9863         * libc/sys/linux/intl/dngettext.c: Ditto.
9864         * libc/sys/linux/intl/explodename.c: Ditto.
9865         * libc/sys/linux/intl/finddomain.c: Ditto.
9866         * libc/sys/linux/intl/gettext.c: Ditto.
9867         * libc/sys/linux/intl/gettext.h: Ditto.
9868         * libc/sys/linux/intl/gettextP.h: Ditto.
9869         * libc/sys/linux/intl/hash-string.h: Ditto.
9870         * libc/sys/linux/intl/l10nflist.c: Ditto.
9871         * libc/sys/linux/intl/loadinfo.h: Ditto.
9872         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
9873         * libc/sys/linux/intl/locale.alias: Ditto.
9874         * libc/sys/linux/intl/localealias.c: Ditto.
9875         * libc/sys/linux/intl/ngettext.c: Ditto.
9876         * libc/sys/linux/intl/open_catalog.c: Ditto.
9877         * libc/sys/linux/intl/plural.c: Ditto.
9878         * libc/sys/linux/intl/plural.y: Ditto.
9879         * libc/sys/linux/intl/stpcpy.c: Ditto.
9880         * libc/sys/linux/intl/textdomain.c: Ditto.
9881         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
9882         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
9883         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
9884         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
9885         * libc/sys/linux/linuxthreads/attr.c: Ditto.
9886         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
9887         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
9888         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
9889         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
9890         * libc/sys/linux/linuxthreads/config.h: Ditto.
9891         * libc/sys/linux/linuxthreads/configure: Ditto.
9892         * libc/sys/linux/linuxthreads/configure.in: Ditto.
9893         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
9894         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
9895         * libc/sys/linux/linuxthreads/events.c: Ditto.
9896         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
9897         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
9898         * libc/sys/linux/linuxthreads/internals.h: Ditto.
9899         * libc/sys/linux/linuxthreads/join.c: Ditto.
9900         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
9901         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
9902         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
9903         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
9904         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
9905         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
9906         * libc/sys/linux/linuxthreads/manager.c: Ditto.
9907         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
9908         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
9909         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
9910         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
9911         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
9912         * libc/sys/linux/linuxthreads/prio.c: Ditto.
9913         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
9914         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
9915         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
9916         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
9917         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
9918         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
9919         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
9920         * libc/sys/linux/linuxthreads/queue.h: Ditto.
9921         * libc/sys/linux/linuxthreads/reent.c: Ditto.
9922         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
9923         * libc/sys/linux/linuxthreads/restart.h: Ditto.
9924         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
9925         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
9926         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
9927         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
9928         * libc/sys/linux/linuxthreads/signals.c: Ditto.
9929         * libc/sys/linux/linuxthreads/specific.c: Ditto.
9930         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
9931         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
9932         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
9933         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
9934         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
9935         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
9936         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
9937         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
9938         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
9939         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
9940         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
9941         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
9942         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
9943         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
9944         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
9945         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
9946         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
9947         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
9948         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
9949         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
9950         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
9951         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
9952         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
9953         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
9954         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
9955         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
9956         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
9957         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
9958         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
9959         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
9960         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
9961         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
9962         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
9963         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
9964         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
9965         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
9966         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
9967         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
9968         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
9969         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
9970         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
9971         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
9972         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
9973         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
9974         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
9975         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
9976         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
9977         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
9978         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
9979         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
9980         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
9981         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
9982         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
9983         * libc/sys/linux/linuxthreads/unload.c: Ditto.
9984         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
9985         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
9986         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
9987         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
9988         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
9989         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
9990         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
9991         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
9992         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
9993         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
9994         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
9995         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
9996         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
9997         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
9998         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
9999         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
10000         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
10001         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
10002         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
10003         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
10004         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
10005         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
10006         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
10007         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
10008         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
10009         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
10010         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
10011         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
10012         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
10013         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
10014         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
10015         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
10016         * libc/sys/linux/net/Makefile.am: Ditto.
10017         * libc/sys/linux/net/Makefile.in: Ditto.
10018         * libc/sys/linux/net/addr2ascii.3: Ditto.
10019         * libc/sys/linux/net/addr2ascii.c: Ditto.
10020         * libc/sys/linux/net/ascii2addr.c: Ditto.
10021         * libc/sys/linux/net/base64.c: Ditto.
10022         * libc/sys/linux/net/bindresvport.c: Ditto.
10023         * libc/sys/linux/net/byteorder.3: Ditto.
10024         * libc/sys/linux/net/ether_addr.c: Ditto.
10025         * libc/sys/linux/net/ethers.3: Ditto.
10026         * libc/sys/linux/net/getaddrinfo.3: Ditto.
10027         * libc/sys/linux/net/getaddrinfo.c: Ditto.
10028         * libc/sys/linux/net/gethostbydns.c: Ditto.
10029         * libc/sys/linux/net/gethostbyht.c: Ditto.
10030         * libc/sys/linux/net/gethostbyname.3: Ditto.
10031         * libc/sys/linux/net/gethostbynis.c: Ditto.
10032         * libc/sys/linux/net/gethostnamadr.c: Ditto.
10033         * libc/sys/linux/net/getifaddrs.3: Ditto.
10034         * libc/sys/linux/net/getifaddrs.c: Ditto.
10035         * libc/sys/linux/net/getipnodebyname.3: Ditto.
10036         * libc/sys/linux/net/getnameinfo.3: Ditto.
10037         * libc/sys/linux/net/getnameinfo.c: Ditto.
10038         * libc/sys/linux/net/getnetbydns.c: Ditto.
10039         * libc/sys/linux/net/getnetbyht.c: Ditto.
10040         * libc/sys/linux/net/getnetbynis.c: Ditto.
10041         * libc/sys/linux/net/getnetent.3: Ditto.
10042         * libc/sys/linux/net/getnetnamadr.c: Ditto.
10043         * libc/sys/linux/net/getproto.c: Ditto.
10044         * libc/sys/linux/net/getprotoent.3: Ditto.
10045         * libc/sys/linux/net/getprotoent.c: Ditto.
10046         * libc/sys/linux/net/getprotoname.c: Ditto.
10047         * libc/sys/linux/net/getservbyname.c: Ditto.
10048         * libc/sys/linux/net/getservbyport.c: Ditto.
10049         * libc/sys/linux/net/getservent.3: Ditto.
10050         * libc/sys/linux/net/getservent.c: Ditto.
10051         * libc/sys/linux/net/herror.c: Ditto.
10052         * libc/sys/linux/net/hesiod.3: Ditto.
10053         * libc/sys/linux/net/hesiod.c: Ditto.
10054         * libc/sys/linux/net/if_indextoname.3: Ditto.
10055         * libc/sys/linux/net/ifname.c: Ditto.
10056         * libc/sys/linux/net/inet.3: Ditto.
10057         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
10058         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
10059         * libc/sys/linux/net/inet_addr.c: Ditto.
10060         * libc/sys/linux/net/inet_lnaof.c: Ditto.
10061         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
10062         * libc/sys/linux/net/inet_net.3: Ditto.
10063         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
10064         * libc/sys/linux/net/inet_net_pton.c: Ditto.
10065         * libc/sys/linux/net/inet_neta.c: Ditto.
10066         * libc/sys/linux/net/inet_netof.c: Ditto.
10067         * libc/sys/linux/net/inet_network.c: Ditto.
10068         * libc/sys/linux/net/inet_ntoa.c: Ditto.
10069         * libc/sys/linux/net/inet_ntop.c: Ditto.
10070         * libc/sys/linux/net/inet_pton.c: Ditto.
10071         * libc/sys/linux/net/innetgr-stub.c: Ditto.
10072         * libc/sys/linux/net/ip6opt.c: Ditto.
10073         * libc/sys/linux/net/iso_addr.3: Ditto.
10074         * libc/sys/linux/net/iso_addr.c: Ditto.
10075         * libc/sys/linux/net/issetugid-stub.c: Ditto.
10076         * libc/sys/linux/net/linkaddr.3: Ditto.
10077         * libc/sys/linux/net/linkaddr.c: Ditto.
10078         * libc/sys/linux/net/map_v4v6.c: Ditto.
10079         * libc/sys/linux/net/name6.c: Ditto.
10080         * libc/sys/linux/net/namespace.h: Ditto.
10081         * libc/sys/linux/net/ns.3: Ditto.
10082         * libc/sys/linux/net/ns_addr.c: Ditto.
10083         * libc/sys/linux/net/ns_name.c: Ditto.
10084         * libc/sys/linux/net/ns_netint.c: Ditto.
10085         * libc/sys/linux/net/ns_ntoa.c: Ditto.
10086         * libc/sys/linux/net/ns_parse.c: Ditto.
10087         * libc/sys/linux/net/ns_print.c: Ditto.
10088         * libc/sys/linux/net/ns_ttl.c: Ditto.
10089         * libc/sys/linux/net/nsap_addr.c: Ditto.
10090         * libc/sys/linux/net/nsdispatch.3: Ditto.
10091         * libc/sys/linux/net/nsdispatch.c: Ditto.
10092         * libc/sys/linux/net/nslexer.c: Ditto.
10093         * libc/sys/linux/net/nslexer.l: Ditto.
10094         * libc/sys/linux/net/nsparser.c: Ditto.
10095         * libc/sys/linux/net/nsparser.h: Ditto.
10096         * libc/sys/linux/net/nsparser.y: Ditto.
10097         * libc/sys/linux/net/rcmd.3: Ditto.
10098         * libc/sys/linux/net/rcmd.c: Ditto.
10099         * libc/sys/linux/net/rcmdsh.3: Ditto.
10100         * libc/sys/linux/net/rcmdsh.c: Ditto.
10101         * libc/sys/linux/net/recv.c: Ditto.
10102         * libc/sys/linux/net/res_comp.c: Ditto.
10103         * libc/sys/linux/net/res_config.h: Ditto.
10104         * libc/sys/linux/net/res_data.c: Ditto.
10105         * libc/sys/linux/net/res_debug.c: Ditto.
10106         * libc/sys/linux/net/res_init.c: Ditto.
10107         * libc/sys/linux/net/res_mkquery.c: Ditto.
10108         * libc/sys/linux/net/res_mkupdate.c: Ditto.
10109         * libc/sys/linux/net/res_query.c: Ditto.
10110         * libc/sys/linux/net/res_send.c: Ditto.
10111         * libc/sys/linux/net/res_update.c: Ditto.
10112         * libc/sys/linux/net/resolver.3: Ditto.
10113         * libc/sys/linux/net/rthdr.c: Ditto.
10114         * libc/sys/linux/net/send.c: Ditto.
10115         * libc/sys/linux/net/un-namespace.h: Ditto.
10116         * libc/sys/linux/net/vars.c: Ditto.
10117         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
10118         * libc/sys/linux/stdlib/Makefile.am: Ditto.
10119         * libc/sys/linux/stdlib/Makefile.in: Ditto.
10120         * libc/sys/linux/stdlib/cclass.h: Ditto.
10121         * libc/sys/linux/stdlib/cname.h: Ditto.
10122         * libc/sys/linux/stdlib/collate.c: Ditto.
10123         * libc/sys/linux/stdlib/collate.h: Ditto.
10124         * libc/sys/linux/stdlib/collcmp.c: Ditto.
10125         * libc/sys/linux/stdlib/engine.c: Ditto.
10126         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
10127         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
10128         * libc/sys/linux/stdlib/glob.3: Ditto.
10129         * libc/sys/linux/stdlib/glob.c: Ditto.
10130         * libc/sys/linux/stdlib/reallocf.c: Ditto.
10131         * libc/sys/linux/stdlib/regcomp.c: Ditto.
10132         * libc/sys/linux/stdlib/regerror.c: Ditto.
10133         * libc/sys/linux/stdlib/regex.3: Ditto.
10134         * libc/sys/linux/stdlib/regex2.h: Ditto.
10135         * libc/sys/linux/stdlib/regexec.c: Ditto.
10136         * libc/sys/linux/stdlib/regfree.c: Ditto.
10137         * libc/sys/linux/stdlib/utils.h: Ditto.
10138         * libc/sys/linux/stdlib/wordexp.c: Ditto.
10139         * libc/sys/linux/stdlib/wordfree.c: Ditto.
10140         * libc/sys/linux/sys/dlfcn.h: Ditto.
10141         * libc/sys/linux/sys/elfclass.h: Ditto.
10142         * libc/sys/linux/sys/event.h: Ditto.
10143         * libc/sys/linux/sys/ioccom.h: Ditto.
10144         * libc/sys/linux/sys/libc-tsd.h: Ditto.
10145         * libc/sys/linux/sys/link.h: Ditto.
10146         * libc/sys/linux/sys/lock.h: Ditto.
10147         * libc/sys/linux/sys/param.h: Ditto.
10148         * libc/sys/linux/sys/socket.h: Ditto.
10149         * libc/sys/linux/sys/sockio.h: Ditto.
10150
10151 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
10152
10153         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for
10154         normal mode
10155         * newlib/libc/machine/h8300/memset.S: Likewise
10156         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
10157         * newlib/lib/machine/h8300/reg_memset.S: Likewise
10158         * newlib/lib/machine/h8300/setjmp.S: Likewise
10159         * newlib/lib/machine/h8300/strcmp.S: Likewise
10160         * newlib/lib/sys/h8300hms/crt0.S: Likewise
10161
10162 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10163
10164         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
10165         * libc/include/stdio.h: Ditto.
10166         * libc/include/sys/config.h: Ditto.
10167         * libc/stdio/mktemp.c: Ditto.
10168
10169 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
10170
10171         * libc/locale/ldpart.c (__part_load_locale): Substitute
10172         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
10173         * libc/search/hash.c (__hash_open): Ditto.
10174         (init_hash): Ditto.
10175         * libc/stdio/fseek.c (fseek): Ditto.
10176         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10177         * libc/stdio/mktemp.c (_gettemp): Ditto.
10178
10179 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10180
10181         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
10182
10183 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
10184
10185         * configure.host: Accomodate removing the libc/sys/cygwin dir.
10186         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
10187         if __CYGWIN_USE_BIG_TYPES__ is set.
10188         * libc/search/hash.c (__hash_open): Ditto.
10189         (init_hash): Ditto.
10190         * libc/stdio/fseek.c (fseek): Ditto.
10191         * libc/stdio/makebuf.c (__smakebuf): Ditto.
10192         * libc/stdio/mktemp.c (_gettemp): Ditto.
10193         * libc/sys/cygwin/Makefile.am: Remove.
10194         * libc/sys/cygwin/Makefile.in: Remove.
10195         * libc/sys/cygwin/aclocal.m4: Remove.
10196         * libc/sys/cygwin/configure: Remove.
10197         * libc/sys/cygwin/configure.in: Remove.
10198         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
10199         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
10200         directory.
10201         * libc/sys/cygwin/sys/param.h: Ditto.
10202         * libc/sys/cygwin/sys/utime.h: Ditto.
10203         * libc/sys/cygwin/sys/utmp.h: Ditto.
10204
10205 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
10206
10207         * libc/include/sys/types.h: Don't define key_t for Cygwin.
10208
10209 2003-05-10  Christopher Faylor  <cgf@redhat.com>
10210
10211         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
10212         64 bit inodes.
10213
10214 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
10215
10216         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
10217         Include cygwin/config.h instead.
10218
10219 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
10220
10221         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
10222         all code with #ifdef __SPE__ test.
10223         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
10224
10225 2003-04-15  Chris January <chris@atomice.net>
10226
10227         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
10228         Cygwin.
10229
10230 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
10231
10232         * libc/machine/sh/memset.S: Avoid clobbering volatile
10233         objects following a tiny to-be-set array in the same quadword.
10234
10235 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
10236
10237         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
10238         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
10239         * libc/string/Makefile.in: Regenerated.
10240         * libc/string/wcswidth.c: New file.
10241         * libc/string/wcwidth.c: New file.
10242         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
10243
10244 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
10245
10246         * libc/machine/sh/memset.S: Fix problem with alloco region
10247         exceeding destination region for length >= 88 bytes, start
10248         & 0x16 == 0, end & 0x1f == 18.
10249
10250 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
10251
10252         * libc/string/wcscoll.c: Fix comment.
10253
10254 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
10255
10256         * libc/include/wchar.h: Add definition for wcscoll.
10257         * libc/string/Makefile.am: Add wcscoll.c.
10258         * libc/string/Makefile.in: Regenerated.
10259         * libc/string/wcscoll.c: New file.
10260         * libc/string/wcstrings.tex: Add wcscoll.
10261
10262 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10263
10264         * libc/stdio/sscanf.c: Update flags description.
10265         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
10266         type.
10267         (__svfscanf_r): Add 'hh' and 'll' handling.
10268
10269 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
10270
10271         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
10272         __d_position member to _off_t.
10273
10274 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
10275
10276         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
10277         count all characters used to create number against maximum width.
10278         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
10279
10280 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
10281
10282         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
10283         support.
10284         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
10285         flag to support simulator only extensions.
10286
10287 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
10288
10289         * libc/string/wcschr.c: (wcschr): Look for character first,
10290         then for end of string, so you can do wcschr(x, '\0').
10291
10292 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>
10293
10294         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
10295         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
10296         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
10297         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
10298         * libc/stdio/fseeko.c (fseeko): Ditto.
10299         * libc/stdio/ftello.c (ftello): Ditto.
10300         * libc/stdio/stdio.c (__swrite): Ditto.
10301         (__sseek): Ditto.
10302         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
10303         * libc/stdio/fseek.c (fseek): Ditto.
10304         * libc/stdio/fsetpos.c (fsetpos): Ditto.
10305         * libc/stdio/ftell.c (ftell): Ditto.
10306         * libc/stdio/local.h: Declare __sseek using _off_t.
10307
10308 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10309
10310         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
10311
10312 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10313
10314         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
10315         Cygwin.
10316
10317 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
10318
10319         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
10320         Cygwin.
10321         * libc/include/sys/stat.h: Ditto.
10322         * libc/include/sys/unistd.h: Ditto.
10323         * libc/sys/cygwin/sys/dirent.h: Ditto.
10324
10325 2003-03-07  Christopher Faylor  <cgf@redhat.com>
10326
10327         * libc/include/sys/unistd.h: Guard getopt.h call to force only
10328         declaration of getopt and avoid getopt_long declaration.
10329         * libc/sys/cygwin/include/unistd.h: Remove.
10330
10331 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
10332
10333         * configure.host: Define stdio64_dir for Cygwin.
10334         * libc/include/stdio.h: Change definition of fpos_t to fulfill
10335         Cygwin 64bit file access requirements.
10336         Drop definition of f*64() functions when compiled for Cygwin.
10337         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
10338         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
10339         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
10340
10341 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
10342
10343         * libc/include/sys/reent.h: Remove extraneous _sig_func
10344         declaration.
10345
10346 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
10347
10348         * libc/sys/h8300hms/Makefile.am: Add support for new files.
10349         * libc/sys/h8300hms/Makefile.in: Regenerated.
10350         * libc/sys/h8300hms/close.S: New file.
10351         * libc/sys/h8300hms/fstat.S: Ditto.
10352         * libc/sys/h8300hms/lseek.S: Ditto.
10353         * libc/sys/h8300hms/open.S: Ditto.
10354         * libc/sys/h8300hms/stat.S: Ditto.
10355         * libc/sys/h8300hms/read.S: New file to replace read.c.
10356         * libc/sys/h8300hms/read.c: Removed.
10357         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
10358         _lseek, _close, _stat, _fstat.
10359         * libc/sys/h8300hms/write.S: New file to replace write.c.
10360         * libc/sys/h8300hms/write.c: Removed.
10361
10362 2003-02-20  Nick Clifton  <nickc@redhat.com>
10363
10364         * Add support for Cirrus Maverick ARM co-processor:
10365
10366         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
10367
10368                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
10369                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
10370
10371         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
10372
10373                 * configure.host: set sys_dir, syscall_dir, and
10374                 newlib_cflags for ep9312 host.
10375
10376         * configure.host: Restore alpha sorting of entries in case
10377         statements.
10378
10379 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10380
10381         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
10382
10383 2003-02-18  Christian Groessler  <chris@groessler.org>
10384
10385         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
10386         support z8001 segmented mode.
10387
10388 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
10389
10390         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
10391         with a NULL value.
10392
10393 2003-02-10  Christopher Faylor  <cgf@redhat.com>
10394
10395         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
10396         Don't define some types under cygwin.
10397
10398 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
10399
10400         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
10401         option to allow disabling of syscalls being supplied in newlib.
10402         * aclocal.m4: Regenerated.
10403         * configure: Ditto.
10404         * configure.host: Add support of new configuration option and add
10405         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
10406         * doc/aclocal.m4: Regenerated.
10407         * doc/configure: Ditto.
10408         * libc/*aclocal.m4: Ditto.
10409         * libc/*configure: Ditto.
10410         * libm/*aclocal.m4: Ditto.
10411         * libm/*configure: Ditto.
10412         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
10413         is disabled.
10414         * libc/sys/arm/Makefile.in: Regenerated.
10415
10416 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
10417
10418         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
10419         -1 to be sure it cannot later match a valid file fd causing
10420         isatty() to return 1.
10421         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
10422         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
10423         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
10424
10425 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
10426
10427         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
10428         buffer based on the precision, after we have processed the input value
10429         in a local buffer and know its relative magnitude.
10430
10431 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10432
10433         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
10434         into registers r1 and r2, so that the simulator can distinguish
10435         this trap from a breakpoint trap.  Copied from libgloss.
10436
10437 2003-01-31  Michael Snyder  <msnyder@redhat.com>
10438
10439         * libc/sys/h8300hms/crt0.S (_start): Change local label
10440         from .loop to .Loop, so that ld and gdb will ignore it.
10441
10442 2003-01-29  Jason Tishler  <jason@tishler.net>
10443
10444         * libc/include/time.h: Declare nanosleep() under Cygwin.
10445
10446 2003-01-24  Nick Clifton  <nickc@redhat.com>
10447
10448         * Add sh2e support:
10449
10450         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
10451
10452                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
10453                 * libc/machine/sh/setjmp.S: Likewise.
10454                 * libc/include/machine/ieeefp.h: Likewise.
10455
10456 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
10457
10458         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
10459         for Cygwin.
10460
10461 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
10462
10463         * libc/time/difftime.c : Typecast the result to double.
10464
10465 2003-01-20  Christopher Faylor  <cgf@redhat.com>
10466
10467         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
10468
10469 2003-01-18  Nick Clifton  <nickc@redhat.com>
10470
10471         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
10472         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
10473
10474 2003-01-16  Joel Sherrill <joel@OARcorp.com>
10475
10476         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
10477         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
10478         constants are defined in each file in the shared versions in
10479         libc/include.
10480         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
10481         autoconf can link programs.
10482         * libc/include/machine/types.h: Explicitly specify signed on
10483         intXX_t types to ensure they are signed.
10484
10485 2003-01-14  Christopher Faylor  <cgf@redhat.com>
10486
10487         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
10488         extensions.
10489
10490 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
10491
10492         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
10493
10494 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
10495
10496         * libc/stdio/sprintf.c: fix typo
10497         * libc/stdio/vfprintf.c: fix typo
10498
10499 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
10500
10501         * configure.host: Support long double I/O for x86-linux.
10502         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
10503         large enough to hold formatted result.
10504         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
10505
10506 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10507
10508         * Makefile.am: Add vasprintf.
10509         * Makefile.in: Regenerated.
10510
10511 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
10512
10513         * asprintf.c (_asprintf_r): insure both declarations
10514         are the same.
10515
10516 2002-12-28  Christopher Faylor  <cgf@redhat.com>
10517
10518         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
10519         than defining getopt directly.
10520
10521 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10522
10523         * NEWS: Update with 1.11.0 info.
10524         * README: Ditto.
10525         * acinclude.m4: Change version number to 1.11.0.
10526         * aclocal.m4: Regenerated.
10527         * configure: Ditto.
10528         * doc/aclocal.m4: Ditto.
10529         * doc/configure: Ditto.
10530         * libc/*/aclocal.m4: Ditto.
10531         * libc/*/configure: Ditto.
10532         * libc/libc.texinfo: Ditto.
10533         * libm/*/aclocal.m4: Ditto.
10534         * libm/*/configure: Ditto.
10535         * libm/libm.texinfo: Ditto.
10536         * libc/sys/linux/shared.ld: Add VERS_1.11.
10537
10538 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10539
10540         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
10541         Solutions to Red Hat Inc.
10542         * libc/machine/i386/f_atan2f.S: Ditto.
10543         * libc/machine/i386/f_exp.c: Ditto.
10544         * libc/machine/i386/f_expf.c: Ditto.
10545         * libc/machine/i386/f_frexp.S: Ditto.
10546         * libc/machine/i386/f_frexpf.S: Ditto.
10547         * libc/machine/i386/f_ldexp.S: Ditto.
10548         * libc/machine/i386/f_ldexpf.S: Ditto.
10549         * libc/machine/i386/f_log.S: Ditto.
10550         * libc/machine/i386/f_log10.S: Ditto.
10551         * libc/machine/i386/f_log10f.S: Ditto.
10552         * libc/machine/i386/f_logf.S: Ditto.
10553         * libc/machine/i386/f_pow.c: Ditto.
10554         * libc/machine/i386/f_powf.c: Ditto.
10555         * libc/machine/i386/f_tan.S: Ditto.
10556         * libc/machine/i386/f_tanf.S: Ditto.
10557         * libc/machine/i386/memchr.S: Ditto.
10558         * libc/machine/i386/memcmp.S: Ditto.
10559         * libc/machine/i386/memcpy.S: Ditto.
10560         * libc/machine/i386/memmove.S: Ditto.
10561         * libc/machine/i386/memset.S: Ditto.
10562         * libc/machine/i386/strchr.S: Ditto.
10563         * libc/machine/i386/strlen.S: Ditto.
10564         * libm/machine/i386/f_atan2.S: Ditto.
10565         * libm/machine/i386/f_atan2f.S: Ditto.
10566         * libm/machine/i386/f_exp.c: Ditto.
10567         * libm/machine/i386/f_expf.c: Ditto.
10568         * libm/machine/i386/f_frexp.S: Ditto.
10569         * libm/machine/i386/f_frexpf.S: Ditto.
10570         * libm/machine/i386/f_ldexp.S: Ditto.
10571         * libm/machine/i386/f_ldexpf.S: Ditto.
10572         * libm/machine/i386/f_log.S: Ditto.
10573         * libm/machine/i386/f_log10.S: Ditto.
10574         * libm/machine/i386/f_log10f.S: Ditto.
10575         * libm/machine/i386/f_logf.S: Ditto.
10576         * libm/machine/i386/f_pow.c: Ditto.
10577         * libm/machine/i386/f_powf.c: Ditto.
10578         * libm/machine/i386/f_tan.S: Ditto.
10579         * libm/machine/i386/f_tanf.S: Ditto.
10580
10581 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
10582
10583         * libc/stdlib/environ.c: Update license to Red Hat.
10584         * libc/machine/hppa/setjmp.S: Ditto.
10585         * libm/test/Makefile.in: Ditto.
10586
10587 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
10588
10589         * configure.host: Remove references to go32.
10590         * libc/sys/go32/*: Removed.
10591
10592 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
10593
10594         * libc/include/sys/config.h: Change setting of INT_MAX
10595         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
10596         __H8300S__.  Also consolidate flag settings for these
10597         platforms.
10598
10599 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
10600
10601         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
10602         for i386-rtems targets.
10603
10604 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
10605
10606         * libc/include/stdlib.h (strtof): New prototype (from C99).
10607         (strtodf): Changed from prototype to macro which redefines
10608         to strtof.
10609         * libc/stdlib/atof.c: Change documentation to refer to strtof
10610         instead of strtodf.
10611         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
10612         strtodf.
10613         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
10614         (strtof): New function.
10615         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
10616         calls strtof.
10617
10618 2002-11-27  Christopher Faylor  <cgf@redhat.com>
10619
10620         * libc/string/memset.c (memset): Fix comment.
10621
10622 2002-11-26  Christopher Faylor  <cgf@redhat.com>
10623
10624         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
10625         function.
10626
10627 2002-11-25  Christopher Faylor  <cgf@redhat.com>
10628
10629         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
10630         variable, introduced below, everywhere.
10631
10632 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
10633
10634         * libc/string/memset.c (memset): Make it safe even if
10635         sizeof (int) = 2.
10636
10637 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
10638
10639         * configure.in: Change check for libc/include in ${CC} to
10640         use an intermediate value so as to work with different shells.
10641         * configure: Regenerated.
10642         * Makefile.in: Ditto.
10643
10644 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
10645
10646         * libc/sys/h8300hms/read.c: Add support for normal mode
10647         architecture.
10648
10649 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
10650
10651         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
10652         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
10653         when -mint32 is used.
10654
10655 2002-11-18  Nick Clifton  <nickc@redhat.com>
10656
10657         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
10658
10659 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
10660
10661         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
10662         only issue one pass/fail message for a compile/link/execute.
10663         * testsuite/newlib.elix/elix.exp: New file.
10664         * testsuite/newlib.elix/tmmap.c: Ditto.
10665
10666 2002-11-06  Christopher Faylor  <cgf@redhat.com>
10667
10668         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
10669         * libc/stdlib/mlock.c: Ditto.
10670         * libc/stdlib/msize.c: Ditto.
10671         * libc/stdlib/msize.c: Ditto.
10672         * libc/stdlib/mtrim.c: Ditto.
10673         * libc/stdlib/valloc.c: Ditto.
10674
10675 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
10676
10677         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
10678         for inf/nan, make sure that the check ignores the sign bit.
10679
10680 2002-11-07  Joel Sherrill <joel@OARcorp.com>
10681
10682         * libc/sys/rtems/machine: New directory.
10683         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
10684         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
10685         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
10686         targets more BSD like when installed without requiring files to
10687         be overwritten at install point when RTEMS itself is installed.
10688         * Makefile.am: Pick up system dependent machine .h files such as
10689         might be found on a BSD-ish system.
10690         * Makefile.in: Regenerate.
10691         * libc/include/machine/types.h: When on an RTEMS target, define a
10692         few BSD flavor types.
10693
10694 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
10695
10696         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
10697
10698 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10699
10700         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
10701         * libc/include/wctype.h: Ditto.
10702
10703 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
10704
10705         * libc/include/wchar.h: Add extern "C" specifier if C++.
10706         * libc/include/wctype.h: Ditto.
10707
10708 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10709
10710         * testsuite/newlib.wctype/tiswctype.c: New test case.
10711         * testsuite/newlib.wctype/twctrans.c: Ditto.
10712
10713 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10714
10715         * libc/sys/linux/machine/i386/include/endian.h: New file.
10716         * libc/sys/linux/machine/i386/include/param.h: Ditto.
10717
10718 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10719
10720         * libm/machine/i386/aclocal.m4: Regenerated.
10721         * libm/machine/i386/configure: Ditto.
10722
10723 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
10724
10725         * testsuite/include/check.h: New header file to use with
10726         test cases.
10727         * testsuite/lib/newlib.exp: Add testsuite/include directory
10728         to list of header files to use.
10729         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
10730         * testsuite/newlib.wctype/wctype.exp: New file.
10731
10732 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
10733             Richard Sandiford  <rsandifo@redhat.com>
10734
10735         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
10736         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
10737         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
10738
10739 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10740
10741         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
10742         dummy programs.
10743
10744 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10745
10746         * libc/include/pthread.h: Define PTHREAD_CANCELED.
10747
10748 2002-10-07      Joel Sherrill <joel@OARcorp.com>
10749
10750         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
10751         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
10752         compile with current GNU tools.
10753
10754 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
10755
10756         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
10757         the build library.
10758         * configure.in: Ditto.
10759         * Makefile.in: Regenerated.
10760         * configure: Ditto.
10761         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
10762         for specifying configured libraries/directories.
10763         * libc/sys/linux/configure.in: Ditto.
10764         * libc/sys/linux/Makefile.in: Regenerated.
10765         * libc/sys/linux/configure: Ditto.
10766
10767 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
10768
10769         * libc/include/reent.h: Update documentation at start of file.
10770
10771 2002-09-27  Jim Wilson  <wilson@redhat.com>
10772
10773         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
10774         the ctbp register.
10775
10776 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
10777
10778         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
10779         Also convert to EUCJP before using arrays.  For values not in
10780         the conversion arrays, return WEOF.
10781         * libc/ctype/jp2uc.h: Change from one array to a number of
10782         arrays to account for the fact that the originating table
10783         is not contiguous for the input values since some are invalid.
10784
10785 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
10786
10787         * libc/time/ctime.c: Fix prototype documentation.
10788
10789 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
10790
10791         * libc/include/sys/errno.h: Add EOVERFLOW.
10792
10793 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10794
10795         * libc/include/wctype.h: New file.
10796
10797 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10798
10799         * libc/ctype/Makefile.am: Add new files.
10800         * libc/ctype/Makefile.in: Regenerated.
10801         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
10802         and wctrans functions to documentation index.
10803         * libc/ctype/iswalnum.c: New file.
10804         * libc/ctype/iswalpha.c: Ditto.
10805         * libc/ctype/iswblank.c: Ditto.
10806         * libc/ctype/iswcntrl.c: Ditto.
10807         * libc/ctype/iswctype.c: Ditto.
10808         * libc/ctype/iswdigit.c: Ditto.
10809         * libc/ctype/iswgraph.c: Ditto.
10810         * libc/ctype/iswlower.c: Ditto.
10811         * libc/ctype/iswprint.c: Ditto.
10812         * libc/ctype/iswpunct.c: Ditto.
10813         * libc/ctype/iswspace.c: Ditto.
10814         * libc/ctype/iswupper.c: Ditto.
10815         * libc/ctype/iswxdigit.c: Ditto.
10816         * libc/ctype/jp2uc.c: Ditto.
10817         * libc/ctype/jp2uc.h: Ditto.
10818         * libc/ctype/local.h: Ditto.
10819         * libc/ctype/towctrans.c: Ditto.
10820         * libc/ctype/towlower.c: Ditto.
10821         * libc/ctype/towupper.c: Ditto.
10822         * libc/ctype/utf8alpha.h: Ditto.
10823         * libc/ctype/utf8print.h: Ditto.
10824         * libc/ctype/utf8punct.h: Ditto.
10825         * libc/ctype/wctrans.c: Ditto.
10826         * libc/ctype/wctype.c: Ditto.
10827         * libc/locale/locale.c (__lc_ctype): New external array to
10828         replace static lc_ctype array.
10829         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
10830         rather than reentrancy structure's _current_locale field.
10831         * libc/stdlib/wctomb_r.c: Ditto.
10832
10833 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
10834
10835         * configure.host: Minor comment and formatting changes.
10836         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
10837         * libc/Makefile.in: Regenerated.
10838         * libc/include/sys/config.h: Minor format change.
10839
10840 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10841
10842         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
10843         statement comment.
10844
10845 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
10846
10847         * libc/posix/opendir.c (opendir): Change code to check
10848         for HAVE_FCNTL before calling fcntl.
10849         * libc/search/hash.c (hash_open): Ditto.
10850         * libc/search/hash_page.c (open_tmp): Ditto.
10851         * libc/reent/Makefile.am: Add fcntlr.c.
10852         * libc/reent/Makefile.in: Regenerated.
10853         * libc/reent/fcntlr.c: New file.
10854         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
10855         instead of _fcntl when HAVE_FCNTL flag is set.
10856         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
10857         to see if _fcntl or _fcntl_r should be called.  If flag is not
10858         set, default to ENOSYS stub.
10859
10860 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
10861
10862         * libc/include/wchar.h (mbstate_t): Change protective flag to
10863         be _MBSTATE_T.
10864         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
10865         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
10866         for Cygwin.
10867         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
10868
10869 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
10870
10871         * acinclude.m4 (enable-newlib-mb): Change check to
10872         default newlib_mb variable to empty string rather than "no".
10873         * configure.host: Remove hard-coding of -DMB_CAPABLE for
10874         x86-linux and Cygwin.  Add code to check for newlib_mb
10875         being unset in which case set to "yes" for x86-linux and
10876         Cygwin.  Change check for newlib_mb being "yes" to allow
10877         for an empty string.
10878         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
10879         * newlib.hin (_MB_LEN_MAX): New define to configure.
10880         * aclocal.m4: Regenerated.
10881         * configure: Ditto.
10882         * libc/include/limits.h: New file.
10883         * libc/sys/linux/include/limits.h: Ditto.
10884         * doc/aclocal.m4 doc/configure libc/aclocal.m4
10885           libc/configure libc/machine/aclocal.m4
10886           libc/machine/configure libc/machine/a29k/aclocal.m4
10887           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
10888           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
10889           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
10890           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
10891           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
10892           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
10893           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
10894           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
10895           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
10896           libc/machine/i386/configure libc/machine/i960/aclocal.m4
10897           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
10898           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
10899           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
10900           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
10901           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
10902           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
10903           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
10904           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
10905           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
10906           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
10907           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
10908           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
10909           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
10910           libc/machine/v850/configure libc/machine/w65/aclocal.m4
10911           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
10912           libc/machine/xscale/configure
10913           libc/machine/xstormy16/aclocal.m4
10914           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
10915           libc/machine/z8k/configure libc/sys/aclocal.m4
10916           libc/sys/configure libc/sys/a29khif/aclocal.m4
10917           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
10918           libc/sys/arc/configure libc/sys/arm/aclocal.m4
10919           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
10920           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
10921           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
10922           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
10923           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
10924           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
10925           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
10926           libc/sys/idt/configure libc/sys/linux/aclocal.m4
10927           libc/sys/linux/configure
10928           libc/sys/linux/machine/aclocal.m4
10929           libc/sys/linux/machine/configure
10930           libc/sys/linux/machine/i386/aclocal.m4
10931           libc/sys/linux/machine/i386/configure
10932           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
10933           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
10934           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
10935           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
10936           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
10937           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
10938           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
10939           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
10940           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
10941           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
10942           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
10943           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
10944           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
10945           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
10946           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
10947           libm/aclocal.m4 libm/configure: Regenerated.
10948
10949 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10950
10951         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
10952         code that clears the .bss section.
10953
10954 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
10955
10956         * libc/include/sys/_types.h (_mbstate_t): Changed to use
10957         unsigned char internally.
10958         * libc/sys/linux/sys/_types.h: Ditto.
10959         * libc/include/sys/reent.h
10960         * libc/stdlib/mblen.c (mblen): Use function-specific state
10961         value from default reentrancy structure.
10962         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
10963         _mbtowc_r is less than 0, reset state __count value and
10964         return -1.
10965         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
10966         is NULL, use the function-specific pointer provided in the
10967         default reentrancy structure.
10968         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
10969         If input state pointer is NULL, use function-specific area
10970         provided in reentrancy structure.
10971         * libc/stdlib/mbsrtowcs.c: Ditto.
10972         * libc/stdlib/wcrtomb.c: Ditto.
10973         * libc/stdlib/wcsrtombs.c: Ditto.
10974         * libc/stdlib/mbstowcs.c: Reformat.
10975         * libc/stdlib/wcstombs.c: Ditto.
10976         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
10977         reset the state's __count value and return -1.
10978         * libc/stdlib/mbtowc.c: Ditto.
10979         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
10980         If number of bytes is used up before completing a valid multibyte
10981         character, return -2 and save the state.
10982         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
10983         and change some __count references to __state for clarity.
10984
10985 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
10986
10987         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
10988         is defined by <limits.h>.
10989
10990 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10991
10992         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
10993         defined.
10994
10995 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
10996
10997         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
10998         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
10999         __WCHAR_MAX__ or 0x7fffffffu.
11000         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
11001         * libc/string/wcsncmp.c: Ditto.
11002
11003 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11004
11005         * libc/string/wcschr.c: Add include of <stddef.h>.
11006         * libc/string/wcspbrk.c: Ditto.
11007         * libc/string/wcsrchr.c: Ditto.
11008         * libc/string/wcsstr.c: Ditto.
11009
11010 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
11011
11012         * libc/include/sys/_types.h (_flock_t): Added.
11013         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
11014         (__lock_try_acquire_recursive): Ditto.
11015         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
11016         _lock field.
11017         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
11018         field.
11019         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
11020         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
11021         * libc/sys/linux/include/time.h (struct timespec): Moved from
11022         <sys/types.h> and added check for __need_timespec flag so type
11023         can be defined by itself.
11024         * libc/sys/linux/sys/_types.h (_flock_t): New type.
11025         * libc/sys/linux/sys/types.h (struct timespec): Moved to
11026         <time.h>.
11027
11028 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
11029
11030         * libc/sys/linux/argp: New directory.
11031         * libc/sys/linux/getopt.c: New file.
11032         * libc/sys/linux/getopt1.c: New file.
11033         * libc/sys/linux/getoptlong.c: Remove file.
11034         * libc/sys/linux/include/argp.h: New file.
11035         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
11036         based on ELIX level.
11037         (SUBDIRS): Add argp_dir.
11038         (SUBLIBS): Add ARGP_LIB.
11039         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
11040         getopt_long.$(oext).
11041         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
11042
11043 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11044
11045         * libc/libc.texinfo: Add node reference to wide-character strings.
11046         * libc/string/wcstrings.tex: New file.
11047         * libc/string/strtok_r.c: Remove outdated advertising clause.
11048         * libc/string/Makefile.am (doc): Add wide-character string
11049         chapter to documentation.
11050         * libc/string/Makefile.in: Regenerated.
11051
11052 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
11053
11054         * libc/include/wchar.h: Define NULL. Define WEOF more general
11055         way. Declare functions in newlib manner.
11056         * libc/stdlib/Makefile.am: Delete wmem*.c
11057         * libc/stdlib/Makefile.in: Regenerated.
11058         * libc/stdlib/wmemchr.c: Delete.
11059         * libc/stdlib/wmemcmp.c: Ditto.
11060         * libc/stdlib/wmemcpy.c: Ditto.
11061         * libc/stdlib/wmemmove.c: Ditto.
11062         * libc/stdlib/wmemset.c: Ditto.
11063         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
11064         * libc/string/Makefile.in: Regenerated.
11065         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
11066         * libc/string/wcschr.c: Ditto.
11067         * libc/string/wcscmp.c: Ditto.
11068         * libc/string/wcscpy.c: Ditto.
11069         * libc/string/wcscspn.c: Ditto.
11070         * libc/string/wcslcat.c: Ditto.
11071         * libc/string/wcslcpy.c: Ditto.
11072         * libc/string/wcslen.c: Ditto.
11073         * libc/string/wcsncat.c: Ditto.
11074         * libc/string/wcsncmp.c: Ditto.
11075         * libc/string/wcsncpy.c: Ditto.
11076         * libc/string/wcspbrk.c: Ditto.
11077         * libc/string/wcsrchr.c: Ditto.
11078         * libc/string/wcsspn.c: Ditto.
11079         * libc/string/wcsstr.c: Ditto.
11080         * libc/string/wmemchr.c: Ditto.
11081         * libc/string/wmemcmp.c: Ditto.
11082         * libc/string/wmemcpy.c: Ditto.
11083         * libc/string/wmemmove.c: Ditto.
11084         * libc/string/wmemset.c: Ditto.
11085
11086 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
11087
11088         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
11089         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
11090         and is treated as if "C" was specified.
11091
11092 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11093
11094         * Makefile.am (install-data-local): Move install of build
11095         newlib.h after installing headers in libc/include so as to
11096         overwrite default newlib.h.
11097         * Makefile.in: Regenerated.
11098
11099 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11100
11101         * libc/include/newlib.h: New file for tools that use newlib
11102         headers but don't build newlib first (e.g. gcc).
11103
11104 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
11105
11106         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
11107         * libc/stdlib/wmemcmp.c: Ditto.
11108         * libc/stdlib/wmemcpy.c: Ditto.
11109         * libc/stdlib/wmemmove.c: Ditto.
11110         * libc/stdlib/wmemset.c: Ditto.
11111
11112 2002-08-27  Egor Duda  <deo@logos-m.ru>
11113
11114         * libc/stdlib/wmemchr.c: New file.
11115         * libc/stdlib/wmemcmp.c: Ditto.
11116         * libc/stdlib/wmemcpy.c: Ditto.
11117         * libc/stdlib/wmemmove.c: Ditto.
11118         * libc/stdlib/wmemset.c: Ditto.
11119         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
11120         * configure.host: Default -DMB_CAPABLE for cygwin.
11121         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
11122         wmemmove() and wmemset().  Add include of <_ansi.h>.
11123         * libc/stdlib/Makefile.in: Regenerate.
11124
11125 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
11126
11127         * configure.host: Remove _ELIX_LEVEL flag setting.
11128         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
11129         (install-data-local): Install newlib.h.
11130         * Makefile.in: Regenerated.
11131         * aclocal.m4: Ditto.
11132         * configure: Ditto.
11133         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
11134         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
11135         and _NEWLIB_VERSION to fill in newlib.h header file entries.
11136         In AC_OUTPUT statement, unset ac_file so multilib support does
11137         not use last ac_file temporary used in newlib.h configuration.
11138         * libc/include/_ansi.h: Include <newlib.h>.
11139         * newlib.hin: New template file for newlib.h.
11140         * stamp-h.in: New file.
11141
11142 2002-08-26  Wu Yongwei <adah@netstd.com>
11143
11144         * time.h (timezonevar): Change "#if" to "#ifdef".
11145
11146 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
11147
11148         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
11149         * Makefile.in: Regenerated.
11150         * acinclude.m4: Add support for --enable-newlib-elix-level option.
11151         * aclocal.m4: Regenerated.
11152         * configure: Ditto.
11153         * configure.host: Add code to define _ELIX_LEVEL if
11154         --enable-newlib-elix-level option is used.
11155         * configure.in:
11156         * libc/aclocal.m4: Regenerated.
11157         * libc/configure: Ditto.
11158         * libc/argz/Makefile.am: Add EL/IX level checking.
11159         * libc/argz/Makefile.in: Regenerated.
11160         * libc/argz/dummy.c: New file.
11161         * libc/ctype/Makefile.am: Add EL/IX level checking.
11162         * libc/ctype/Makefile.in: Regenerated.
11163         * libc/locale/Makefile.am: Add EL/IX level checking.
11164         * libc/locale/Makefile.in: Regenerated.
11165         * libc/posix/Makefile.am: Add EL/IX level checking.
11166         * libc/posix/Makefile.in: Regenerated.
11167         * libc/posix/telldir.c: Add EL/IX level checking.
11168         * libc/reent/Makefile.am: Ditto.
11169         * libc/reent/fstat64r.c: Ditto.
11170         * libc/reent/lseek64r.c: Ditto.
11171         * libc/reent/open64r.c: Ditto.
11172         * libc/reent/Makefile.in: Regenerated.
11173         * libc/search/Makefile.am: Add EL/IX level checking.
11174         * libc/search/Makefile.in: Regenerated.
11175         * libc/stdio/Makefile.am: Add EL/IX level checking.
11176         * libc/stdio/Makefile.in: Regenerated.
11177         * libc/stdio64/Makefile.am: Add EL/IX level checking.
11178         * libc/stdio64/Makefile.in: Regenerated.
11179         * libc/stdio64/dummy.c: New file.
11180         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
11181         after first include.
11182         * libc/stdio64/fopen64.c: Ditto.
11183         * libc/stdio64/freopen64.c: Ditto.
11184         * libc/stdio64/fseeko64.c: Ditto.
11185         * libc/stdio64/fsetpos64.c: Ditto.
11186         * libc/stdio64/ftello64.c: Ditto.
11187         * libc/stdio64/tmpfile64.c: Ditto.
11188         * libc/stdlib/Makefile.am: Add EL/IX level checking.
11189         * libc/stdlib/Makefile.in: Regenerated.
11190         * libc/stdlib/mstats.c: Add EL/IX level checking.
11191         * libc/string/Makefile.am: Ditto.
11192         * libc/string/Makefile.in: Regenerated.
11193         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
11194         * libc/sys/linux/Makefile.in: Regenerated.
11195         * libc/sys/linux/aclocal.m4: Ditto.
11196         * libc/sys/linux/configure: Ditto.
11197         * libc/sys/linux/aio.c: Add EL/IX level checking.
11198         * libc/sys/linux/ftok.c: Ditto.
11199         * libc/sys/linux/getdate.c: Ditto.
11200         * libc/sys/linux/ids.c: Ditto.
11201         * libc/sys/linux/inode.c: Ditto.
11202         * libc/sys/linux/io.c: Ditto.
11203         * libc/sys/linux/process.c: Ditto.
11204         * libc/sys/linux/resource.c: Ditto.
11205         * libc/sys/linux/sched.c: Ditto.
11206         * libc/sys/linux/sig.c: Ditto.
11207         * libc/sys/linux/termios.c: Ditto.
11208         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
11209         __libc___waitpid weak aliases.
11210         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
11211         that generate the code for a syscall, but do not create a
11212         weak alias.
11213         * libc/syscalls/Makefile.am: Add EL/IX level checking.
11214         * libc/syscalls/Makefile.in: Regenerated.
11215         * libc/time/tzset_r.c: Change to replace strdup with equivalent
11216         functionality.
11217         * libc/unix/Makefile.am: Add EL/IX level checking.
11218         * libc/unix/Makefile.in: Regenerated.
11219
11220 2002-08-26  Christopher Faylor  <cgf@redhat.com>
11221
11222         * libc/include/malloc.h: On cygwin, define malloc _r functions as
11223         wrapper macros to standard malloc functions.
11224         * libc/include/stdlib.h: Ditto.
11225         * configure.host: Always define MALLOC_PROVIDED on cygwin.
11226
11227 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11228
11229         * libc/include/langinfo.h: New file.
11230         * libc/include/wchar.h: Likewise.
11231         * libc/include/sys/syslimits.h: Likewise.
11232         * libc/locale/fix_grouping.c: Likewise.
11233         * libc/locale/ldpart.c: Likewise.
11234         * libc/locale/ldpart.h: Likewise.
11235         * libc/locale/lmessages.c: Likewise.
11236         * libc/locale/lmessages.h: Likewise.
11237         * libc/locale/lmonetary.c: Likewise.
11238         * libc/locale/lmonetary.h: Likewise.
11239         * libc/locale/lnumeric.c: Likewise.
11240         * libc/locale/lnumeric.h: Likewise.
11241         * libc/locale/nl_langinfo.3: Likewise.
11242         * libc/locale/nl_langinfo.c: Likewise.
11243         * libc/locale/timelocal.c: Likewise.
11244         * libc/locale/timelocal.h: Likewise.
11245         * libc/stdlib/btowc.c: Likewise.
11246         * libc/stdlib/mbrlen.c: Likewise.
11247         * libc/stdlib/mbrtowc.c: Likewise.
11248         * libc/stdlib/mbsinit.c: Likewise.
11249         * libc/stdlib/mbsrtowcs.c: Likewise.
11250         * libc/stdlib/wcrtomb.c: Likewise.
11251         * libc/stdlib/wcsrtombs.c: Likewise.
11252         * libc/stdlib/wctob.c: Likewise.
11253         * libc/sys/linux/prof-freq.c: Likewise.
11254         * libc/sys/linux/profile.c: Likewise.
11255         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
11256         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
11257         * libc/include/stdlib.h: Change re-entrant functions to take
11258         mbstate_t pointers.
11259         * libc/include/sys/_types.h: Define _mbstate_t.
11260         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
11261         * libc/include/sys/errno.h (EILSEQ): New error code.
11262         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
11263         structure to use mbstate_t.
11264         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
11265         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
11266         * libc/machine/powerpc/vfscanf.c: Likewise.
11267         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
11268         * libc/stdio/vfprintf.c: Likewise.
11269         * libc/stdio/vfscanf.c: Likewise.
11270         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
11271         * libc/stdlib/mblen.c: Use mbstate_t.
11272         * libc/stdlib/mblen_r.c: Likewise.
11273         * libc/stdlib/mbstowcs.c: Likewise.
11274         * libc/stdlib/mbstowcs_r.c: Likewise.
11275         * libc/stdlib/mbtowc.c: Likewise.
11276         * libc/stdlib/mbtowc_r.c: Likewise.
11277         * libc/stdlib/wcstombs.c: Likewise.
11278         * libc/stdlib/wcstombs_r.c: Likewise.
11279         * libc/stdlib/wctomb_r.c: Likewise.
11280         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
11281         profile.c.
11282         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
11283         dl-procinfo.c.
11284         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
11285         * libc/sys/linux/sys/types.h (off_t): Define type.
11286         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
11287         to C-UTF-8.
11288         * testsuite/newlib.locale/UTF-8.exp: Likewise.
11289
11290 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
11291
11292         * libc/stdlib/mallocr.c: #include windows.h on Win32.
11293           (AlignPage): Continue macro on next line.
11294
11295 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11296
11297         * libc/sys/linux/include/pthread.h: New file.
11298
11299 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
11300
11301         * libc/include/sys/types.h: Support __need_inttypes macro
11302         that only sets the __intxx and __uintxx types.
11303         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
11304         to get mprec.h.
11305         * libc/machine/powerpc/Makefile.in: Regenerated.
11306         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
11307         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
11308         redundant fixed-point conversion prototypes.
11309         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
11310         after setting __need_inttypes.
11311
11312 2002-08-18  Christopher Faylor  <cgf@redhat.com>
11313
11314         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
11315
11316 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11317
11318         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
11319         _LONG_DOUBLE to double.
11320
11321 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11322
11323         * configure.host: Add powerpc*-*-eabispe* configuration.
11324         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
11325         * libc/machine/powerpc/atosfix32.c: Ditto.
11326         * libc/machine/powerpc/atosfix64.c: Ditto.
11327         * libc/machine/powerpc/atoufix16.c: Ditto.
11328         * libc/machine/powerpc/atoufix32.c: Ditto.
11329         * libc/machine/powerpc/atoufix64.c: Ditto.
11330         * libc/machine/powerpc/fix64.h: Ditto.
11331         * libc/machine/powerpc/simdldtoa.c: Ditto.
11332         * libc/machine/powerpc/strtosfix16.c: Ditto.
11333         * libc/machine/powerpc/strtosfix32.c: Ditto.
11334         * libc/machine/powerpc/strtosfix64.c: Ditto.
11335         * libc/machine/powerpc/strtoufix16.c: Ditto.
11336         * libc/machine/powerpc/strtoufix32.c: Ditto.
11337         * libc/machine/powerpc/strtoufix64.c: Ditto.
11338         * libc/machine/powerpc/ufix64toa.c: Ditto.
11339         * libc/machine/powerpc/configure.in: Add check for
11340         powerpc*-eabispe and add fixed-point conversion functions.
11341         * libc/machine/powerpc/configure: Regenerated.
11342         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
11343         %r and %R format specifiers which handle fixed-point data.
11344         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
11345         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
11346         function prototypes.
11347
11348 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
11349
11350         *  Makefile.am: Move cmath stuff into libc/sys/linux.
11351         *  Makefile.in: Regenerated.
11352         *  configure.host: Default -DMB_CAPABLE for x86-linux.
11353         *  libc/include/reent.h: Define _sbrk to take signed int argument.
11354         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
11355         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
11356         make locale name checking more efficient.  Also allow "C-ISO-8859-1"
11357         locale for LC_CTYPE and LC_MESSAGES.
11358         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
11359         *  libc/sys/linux/brk.c: Change sbrk prototype.
11360         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
11361         include <sys/features.h>.
11362         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
11363         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
11364         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
11365         with a few local additions.
11366         *  libc/sys/linux/sys/features.h: New file.
11367         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
11368         to take signed argument.
11369         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
11370         prototypes to take signed size argument.
11371
11372 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
11373
11374         * libc/sys/linux/cmath: New directory.
11375         * libc/sys/linux/include/cmathcalls.h: New file.
11376         * libc/sys/linux/include/complex.h: New file.
11377         * libc/sys/linux/machine/i386/huge_val.h: New file
11378         * libm/math/w_sincos.c: New file
11379         * libm/math/wf_sincos.c: New file
11380         * libm/mathfp/s_sincos.c: New file
11381         * libm/mathfp/sf_sincos.c: New file
11382         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
11383         * libc/include/math.h: Add sincos and sincosf declarations.
11384         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
11385         (SUBLIBS): Likewise.
11386         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
11387         * libm/math/Makefile.am (src): Add w_sincos.c.
11388         (fsrc): Add wf_sincos.c.
11389         * libm/mathfp/Makefile.am (src): Add s_sincos.c
11390         (fsrc): Add sf_sincos.c.
11391
11392 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
11393
11394         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
11395         Declare as extern chars and use the address operator to
11396         properly use values set in linker script.
11397
11398 2002-08-09  Jason Tishler  <jason@tishler.net>
11399
11400         * libc/stdlib/mallocr.c: Include <limits.h>.
11401         (request2size): Change macro to do
11402         unsigned long comparisons and avoid signed overflow.
11403         (mALLOc): Add overflow check for the number of bytes to allocate.
11404         (rEALLOc): Ditto.
11405
11406 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
11407
11408         * configure.host: Add check for --enable-newlib-io-pos-args
11409         and define WANT_IO_POS_ARGS flag if enabled.  Define
11410         the flag by default for x86-linux configurations.
11411         * configure.in: Add support for --enable-newlib-io-pos-args.
11412         * libc/configure.in: Ditto.
11413         * configure: Regenerated.
11414         * libc/configure: Ditto.
11415         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
11416         vfprintf.c and vfiprintf.c.
11417         * libc/stdio/Makefile.in: Regenerated.
11418         * libc/stdio/vfprintf.c: Add positional argument support that
11419         is enabled by compiling with -DWANT_IO_POS_ARGS.
11420
11421 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
11422
11423         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
11424         based on __mips_soft_float rather than __mips64.
11425         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
11426         of both 32-bit and 64-bit code.
11427
11428 2002-08-04  Christopher Faylor  <cgf@redhat.com>
11429
11430         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
11431         arguments for popen to match similar functionality in fopen.
11432
11433 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
11434
11435         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
11436
11437 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
11438
11439         * libc/sys/linux/Makefile.am: Add aio64.c.
11440         * libc/sys/linux/Makefile.in: Regenerated.
11441         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
11442         * libc/sys/linux/aio64.c: New file.
11443
11444 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11445
11446         *  libc/include/sys/param.h (MAX, MIN): Added macros.
11447         *  libc/sys/linux/Makefile.am: Add new files.
11448         *  libc/sys/linux/Makefile.in: Regenerated.
11449         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11450         *  libc/sys/linux/inode.c (fchdir): Added syscall.
11451         *  libc/sys/linux/ftw.c: New file.
11452         *  libc/sys/linux/ftw64.c: Ditto.
11453         *  libc/sys/linux/getwd.c: Ditto.
11454         *  libc/sys/linux/scandir64.c: Ditto.
11455         *  libc/sys/linux/strverscmp.c: Ditto.
11456         *  libc/sys/linux/versionsort.c: Ditto.
11457         *  libc/sys/linux/versionsort64.c: Ditto.
11458
11459 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
11460
11461         * libc/string/strings.tex: Fix typo for memccpy.
11462
11463 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11464
11465         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
11466         * libc/sys/linux/sys/types.h (off64_t): Definition added.
11467
11468 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11469
11470         * libc/sys/linux/Makefile.am: Add fclean.c.
11471         * libc/sys/linux/Makefile.in: Regenerated.
11472         * libc/sys/linux/fclean.c: New file.
11473
11474 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11475
11476         * libc/sys/linux/Makefile.am: Add confstr.c.
11477         * libc/sys/linux/Makefile.in: Regenerated.
11478         * libc/sys/linux/confstr.c: New file.
11479         * libc/sys/linux/confstr.h: Ditto.
11480         * libc/sys/linux/sys/unistd.h: Include <features.h> and
11481         <bits/environments.h>.
11482
11483 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
11484
11485         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
11486         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
11487         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
11488         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
11489         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
11490         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
11491
11492 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11493
11494         * libc/sys/linux/Makefile.am: Add new files.
11495         * libc/sys/linux/Makefile.in: Regenerated.
11496         * libc/sys/linux/fstab.c: New file.
11497         * libc/sys/linux/fstatvfs.c: Ditto.
11498         * libc/sys/linux/fstatvfs64.c: Ditto.
11499         * libc/sys/linux/internal_statvfs.c: Ditto.
11500         * libc/sys/linux/mntent.c: Ditto.
11501         * libc/sys/linux/mntent_r.c: Ditto.
11502         * libc/sys/linux/statvfs.c: Ditto.
11503         * libc/sys/linux/statvfs64.c: Ditto.
11504         * libc/sys/linux/include/paths.h: Ditto.
11505         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
11506         with double-underscore weak-aliases.
11507         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
11508
11509 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
11510
11511         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
11512         to use _sig_func_ptr type casted constants.
11513         (_sig_func_ptr): Typedef moved to sys/signal.h.
11514         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
11515         For __rtems, use POSIX definition, otherwise default to ANSI.
11516         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
11517
11518 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
11519
11520         * configure.host: Recognize m6811-elf and m6812-elf targets.
11521         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
11522         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
11523         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
11524         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
11525         according to __INT_MAX__.
11526         (_POINTER_INT): Define to short.
11527         * libc/machine/m68hc11/Makefile.am: New file.
11528         * libc/machine/m68hc11/Makefile.in: New file.
11529         * libc/machine/m68hc11/configure.in: New file.
11530         * libc/machine/m68hc11/configure: New file.
11531         * libc/machine/m68hc11/aclocal.m4: New file.
11532         * libc/machine/m68hc11/setjmp.S: New file.
11533
11534 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11535
11536         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
11537         prototypes.
11538         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
11539         * libc/stdlib/Makefile.in: Regenerated.
11540         * libc/stdlib/strdup.c: Removed.
11541         * libc/stdlib/strdup_r.c: Removed.
11542         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
11543         mempcpy.c, strndup.c, and strndup_r.c.
11544         * libc/string/Makefile.in: Regenerated.
11545         * libc/string/memccpy.c: New file.
11546         * libc/string/mempcpy.c: Ditto.
11547         * libc/string/strndup.c: Ditto.
11548         * libc/string/strndup_r.c: Ditto.
11549         * libc/string/strdup.c: New file moved from stdlib.
11550         * libc/string/strdup_r.c: Ditto.
11551         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
11552
11553 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
11554
11555         * libc/include/stdio.h: Move fcloseall prototype within
11556         #ifndef _REENT_ONLY section.
11557         * libc/sys/linux/Makefile.am: Add new files.
11558         * libc/sys/linux/Makefile.in: Regenerated.
11559         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
11560         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
11561         * libc/sys/linux/sys/types.h: Add ino64_t type.
11562         * libc/sys/linux/ctermid.c: New file.
11563         * libc/sys/linux/ttyname_r.c: Ditto.
11564         * libc/sys/linux/readdir64.c: Ditto.
11565
11566 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11567
11568         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
11569         * libc/stdio/Makefile.am: Added fcloseall.c support.
11570         * libc/stdio/Makefile.in: Regenerated.
11571         * libc/stdio/fcloseall.c: New file.
11572         * libc/stdio64/Makefile.am: Remove missing .def references.
11573         * libc/stdio64/Makefile.in: Regenerated.
11574
11575 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
11576
11577         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
11578         * libc/machine/powerpc/times.c: New file.
11579         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
11580         * libc/machine/powerpc/Makefile.in: Regenerated.
11581
11582 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
11583
11584         * libc/machine/powerpc/time.c: New file.
11585         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
11586         time.c.
11587         * libc/machine/powerpc/Makefile.in: Regenerated.
11588
11589 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
11590
11591         * libc/libc.texinfo: Change copyright notices to Red Hat from
11592         Cygnus.
11593         * libm/libm.texinfo: Likewise.
11594         * README: Change docs URL to
11595         http://sources.redhat.com/newlib/docs.html.
11596
11597 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11598
11599         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
11600         * libc/sys/linux/Makefile.in: Regenerated.
11601         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
11602         * libc/sys/linux/io.c: Add ftruncate syscall.
11603         * libc/sys/linux/fpathconf.c: New file.
11604         * libc/sys/linux/pathconf.c: Ditto.
11605         * libc/sys/linux/linux_fsinfo.h: Ditto.
11606         * libc/sys/linux/sys/unistd.h: Ditto.
11607
11608 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11609
11610         * libc/stdio64/Makefile.am: Remove missing files.
11611         * libc/stdio64/Makefile.in: Regenerated.
11612
11613 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
11614
11615         * libc/include/sys/config.h[__i386__][__linux__]: Define
11616         _LARGE64FILE_SOURCE to 1.
11617         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
11618         * libc/sys/linux/Makefile.in: Regenerated.
11619         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
11620         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
11621         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
11622         of <linux/resource.h>.
11623         * libc/sys/linux/getrlimit64.c: New file.
11624         * libc/sys/linux/setrlimit64.c: Ditto.
11625
11626 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
11627
11628         * libc/argz/argz_replace.c: Include buf_findstr.h.
11629         * libc/argz/buf_findstr.c: Likewise.
11630         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
11631         value to (char *).
11632         * libc/argz/envz_get.c: Likewise.
11633         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
11634         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
11635         * libc/stdlib/getsubopt.3: New file.
11636         * libc/stdlib/getsubopt.c: New file.
11637         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
11638         Change esp to ebp.
11639
11640 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
11641
11642         * configure.host(stdio64_dir): New setting that is used to
11643         enable building of new stdio64 directory.
11644         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
11645         large files.
11646         (stmp-stdio64,stdio64.texi): New targets to optionally add in
11647         stdio64 info to info files.
11648         * libc/Makefile.in: Regenerated.
11649         * libc/configure: Ditto.
11650         * libc/configure.in: Add configuration variables that are set
11651         when stdio64 is selected as subdir in configure.host.
11652         * libc/libc.texinfo: Add optional menu item for Stdio64, based
11653         on whether STDIO64 flag is set or not.
11654         * libc/sys.tex: Add optional stdio64 syscalls based on whether
11655         STDIO64 flag is set or not.
11656         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
11657         _r sycall routines.
11658         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
11659         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
11660         (__SL64): New file flag indicating file is opened via fopen64.
11661         * libc/include/sys/_types.h(_off64_t): Added.
11662         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
11663         * libc/include/sys/reent.h(struct __sFILE64): New file structure
11664         for 64-bit offset large file support.
11665         (__FILE): New intermediate type either set to struct __sFILE64 or
11666         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
11667         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
11668         * libc/reent/Makefile.in: Regenerated.
11669         * libc/reent/fstat64r.c: New file.
11670         * libc/reent/lseek64r.c: Ditto.
11671         * libc/reent/open64r.c: Ditto.
11672         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
11673         based on whether STDIO64 flag is set.
11674         * libc/stdio/stdio.tex: Add blank line.
11675         * libc/stdio64/Makefile.am: New file.
11676         * libc/stdio64/Makefile.in: Ditto.
11677         * libc/stdio64/fgetpos64.c: Ditto.
11678         * libc/stdio64/fopen64.: Ditto.
11679         * libc/stdio64/freopen64.c: Ditto.
11680         * libc/stdio64/fseeko64.c: Ditto.
11681         * libc/stdio64/fsetpos64.c: Ditto.
11682         * libc/stdio64/ftello64.c: Ditto.
11683         * libc/stdio64/local64.h: Ditto.
11684         * libc/stdio64/stdio64.c: Ditto.
11685         * libc/stdio64/stdio64.tex: Ditto.
11686         * libc/stdio64/tmpfile64.c: Ditto.
11687         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
11688         open64.
11689
11690 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
11691
11692         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
11693         if LIBC_EXTRA_LIB is present.
11694         * libc/Makefile.in: Regenerated.
11695         * libc/libc.texinfo: Add blank line.
11696         * libc/argz/Makefile.am: Add doc support.
11697         * libc/search/Makefile.am: Ditto.
11698         * libc/argz/Makefile.in: Regenerated.
11699         * libc/search/Makefile.in: Ditto.
11700         * libc/misc/misc.tex: Add ffs function.
11701         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
11702
11703 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11704
11705         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
11706         definition that was removed in error.
11707
11708 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11709
11710         * libc/include/machine/ieeefp.h: Change to only define
11711         floating point defines (e.g one of __IEEE_BIG_ENDIAN or
11712         __IEEE_LITTLE_ENDIAN must be defined for each platform).
11713         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
11714         remove redundant floating point definitions.
11715
11716 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11717
11718         * libc/sys/linux/callocr.c: Fix so code references
11719         calloc.
11720
11721 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
11722
11723         * libc/sys/linux/Makefile.am: Add new files.
11724         * libc/sys/linux/Makefile.in: Regenerated.
11725         * libc/sys/linux/bp-sym.h: Moved to include directory.
11726         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
11727         * libc/sys/linux/inode.c: Set _LIBC to 1.
11728         * libc/sys/linux/mq_close.c: Ditto.
11729         * libc/sys/linux/mq_getattr.c: Ditto.
11730         * libc/sys/linux/mq_open.c: Ditto.
11731         * libc/sys/linux/mq_receive.c: Ditto.
11732         * libc/sys/linux/mq_send.c: Ditto.
11733         * libc/sys/linux/mq_setattr.c: Ditto.
11734         * libc/sys/linux/mq_unlink.c: Ditto.
11735         * libc/sys/linux/calloc.c: New file.
11736         * libc/sys/linux/callocr.c: Ditto.
11737         * libc/sys/linux/cfreer.c: Ditto.
11738         * libc/sys/linux/config.h: Ditto.
11739         * libc/sys/linux/free.c: Ditto.
11740         * libc/sys/linux/freer.c: Ditto.
11741         * libc/sys/linux/msize.c: Ditto.
11742         * libc/sys/linux/msizer.c: Ditto.
11743         * libc/sys/linux/mstats.c: Ditto.
11744         * libc/sys/linux/mtrim.c: Ditto.
11745         * libc/sys/linux/mtrimr.c: Ditto.
11746         * libc/sys/linux/pvallocr.c: Ditto.
11747         * libc/sys/linux/realloc.c: Ditto.
11748         * libc/sys/linux/reallocr.c: Ditto.
11749         * libc/sys/linux/thread-m.h: Ditto.
11750         * libc/sys/linux/vallocr.c: Ditto.
11751         * libc/sys/linux/bp-checks.h: Ditto.
11752         * libc/sys/linux/libc-symbols.h: Ditto.
11753         * libc/sys/linux/libc-tsd.h: Ditto.
11754         * libc/sys/linux/libintl.h: Ditto.
11755         * libc/sys/linux/malign.c: Ditto.
11756         * libc/sys/linux/malignr.c: Ditto.
11757         * libc/sys/linux/mallinfor.c: Ditto.
11758         * libc/sys/linux/malloc.c: Ditto.
11759         * libc/sys/linux/mallocr.c: Ditto.
11760         * libc/sys/linux/malloptr.c: Ditto.
11761         * libc/sys/linux/mallstatsr.c: Ditto.
11762         * libc/sys/linux/mcheck.c: Ditto.
11763         * libc/sys/linux/mhooks.h: Ditto.
11764         * libc/sys/linux/include/bp-sym.h: Ditto.
11765         * libc/sys/linux/include/malloc.h: Ditto.
11766         * libc/sys/linux/include/mcheck.h: Ditto.
11767         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
11768         getpagesize.c.
11769         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
11770         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
11771         * libc/sys/linux/machine/i386/getpagesize.c: New file.
11772         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
11773         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11774         * libc/sys/linux/machine/i386/sysdep.h: New file.
11775         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
11776         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
11777         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
11778
11779 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
11780
11781         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
11782         instead of <asm/siginfo.h>.
11783         * libc/sys/linux/sys/signal.h: Change to include various linux
11784         <bits/xxx.h> header files, rather than <linux/signal.h> so as
11785         to work with multiple releases of glibc header files.
11786
11787 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
11788
11789         * testsuite/newlib.search/hsearchtest.c: New file to test
11790         newlib/libc/search.
11791         * testsuite/newlib.search/hsearchtest.exp: Likewise.
11792
11793 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
11794
11795         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
11796         a terminal.
11797         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
11798
11799 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
11800
11801         * libc/include/math.h (MAXFLOAT): Added.
11802
11803 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
11804
11805         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
11806         Make strcmp.S unconditional.
11807         * libc/machine/sh/Makefile.in: Regenerate.
11808         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
11809         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
11810         for SHcompact.
11811
11812 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11813
11814         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
11815         define before including <sys/lock.h>.
11816
11817 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11818
11819         * libc/include/utime.h: Add include of <_ansi.h>.
11820         * libc/sys/linux/Makefile.am: Add utimes.c.
11821         * libc/sys/linux/Makefile.in: Regenerated.
11822         * libc/sys/linux/inode.c(__umask): New static routine.
11823         (umask): Written to use __umask and attempt to thread lock.
11824         (getumask): New function written to use __umask and thread lock.
11825         * libc/sys/linux/utimes.c: New file.
11826         * libc/sys/linux/sys/time.h: Fix utimes prototype.
11827         * libc/sys/linux/sys/utime.h: New file.
11828
11829 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
11830
11831         * libtool.m4: New file.
11832         * libc/sys/linux/process.c: Implement vfork in terms of fork,
11833         rather than as a syscall.
11834
11835 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11836
11837         * libc/include/stdio.h: Add new prototypes.
11838         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
11839         * libc/stdio/Makefile.in: Regenerated.
11840         * libc/stdio/fseek.c: Add fseeko documentation.
11841         * libc/stdio/ftell.c: Add ftello documentation.
11842         * libc/stdio/fseeko.c: New file.
11843         * libc/stdio/ftello.c: New file.
11844
11845 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
11846
11847         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
11848         * libc/stdio/Makefile.in: Regenerated.
11849         * libc/stdio/asprintf.c: New file.
11850         * libc/stdio/vasprintf.c: Ditto.
11851         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
11852         the buffer for asprintf support.
11853         * libc/stdio/sprintf.c: Add asprintf documentation.
11854         * libc/stdio/vfprintf.c: Add vasprintf documentation.
11855         * libc/include/stdio.h: Add new prototypes.
11856
11857 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
11858
11859         * libc/search/hcreate.c: Remove advertising clause from license.
11860         * libc/search/hcreate_r.c: Likewise.
11861
11862 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
11863
11864         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
11865         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
11866         Check that one of them is defined and error out if not.
11867         Add any platforms defined in <machine/ieeefp.h> that are missing.
11868         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
11869         (DB_LITTLE_ENDIAN): New defines.
11870         * libc/search/hash.c: Replace all incorrect checks for
11871         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
11872         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
11873         * libc/search/hash_page.c: Likewise.
11874
11875 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
11876
11877         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
11878
11879 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
11880
11881         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
11882         * libc/include/time.h: Same.
11883         * libc/include/string.h: Same.
11884         * libc/include/stdlib.h: Same.
11885         * libc/include/signal.h: Same.
11886         * libc/include/setjmp.h: Same.
11887         * libc/include/math.h: Same.
11888         * libc/include/locale.h: Same.
11889         * libc/include/ctype.h: Same.
11890         * libc/include/machine/setjmp.h: Same.
11891         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
11892         (_END_STD_C): Add.
11893
11894 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11895
11896         * libc/include/sys/_types.h: Define _ssize_t as int if int is
11897         32-bits, otherwise define it as long.
11898         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
11899         and define ssize_t as _ssize_t.
11900         * libc/reent/readr.c: Change return type to _ssize_t.
11901         * libc/reent/writer.c: Ditto.
11902         * libc/sys/linux/Makefile.am: Add aio.c.
11903         * libc/sys/linux/Makefile.in: Regenerated.
11904         * libc/sys/linux/aio.c: New file.
11905         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
11906         * libm/common/fdlibm.h: Undef __P before defining it.
11907
11908 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
11909
11910         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
11911         exponent_is_even_int variable.  Handle case where x is
11912         negative, and y is an odd integer.
11913         * libm/mathfp/sf_pow.c (powf): Likewise.
11914
11915         * libm/mathfp/er_lgamma.c: Remove __kernel references.
11916         * libm/mathfp/erf_lgamma.c: Likewise.
11917         * libm/mathfp/s_tgamma.c: Likewise.
11918         * libm/mathfp/sf_tgamma.c: Likewise.
11919
11920 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
11921
11922         * libc/sys/linux/Makefile.am: Add new clock routines.
11923         * libc/sys/linux/Makefile.in: Regenerated.
11924         * libc/sys/linux/clock_getres.c: New file.
11925         * libc/sys/linux/clock_gettime.c: Ditto.
11926         * libc/sys/linux/clock_settime.c: Ditto.
11927         * libc/sys/linux/hp-timing.h: Ditto.
11928         * libc/sys/linux/libc-internal.h: Ditto.
11929         * libc/sys/linux/sysconf.c: Fix typo.
11930         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
11931         * libc/sys/linux/machine/hp-timing.h: New file.
11932         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
11933         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
11934         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
11935         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
11936         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
11937         * libc/sys/linux/sys/linux_time.h: New file.
11938         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
11939         replace with <sys/linux_time.h>.
11940
11941 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
11942
11943         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
11944
11945 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11946
11947         * libc/sys/linux/Makefile.am: Consolidate additional items under
11948         ADD_OBJS.
11949         * libc/sys/linux/Makefile.in: Regenerated.
11950
11951 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
11952
11953         * libc/sys/linux/sethostname.c: New file.
11954         * libc/sys/linux/Makefile.am: Add sethostname.c support.
11955         * libc/sys/linux/Makefile.in: Regenerated.
11956
11957 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11958
11959         * libc/search/db_local.h: New file.
11960         * libc/include/db.h: Remove.
11961         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
11962         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
11963         "db_local.h".
11964         * libc/search/hash_bigkey.c: Likewise.
11965         * libc/search/hash_buf.c: Likewise.
11966         * libc/search/hash_func.c: Likewise.
11967         * libc/search/hash_log2.c: Likewise.
11968         * libc/search/hash_page.c: Likewise.
11969
11970 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
11971
11972         * libc/machine/sh/strlen.S: New file.
11973         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
11974         * libc/machine/sh/Makefile.am: Regenerate.
11975
11976 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11977
11978         * libc/sys/linux/gethostname.c: Change name to __gethostname and
11979         add gethostname alias.
11980
11981 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
11982
11983         * libc/include/math.h: Remove <sys/types.h>.
11984         (__dmath): Use __ULong instead of __uint32_t.
11985         * libc/include/sys/reent.h: If long or int is not 32-bits,
11986         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
11987         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
11988         * libm/common/fdlibm.h: Ditto.
11989
11990 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
11991
11992         * libc/include/ndbm.h: Remove.
11993         * libc/search/ndbm.c: Remove.
11994
11995 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
11996
11997         * libc/stdio/fseek.c (fseek): Fix braces.
11998
11999 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
12000
12001         * libc/time/strftime.c (strftime): Add %e format specifier.
12002
12003 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
12004
12005         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
12006         previously defined.
12007
12008 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
12009
12010         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
12011         (BYTE_ORDER): Define as appropriate for the target.
12012
12013 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12014
12015         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
12016         to _ssize_t.
12017         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
12018
12019 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12020
12021         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
12022         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
12023         [HAVE_GETDATE](getdate_err): New error code.
12024         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
12025         * libc/stdio/Makefile.in: Regenerated.
12026         * libc/stdio/getdelim.c: New file.
12027         * libc/stdio/getline.c: Ditto.
12028         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
12029         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
12030         * libc/sys/linux/Makefile.in: Regenerated.
12031         * libc/sys/linux/getdate.c: New file.
12032         * libc/sys/linux/getdate_err.c: Ditto.
12033         * libc/sys/linux/ntp_gettime.c: Ditto.
12034         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
12035         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
12036
12037 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12038
12039         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
12040         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
12041         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
12042         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
12043         * libc/include/sys/param.h: Remove i386 case which is handled
12044         by default case.
12045         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
12046         definitions in case they are already defined.
12047         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
12048         _IEEE_LITTLE_ENDIAN flags.
12049         * libc/include/sys/reent.h: Change __uint32_t references to
12050         use _ULong instead.
12051         (_REENT_GETDATE_REENT_P): New macro.
12052         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
12053         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
12054         * libc/search/hash.h: Add default setting of BYTE_ORDER,
12055         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
12056         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
12057         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
12058         pid_t, off_t, loff_t, caddr_t, and daddr_t type
12059         definitions which are done by subsequent glibc headers.
12060         Add macro definitions to prevent subsequent header files from
12061         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
12062         intptr_t to after glibc definitions of types they are based on.
12063
12064 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
12065
12066         * libc/include/errno.h: Protect from multiple inclusion.
12067
12068 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
12069
12070         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
12071
12072 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
12073
12074         * Makefile.am (LIB_OBJECTLISTS): Add
12075         libc/search/objectlist.awk.in.
12076         * libc/Makefile.am (SUBDIRS): Add search.
12077         (SUBLIBS): Add search/libsearch.la.
12078         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
12079         * libc/search: New directory.
12080         * libc/search/Makefile.am: New file.
12081         * libc/search/extern.h: New file.
12082         * libc/search/hash.c: New file.
12083         * libc/search/hash.h: New file.
12084         * libc/search/hash_bigkey.c: New file.
12085         * libc/search/hash_buf.c: New file.
12086         * libc/search/hash_func.c: New file.
12087         * libc/search/hash_log2.c: New file.
12088         * libc/search/hash_page.c: New file.
12089         * libc/search/hcreate.3: New file.
12090         * libc/search/hcreate.c: New file.
12091         * libc/search/hcreate_r.c: New file.
12092         * libc/search/ndbm.c: New file.
12093         * libc/search/page.h: New file.
12094         * libc/search/tdelete.c: New file.
12095         * libc/search/tdestroy.c: New file.
12096         * libc/search/tfind.c: New file.
12097         * libc/search/tsearch.3: New file.
12098         * libc/search/tsearch.c: New file.
12099         * libc/search/twalk.c: New file.
12100         * libc/include/db.h: New file.
12101         * libc/include/ndbm.h: New file.
12102         * libc/include/search.h: New file.
12103         * libc/include/sys/queue.h: New file.
12104         * libc/include/sys/cdefs.h: New file.
12105         * libc/include/sys/param.h
12106         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
12107         LITTLE_ENDIAN or BIG_ENDIAN.
12108         * libc/include/sys/errno.h (EFTYPE): New macro.
12109         * libc/search/bsearch.c: Move from libc/stdlib.
12110         * libc/search/qsort.c: Likewise.
12111         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
12112         qsort.c.
12113         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
12114         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
12115
12116 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
12117
12118         * libc/sys/linux/Makefile.am: Add support for message queue routines,
12119         ipc routines, and ftok.
12120         * libc/sys/linux/Makefile.in: Regenerated.
12121         * libc/sys/linux/ftok.c: New file.
12122         * libc/sys/linux/ipc.c: Ditto.
12123         * libc/sys/linux/mq_close.c: Ditto.
12124         * libc/sys/linux/mq_getattr.c: Ditto.
12125         * libc/sys/linux/mq_notify.c: Ditto.
12126         * libc/sys/linux/mq_open.c: Ditto.
12127         * libc/sys/linux/mq_receive.c: Ditto.
12128         * libc/sys/linux/mq_send.c: Ditto.
12129         * libc/sys/linux/mq_setattr.c: Ditto.
12130         * libc/sys/linux/mq_unlink.c: Ditto.
12131         * libc/sys/linux/mqlocal.h: Ditto.
12132         * libc/sys/linux/include/mqueue.h: Ditto.
12133         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
12134         __uid_t_defined.
12135
12136 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
12137
12138         * libm/common/sf_lround.c (round): Change name to: (lround).
12139         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
12140         remquof.
12141
12142 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12143
12144         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
12145         procedure.
12146         (newlib_pass_fail): Change to compile and run only one file.
12147         * testsuite/newlib.locale/locale.exp: Use new
12148         newlib_pass_fail_all procedure.
12149         * testsuite/newlib.string/string.exp: Likewise.
12150
12151 2002-06-18  Dave Brolley  <brolley@redhat.com>
12152
12153         From Catherine Moore, Michael Meissner, Richard Sandiford:
12154         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
12155         (_JBTYPE): Ditto.
12156         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
12157         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
12158         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
12159         * configure.host: Support frv-*-*.
12160         * libc/machine/frv/Makefile.am: New file.
12161         * libc/machine/frv/configure.in: New file.
12162         * libc/machine/frv/setjmp.S: New file.
12163
12164 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
12165
12166         * libc/include/ctype.h: Remove isblank macro.
12167
12168         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
12169         * libc/ctype/isblank.c: New file.
12170         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
12171         declaration.  Add isblank macro.
12172
12173 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
12174
12175         * testsuite/newlib.stdlib/atexit.c: New file.
12176         * testsuite/newlib.stdlib/atexit.exp: Ditto.
12177         * testsuite/newlib.string/tstring.c: Change default start size
12178         to something more reasonable for embedded platforms.
12179
12180 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
12181
12182         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
12183
12184         * libc/argz: New directory.
12185         * libc/argz/*: New files.
12186         * libc/argz/argz_add.c: New file.
12187         * libc/argz/argz_add_sep.c: New file.
12188         * libc/argz/argz_append.c: New file.
12189         * libc/argz/argz_count.c: New file.
12190         * libc/argz/argz_create.c: New file.
12191         * libc/argz/argz_create_sep.c: New file.
12192         * libc/argz/argz_delete.c: New file.
12193         * libc/argz/argz_extract.c: New file.
12194         * libc/argz/argz_insert.c: New file.
12195         * libc/argz/argz_next.c: New file.
12196         * libc/argz/argz_replace.c: New file.
12197         * libc/argz/argz_stringify.c: New file.
12198         * libc/argz/buf_findstr.c: New file.
12199         * libc/argz/envz_add.c: New file.
12200         * libc/argz/envz_entry.c: New file.
12201         * libc/argz/envz_get.c: New file.
12202         * libc/argz/envz_merge.c: New file.
12203         * libc/argz/envz_remove.c: New file.
12204         * libc/argz/envz_strip.c: New file.
12205         * libc/include/argz.h: New file.
12206         * libc/include/envz.h: New file.
12207         * Makefile.am (LIBC_OBJECTLISTS): Add
12208         libc/argz/objectlist.awk.in.
12209         * libc/Makefile.am (SUBDIRS): Add argz.
12210         (SUBLIBS): Add argz/libargz.la.
12211         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
12212         * libc/include/errno.h: Add error_t typedef.
12213
12214 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
12215
12216         * libc/include/stdlib.h: Add _Exit prototype.
12217         * libc/stdlib/Makefile.am: Add _Exit.c support.
12218         * libc/stdlib/Makefile.in: Ditto.
12219         * libc/stdlib/_Exit.c: New file.
12220
12221 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
12222
12223         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
12224         x is close to -1.0 and y is very large to use ax (absolute value)
12225         instead of x.
12226         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
12227
12228 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
12229
12230         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
12231         Fix clobbering bytes before destination if src and dst have same
12232         non-zero misalignment.
12233
12234         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12235         Fixed bug in writing end of set region.
12236
12237 2002-06-10  Christopher Faylor  <cgf@redhat.com>
12238
12239         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
12240         spawnve declaration.
12241
12242 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
12243
12244         * libm/common/s_fdim.c: New file.
12245         * libm/common/s_fma.c: Likewise.
12246         * libm/common/s_fmax.c: Likewise.
12247         * libm/common/s_fmin.c: Likewise.
12248         * libm/common/s_fpclassify.c: Likewise.
12249         * libm/common/s_lrint.c: Likewise.
12250         * libm/common/s_lround.c: Likewise.
12251         * libm/common/s_nearbyint.c: Likewise.
12252         * libm/common/s_remquo.c: Likewise.
12253         * libm/common/s_round.c: Likewise.
12254         * libm/common/s_scalbln.c: Likewise.
12255         * libm/common/s_signbit.c: Likewise.
12256         * libm/common/s_trunc.c: Likewise.
12257         * libm/common/sf_fdim.c: Likewise.
12258         * libm/common/sf_fma.c: Likewise.
12259         * libm/common/sf_fmax.c: Likewise.
12260         * libm/common/sf_fmin.c: Likewise.
12261         * libm/common/sf_lrint.c: Likewise.
12262         * libm/common/sf_lround.c: Likewise.
12263         * libm/common/sf_nearbyint.c: Likewise.
12264         * libm/common/sf_remquo.c: Likewise.
12265         * libm/common/sf_round.c: Likewise.
12266         * libm/common/sf_scalbln.c: Likewise.
12267         * libm/common/sf_trunc.c: Likewise.
12268         * libm/math/w_exp2.c: Likewise.
12269         * libm/math/w_tgamma.c: Likewise.
12270         * libm/math/wf_exp2.c: Likewise.
12271         * libm/math/wf_tgamma.c: Likewise.
12272         * libm/mathfp/s_exp2.c: Likewise.
12273         * libm/mathfp/s_tgamma.c: Likewise.
12274         * libm/mathfp/sf_exp2.c: Likewise.
12275         * libm/mathfp/sf_tgamma.c: Likewise.
12276         * libm/math/er_gamma.c: Fix return value.
12277         * libm/math/erf_gamma.c: Likewise.
12278         * libm/mathfp/er_gamma.c: Likewise.
12279         * libm/mathfp/erf_gamma.c: Likewise.
12280         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
12281         declarations and macros.
12282         Regenerated all Makefile.in, aclocal.m4 and configure files to
12283         use new libtool macros in top-level libtool.m4
12284
12285 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
12286
12287         * libc/include/string.h[__linux__]: Add strsignal prototype.
12288         * libc/include/sys/lock.h: New file with default locking support.
12289         * libc/include/sys/reent.h: Add signal buffer support for strsignal
12290         and psignal.
12291         * libc/posix/Makefile.am: Add support for readdir_r.c.
12292         * libc/posix/Makefile.in: Regenerated.
12293         * libc/posix/closedir.c: Add locking support and hash table cleanup.
12294         * libc/posix/opendir.c: Add lock support.
12295         * libc/posix/readdir.c: Ditto.
12296         * libc/posix/rewinddir.c: Ditto.
12297         * libc/posix/scandir.c: Ditto.
12298         * libc/posix/seekdir.c: Ditto.
12299         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
12300         clean up leftover hash table entries.
12301         * libc/posix/readdir_r.c: New file.
12302         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
12303         * libc/sys/linux/Makefile.in: Regenerated.
12304         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
12305         * libc/sys/linux/sys/signal.h: Add psignal prototype.
12306         * libc/sys/linux/psignal.c: New file.
12307         * libc/sys/linux/strsignal.c: Ditto.
12308
12309 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
12310
12311         * libc/include/sys/types.h: Don't define dev_t when compiling for
12312         Cygwin.
12313
12314 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
12315
12316         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
12317         make siglist.inc dependent on sig.c instead of signal.c.
12318         * libc/sys/linux/Makefile.in: Regenerated.
12319         * libc/sys/linux/sig.c: Rename from signal.c and change code to
12320         use NSIG instead of _NSIG.
12321         * libc/sys/linux/sigaction.c: New file.
12322         * libc/sys/linux/signal.c: Changed to be linux signal() function
12323         so as to override regular newlib default signal.c.
12324         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
12325         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12326         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
12327         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
12328         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
12329         default linux sigset_t typedef by defining it equal to __sigset_t.
12330         * libc/unix/sigset.c: Add check so code isn't compiled on systems
12331         with a sigset_t that isn't implemented with a single int.
12332
12333 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
12334
12335         * libc/sys/linux/Makefile.am: Add support for new files.
12336         * libc/sys/linux/Makefile.in: Regenerated.
12337         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
12338         * libc/sys/linux/signal.c: Change to use real-time syscalls for
12339         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
12340         it is in a separate file now.
12341         * libc/sys/linux/machine/i386/Makefile.am
12342         * libc/sys/linux/machine/i386/Makefile.in
12343         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
12344         * libc/sys/linux/sigaction.c: New file.
12345         * libc/sys/linux/sigqueue.c: Ditto.
12346         * libc/sys/linux/sigwait.c: Ditto.
12347         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
12348         * libc/sys/linux/kernel_sigaction.h: Ditto.
12349
12350 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
12351
12352         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
12353         tcsendbrk.c.
12354         * libc/sys/linux/Makefile.in: Regenerated.
12355         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
12356         tcgetpgrp(), and tcsetpgrp() functions.
12357         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
12358         to get __MAX_BAUD rate.
12359         * libc/sys/linux/machine/i386/include/termios.h: New file.
12360         * libc/include/machine/termios.h: Ditto.
12361         * libc/sys/linux/cfspeed.c: Ditto.
12362         * libc/sys/linux/tcsendbrk.c: Ditto.
12363
12364 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
12365
12366         * libc/include/string.h: Add strnlen and strerror_r prototypes.
12367         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
12368         * libc/string/Makefile.in: Regenerated.
12369         * libc/string/strerror_r.c: New file.
12370         * libc/string/strnlen.c: New file.
12371         * libc/sys/linux/Makefile.am: Add rename.c.
12372         * libc/sys/linux/Makefile.in: Regenerated.
12373         * libc/sys/linux/rename.c: New file to override default rename.
12374
12375 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12376
12377         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
12378         * libc/sys/linux/sys/time.h: Add conversion macros.
12379         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
12380         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
12381         * libc/sys/linux/gethostname.c: New file.
12382         * libc/sys/linux/seteuid.c: New file.
12383         * libc/sys/linux/sysctl.c: New file.
12384
12385 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12386
12387         * libc/string/Makefile.am: Add support for strsep.c.
12388         * libc/string/Makefile.in: Regenerated.
12389         * libc/string/strsep.c: New file.
12390         * libc/string/strtok.c: Change to call __strtok_r service routine.
12391         * libc/string/strtok_r.c: Add __strtok_r routine which takes
12392         additional flag parameter regarding whether to skip leading delimeters.
12393         Change strtok_r to call __strtok_r.
12394
12395 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
12396
12397         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
12398         * libc/stdio/Makefile.in: Regenerated.
12399         * libc/stdio/setbuffer.c: New file.
12400         * libc/stdio/setlinebuf.c: New file.
12401
12402 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12403
12404         * libc/sys/linux/Makefile.am: Add resource.c.
12405         * libc/sys/linux/Makefile.in: Regenerated.
12406         * libc/sys/linux/resource.c: New file.
12407         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
12408         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
12409         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12410         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
12411         are now found in libc/sys/linux/resource.c.
12412
12413 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
12414
12415         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
12416         to use void * pointers and comply with Single Unix spec.
12417         * libc/string/bcmp.c: Change to use void * instead of char *.
12418         * libc/string/bcopy.c: Ditto.
12419         * libc/string/bzero.c: Ditto.
12420
12421 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12422
12423         * libc/sys/linux/shm_open.c: New file.
12424         * libc/sys/linux/shm_unlink.c: Ditto.
12425         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
12426         shm_unlink.c.
12427         * libc/sys/linux/Makefile.in: Regenerated.
12428         * libc/sys/linux/sys/types.h: Add some additional checks to see
12429         if clock_t or time_t is already defined.
12430
12431 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
12432
12433         * Makefile.am: Don't pass $toollibdir down directly in
12434         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
12435         Pass it under the name: top_toollibdir.
12436         * Makefile.in: Regenerated.
12437
12438 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12439
12440         * libc/include/sys/types.h: Revert previous patch.
12441
12442 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
12443
12444         * libc/include/sys/types.h: Include cygwin/types.h always under
12445         Cygwin, not only if _POSIX_THREADS is defined.
12446
12447 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
12448
12449         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
12450
12451 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
12452
12453         * Makefile.am: Copy and install headers from sys/machine/include
12454         directory.  Also pass $toollibdir to lower-level directories.
12455         * Makefile.in: Regenerated.
12456         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
12457         stderr to use _REENT macro instead of _impure_ptr directly.
12458         * libc/include/sys/config.h[__i386__][__linux__]: Define
12459         __DYNAMIC_REENT__.
12460         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
12461         call to __getreent() function if !__SINGLE_THREAD__ and
12462         __DYNAMIC_REENT__ is set.
12463         * libc/reent/Makefile.am: Add support for getreent.c.
12464         * libc/reent/Makefile.in: Regenerated.
12465         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
12466         * libc/sys/linux/Makefile.am: Add support for new files.
12467         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
12468         * libc/sys/linux/Makefile.in: Regenerated.
12469         * libc/sys/linux/configure: Ditto.
12470         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
12471         __close, __read, __write, __poll, __open, __lseek, __fcntl from
12472         their __libc_ counterparts.
12473         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
12474         and weak-alias to regular names.
12475         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
12476         to pread64 and __pread64.
12477         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
12478         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
12479         weak-alias to pwrite64.
12480         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
12481         __libc_sched_getscheduler, __libc_sched_get_priority_max,
12482         __libc_sched_get_priority_min, and __libc_sched_setschedule to
12483         name with __ instead of __libc_.
12484         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
12485         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
12486         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
12487         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
12488         to raise.
12489         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
12490         __libc_send to __send.
12491         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
12492         __gettimeofday.
12493         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
12494         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
12495         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
12496         type and typedef __jmp_buf to jmp_buf.
12497         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
12498         setjmp.S.
12499         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
12500         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
12501         section.
12502         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
12503         prefix for function macros and then use weak_alias() to regular names.
12504         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12505         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
12506         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
12507         to be flockfile() and funlockfile() respectively.
12508         * libc/sys/linux/sys/types.h
12509         * libc/reent/getreent.c: New file.
12510         * libc/sys/linux/flockfile.c: Ditto.
12511         * libc/sys/linux/funlockfile.c: Ditto.
12512         * libc/sys/linux/getreent.c: Ditto.
12513         * libc/sys/linux/pread.c: Ditto.
12514         * libc/sys/linux/pwrite.c: Ditto.
12515         * libc/sys/linux/raise.c: Ditto.
12516         * libc/sys/linux/system.c: Ditto.
12517         * libc/sys/linux/tcdrain.c: Ditto.
12518         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
12519         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
12520         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
12521         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
12522         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
12523
12524 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
12525
12526         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
12527         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
12528         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
12529         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
12530
12531 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12532
12533         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
12534         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
12535         exit point.
12536
12537 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
12538
12539         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
12540         options when testing natively on i[3456]86-*-linux.
12541
12542         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
12543         only one pass or fail per test file.  Trim \r's from output
12544         values received from test programs.  Remove support for named
12545         tests.
12546         * testsuite/newlib.locale/UTF-8.exp: Update to support new
12547         newlib_check_output behaviour.
12548         * testsuite/newlib.locale/UTF-8.c: Likewise.
12549
12550 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
12551
12552         * libc/include/stdlib.h: Add on_exit prototype.
12553         * libc/include/sys/reent.h (struct _atexit): Add argument array
12554         and bits to track type of exit routine to support both on_exit
12555         and atexit.
12556         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
12557         by default and change the setting of the atexit structure.
12558         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
12559         * libc/stdlib/on_exit.c: New file.
12560         * libc/stdlib/Makefile.am: Add support for on_exit.
12561         * libc/stdlib/Makefile.in: Regenerated.
12562         * libc/stdlib/atexit.c: Change to initialize types field.
12563         * libc/stdlib/exit.c: Change to look at types field for each
12564         exit routine and either call an atexit-style or an on_exit-style
12565         routine accordingly.
12566
12567 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12568
12569         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
12570         allow v specifier with n or L specifiers.  For vector c format,
12571         move tmp declaration to the top.
12572
12573 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
12574
12575         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
12576         the original format specifier when looping for vectors to compensate
12577         for any changes made in vector %g format processing.
12578         Also add syntax checking for various invalid scenarios
12579         involving vector format extensions.
12580         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
12581         return code setting for vector formats.  Also treat vector
12582         separator mismatch as a match error instead of an input error.
12583         Perform some syntax checking for vector formats.
12584
12585 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12586
12587         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
12588         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
12589         * libc/string/strlcat.c: New file.
12590         * libc/string/strlcpy.c: New file.
12591
12592 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
12593
12594         * libc/string/strchr.c: Fix comment typo.
12595
12596 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
12597
12598         * acinclude.m4: Add support for --enable-newlib-multithread.
12599         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
12600         --enable-newlib-multithread=no.
12601
12602         * libc/stdio/getc_u.c: New file.
12603         * libc/stdio/getchar_u.c: New file.
12604         * libc/stdio/putc_u.c: New file.
12605         * libc/stdio/putchar_u.c: New file.
12606         * libc/include/stdio.h: Add declarations for getc_unlocked,
12607         getchar_unlocked, putc_unlocked and putchar_unlocked.
12608         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
12609         (CHEWOUT_FILES): Add new files' .def's.
12610         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
12611
12612 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
12613
12614         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
12615         Also handle as single quad word when destination ends at last
12616         byte of first quad word.  Fix byte selection in single quad code.
12617
12618 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
12619
12620         * libc/include/sys/stdio.h: New file.
12621         * libc/sys/linux/sys/stdio.h: New file.
12622         * libc/include/stdio.h: Add declarations for flockfile,
12623         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
12624         * libc/stdio/clearerr.c: Add file locking.
12625         * libc/stdio/fclose.c: Likewise.
12626         * libc/stdio/feof.c: Likewise.
12627         * libc/stdio/ferror.c: Likewise.
12628         * libc/stdio/fflush.c: Likewise.
12629         * libc/stdio/fgetc.c: Likewise.
12630         * libc/stdio/fgetpos.c: Likewise.
12631         * libc/stdio/fgets.c: Likewise.
12632         * libc/stdio/fileno.c: Likewise.
12633         * libc/stdio/fputc.c: Likewise.
12634         * libc/stdio/fputs.c: Likewise.
12635         * libc/stdio/fread.c: Likewise.
12636         * libc/stdio/freopen.c: Likewise.
12637         * libc/stdio/fseek.c: Likewise.
12638         * libc/stdio/ftell.c: Likewise.
12639         * libc/stdio/fwrite.c: Likewise.
12640         * libc/stdio/getc.c: Likewise.
12641         * libc/stdio/putc.c: Likewise.
12642         * libc/stdio/setvbuf.c: Likewise.
12643         * libc/stdio/ungetc.c: Likewise.
12644         * libc/stdio/vfprintf.c: Likewise.
12645
12646 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12647
12648         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
12649         support for 'p' format.  Fix code to print bytes for vector
12650         integer formats that do not specify 'h' or 'l'.
12651         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
12652         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
12653         formats that do not specify 'h' or 'l'.
12654
12655         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
12656
12657 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
12658
12659         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
12660         (_sbrk): Add cast of return value.
12661
12662 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12663
12664         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
12665         (_REENT_L64A_BUF): New macro for accessing area.
12666         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
12667         *  libc/stdlib/Makefile.in: Regenerated.
12668         *  libc/stdlib/a64l.c: New file.
12669         *  libc/stdlib/l64a.c: New file.
12670
12671 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
12672
12673         * libc/unix/pread.c: Fix typo for _pread_r.
12674         * libc/unix/pwrite.c: Fix type for _pwrite_r.
12675         * libc/sys/linux/pread64.c: Fix typo for read syscall.
12676         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
12677
12678 2002-05-03  Christopher Faylor  <cgf@redhat.com>
12679
12680         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
12681
12682 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
12683
12684         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
12685
12686 2002-05-01  Christopher Faylor  <cgf@redhat.com>
12687
12688         * utmp.h: Define more UNIX constants.
12689
12690 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
12691
12692         * Makefile.am: Add support for checking multilibs.
12693
12694         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
12695         (SUBDEFS): Add LIBC_EXTRA_DEF.
12696         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
12697         (LIBC_EXTRA_DEF): Likewise.
12698         (extra_dir): Likewise.
12699         * libc/machine/xscale/machine: New directory.
12700         * libc/machine/xscale/machine/profile.h: New file.
12701
12702         * Makefile.am (site.exp): Remove newlib_cflags.  Add
12703         multibuildtop.
12704         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
12705         * testsuite/lib/flags.exp: New file.
12706         * testsuite/lib/newlib.exp: Load flags.exp.
12707         (newlib_target_compile): Remove libgloss directory references.
12708         (newlib_init): Remove newlib_cflags references.
12709
12710 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
12711
12712         * testsuite/lib/newlib.exp (newlib_target_compile): Change
12713         method of finding libgloss_target_dir.
12714
12715         * Makefile.am (site.exp): Change host_alias, host_triplet,
12716         target_alias, target_triplet to refer to gcc's host and target
12717         variables (newlib's build and host variables).
12718         * testsuite/lib/newlib.exp (newlib_init): Change build
12719         references to host references, host references to target
12720         references to reflect Makefile.am changes.
12721         (newlib_target_compile): Likewise.
12722         (newlib_finish): Likewise.
12723
12724 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12725
12726         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
12727
12728 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
12729
12730         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
12731         (_system): New function. Ditto.
12732         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
12733         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
12734         targets.
12735
12736 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
12737
12738         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
12739         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
12740         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
12741         *  libc/sys/linux/Makefile.in: Regenerated.
12742         *  libc/unix/Makefile.in: Ditto.
12743         *  libc/sys/linux/pread64.c: New file.
12744         *  libc/sys/linux/pwrite64.c: Ditto.
12745         *  libc/unix/pread.c: Ditto.
12746         *  libc/unix/pwrite.c: Ditto.
12747
12748 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12749
12750         *  libc/sys/linux/Makefile.am: Add io64.c.
12751         *  libc/sys/linux/Makefile.in: Regenerated.
12752         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
12753         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto.
12754         *  libc/sys/linux/io64.c: New file.
12755
12756 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
12757
12758         * configure.in (CC_FOR_NEWLIB): New variable that
12759         bases on $(CC) and adds targ-include and libc/include as
12760         -isystem directives if they are not already part of $(CC).
12761         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
12762         $(CC_FOR_NEWLIB).
12763         * configure: Regenerated.
12764         * Makefile.in: Ditto.
12765
12766 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
12767
12768         *  libc/sys/linux/Makefile.am: Add support for sched.c.
12769         *  libc/sys/linux/Makefile.in: Regenerated.
12770         *  libc/sys/linux/sched.c: New file.
12771         *  libc/sys/linux/sys/types.h: Add struct timespec.
12772
12773 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
12774
12775         * configure.in (CC_FOR_BUILD): Set to gcc whether
12776         cross-compiling or not.
12777         (CC): Add -isystem's for targ-include and libc/include when they
12778         do not already appear in CC.
12779
12780 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
12781
12782         * Makefile.am (check-DEJAGNU): New target.
12783         (site.exp): Likewise.
12784         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
12785         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
12786         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
12787         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
12788         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
12789         * testsuite: New directory.
12790         * testsuite/config: Likewise.
12791         * testsuite/lib: Likewise.
12792         * testsuite/newlib.locale: Likewise.
12793         * testsuite/newlib.string: Likewise.
12794         * testsuite/config/default.exp: New file.
12795         * testsuite/lib/checkoutput.exp: New file.
12796         * testsuite/lib/newlib.exp: New file.
12797         * testsuite/lib/passfail.exp: New file.
12798         * testsuite/newlib.locale/UTF-8.c: New file.
12799         * testsuite/newlib.locale/UTF-8.exp: New file.
12800         * testsuite/newlib.locale/locale.exp: New file.
12801         * testsuite/newlib.string/string.exp: New file.
12802         * testsuite/newlib.string/tstring.c: New file.
12803
12804 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
12805
12806         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
12807         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
12808         *  libc/sys/linux/Makefile.in: Regenerated.
12809         *  libc/sys/linux/mmap.c: New file.
12810         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
12811         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
12812
12813 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
12814
12815         * acinclude.m4 (newlib_cflags): Remove include directories that
12816         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
12817
12818 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
12819
12820         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
12821         * libc/machine/xscale/memcmp.c: Ditto.
12822         * libc/machine/xscale/memcpy.c: Ditto.
12823         * libc/machine/xscale/memmove.c: Ditto.
12824         * libc/machine/xscale/memset.c: Ditto.
12825         * libc/machine/xscale/strchr.c: Ditto.
12826         * libc/machine/xscale/strcmp.c: Ditto.
12827         * libc/machine/xscale/strcpy.c: Ditto.
12828         * libc/machine/xscale/strlen.c: Ditto.
12829
12830 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
12831
12832         * libc/include/sys/config.h: Remove include of <limits.h>.
12833         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
12834         define INT_MAX and LONG_MAX.  Use them in tests.
12835
12836 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
12837
12838         *  configure.host: Add support for powerpc-eabialtivec*.
12839         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
12840         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
12841         *  libc/include/machine/malloc.h: New file.
12842         *  libc/include/machine/stdlib.h: Ditto.
12843         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
12844         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
12845         sources based on configuration.
12846         *  libc/machine/powerpc/Makefile.in: Regenerated.
12847         *  libc/machine/powerpc/configure: Ditto.
12848         *  libc/machine/powerpc/configure.in: Add check for
12849         powerpc-eabialtivec* in which case add in additional source files.
12850         *  libc/machine/powerpc/setjmp.S: Add altivec support.
12851         *  libc/machine/powerpc/vec_calloc.c: New file.
12852         *  libc/machine/powerpc/vec_free.c: Ditto.
12853         *  libc/machine/powerpc/vec_malloc.c: Ditto.
12854         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
12855         *  libc/machine/powerpc/vec_realloc.c: Ditto.
12856         *  libc/machine/powerpc/machine/malloc.h: Ditto.
12857         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
12858         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
12859         with added altivec format specifiers.
12860         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
12861         added altivec format specifiers.
12862
12863 2002-04-19      Joel Sherrill <joel@OARcorp.com>
12864
12865         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
12866         while autoconf is trying to link main(){}.
12867
12868 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12869
12870         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
12871         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
12872
12873 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12874
12875         * libc/time/time.tex: Add tzset info.
12876
12877 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
12878
12879         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
12880         (strptime): Moved prototype to be within !__STRICT_ANSI__.
12881         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
12882         (tzname): Defined for all platforms.
12883         (daylight, timezone): Defined only for CYGWIN.
12884         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
12885         environment set up.
12886         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
12887         environment variable is set.
12888         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
12889         tzset_r.c.
12890         * libc/time/Makefile.in: Regenerated.
12891         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
12892         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
12893         * libc/time/lcltime_r.c (lcltime_r): Ditto.
12894         * libc/time/local.h: New local header file.
12895         * libc/time/mktime.c (mktime): Add timezone support.
12896         * libc/time/mktm_r.c: New file which is the common engine
12897         for gmtime_r and lcltime_r.  This code has timezone support.
12898         * libc/time/strftime.c (strftime): Add %Z timezone support.
12899         * libc/time/tzlock.c: New file containing timezone lock stubs.
12900         * libc/time/tzset.c: New file containing tzset() routine.
12901         * libc/time/tzset_r.c: New file containing _tzset_r and
12902         internal routine for calculating timezone changes for specified year.
12903
12904 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
12905
12906         * configure.in (CRT0_DIR): Set to libc/.
12907         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
12908         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
12909         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
12910         $(CRT1_DIR)/$(CRT1).
12911         * libc/machine/xstormy16/Makefile.in: Regenerated.
12912         * libc/machine/xstormy16/aclocal.m4: Regenerated.
12913         * libc/machine/xstormy16/configure: Regenerated.
12914
12915 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
12916
12917         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
12918         fails, don't bail out, and try to correct next time.
12919
12920         * libc/include/sys/config.h: Include limits.h.
12921
12922 2002-04-12  Eric Norum  <eric.norum@usask.com>
12923
12924         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
12925         routine to allow autoconf to determine that building executables
12926         for rtems works.
12927         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
12928         (rtems_gxx_mutex_once): Ditto.
12929
12930 2002-04-09  Tom Rix  <trix@redhat.com>
12931
12932         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
12933
12934 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
12935
12936         * libc/include/time.h: Fix strptime declaration.
12937         * libc/time/Makefile.am: Add strptime.c.
12938         * libc/time/Makefile.in: Regenerated.
12939         * libc/time/strptime.c: New file.
12940
12941 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
12942
12943         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
12944         siglongjmp prototype, and sigsetjmp macro definition.
12945         * libc/sys/linux/siglongjmp.c: New file.
12946         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
12947         * libc/sys/linux/Makefile.in: Regenerated.
12948
12949 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
12950
12951         * Makefile.am: Add support for installing crt1.o if one exists.
12952         * configure.host: Specify crt1.o for linux.
12953         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
12954         * Makefile.in: Regenerated.
12955         * configure: Ditto.
12956         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
12957         Added for non-Cygwin, non-RTEMS configurations.
12958         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
12959         * libc/sys/linux/Makefile.in: Regenerated.
12960         * libc/sys/linux/crt1.c: New empty file to override one defaulted
12961         by gcc.  This fixes problem with reconfiguring linux newlib build.
12962         * libc/sys/linux/sysconf.c: New file.
12963
12964 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
12965
12966         * configure.host: Add support for machine subdirectory of
12967         sys subdirectory.
12968         * configure.in: Add check for sys machine subdirectory.
12969         * Makefile.am: Ditto.
12970         * configure: Regenerated.
12971         * Makefile.in: Ditto.
12972         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
12973         * libc/sys/linux/sys/syscall.h: Ditto.
12974         * libc/sys/linux/sleep.c: New file.
12975         * libc/sys/linux/socket.c: Ditto.
12976         * libc/sys/linux/sockops.h: Ditto.
12977         * libc/sys/linux/stack.c: Ditto.
12978         * libc/sys/linux/usleep.c: Ditto.
12979         * libc/sys/linux/machine/Makefile.am: Ditto.
12980         * libc/sys/linux/machine/Makefile.in: Ditto.
12981         * libc/sys/linux/machine/aclocal.m4: Ditto.
12982         * libc/sys/linux/machine/configure: Ditto.
12983         * libc/sys/linux/machine/configure.in: Ditto.
12984         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
12985         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
12986         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
12987         * libc/sys/linux/machine/i386/configure: Ditto.
12988         * libc/sys/linux/machine/i386/configure.in: Ditto.
12989         * libc/sys/linux/machine/i386/crt0.c: Ditto.
12990         * libc/sys/linux/machine/i386/sigset.c: Ditto.
12991         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
12992         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
12993         * libc/sys/linux/machine/i386/syscall.h: Ditto.
12994         * libc/sys/linux/sys/select.h: Ditto.
12995         * libc/sys/linux/configure.in: Add support for machine directory.
12996         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
12997         * libc/sys/linux/Makefile.in: Regenerated.
12998         * libc/sys/linux/configure: Ditto.
12999         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13000         * libc/sys/linux/inode.c: Ditto.
13001         * libc/sys/linux/linux.c: Ditto.
13002         * libc/sys/linux/process.c: Ditto.
13003         * libc/sys/linux/systat.c: Ditto.
13004         * libc/sys/linux/time.c: Ditto.
13005         * libc/sys/linux/wait.c: Ditto.
13006         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13007         * libc/sys/linux/io.c: Change header plus add readv/writev.
13008         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13009         use __sigsuspend syscall.
13010         * libc/sys/linux/select.c: Change header plus change select to
13011         use _newselect syscall.
13012         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13013         used by glibc header files.
13014         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13015         types.
13016
13017 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13018
13019         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13020         initializing a struct _reent that has been dynamically allocated.
13021         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13022         _REENT_SMALL and does nothing otherwise.
13023         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13024         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13025         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13026         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13027         [_REENT_SMALL](struct _misc_reent): New structure containing
13028         miscellaneous reentrant areas needed by newlib.
13029         [_REENT_SMALL](struct _reent): Add _misc pointer.
13030         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13031         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13032         and _REENT_STRTOK_LAST macros.
13033         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13034         and _REENT_MBLEN_STATE macros.
13035         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13036         and _REENT_MBTOWC_STATE macros.
13037         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13038         and _REENT_WCTOMB_STATE macros.
13039
13040 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13041
13042         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13043
13044 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13045
13046         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13047
13048 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13049
13050         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13051         Store high part of leading bytes too.
13052
13053 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13054
13055         * libm/math/ef_hypot.c: Increase scale factor to 68.
13056
13057 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13058
13059         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13060         error.
13061
13062 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13063
13064         * libc/sys/go32/access.c: Change license to relaxed license
13065         used in identical file throughout newlib/libgloss.
13066
13067 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13068
13069         * libc/sys/arm/access.c: New file.
13070         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13071         * libc/sys/arm/Makefile.in: Regenerate.
13072         * libc/sys/arm/syscalls.c (_stat): New function.
13073
13074 2002-03-11  Michael Meissner  <meissner@redhat.com>
13075
13076         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13077         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13078         * libc/machine/mips/Makefile.in: Regenerate.
13079         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13080         * libc/machine/mips/memset.c: Dito.
13081         * libc/machine/mips/strcmp.c: Dito.
13082         * libc/machine/mips/strlen.c: Dito.
13083         * libc/machine/mips/strncmp.c: Dito.
13084
13085 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13086
13087         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13088         object so it works for shared library or statici library.
13089 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
13090
13091         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
13092         (strptime): Moved prototype to be within !__STRICT_ANSI__.
13093         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
13094         (tzname): Defined for all platforms.
13095         (daylight, timezone): Defined only for CYGWIN.
13096         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
13097         environment set up.
13098         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
13099         environment variable is set.
13100         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
13101         tzset_r.c.
13102         *  libc/time/Makefile.in: Regenerated.
13103         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
13104         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
13105         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
13106         *  libc/time/local.h: New local header file.
13107         *  libc/time/mktime.c (mktime): Add timezone support.
13108         *  libc/time/mktm_r.c: New file which is the common engine
13109         for gmtime_r and lcltime_r.  This code has timezone support.
13110         *  libc/time/strftime.c (strftime): Add %Z timezone support.
13111         *  libc/time/tzlock.c: New file containing timezone lock stubs.
13112         *  libc/time/tzset.c: New file containing tzset() routine.
13113         *  libc/time/tzset_r.c: New file containing _tzset_r and
13114         internal routine for calculating timezone changes for specified year.
13115
13116 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13117
13118         * configure.in (CRT0_DIR): Set to libc/.
13119         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
13120         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
13121         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
13122         $(CRT1_DIR)/$(CRT1).
13123         * libc/machine/xstormy16/Makefile.in: Regenerated.
13124         * libc/machine/xstormy16/aclocal.m4: Regenerated.
13125         * libc/machine/xstormy16/configure: Regenerated.
13126
13127 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
13128
13129         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
13130         fails, don't bail out, and try to correct next time.
13131
13132         * libc/include/sys/config.h: Include limits.h.
13133
13134 2002-04-12  Eric Norum  <eric.norum@usask.com>
13135
13136         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
13137         routine to allow autoconf to determine that building executables
13138         for rtems works.
13139         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
13140         (rtems_gxx_mutex_once): Ditto.
13141
13142 2002-04-09  Tom Rix  <trix@redhat.com>
13143
13144         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
13145
13146 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13147
13148         * libc/include/time.h: Fix strptime declaration.
13149         * libc/time/Makefile.am: Add strptime.c.
13150         * libc/time/Makefile.in: Regenerated.
13151         * libc/time/strptime.c: New file.
13152
13153 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
13154
13155         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
13156         siglongjmp prototype, and sigsetjmp macro definition.
13157         * libc/sys/linux/siglongjmp.c: New file.
13158         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
13159         * libc/sys/linux/Makefile.in: Regenerated.
13160
13161 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
13162
13163         * Makefile.am: Add support for installing crt1.o if one exists.
13164         * configure.host: Specify crt1.o for linux.
13165         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
13166         * Makefile.in: Regenerated.
13167         * configure: Ditto.
13168         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
13169         Added for non-Cygwin, non-RTEMS configurations.
13170         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
13171         * libc/sys/linux/Makefile.in: Regenerated.
13172         * libc/sys/linux/crt1.c: New empty file to override one defaulted
13173         by gcc.  This fixes problem with reconfiguring linux newlib build.
13174         * libc/sys/linux/sysconf.c: New file.
13175
13176 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
13177
13178         * configure.host: Add support for machine subdirectory of
13179         sys subdirectory.
13180         * configure.in: Add check for sys machine subdirectory.
13181         * Makefile.am: Ditto.
13182         * configure: Regenerated.
13183         * Makefile.in: Ditto.
13184         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
13185         * libc/sys/linux/sys/syscall.h: Ditto.
13186         * libc/sys/linux/sleep.c: New file.
13187         * libc/sys/linux/socket.c: Ditto.
13188         * libc/sys/linux/sockops.h: Ditto.
13189         * libc/sys/linux/stack.c: Ditto.
13190         * libc/sys/linux/usleep.c: Ditto.
13191         * libc/sys/linux/machine/Makefile.am: Ditto.
13192         * libc/sys/linux/machine/Makefile.in: Ditto.
13193         * libc/sys/linux/machine/aclocal.m4: Ditto.
13194         * libc/sys/linux/machine/configure: Ditto.
13195         * libc/sys/linux/machine/configure.in: Ditto.
13196         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
13197         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
13198         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
13199         * libc/sys/linux/machine/i386/configure: Ditto.
13200         * libc/sys/linux/machine/i386/configure.in: Ditto.
13201         * libc/sys/linux/machine/i386/crt0.c: Ditto.
13202         * libc/sys/linux/machine/i386/sigset.c: Ditto.
13203         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
13204         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
13205         * libc/sys/linux/machine/i386/syscall.h: Ditto.
13206         * libc/sys/linux/sys/select.h: Ditto.
13207         * libc/sys/linux/configure.in: Add support for machine directory.
13208         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
13209         * libc/sys/linux/Makefile.in: Regenerated.
13210         * libc/sys/linux/configure: Ditto.
13211         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
13212         * libc/sys/linux/inode.c: Ditto.
13213         * libc/sys/linux/linux.c: Ditto.
13214         * libc/sys/linux/process.c: Ditto.
13215         * libc/sys/linux/systat.c: Ditto.
13216         * libc/sys/linux/time.c: Ditto.
13217         * libc/sys/linux/wait.c: Ditto.
13218         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
13219         * libc/sys/linux/io.c: Change header plus add readv/writev.
13220         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
13221         use __sigsuspend syscall.
13222         * libc/sys/linux/select.c: Change header plus change select to
13223         use _newselect syscall.
13224         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
13225         used by glibc header files.
13226         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
13227         types.
13228
13229 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
13230
13231         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
13232         initializing a struct _reent that has been dynamically allocated.
13233         (_REENT_CHECK_MISC): New macro that checks _misc struct for
13234         _REENT_SMALL and does nothing otherwise.
13235         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
13236         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
13237         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
13238         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
13239         [_REENT_SMALL](struct _misc_reent): New structure containing
13240         miscellaneous reentrant areas needed by newlib.
13241         [_REENT_SMALL](struct _reent): Add _misc pointer.
13242         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
13243         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
13244         and _REENT_STRTOK_LAST macros.
13245         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
13246         and _REENT_MBLEN_STATE macros.
13247         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
13248         and _REENT_MBTOWC_STATE macros.
13249         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
13250         and _REENT_WCTOMB_STATE macros.
13251
13252 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
13253
13254         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
13255
13256 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
13257
13258         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
13259
13260 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
13261
13262         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
13263         Store high part of leading bytes too.
13264
13265 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13266
13267         * libm/math/ef_hypot.c: Increase scale factor to 68.
13268
13269 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
13270
13271         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
13272         error.
13273
13274 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
13275
13276         * libc/sys/go32/access.c: Change license to relaxed license
13277         used in identical file throughout newlib/libgloss.
13278
13279 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
13280
13281         * libc/sys/arm/access.c: New file.
13282         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
13283         * libc/sys/arm/Makefile.in: Regenerate.
13284         * libc/sys/arm/syscalls.c (_stat): New function.
13285
13286 2002-03-11  Michael Meissner  <meissner@redhat.com>
13287
13288         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
13289         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
13290         * libc/machine/mips/Makefile.in: Regenerate.
13291         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
13292         * libc/machine/mips/memset.c: Dito.
13293         * libc/machine/mips/strcmp.c: Dito.
13294         * libc/machine/mips/strlen.c: Dito.
13295         * libc/machine/mips/strncmp.c: Dito.
13296
13297 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
13298
13299         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
13300         object so it works for shared library or statici library.
13301         * libc/machine/i386/Makefile.in: Regenerated.
13302
13303 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
13304
13305         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
13306         Add memcpy.S, memset.S and strcpy.S.
13307         * libc/machine/sh/Makefile.in: Regenerate.
13308         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
13309         (SHHI, SHLO): Define.
13310         * libc/machine/sh/memset.S: Add code for SH5.
13311         * libc/machine/sh/memset.S: Likewise.
13312         * libc/machine/sh/strcpy.S: Likewise.
13313
13314 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
13315
13316         * configure.host: Add check for --disable-newlib-io-float
13317         configuration option and add -DNO_FLOATING_POINT to newlib cflags
13318         if appropriate.
13319         * acinclude.m4: Added --disable-newlib-io-float option.
13320         * aclocal.m4: Regenerated.
13321         * configure: Ditto.
13322         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
13323         * libc/*/aclocal.m4 libc/*/configure
13324         * libm/*/aclocal.m4 libm/*/configure: Ditto.
13325         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
13326         if NO_FLOATING_POINT flag is not defined.
13327
13328 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13329
13330         * libc/include/sys/config.h: Add __extension__ in front of
13331         long long references.
13332
13333 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13334
13335         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
13336         (_stat): Ditto.
13337
13338 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
13339
13340         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
13341         of off_t.
13342
13343 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
13344
13345         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
13346         clobbered registers.
13347
13348 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13349
13350         * configure.host (newlib_cflags): When host is in m68* add
13351         -DCOMPACT_CTYPE.
13352
13353 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
13354
13355         * libc/include/sys/config.h: Add definitions for
13356         __int16_t, __uint16_t, __int64_t, and __uint64_t.
13357
13358 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
13359
13360         * libc/sys/mmixware/link.c: New.
13361         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
13362         volatile.
13363         * libc/sys/mmixware/times.c (_times): Renamed from times.
13364         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
13365         properly by reading previous contents, not through BinaryReadWrite.
13366         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
13367         * libc/sys/mmixware/Makefile.in: Regenerate.
13368
13369 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
13370
13371         * libc/include/grp.h: Don't declare group functions when compiling
13372         Cygwin.
13373
13374 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
13375
13376         * libc/include/grp.h: Include Cygwin specific header.
13377         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
13378         when compiling for Cygwin.
13379         * libc/include/sys/types.h: Don't define off_t, uid_t
13380         and gid_t when compiling for Cygwin.
13381
13382 2002-02-08  matthew green  <mrg@redhat.com>
13383
13384         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
13385         _REENT_EMERGENCY_SIZE, not sizeof(char *).
13386
13387 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
13388
13389         Contribute sh64-elf.
13390         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13391         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
13392         support in printf.
13393         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
13394         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
13395         any labels.
13396         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
13397         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
13398         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13399         * libc/machine/sh/configure.in: Rework conditionals.
13400         * libc/machine/sh/Makefile.am: Likewise.
13401         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
13402         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13403         * configure.host: Match `sh*'.
13404         * libc/include/machine/setjmp.h: Define for SH5.
13405         * libc/machine/sh/configure.in: Detect SH5.
13406         * libc/machine/sh/configure: Rebuilt.
13407         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
13408         * libc/machine/sh/Makefile.in: Rebuilt.
13409         * libc/machine/sh/asm.h: Adjust for SH5.
13410         * libc/machine/sh/setjmp.S: Implement in SHmedia.
13411         * libc/sys/sh/crt0.S: Likewise.
13412         * libc/sys/sh/trap.S: Likewise.
13413
13414 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
13415
13416         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
13417         (mach_add_obj): Conditionally set to setjmp.o or nothing.
13418         (LIB_SOURCES): Remove $(mach_add_src).
13419         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
13420         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
13421         * libc/machine/i386/Makefile.in: Regenerate.
13422
13423 2002-02-05  Manik Raina <manik@cisco.com>
13424
13425         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
13426         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
13427         s, p, k, and outstr.
13428         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
13429
13430 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
13431
13432         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
13433         _REENT_CHECK_EMERGENCY macro.
13434
13435 2002-02-03  matthew green  <mrg@redhat.com>
13436
13437         * libc/reent/signgam.c (__signgam): Fix error in previous.
13438
13439 2002-02-02  matthew green  <mrg@redhat.com>
13440
13441         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
13442
13443         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
13444         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
13445         * libc/include/sys/reent.h (struct _reent): Completely new version
13446         for _REENT_SMALL.
13447         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
13448         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
13449         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
13450         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
13451         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
13452         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
13453         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
13454         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
13455         (_REENT_EMERGENCY): Likewise.
13456
13457         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
13458         the start of the real __sFILE, used for stdin, stdout and stderr until
13459         they are setup properly.
13460         (struct __sFILE): Move location of _data in _REENT_SMALL case.
13461         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
13462         allocated stdin, stdout and stderr.
13463         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
13464         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
13465         * libc/stdio/perror.c (_perror_r): Likewise.
13466         * libc/stdio/printf.c (printf, _printf_r): Likewise.
13467         * libc/stdio/putchar.c (_putchar_r): Likewise.
13468         * libc/stdio/puts.c (_puts_r): Likewise.
13469         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
13470         * libc/stdio/vprintf.c (vprintf): Likewise.
13471         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
13472
13473         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
13474
13475         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
13476         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
13477         for _REENT_SMALL.
13478         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
13479         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
13480
13481         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
13482         _REENT_SMALL.
13483         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
13484         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
13485         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
13486         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
13487         * libc/stdlib/rand48.c (__dorand48): Likewise.
13488         * libc/stdlib/seed48.c (_seed48_r): Likewise.
13489         * libc/stdlib/srand48.c (_srand48_r): Likewise.
13490         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
13491         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
13492         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
13493         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
13494         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
13495         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
13496         * libc/stdlib/rand.c (rand): Likewise.
13497
13498         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
13499         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
13500
13501         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
13502         _REENT_MP_FREELIST() and _REENT_MP_P5S.
13503         * libc/include/sys/reent.h (struct _mprec): New structure.
13504
13505         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
13506         _unused_strtok_last.
13507         * libc/string/strtok.c (strtok): Use a local static variable.
13508
13509         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
13510         (_REENT_EMERGENCY_SIZE): Likewise.
13511         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
13512         _REENT_ASCTIME_BUF().
13513         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
13514         _REENT_TM().
13515
13516         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
13517         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
13518         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
13519         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
13520         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
13521         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
13522
13523 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
13524
13525         * configure.host (xstormy16): Don't use the generic malloc.
13526         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
13527         * libc/machine/xstormy16/Makefile.in: Regenerate.
13528         * libc/machine/xstormy16/mallocr.c: New file.
13529         * libc/machine/xstormy16/tiny-malloc.c: New file.
13530
13531 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
13532
13533         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
13534         when _CYGWIN_TYPES_H is not defined.
13535
13536 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
13537
13538         * libc/include/sys/signal.h: Revert 2002-01-23 change.
13539
13540 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
13541
13542         * libc/include/sys/signal.h: Remove pthread_kill declaration
13543         when __CYGWIN__ is defined.
13544
13545 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
13546
13547         * libc/include/time.h: Add prototype for strptime for Cygwin.
13548
13549 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
13550
13551         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
13552         dst was not word aligned.
13553
13554         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
13555         if too much memory is requested.
13556
13557 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
13558
13559         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
13560         reads blanks from the input file to break if EOF reached
13561         rather than end processing.
13562
13563 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
13564
13565         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
13566
13567 2002-01-07 Alan Matsuoka <alanm@redhat.com>
13568
13569         * libc/include/machine/ieeefp.h: Configure d10v doubles to
13570         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
13571         libc/include/sys/config.h: Ditto.
13572
13573 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
13574
13575         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
13576
13577 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
13578             Catherine Moore  <clm@redhat.com>
13579             Richard Henderson  <rth@redhat.com>
13580             Corinna Vinschen  <vinschen@redhat.com>
13581
13582         * configure.host: Add support for xstormy16.
13583         * libc/include/machine/ieeefp.h: Add support for xstormy16.
13584         * libc/include/machine/setjmp.h: Add support for xstormy16.
13585         * libc/include/sys/config.h: Add support for xstormy16.
13586         * libc/machine/xstormy16/Makefile.am: New file.
13587         * libc/machine/xstormy16/Makefile.in: New file.
13588         * libc/machine/xstormy16/aclocal.m4: New file.
13589         * libc/machine/xstormy16/configure: New file.
13590         * libc/machine/xstormy16/configure.in: New file.
13591         * libc/machine/xstormy16/setjmp.S: New file.
13592
13593 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
13594
13595         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
13596         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
13597
13598 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
13599
13600         * libm/machine/Makefile.am: Change rules to create correct lib.a.
13601         * libm/machine/Makefile.in: Regenerated through automake.
13602
13603 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13604
13605         * Makefile.am (DOCDIR): Force to empty string when doc
13606         directory is not present.
13607
13608 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
13609
13610         * libc/machine/i386/f_*: Move to libm/machine/i386.
13611
13612 2001-12-18      Joel Sherrill <joel@OARcorp.com>
13613
13614         * libm/machine/Makefile.am: Add dummy doc stub so
13615         "make info" works.
13616
13617 2001-12-17      Joel Sherrill <joel@OARcorp.com>
13618
13619         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
13620
13621 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
13622
13623         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
13624         $(COMPILE) rather than $(CC).
13625         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
13626         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
13627         $(LIB_COMPILE) change.
13628         (vfiprintf.$(oext)): Likewise.
13629
13630 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
13631
13632         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
13633         conditionalized including of getopt stuff.
13634
13635 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
13636
13637         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
13638         compile line.
13639         (vfiprintf.$(oext)): Likewise.
13640
13641 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
13642
13643         * Makefile.shared: New file.
13644         * libc/sys/linux/shared.ld: New file.
13645         * libm/machine/*: New files.
13646         * libm/machine/i386/*: New files.
13647         * Makefile.am: Add libtool support.  Change math and mathfp
13648         references to variables.
13649         * configure.host: Add variables for libtool support.  Add
13650         libm_machine_dir variable.
13651         * configure.in: Add objectlist variables, for libtool
13652         support.  Add CC_FOR_BUILD tests.
13653         * libc/Makefile.am: Add libtool support.  Change crt0.o
13654         reference to be a variable reference.
13655         * libc/configure.in: Add libtool support.  Change sublib
13656         names to be lib${subdir}.la when using libtool.
13657         * libc/ctype/Makefile.am: Add libtool support.
13658         * libc/errno/Makefile.am: Likewise.
13659         * libc/locale/Makefile.am: Likewise.
13660         * libc/machine/Makefile.am: Likewise.
13661         * libc/machine/configure.in: Likewise.
13662         * libc/machine/i386/Makefile.am: Likewise.
13663         * libc/machine/i386/configure.in: Likewise.
13664         * libc/misc/Makefile.am: Likewise.
13665         * libc/posix/Makefile.am: Likewise.
13666         * libc/reent/Makefile.am: Likewise.
13667         * libc/signal/Makefile.am: Likewise.
13668         * libc/stdio/Makefile.am: Likewise.
13669         * libc/stdlib/Makefile.am: Likewise.
13670         * libc/string/Makefile.am: Likewise.
13671         * libc/sys/Makefile.am: Likewise.
13672         * libc/sys/configure.in: Likewise.
13673         * libc/sys/linux/Makefile.am: Add libtool support.  Change
13674         awk reference to a variable reference.  Change signal.h
13675         reference to a variable reference.
13676         * libc/sys/linux/configure.in: Add libtool support.
13677         * libc/syscalls/Makefile.am: Likewise.
13678         * libc/time/Makefile.am: Likewise.
13679         * libc/unix/Makefile.am: Likewise.
13680         * libm/Makefile.am: Add libtool support.  Change math and
13681         mathfp references to variables.
13682         * libm/configure.in: Add libtool support.  Add
13683         LIBM_MACHINE_LIB variable.
13684         * libm/common/Makefile.am: Add libtool support.
13685         * libm/math/Makefile.am: Likewise.
13686         * libm/mathfp/Makefile.am: Likewise.
13687         Regenerate all Makefile.in, aclocal.m4, and configure.
13688
13689 2001-12-13 Anita Kulkarni <anitak@kpit.com>
13690
13691         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
13692
13693 2001-12-06  John Peacock <jpeacock@rowman.com>
13694
13695         * libc/include/sys/unistd.h: Correct ualarm declaration.
13696
13697 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
13698
13699         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
13700         vector before calling the initialisation functions.
13701
13702 2001-11-29  Christopher Faylor  <cgf@redhat.com>
13703
13704         * libc/include/dirent.h: Protect against multiple inclusion.
13705
13706 2001-11-27  Christopher Faylor  <cgf@redhat.com>
13707
13708         * libc/include/sys/types.h: Define useconds_t.
13709         * libc/include/sys/ulimit.h: Declare ualarm.
13710
13711 2001-11-21  Christopher Faylor  <cgf@redhat.com>
13712
13713         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
13714
13715 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
13716
13717         * libc/sys/mmixware/*: Tweak license header in all source files.
13718
13719 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
13720
13721         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
13722         to here.  Rearrange for general inclusion by stdlib.h.
13723         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
13724         isn't defined.
13725         * libc/sys/linux/include/alloca.h: Move to libc/include.
13726
13727 2001-11-12  Anthony Green  <green@redhat.com>
13728
13729         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
13730
13731 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
13732
13733         * libc/sys/mmixware/*: Correct spacing in all source files.
13734         * libc/sys/mmixware/syscall.h: Move misplaced file...
13735         * libc/sys/mmixware/sys/syscall.h: ...here.
13736
13737 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
13738
13739         * libc/include/machine/ieeefp.h: Add support for mmix target.
13740         * libc/include/machine/setjmp.h: Ditto.
13741         * configure.host: Ditto.
13742         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
13743         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
13744         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
13745         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
13746         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
13747         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
13748         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
13749         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
13750         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
13751         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
13752         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
13753         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
13754         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
13755         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
13756         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
13757         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
13758         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
13759         libc/sys/mmixware/aclocal.m4: Generate.
13760
13761 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
13762
13763         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
13764         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
13765         when __CYGWIN__ is defined.
13766         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
13767         logwtmp().
13768
13769 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
13770
13771         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
13772         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
13773         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
13774         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
13775
13776 2001-10-24  Christopher Faylor  <cgf@redhat.com>
13777
13778         * libc/stdio/fseek.c: Reset pointer to buffer base
13779         when forced to seek outside of current buffer contents.
13780         This prevents the code from erroneously thinking there is
13781         anything in the current buffer.
13782
13783 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
13784
13785         * libc/include/math.h: The C++ standard adds the single-precision
13786         versions of the elementary functions.
13787
13788 2001-10-22  Christopher Faylor  <cgf@redhat.com>
13789
13790         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
13791         throughout.
13792         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
13793         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
13794         * system.c (_system_r): Ditto.
13795
13796 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
13797
13798         * libc/include/sys/unistd.h: Add prototype for fchdir() when
13799         __CYGWIN__ or __rtems__ is defined.
13800
13801 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
13802
13803         * libc/include/stdlib.h: add declarations for
13804         _strtoull_r, _strtoll_r, strtoull, and strtoll.
13805         * libc/stdio/local.h: remove declarations of
13806         __strtoull_r and __strtoll_r.
13807         * libc/stdio/vfscanf.c(__svfscanf_r): call
13808         _strtoull_r instead of __strtoull_r. Ditto
13809         _strtoll_r vs. __strtoll_r.
13810         * libc/stdlib/Makefile.am: add new files to
13811         .c list and .def list
13812         * libc/stdlib/Makefile.in: regenerate
13813         * libc/stdlib/strtoll_r.c: rename __strtoll_r
13814         as _strtoll_r
13815         * libc/stdlib/strtoull_r.c: rename __strtoull_r
13816         as _strtoull_r
13817         * libc/stdlib/strtoull.c: new file
13818         * libc/stdlib/strtoll.c: new file
13819
13820 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
13821
13822         * libc/include/process.h: Add getpid() declaration.
13823
13824 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
13825
13826         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
13827         for new style arm/elf ctor/dtor handling.
13828         Minor formatting tidy up.
13829
13830 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
13831
13832         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
13833         and strtoull_r.c.
13834         * libc/stdlib/Makefile.in: Regenerated.
13835         * libc/stdlib/strtoll_r.c: New file.
13836         * libc/stdlib/strtoull_r.c: New file.
13837         * libc/stdio/local.h: Add prototypes for long long string
13838         conversion routines.
13839         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
13840         tied to %L integer conversion specifier.
13841
13842 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
13843
13844         * strftime.c (strftime): Fix "%W" implementation to properly handle
13845         Mondays too.
13846
13847 2001-09-07  Jeff Law  <law@redhat.com>
13848
13849         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
13850         __fini with "mov.l" instead of "mov.w".
13851
13852 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
13853
13854         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
13855         and getopt.h.
13856
13857 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
13858
13859         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
13860
13861 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13862
13863         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
13864         field.
13865         (__DIRENT_VERSION): New define.
13866
13867 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
13868
13869         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
13870         Shrink __d_reserved accordingly to keep structure size.
13871         (dirfd): Declare external.
13872
13873 2001-08-29  Joel Sherrill <joel@OARcorp.com>
13874
13875         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
13876
13877 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
13878
13879         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
13880           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
13881           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
13882           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
13883           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
13884           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
13885           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
13886           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
13887         Add conditional compilation to avoid HW FPU instructions
13888         when compiled for soft-float.
13889
13890 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13891
13892         * Makefile.am: Add check for ln failing when creating libg.a
13893         so that cp gets used as a backup.
13894         * Makefile.in: Regenerated.
13895
13896 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
13897
13898         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
13899         No longer include time.h.  Add struct __tm to use for
13900         _localtime_buf in the reentrant structure.  Add a
13901         _NULL definition to use in initializing the reentrant struct.
13902         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
13903         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
13904         <sys/_types.h>.
13905         * libc/include/sys/unistd.h: Include <sys/_types.h>.
13906         * libc/time/lcltime.c (localtime): Cast the reentrant struct
13907         _localtime_buf to be struct tm *.
13908
13909 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
13910
13911         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
13912         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
13913         __ctors_end.
13914         * libc/sys/h8300hms/syscalls.c: Include errno.h.
13915         (_unlink): New stub function.
13916
13917 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
13918
13919         * libc/include/sys/errno.h: Add a cautionary comment.
13920
13921 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
13922
13923         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
13924         for SIZE_SZ so that alignment ends up a minimum of 8.
13925
13926 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
13927
13928         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
13929         arguments.
13930
13931         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
13932         Cygwin.
13933
13934 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
13935
13936         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
13937         macro constants for mallopt options.
13938         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
13939
13940 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
13941
13942         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
13943         otherwise default.
13944
13945 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
13946
13947         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
13948
13949 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
13950
13951         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
13952         Define for little endian ARMs.
13953
13954         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
13955         __IEEE_BYTES_LITTLE_ENDIAN is defined.
13956
13957 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
13958
13959         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
13960
13961 2001-06-11  Egor Duda  <deo@logos-m.ru>
13962
13963         * libc/ctype/ctype_.c: When compiled with gcc on platforms
13964         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
13965         initialized memory region. Platform can define COMPACT_CTYPE
13966         to avoid allocation of the additional 128 bytes of data.
13967         Add pointer to _ctype_ array. Always initialize all _ctype_
13968         array elements.
13969
13970 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
13971
13972         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
13973         NULL pointer.
13974
13975 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
13976
13977         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
13978
13979 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
13980
13981         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
13982         matching, non-word alignment, and the length is <= 4 but more than
13983         enough to move them over a word boundary.
13984         Add comments explaining what each instruction does.
13985
13986 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
13987
13988         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
13989         * libc/include/sys/unistd.h: Ditto.
13990
13991 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
13992
13993         * libc/string/strrchr.c: Use strchr for the speed improvements.
13994
13995 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
13996
13997         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
13998         real file systems, let __smakebuf() determine if line buffering
13999         should be used for stdout.
14000
14001 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14002
14003         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
14004
14005 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
14006
14007         * libc/include/stdlib.h: Add prototype for _strtod_r.
14008
14009 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
14010
14011         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
14012         * libc/stdio/vprintf.c (_vprintf_r): new function
14013         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
14014         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
14015         _DEFUN, and call _vfprintf_r, not vfprintf.
14016         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
14017         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
14018         _DEFUN, and call _vfprintf_r, not vfprintf.
14019
14020 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
14021
14022         * libc/include/sys/unistd.h [X_OK]: Use better protection against
14023         Cygwin X_OK definitions in sys/file.h.
14024
14025 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
14026
14027         * libc/include/sys/time.h: Define timercmp and other macros for
14028         __CYGWIN__, too.
14029
14030 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14031
14032         * acinclude.m4: Added --enable-malloc-debugging configure flag.
14033         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
14034         --enable-malloc-debugging selected.
14035         * aclocal.m4 configure: Regenerated.
14036           libm/aclocal.m4 libm/configure: Ditto.
14037         * libc/aclocal.m4 libc/configure: Ditto.
14038         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
14039         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
14040         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
14041         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
14042         * doc/aclocal.m4 doc/configure: Ditto.
14043
14044 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
14045
14046         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
14047         into one list.
14048         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
14049         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
14050         function prototypes.
14051         (_fscanf_r, _sscanf_r): Ditto.
14052         * libc/include/stdlib.h: Added _strtod_r prototype.
14053         * libc/stdio/Makefile.am: Add new v*scanf functions.
14054         * libc/stdio/Makefile.in: Regenerate.
14055         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
14056         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
14057         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
14058         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
14059         (sscanf): Changed to call __svfscanf_r with _REENT argument.
14060         (_sscanf_r): New routine.
14061         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
14062         with __svfscanf_r prototype.
14063         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
14064         routines.
14065         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
14066         structure as argument as calls reentrant versions of helper functions
14067         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
14068         to _strtol_r and _strtod_r respectively.
14069         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
14070         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
14071         _REENT argument.
14072         * libc/stdio/vscanf.c: New file.
14073         * libc/stdio/vsscanf.c: Ditto.
14074
14075 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
14076
14077         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
14078         Define daylight to _daylight if it is not defined
14079         Prepare a variable export of timezone based on timezonevariable.
14080         (Cannot be used with the timezone() function.)
14081
14082 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
14083
14084         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
14085          Correct the numerical values.
14086
14087 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
14088
14089         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
14090
14091 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
14092
14093         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
14094         on case insensitve file systems.
14095
14096 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
14097
14098         * libc/include/sys/features.h: Add appropriate defines for Cygwin
14099         pthread support.
14100         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
14101         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
14102         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
14103
14104 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
14105
14106         * libc/include/machine/ieeefp.h: Comment about new configuration
14107         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
14108         * libm/common/fdlib.h: Define new macros for testing floats.
14109         * libm/common/sf_*: Use them.
14110         * libm/math/ef_*: Likewise.
14111         * libm/math/sf_*: Likewise.
14112
14113 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
14114
14115         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
14116         prolog to by-pass possible assembler error.
14117
14118 2001-03-21  Egor Duda  <deo@logos-m.ru>
14119
14120         Allow building internal stubs for non-reentrant syscalls
14121         if target provides its own malloc
14122         * libc/reent/reent.c (errno): Move definition here.
14123         * libc/reent/sbrkr.c: From here.
14124
14125 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
14126
14127         * libc/include/sys/types.h (BSD int typedefs): Guard with
14128         _BSDTYPES_DEFINED rather than _WINSOCK_H.
14129         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
14130         _SYS_TYPES_FD_SET.
14131         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
14132         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
14133
14134 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
14135
14136         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
14137         _PC_POSIX_SECURITY constants for Cygwin.
14138
14139 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
14140
14141         * libc/sys/cygwin/crt0.c: Add copyright hint.
14142         * libc/sys/cygwin/sys/dirent.h: Ditto.
14143         * libc/sys/cygwin/sys/param.h: Ditto.
14144         * libc/sys/cygwin/sys/utime.h: Ditto.
14145         * libc/sys/cygwin/sys/utmp.h: Ditto.
14146
14147 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14148
14149         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
14150         equivalent to LONGINT.
14151
14152 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
14153
14154         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
14155         jmpbuf on MIPS64 targets.
14156         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
14157
14158 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
14159
14160         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write
14161           declarations.
14162
14163 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
14164
14165         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
14166         For RTEMS, define to be ssize_t.  Default to int if not defined.
14167         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
14168         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
14169         * libc/stdio/local.h (__sread, __swrite): Likewise.
14170         * libc/include/sys/reent.h (_read, _write): Likewise.
14171         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
14172         * libc/syscalls/sysread.c (read): Likewise.
14173         * libc/syscalls/syswrite.c (write): Likewise.
14174
14175 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
14176
14177         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
14178
14179 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
14180
14181         * libc/include/sys/stat.h: Use special defines for executable stat bits
14182         when compiling for Cygwin.
14183         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
14184         for Cygwin.
14185
14186 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14187
14188         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
14189         of strtok_r is always defined.
14190
14191 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
14192
14193         * libc/include/machine/ansi.h: New dummy header file.
14194
14195 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
14196
14197         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
14198         changed the copyright information to allow free modification of the
14199         file with no reference to "copying.dj".
14200         * libc/include/sys/stat-dj.h: Ditto.
14201         * libc/machine/i386/setjmp.S: Ditto.
14202         * libc/sys/h8300hms/sys/file.h: Ditto.
14203         * libc/sys/sysmec/access.c: Ditto.
14204         * libc/sys/sysnecv850/access.c: Ditto.
14205         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
14206         * libc/stdlib/getenv_r.c: Ditto.
14207         * libc/stdlib/putenv_r.c: Ditto.
14208         * libc/stdlib/setenv_r.c: Ditto.
14209         * libc/stdlib/getenv.c: Removed DJ reference since any possible
14210         modifications will now be in the _r version of this file.
14211         * libc/stdlib/putenv.c: Ditto.
14212         * libc/stdlib/setenv.c: Ditto.
14213         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
14214         valid.  Added a reference to DJ's web page that contains his address.
14215         * libc/sys/go32/*.s: Removed references to DJ's old address.
14216         * libc/sys/go32/*.c: Ditto.
14217         * libc/sys/go32/*.h: Ditto.
14218         * libc/sys/go32/*.S: Ditto.
14219         * libc/sys/go32/sys/*.h: Ditto.
14220
14221 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
14222
14223         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
14224         HAVE_FCNTL flag check.
14225         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
14226         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
14227
14228 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
14229
14230         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
14231
14232 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
14233
14234         * libc/include/stdlib.h: Add declarations of rand48 functions and
14235         their reentrant versions.
14236         * libc/include/sys/reent.h: Move macros from rand48.h. Add
14237         struct _rand48 for shared parameters of rand48 functions.
14238         (struct _reent): Add a variable _r48 of struct _rand48.
14239         (_REENT_INIT): Add _r48 initialization.
14240         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
14241         (CHEWOUT_FILES): Add rand48.def.
14242         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
14243         * libc/stdlib/Makefile.in: Regenerated.
14244         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
14245         NetBSD C library.
14246         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
14247         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
14248         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
14249         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
14250         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
14251         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
14252         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
14253         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
14254         * libc/stdlib/rand48.c (__dorand48): Ditto.
14255         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
14256         parameters into macros referring them in the reentrant structure.
14257
14258 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
14259
14260         * libc/include/sys/stat.h: Add mknod for Cygwin now that
14261         Cygwin definition has correct prototype.
14262
14263 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14264
14265         * libc/include/sys/stat.h: Must revert change for mknod
14266         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
14267         prototype.
14268
14269 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
14270
14271         * libc/include/stdio.h: Revert putw prototype.
14272
14273 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
14274
14275         * libc/include/grp.h: add prototype for initgroups.
14276         * libc/include/stdio.h: fix prototype for putw.
14277         * libc/include/sys/signal.h: add prototype for killpg.
14278         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
14279         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
14280         vhangup and remove duplicate sysconf prototype.
14281
14282 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
14283
14284         * libc/sys/rtems/sys/types.h: Removed.
14285
14286 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
14287
14288         * libc/include/locale.h: add LC_MESSAGES definition
14289
14290 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14291
14292         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
14293         SYS_get_argN):
14294         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
14295         __setup_argv_and_call_main): New.
14296
14297 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
14298
14299         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
14300         if defined.
14301         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
14302         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
14303         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
14304         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
14305
14306 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
14307
14308         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
14309         compiling under Cygwin.
14310
14311 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
14312
14313         * libc/include/math.h (signgam): Change to errno-like solution
14314         using a function to return the address of the real signgam.
14315         * libc/reent/signgam.c: New file containing __signgam().
14316         * libc/reent/Makefile.am: Added signgam.c to list of files.
14317         * libc/reent/Makefile.in: Regenerated.
14318
14319 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
14320
14321         * libc/sys/sh/syscalls.c (_times): New.
14322
14323         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
14324         * libc/sys/sh/syscalls.c (_gettimeofday): New.
14325
14326 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14327
14328         * libc/include/math.h (signgam): Regress previous fix as
14329         it does not handle programs with extern int signgam in them.
14330
14331 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14332
14333         * libc/include/math.h (signgam): Changed to a macro refering to
14334         its location in the reentrant structure.
14335
14336 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
14337
14338         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
14339         that suppressed . for %.0f, 0.1.  Check now looks if there
14340         are padding zeroes (expt) in addition to any digits (ndig) to
14341         print.
14342
14343 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
14344
14345         * libc/sys/arc/Makefile.am: New file.
14346         * libc/sys/arc/Makefile.in: Ditto.
14347         * libc/sys/arc/aclocal.m4: Ditto.
14348         * libc/sys/arc/configure: Ditto.
14349         * libc/sys/arc/configure.in: Ditto.
14350         * libc/sys/arc/crt0.S: Ditto.
14351         * libc/sys/arc/isatty.c: Ditto.
14352         * libc/sys/arc/mem-layout.c: Ditto.
14353         * libc/sys/arc/sbrk.c: Ditto.
14354         * libc/sys/arc/syscalls.c: Ditto.
14355         * libc/sys/arc/sys/syscall.h: Ditto.
14356
14357 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
14358
14359         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
14360
14361 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
14362
14363         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
14364
14365 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
14366
14367         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
14368
14369 2001-01-09  Nick Clifton  <nickc@redhat.com>
14370
14371         * configure.host (v859): Remove unsupported compiler options.
14372
14373 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
14374
14375         * src/newlib/configure.host (*-*-rtems*): add printf long long
14376         support for RTEMS.
14377
14378 2000-12-19  Graham Stott <grahams@redhat.com>
14379
14380         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
14381
14382 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14383
14384         * configure.host: Turn on long double I/O for Cygwin.
14385
14386 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
14387
14388         * MAINTAINERS: Removed Ranjith.
14389         * NEWS: Updated for 1.9.0.
14390         * README: Updated.
14391         * acinclude.m4: Updated to release 1.9.0.
14392         * aclocal.m4 configure
14393           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
14394           libc/machine/aclocal.m4 libc/machine/configure
14395           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
14396           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
14397           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
14398           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
14399           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
14400           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
14401           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
14402           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
14403           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
14404           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
14405           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
14406           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
14407           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
14408           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
14409           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
14410           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
14411           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
14412           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
14413           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
14414           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
14415           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
14416           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
14417           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
14418           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
14419           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
14420           libc/sys/aclocal.m4 libc/sys/configure
14421           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
14422           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
14423           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
14424           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
14425           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
14426           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
14427           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
14428           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
14429           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
14430           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
14431           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
14432           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
14433           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
14434           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
14435           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
14436           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
14437           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
14438           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
14439           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
14440           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
14441           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
14442           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
14443           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
14444           libm/aclocal.m4 libm/configure: Regenerated.
14445
14446 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14447
14448         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
14449         when __CYGWIN__ is defined.
14450
14451 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14452
14453         * libc/stdlib/ldtoa.c (_ldcheck): New routine
14454         that categorizes a long double as NaN, Infinity, or other.
14455         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
14456         isinfl and isnanl static routines which were i386-specific.  Changed
14457         calls to the two removed routines to a single _ldcheck call.
14458         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
14459
14460 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
14461
14462         * Makefile.am: Fixed install-data-local target to use
14463         $(mkinstalldirs) for the installed header files to ensure
14464         the directories exist before copying.
14465         * Makefile.in: Regenerated.
14466
14467 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
14468
14469         * libc/include/sys/unistd.h: Restored Cygwin _SC
14470         constants and moved new constants appropriately
14471         so Cygwin will build.
14472
14473 2000-12-11  Joel Sherrill <joel@OARcorp.com>
14474
14475         * Merge RTEMS specific .h files into main libc/include.
14476         * libc/sys/rtems/include/signal.h: Removed.
14477         * libc/sys/rtems/include/time.h: Removed.
14478         * libc/sys/rtems/sys/features.h: Removed.
14479         * libc/sys/rtems/sys/sched.h: Removed.
14480         * libc/sys/rtems/sys/siginfo.h: Removed.
14481         * libc/sys/rtems/sys/signal.h: Removed.
14482         * libc/sys/rtems/sys/time.h: Removed.
14483         * libc/sys/rtems/sys/times.h: Removed.
14484         definitions for time_t and clock_t since these are
14485         no longer in time.h.
14486         * libc/include/pthread.h: New file.
14487         * libc/include/sys/sched.h: New file.
14488         * libc/include/sys/features.h: New file.
14489         * libc/include/time.h: Removed duplicate definition of clock_t
14490         and time_t, get them from <sys/types.h> instead.  Add prototypes
14491         for POSIX clock and timer functionality.
14492         * libc/sys/linux/sys/types.h: Changed to include
14493         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
14494         * libc/include/sys/signal.h: Add more complete set of POSIX
14495         signal functionality including real-time and threaded signals.
14496         * libc/include/sys/types.h: Add clock_t, time_t, struct
14497         timespec, and struct itimerspec.  Centralizing these makes
14498         things cleaner.  RTEMS uses 64-bit dev_t.
14499         Added numerous primitive definitions
14500         for pthreads including macros, pthread_attr_t,
14501         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
14502         pthread_once_t, and pthread_t.
14503         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
14504         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
14505         Feature flags removed and moved to new file <sys/features.h>.
14506         Full set of POSIX sysconf() constants
14507
14508 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14509
14510         * configure.host: Added x86 linux target.
14511         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
14512         definitions provided if not already defined.
14513         * libc/sys/linux/crt0.c: New file.
14514         * libc/sys/linux/Makefile.am: Ditto.
14515         * libc/sys/linux/Makefile.in: Ditto.
14516         * libc/sys/linux/aclocal.m4: Ditto.
14517         * libc/sys/linux/brk.c: Ditto.
14518         * libc/sys/linux/configure: Ditto.
14519         * libc/sys/linux/configure.in: Ditto.
14520         * libc/sys/linux/getoptlong.c: Ditto.
14521         * libc/sys/linux/ids.c: Ditto.
14522         * libc/sys/linux/inode.c: Ditto.
14523         * libc/sys/linux/io.c: Ditto.
14524         * libc/sys/linux/linux.c: Ditto.
14525         * libc/sys/linux/process.c: Ditto.
14526         * libc/sys/linux/realpath.c: Ditto.
14527         * libc/sys/linux/select.c: Ditto.
14528         * libc/sys/linux/signal.c: Ditto.
14529         * libc/sys/linux/systat.c: Ditto.
14530         * libc/sys/linux/termios.c: Ditto.
14531         * libc/sys/linux/time.c: Ditto.
14532         * libc/sys/linux/wait.c: Ditto.
14533         * libc/sys/linux/include/alloca.h: Ditto.
14534         * libc/sys/linux/include/getopt.h: Ditto.
14535         * libc/sys/linux/include/stdint.h: Ditto.
14536         * libc/sys/linux/include/unistd.h: Ditto.
14537         * libc/sys/linux/sys/cdefs.h: Ditto.
14538         * libc/sys/linux/sys/dirent.h: Ditto.
14539         * libc/sys/linux/sys/errno.h: Ditto.
14540         * libc/sys/linux/sys/fcntl.h: Ditto.
14541         * libc/sys/linux/sys/file.h: Ditto.
14542         * libc/sys/linux/sys/ioctl.h: Ditto.
14543         * libc/sys/linux/sys/resource.h: Ditto.
14544         * libc/sys/linux/sys/signal.h: Ditto.
14545         * libc/sys/linux/sys/stat.h: Ditto.
14546         * libc/sys/linux/sys/syscall.h: Ditto.
14547         * libc/sys/linux/sys/termios.h: Ditto.
14548         * libc/sys/linux/sys/time.h: Ditto.
14549         * libc/sys/linux/sys/types.h: Ditto.
14550         * libc/sys/linux/sys/utmp.h: Ditto.
14551         * libc/sys/linux/sys/utsname.h: Ditto.
14552         * libc/sys/linux/sys/wait.h: Ditto.
14553
14554 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
14555
14556         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)
14557         can be a relative path to $(top_srcdir)/install.sh so ensure the
14558         autoconf detected settings are properly passed recursively.
14559         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
14560         properly to subdirectories.
14561         * Makefile.in: Regenerated.
14562
14563 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
14564
14565         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
14566         a floating point register unless really printing a floating
14567         point number.
14568
14569 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
14570
14571         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
14572         Also removed \r's.
14573         (asctoeg): Replaced alloca call with stack array and malloc
14574         when storage exceeds reasonable limit.
14575         (e53toe): Fixed einfin calls missing ldp parameter.
14576         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
14577
14578 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14579
14580
14581         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
14582
14583 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
14584
14585         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
14586         * libc/stdlib/Makefile.in: Regenerated.
14587         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
14588         * libc/stdio/vfieeefp.h: Added long double bit structures.
14589         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
14590         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
14591         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
14592         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
14593         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
14594         _strtold routines used for conversions between character
14595         and long double.
14596
14597 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14598
14599         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
14600
14601 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14602
14603         * libc/include/machine/time.h: RTEMS systems can configure clock
14604         tick rate so use sysconf() to ask.
14605
14606 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14607
14608         * libc/include/sys/times.h: Add reference to POSIX standard.
14609
14610 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14611
14612         * libc/include/sys/time.h: Added BSD timer manipulation macros
14613         used by RTEMS code.
14614
14615 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14616
14617         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
14618         referenced by code generated by gcc 2.8.1.
14619         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to
14620         satisfy gcc.
14621
14622 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14623
14624         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
14625
14626 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14627
14628         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
14629
14630 2000-12-04  Joel Sherrill <joel@OARcorp.com>
14631
14632         * configure.host (or16, or32): New entries for OpenCores
14633         OpenRisc CPUs.
14634         (*-*-rtems*): Add -DNO_EXEC.
14635
14636 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
14637
14638         * libc/include/sys/errno.h: Added comments on many error numbers.
14639         * libc/string/strerror.c: Added some more strings.
14640
14641 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
14642
14643         * libc/sys/sh/syscalls.c (_link): New stub.
14644
14645 2000-11-29  Nick Clifton  <nickc@redhat.com>
14646
14647         * configure.host: Add xscale target.
14648         * libc/machine/xscale: New directory.
14649         * libc/machine/xscale/Makefile.am: New file.
14650         * libc/machine/xscale/Makefile.in: New file.
14651         * libc/machine/xscale/aclocal.m4: New file.
14652         * libc/machine/xscale/configure: New file.
14653         * libc/machine/xscale/configure.in: New file.
14654         * libc/machine/xscale/memchr.S: New file.
14655         * libc/machine/xscale/memcmp.S: New file.
14656         * libc/machine/xscale/memcpy.S: New file.
14657         * libc/machine/xscale/memmove.S: New file.
14658         * libc/machine/xscale/memset.S: New file.
14659         * libc/machine/xscale/strchr.S: New file.
14660         * libc/machine/xscale/strcmp.S: New file.
14661         * libc/machine/xscale/strcpy.S: New file.
14662         * libc/machine/xscale/strlen.S: New file.
14663
14664 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14665
14666         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
14667         avoid compiler warnings.
14668
14669 2000-11-22  Michael Meissner  <meissner@redhat.com>
14670
14671         * libc/posix/execl.c (execl): Don't reference environ directly,
14672         reference it only via a static pointer to avoid problems with some
14673         shared library systems and with different uses of small data where
14674         the user specifies his own version of environ.
14675         * libc/posix/execv.c (execv): Ditto.
14676         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
14677         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
14678         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
14679
14680         * libc/stdlib/getenv.c (environ): Delete unused reference to
14681         environ.
14682
14683         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
14684         colorization.
14685         * libc/stdlib/system.c: Ditto.
14686
14687 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
14688
14689         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
14690         including windows headers.
14691
14692 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
14693
14694         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
14695         * libc/include/dirent.h: Added definition of MAXNAMLEN if
14696         not defined by sys/dirent.h.
14697         * libc/posix/execvp.c: Added include of dirent.h to get
14698         MAXNAMLEN value which used to be in unistd.h.
14699
14700 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14701
14702         * libc/include/sys/types.h: Change type of i to `size_t' in
14703         FD_ZERO macro to avoid compiler warnings.
14704
14705 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
14706
14707         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
14708         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
14709
14710 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
14711
14712         * libc/include/sys/unistd.h: Add defines for sysconf values
14713         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
14714         _SC_AVPHYS_PAGES.
14715
14716 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
14717
14718         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
14719         declarations for __CYGWIN__.
14720
14721 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
14722
14723         * libc/signal/signal.c (__sigtramp_r): ISO C requires
14724         case labels to be integral constant expressions, so
14725         use an if/else tree instead.
14726         (_raise_r): Likewise.
14727
14728 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
14729
14730         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
14731         clipping patch from e-mail reader.
14732
14733 2000-09-13  Will Cohen  <wcohen@redhat.com>
14734
14735         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
14736         Added return value 0.
14737         (_longjmp): Allow longjmp to return value of second argument
14738         passed to it.
14739
14740 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
14741
14742         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
14743         inline code to prevent having to include another header file.
14744
14745 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
14746
14747         * Makefile.am: Fix space vs. tab problem in install-data-local.
14748         * Makefile.in: Regenerate.
14749
14750 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
14751
14752         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
14753         (_EXPARM): New macro for defining a function parameter.
14754         * libc/include/stdlib.h: Use _EXPARM.
14755         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
14756
14757 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
14758
14759         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
14760         required, as documented in the gnu coding standards.
14761         * Makefile.in: Regenerate.
14762
14763 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
14764
14765         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
14766         make O_NDELAY and O_NONBLOCK have the same value.
14767
14768 2000-08-30  Kazu Hirata  <kazu@hxi.com>
14769
14770         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
14771
14772 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14773
14774         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
14775         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
14776         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
14777         everywhere else.
14778
14779 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
14780
14781         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
14782         * libc/include/string.h: Don't include <sys/types.h>,
14783         as it causes really bad namespace pollution.  Don't declare
14784         swab(), it is properly declared in unistd.h.
14785
14786 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14787
14788         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
14789         (broken) support for non-existent /etc/passwd field "comment".
14790
14791 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14792
14793         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
14794         only if _DIRENT_HAVE_D_NAMLEN is defined.
14795         (alphasort): aligned prototype with
14796         libc/sys/cygwin/sys/dirent.h and simplified function body.
14797         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
14798         long telldir (DIR *) as mentioned in annex B of POSIX.1
14799
14800 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14801
14802         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
14803         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
14804         Added __CLI and __STI macros (controlled via
14805         _I386MACH_ALLOW_HW_INTERRUPTS macro).
14806         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
14807         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
14808         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
14809         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
14810         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
14811         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
14812         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
14813         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
14814         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
14815         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
14816         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
14817         for all global entry points.
14818         * libc/machine/i386/setjmp.S: removed code replicated in
14819         libc/machine/i386/i386mach.h and included i386mach.h instead;
14820         Use __CLI and __STI instead of cli and sti.
14821
14822 2000-08-25  DJ Delorie  <dj@redhat.com>
14823
14824         * libc/include/sys/unistd.h (environ): this one isn't from the
14825         DLL, no __IMPORT
14826
14827 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
14828
14829         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
14830         environ when compiling under cygwin since it is already declared in
14831         unistd.h.
14832
14833 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14834
14835         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
14836         like  x << y-z  to the equivalent  x << (y-z).
14837         (d2b): changed if statements with assignment to perform the
14838         assignment prior to the if check.
14839         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
14840         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
14841         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
14842         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
14843         precedence.
14844         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
14845         Added "_execve" prototype (for execl.c, execle.c, execv.c, and
14846         execve.c).
14847         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
14848         precedence.
14849         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
14850         clarify && and || precendence (and to remove pascalism).
14851         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
14852         * libm/math/s_infconst.c: added another pair of braces to all
14853         initializers for __infinity (need three: for __infinity[1] array,
14854         for union __dmath, and for i[2]).
14855
14856 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14857
14858         * libc/stdlib/abort.c: changed description: uses "raise" instead of
14859         "getpid" and "kill"; added: uses "write" and "_exit".
14860         Also included unistd.h for "_exit" prototype.
14861         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
14862         reent.h for "_fork_r" and "_wait_r" prototypes.
14863         (do_system): changed  extern char *environ[] to POSIX-friendly
14864         extern char **environ.
14865         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
14866         prototypes.
14867         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
14868         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
14869         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
14870         * libc/reent/openr.c: included fcntl.h for "open" prototype.
14871         * libc/reent/signalr.c: included signal.h for "kill" prototype,
14872         unistd.h for "getpid" prototype.
14873         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
14874         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
14875         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
14876         prototype.  Also included stdlib.h for "abort", string.h for
14877         "strdup" and "strncmp" prototypes.
14878         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
14879         "strncpy", unistd.h for "read" and "close" prototypes.
14880         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
14881         "strcat" prototypes.
14882
14883 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
14884
14885         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
14886         used later (ifdef __SCLE)
14887         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
14888         used later (ifdef MB_CAPABLE)
14889         * libc/string/memset.c (memset): removed unused variables "count"
14890         and "unaligned_addr"
14891         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
14892         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
14893         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
14894         and "gid"
14895
14896 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14897
14898         * libc/stdlib/envlock.c: changed documented "__env_lock" and
14899         "__env_unlock" prototype from "void *" or "char *" to
14900         "struct _reent *" to match real function.  Also added include
14901         of envlock.h.
14902         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
14903         "__malloc_unlock" prototype from "void *" or "char *" to
14904         "struct _reent *" to match real function.
14905         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
14906         prototypes (for getenv_r.c and setenv_r.c).
14907
14908 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
14909
14910         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
14911         and prototype in cygwin's utmp.h
14912
14913 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
14914
14915         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
14916
14917 2000-08-09  Nick Clifton  <nickc@cygnus.com>
14918
14919         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
14920         epilogue and to allow the functions to be used in a Thumb based
14921         toolchain.
14922
14923 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
14924
14925         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
14926         so size of 0 results in nothing being written to string.
14927         Also fixed code so that when size is non-zero, there is only
14928         a maximum of size - 1 characters written to the array and
14929         a nul terminator is appended at the end.
14930         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
14931
14932 2000-08-01  DJ Delorie  <dj@redhat.com>
14933
14934         * libc/include/sys/config.h: define __IMPORT appropriately
14935         * libc/include/ctype.h (_ctype_): use __IMPORT
14936         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
14937         * libc/include/math.h (__mb_cur_max): ditto
14938         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
14939         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
14940         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
14941         * libc/include/unistd.h (environ): ditto
14942
14943 2000-07-28  Michael Meissner  <meissner@redhat.com>
14944
14945         * libc/include/math.h (__infinity): Declare as an array without
14946         bounds to get around small data support.  Rewrite Cygwin support
14947         to be more general.
14948         * libm/math/s_infconst.c (__infinity): Ditto.
14949         * libm/mathfp/s_infconst.c (__infinity): Ditto.
14950
14951 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
14952
14953         * libc/include/math.h: Use appropriate dll import linkage for
14954         __infinity under Cygwin.
14955
14956 2000-07-13  DJ Delorie  <dj@cygnus.com>
14957
14958         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
14959
14960 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
14961
14962         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
14963         to argument list for AngelSWI_Reason_GetCmdLine.
14964
14965 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
14966
14967         * configure.host: Add support for AVR target.
14968         * libc/include/machine/ieeefp.h: Likewise.
14969         * libc/include/sys/config.h: Likewise.
14970
14971 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
14972
14973         * README: Newlib 1.8.2 must be built in a separate directory
14974         than the sources.
14975
14976 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14977
14978         * libc/include/sys/reent.h (_rand_next): Added __extension__
14979         qualifier as long long type is not strict ANSI.
14980         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
14981         to long long constant.
14982
14983 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
14984
14985         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
14986         `setegid' provided by Cygwin.
14987
14988 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
14989
14990         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
14991         account for Cygwin.
14992
14993 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
14994
14995         * libc/include/sys/reent.h (_rand_next): Changed to
14996         unsigned long long and moved to end of _reent struct in _new union.
14997         (_REENT_INIT): Changed to move _rand_next initialization.
14998         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
14999         linear congruential algorithm that is used by DJGPP.
15000
15001 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
15002
15003         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
15004         * libc/include/sys/config.h: Define __RAND_MAX.
15005
15006 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15007
15008         * libc/stdlib/rand_r.c: New algorithm that meets minimal
15009         standard.
15010
15011 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
15012
15013         * libc/include/string.h: Work around problem with strsignal and gdb.
15014
15015 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
15016
15017         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
15018         * libc/include/malloc.h: Ditto.
15019         * libc/include/process.h: Ditto.
15020         * libc/include/stdio.h: Ditto.
15021         * libc/include/stdlib.h: Ditto.
15022         * libc/include/time.h: Ditto.
15023         * libc/include/machine/setjmp.h: Ditto.
15024         * libc/include/sys/errno.h: Ditto.
15025         * libc/include/sys/signal.h: Ditto.
15026         * libc/include/sys/stat.h: Ditto.
15027         * libc/include/sys/time.h: Ditto.
15028         * libc/include/sys/unistd.h: Ditto.
15029         * libc/include/string.h: Ditto.  strsignal should return a const char *.
15030
15031 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
15032
15033         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
15034         * libm/common/s_log1p.c (log1p): Likewise.
15035         * libm/common/s_scalbn.c (scalbn): Likewise.
15036         * libm/math/e_log.c: Likewise.
15037         * libm/math/e_asin.c: Likewise.
15038         * libm/math/ef_asin.c: Likewise.
15039         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
15040         * libm/math/e_j1.c (pone, qone): Likewise.
15041         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
15042         * libm/math/ef_j1.c (ponef, qonef): Likewise.
15043         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
15044         * libm/mathfp/e_j1.c (pone, qone): Likewise.
15045         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
15046         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
15047
15048 2000-05-19  DJ Delorie  <dj@cygnus.com>
15049
15050         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
15051         (__sread): always read in binary mode
15052         (__swrite): always write in binary mode
15053         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
15054         compatibility issues with different dll versions
15055         * libc/stdio/fopen.c: use __stextmode
15056         * libc/stdio/fdopen.c: ditto
15057         * libc/stdio/freopen.c: ditto
15058         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
15059         * libc/stdio/local.h: declare __stextmode
15060
15061 2000-05-18  DJ Delorie  <dj@cygnus.com>
15062
15063         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
15064
15065 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15066
15067         * libc/include/ctype.h: Changed tolower and toupper macros
15068         to use __extension__ to prevent pedantic warnings.
15069
15070 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
15071
15072         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
15073         structures.
15074
15075 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
15076
15077         * libc/include/machine/ieeefp.h: Add ia64 support.
15078         * configure.host: Likewise.
15079
15080 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
15081
15082         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
15083         month is now padded with space, not zero.  This now conforms to
15084         ANSI standard.
15085
15086 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
15087
15088         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
15089         host or network path") used by cygwin. Add some comments.
15090
15091 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
15092
15093         * libc/include/stdio.h (FILE): define __SCLE for "convert line
15094         endings" for Cygwin.
15095         (__sgetc): convert line endings if needed
15096         (__sputc): ditto
15097         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
15098         * libc/stdio/fopen.c (_fopen_r): ditto
15099         * libc/stdio/freopen.c (freopen): ditto
15100         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
15101         * libc/stdio/fvwrite.c (__sfvwrite): ditto
15102
15103 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
15104
15105         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
15106         post-increment when it is worth it, spacewise.
15107
15108 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
15109
15110         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
15111         * libc/stdio/findfp.c (std): Added declaration of flags and file.
15112         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int
15113         return type.
15114         * libc/stdio/putchar.c (putchar): Added return statement.
15115         * libc/stdio/refill.c (lflush): Added correct parentheses.
15116         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
15117         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which
15118         prints long value to use l qualifier.
15119         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
15120         messages and initialized local values: ilim, ilim1, and spec_case.
15121         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
15122         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
15123         * libc/stdlib/mprec.c: Ditto.
15124         * libc/stdlib/setenv_r.c: Ditto.
15125         * libc/stdlib/strtod.c: Ditto.
15126         * libc/stdlib/strtol.c: Ditto.
15127         * libc/stdlib/strtoul.c: Ditto.
15128         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
15129         * libm/common/sf_log1p.c: Ditto.
15130         * libm/common/sf_scalbn.c: Ditto.
15131         * libm/math/ef_log.c: Ditto.
15132
15133 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
15134
15135         * libc/posix/execvp.c (execvp): Check path for
15136         trailing slash.
15137
15138 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
15139
15140         * libc/include/sys/unistd.h: Add prototypes for
15141         fchmod, fchown, lchown.
15142
15143 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
15144
15145         * acinclude.m4: Changed release to 1.8.2.
15146         * aclocal.m4 configure doc/aclocal.m4 doc/configure
15147           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
15148           libc/machine/configure libc/machine/a29k/aclocal.m4
15149           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15150           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15151           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15152           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15153           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
15154           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15155           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15156           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15157           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15158           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15159           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15160           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15161           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15162           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15163           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15164           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15165           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15166           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
15167           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15168           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
15169           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
15170           libc/machine/v850/configure libc/machine/w65/aclocal.m4
15171           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
15172           libc/machine/z8k/configure libc/sys/aclocal.m4
15173           libc/sys/aclocal.m4 libc/sys/configure
15174           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15175           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
15176           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
15177           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15178           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15179           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15180           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15181           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15182           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15183           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15184           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15185           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
15186           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
15187           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
15188           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
15189           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
15190           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
15191           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
15192           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
15193           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
15194           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
15195           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
15196           libm/aclocal.m4 libm/configure: Regenerated.
15197
15198 2000-03-24  Nick Clifton  <nickc@cygnus.com>
15199
15200         * libc/sys/arm/syscalls.c: Fix compile time warnings.
15201         (do_AngelSWI): Add "cc" to list o registers clobbered.
15202
15203 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15204
15205         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
15206         information to be clobbered by an Angel C library support syscall.
15207
15208 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15209
15210         * libc/stdlib/envlock.c: Fixed comment typo.
15211
15212 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15213
15214         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
15215         code to update nread as each character is processed instead
15216         of using buffer contents which throw away leading zeroes.
15217
15218 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
15219
15220         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
15221
15222 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
15223
15224         * libc/include/string.h: Include <sys/types.h>.
15225
15226 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15227
15228         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
15229         with XSH5, not SVID.
15230
15231 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15232
15233         * libc/include/string.h: Changed last argument back to ssize_t
15234         to make it compatible with XPG4 definition which is
15235         defined in <unistd.h>.  There is a conflict in the SVID 3
15236         and XPG4 definitions and newlib will settle with XPG4.
15237         * libc/string/swab.c: Ditto.
15238
15239 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
15240
15241         * libc/include/string.h: Changed last argument to size_t.
15242         * libc/string/swab.c: Changed last argument to size_t.
15243
15244 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15245
15246         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
15247         (CHEWOUT_FILES): Added unlinkr.def.
15248         * libc/reent/Makefile.in: Rebuilt.
15249         * libc/sys.tex: Include unlinkr.def.
15250         * libc/reent/linkr.c (_unlink_r): Moved to...
15251         * libc/reent/unlinkr.c: ... new file.
15252
15253 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15254
15255         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
15256         (CHEWOUT_FILES): Added swab.def.
15257         * libc/string/Makefile.in: Rebuilt.
15258         * libc/string/string.tex: Include swab.def.
15259         * libc/include/string.h (swab): Declare.
15260         * libc/string/swab.c: New file.
15261
15262 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
15263
15264         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
15265         (CHEWOUT_FILES): Added getw.def and putw.def.
15266         * libc/stdio/Makefile.in: Rebuilt.
15267         * libc/stdio/stdio.tex: Include getw.def and putw.def.
15268         * libc/stdio/getw.c: New file.
15269         * libc/stdio/putw.c: New file.
15270
15271 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15272
15273         * libc/stdio/flags.c (__sflags): Added check that mode[1]
15274         is non-null before looking at mode[2].
15275
15276 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15277
15278         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
15279         * libm/mathfp/sf_atan.c: Ditto.
15280
15281 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
15282
15283         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
15284
15285 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
15286
15287         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
15288         _DOUBLE_IS_32BITS.
15289
15290 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
15291
15292         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
15293         call prior to calling _VFPRINTF_R so reentrant data area is set.
15294         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
15295
15296 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
15297
15298         * libc/stdio/vfscanf.c (limits.h): #include.
15299         (MAX_LONG_LEN): #define.
15300         (__svfscanf): Handle floating point numbers with arbitrary amounts
15301         of leading zeroes.
15302
15303 2000-02-15  Nick Clifton  <nickc@cygnus.com>
15304
15305         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
15306         zero.  Set the blocksize to 1024/
15307
15308 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
15309
15310         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
15311         with line buffering.
15312
15313 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
15314
15315         * acinclude.m4: Changed include directory for winsup headers.
15316         * aclocal.m4 configure libc/aclocal.m4
15317           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
15318           libc/locale/Makefile.in libc/machine/aclocal.m4
15319           libc/machine/configure libc/machine/a29k/aclocal.m4
15320           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
15321           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
15322           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
15323           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
15324           libc/machine/fr30/configure
15325           libc/machine/h8300/aclocal.m4
15326           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
15327           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
15328           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
15329           libc/machine/i386/configure libc/machine/i960/aclocal.m4
15330           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
15331           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
15332           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
15333           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
15334           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
15335           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
15336           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
15337           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
15338           libc/machine/powerpc/configure
15339           libc/machine/sh/aclocal.m4
15340           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
15341           libc/machine/sparc/configure
15342           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
15343           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
15344           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
15345           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
15346           libc/misc/Makefile.in libc/posix/Makefile.in
15347           libc/reent/Makefile.in
15348           libc/signal/Makefile.in
15349           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
15350           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
15351           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
15352           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
15353           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
15354           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
15355           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
15356           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
15357           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
15358           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
15359           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
15360           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
15361           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
15362           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
15363           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
15364           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
15365           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
15366           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
15367           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
15368           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
15369           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
15370           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
15371           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
15372           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
15373           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
15374           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
15375           libm/configure: Regenerated.
15376
15377 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
15378
15379         * libc/stdlib/putenv_r.c (_putenv_r): New file.
15380         * libc/stdlib/strdup_r.c (_strdup_r): New file.
15381         * libc/include/string.h: Added _strdup_r.
15382         * libc/stdlib/putenv.c: Added call to reentrant version.
15383         * libc/stdlib/strdup.c: Ditto.
15384         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
15385         * libc/include/stdlib.h: Ditto.
15386         * libc/stdlib/Makefile.in: Regenerated.
15387         * libc/string/Makefile.in: Regenerated.
15388         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
15389         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
15390         management calls to reentrant versions.
15391         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
15392         * libc/stdlib/wctomb.c: Ditto.
15393         * libc/stdlib/mblen.c: Ditto.
15394         * libc/stdlib/mbstowcs.c: Ditto.
15395         * libc/stdlib/mbtowc.c: Ditto.
15396         * libc/stdlib/getenv.c: Ditto.
15397         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
15398         and _strdup_r.
15399
15400 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
15401
15402         patch from Corinna Vinschen <corinna@vinschen.de>
15403         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
15404
15405 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
15406
15407         * libm/mathfp/s_atangent.c: Fix exponent calculation.
15408         * libm/mathfp/s_ldexp.c: Ditto.
15409         * libm/mathfp/sf_atangent.c: Ditto.
15410         * libm/mathfp/sf_ldexp.c: Ditto.
15411
15412 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15413
15414         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
15415         * libc/include/locale.h: define NULL to be 0.
15416
15417 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
15418
15419         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
15420         function.
15421
15422 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
15423
15424         * libc/machine/mn10300/setjmp.S: Handle am33.
15425
15426 1999-11-26  Nick Clifton  <nickc@cygnus.com>
15427
15428         * libc/sys/arm/syscalls.c: Add function prototypes.
15429         (stack_ptr): Move declaration before function definitions.
15430
15431 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15432
15433         * NEWS: Updated version information.
15434         * README: Ditto.
15435
15436 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
15437
15438         * libc/machine/i386/strchr.S: Fixed alignment test.
15439
15440 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
15441
15442         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
15443
15444 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
15445
15446         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
15447         ensuring that there is space between the two.
15448
15449 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
15450
15451         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
15452         only.
15453
15454 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
15455
15456         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
15457         section
15458
15459 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
15460
15461         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
15462         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
15463
15464 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
15465         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
15466           per POSIX 1003.1b.
15467         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
15468           per POSIX 1003.1b.
15469
15470 1999-09-13  DJ Delorie  <dj@cygnus.com>
15471
15472         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
15473         also.
15474
15475 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15476
15477         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
15478         also note BUFSIZ as its size.
15479
15480 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
15481
15482         * configure.host: Corrected feature defines for RTEMS.
15483         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
15484         * libc/include/sys/stat.h: mkfifo() should take const path arg.
15485         * libc/include/sys/unistd.h: pathconf() should take const path arg.
15486           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
15487           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
15488           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
15489           _PC_PRIO_IO, and _PC_SYNC_IO.
15490         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
15491         * libc/machine/m68k/Makefile.in: Regenerated.
15492         * libc/machine/m68k/strcpy.c: New file.
15493         * libc/machine/m68k/strlen.c: New file.
15494         * libc/stdio/tmpnam.c: Always make the returned name usable.
15495         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
15496         * libc/sys/rtems/sys/dirent.h: New file.
15497         * libc/sys/rtems/sys/types.h: Added dev_t.
15498
15499 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
15500
15501         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
15502
15503 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
15504
15505         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
15506         my patch.
15507
15508 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
15509
15510         patch from Jeff Johnston <jjohnstn@cygnus.com>
15511         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
15512         buffer is not in a useful state.
15513
15514 1999-09-01  Nick Clifton  <nickc@cygnus.com>
15515
15516         * libc/sys/arm/syscalls.c (_link): Add stub.
15517
15518 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
15519
15520         * ftell.c (ftell): Use actual position within buffer for text mode.
15521         * findfp.c (std): Initialize ptr->_bf._size.
15522
15523 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
15524
15525         * libc/include/sys/unistd.h: Add nice() declaration.
15526
15527 1999-08-09  Nick Clifton  <nickc@cygnus.com>
15528
15529         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
15530         declare as a thumb function so that the disassembler will see the
15531         mode change.
15532
15533 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15534
15535         * libc/reent/reent.tex: Updated list of reentrant functions.
15536
15537 1999-07-09  Michael Meissner  <meissner@cygnus.com>
15538
15539         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
15540
15541 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
15542
15543         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
15544         separate file.
15545         * libc/stdio/snprintf.c: New file.
15546         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
15547         separate file.
15548         * libc/stdio/vsnprintf.c: New file.
15549         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
15550         * libc/stdio/Makefile.in: Regenerated.
15551
15552 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
15553
15554         Patch submitted by Egor Duda <deo@logos-m.ru>:
15555         * libc/include/stdio.h: Add declarations for *nprintf.
15556         * libc/stdio/sprintf.c (snprintf): New function.
15557         (_snprintf_r): New function.
15558         * libc/stdio/vsprintf.c (vsnprintf): New function.
15559         (_vnsprintf_r): New function.
15560
15561 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15562
15563         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
15564         * libm/Makefile.am (stmp-targetdep): Ditto.
15565         * libc/Makefile.in: Regenerated.
15566         * libm/Makefile.in: Ditto.
15567
15568 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15569
15570         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
15571         * libm/Makefile.am (stmp-targetdep): Ditto.
15572         * libc/Makefile.in: Regenerated.
15573         * libm/Makefile.in: Ditto.
15574
15575 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
15576
15577         * Makefile.am: Removed dependencies on all-recursive and added "."
15578         to the SUBDIRS list to prevent infinite recursion from occurring.
15579         Also removed any references to EXTRA_DATA.
15580         * libc/Makefile.am: Ditto.
15581         * libc/machine/Makefile.am: Ditto.
15582         * libc/machine/i386/Makefile.am: Ditto.
15583         * libm/Makefile.am: Ditto.
15584         * libc/sys/Makefile.am: Ditto.
15585         * Makefile.in: Regenerated.
15586         * aclocal.m4: Ditto.
15587         * configure: Ditto.
15588         * doc/Makefile.in: Ditto.
15589         * doc/aclocal.m4: Ditto.
15590         * doc/configure: Ditto.
15591         * libc/Makefile.in: Ditto.
15592         * libc/aclocal.m4: Ditto.
15593         * libc/configure: Ditto.
15594         * libc/machine/Makefile.in: Ditto.
15595         * libc/machine/aclocal.m4: Ditto.
15596         * libc/machine/configure: Ditto.
15597         * libc/machine/mn10300/Makefile.in: Ditto.
15598         * libc/machine/mn10300/aclocal.m4: Ditto.
15599         * libc/machine/mn10300/configure: Ditto.
15600         * libc/sys/Makefile.in: Ditto.
15601         * libc/sys/aclocal.m4: Ditto.
15602         * libc/sys/configure: Ditto.
15603         * libm/Makefile.in: Ditto.
15604         * libm/aclocal.m4: Ditto.
15605         * libm/configure: Ditto.
15606
15607 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15608
15609         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
15610
15611 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
15612
15613         * libc/include/stdlib.h: Add reentrant routines.
15614         * libc/stdlib/Makefile.am: Add reentrant routines.
15615         * libc/stdlib/Makefile.in: Ditto.
15616         * libc/stdlib/envlock.c: New file.
15617         * libc/stdlib/envlock.h: New file.
15618         * libc/stdlib/getenv.c: Modify to call reentrant routine.
15619         * libc/stdlib/getenv_r.c: New file.
15620         * libc/stdlib/mblen.c: Modify to call reentrant routine.
15621         * libc/stdlib/mblen_r.c: New file.
15622         * libc/stdlib/setenv.c: Modify to call reentrant routine.
15623         * libc/stdlib/setenv_r.c: New file.
15624         * libc/stdlib/stdlib.tex: Add reentrant routines.
15625
15626 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
15627
15628         * libc/include/sys/types.h: Define __MS_types__ whenever
15629         cygwin or win32.
15630
15631 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
15632
15633         * libc/include/machine/ieeefp.h: Always default to little
15634         endian if Windows, regardless of architecture.
15635         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
15636         regardless of architecture.
15637
15638 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
15639
15640         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
15641         _WIN32 isn't defined.
15642
15643 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15644
15645         * libm/common/s_rint.c (rint): Add volatile qualifier for
15646         intermediate value w.
15647         * libm/common/sf_rint.c (rintf): Ditto.
15648
15649 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15650
15651         * libc/sys/arm/syscalls.c (remap_handle): Added check to
15652         ensure that std streams are initialized before being referenced.
15653
15654 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
15655
15656         * README: Update reference to newlib@cygnus.com new
15657         newlib@sourceware.cygnus.com address.
15658
15659 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
15660
15661         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
15662         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
15663         defined, even if _WIN32 isn't defined.
15664
15665 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
15666
15667         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
15668
15669 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
15670
15671         * libc/include/sys/reent.h: Change Long and ULong to __Long and
15672         __ULong.
15673         * libc/stdlib/dtoa.c: Ditto.
15674         * libc/stdlib/mprec.c: Ditto.
15675         * libc/stdlib/mprec.h: Ditto.
15676         * libc/stdlib/strtod.c: Ditto.
15677
15678 1999-04-21  Nick Clifton  <nickc@cygnus.com>
15679
15680         * configure.host (mcore): Remove mcore machine directory.
15681
15682 1999-04-18  Nick Clifton  <nickc@cygnus.com>
15683
15684         * libc/include/machine/ieeefp.h: Add support for mcore target.
15685         * libc/include/machine/setjmp.h: Add support for mcore target.
15686         * configure.host: Add support for mcore target.
15687
15688 1999-04-13  Mark Salter  <msalter@cygnus.com>
15689
15690         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
15691         * libc/sys/arm/syscalls.c: Added isatty.
15692
15693 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15694
15695         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
15696         insert zeroes after significant digits.
15697
15698 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15699
15700         * libc/stdio/vfprintf.c (cvt): Changed floating point
15701         cvt routine to use union used by dtoa to properly determine
15702         if the sign bit is on or not.
15703         * libc/stdio/vfieeefp.h: New file
15704
15705 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15706
15707         * aclocal.m4: Regenerated.
15708         * configure: Regenerated.
15709
15710 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15711
15712         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
15713         f_tanf reference.
15714         * libc/machine/i386/Makefile.in: Regenerated.
15715
15716 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15717
15718         * acinclude.m4: Changed to work with new automake.
15719         * configure: Regenerated.
15720         * libc/machine/i386/aclocal.m4: Regenerated.
15721         * libc/machine/i386/configure: Regenerated.
15722
15723 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
15724
15725         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
15726         for telldir() and seekdir().  Rename unused structure element
15727         for use with these two routines.
15728
15729 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15730
15731         * libc/time/mktime.c (validate_structure): Multiple fixes to
15732         code to handle cases where input fields are outside valid ranges.
15733         * libc/stdlib/div.c (div): Modified invalid rounding check.
15734         * libc/stdlib/ldiv.c (ldiv): Ditto.
15735
15736 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15737
15738         * libc/machine/i386/memcpy.S: Performance rewrite.
15739         * libc/machine/i386/memmove.S: Ditto.
15740         * libc/machine/i386/i386mach.h: Added more register definitions.
15741         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
15742         option used.
15743         * libc/include/machine/fastmath.h: Add definitions for x86
15744         fast-math routines.
15745
15746 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15747
15748         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
15749
15750 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
15751
15752         Adjust newlib headers for new Cygwin Win32 API header files:
15753         * libc/include/sys/time.h: Check _WINSOCK_H rather than
15754         _GNU_H_WINDOWS32_SOCKETS.
15755         * libc/include/sys/types.h: Ditto.
15756
15757 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15758
15759         *include/sys/reent.h: Add checks for size of Bigint element Long.
15760         *libc/dtoa.c: Change routines to use generic Long type.
15761         *libc/mprec.c: Change routines to use generic Long type.
15762         *libc/mprec.h: Change routines to use generic Long type.
15763
15764 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
15765
15766         * libc/Makefile.am: Add .def files.
15767         * libc/Makefile.in: Regenerate.
15768         * libc/e_acosh.c: Documentation update.
15769         * libc/e_atanh.c: Documentation update.
15770         * libc/e_hypot.c: Documentation update.
15771         * libc/e_remainder.c: Documentation update.
15772         * libc/er_lgamma.c: Documentation update.
15773         * libc/mathfp.tex: Documentation update.
15774         * libc/s_acos.c: Documentation update.
15775         * libc/s_atan.c: Documentation update.
15776         * libc/s_atan2.c: Documentation update.
15777         * libc/s_cosh.c: Documentation update.
15778         * libc/s_fmod.c: Documentation update.
15779         * libc/s_isnan.c: Documentation update.
15780         * libc/s_log10.c: Documentation update.
15781         * libc/s_pow.c: Documentation update.
15782         * libc/w_jn.c: Documentation update.
15783
15784 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
15785
15786         * aclocal.m4: Regenerate.
15787         * configure: Regenerate.
15788
15789 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15790
15791         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
15792         to return 1 if user specified return code is 0.
15793         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
15794
15795 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15796
15797         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
15798         to save the return address.  Fixed longjmp to return to the original
15799         calling address of setjmp and to return the user specified return code
15800         rather than default to 1.
15801         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
15802
15803 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15804
15805         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
15806
15807 1999-02-10  Nick Clifton  <nickc@cygnus.com>
15808
15809         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
15810         volatile so that its assignments will not be discarded.
15811
15812 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15813
15814         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
15815         be __STRICT_ANSI__ which is generated by compiler.
15816         * libc/include/ctype.h: Ditto.
15817         * libc/include/math.h: Ditto.
15818         * libc/include/stdio.h: Ditto.
15819         * libc/include/stdlib.h: Ditto.
15820         * libc/include/string.h: Ditto.
15821         * libc/include/sys/signal.h: Ditto.
15822
15823 1999-02-08  Nick Clifton  <nickc@cygnus.com>
15824
15825         * configure.host: Add support for StrongARM target.
15826
15827 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15828
15829         * libc/string/strncpy.c (strncpy): Removed redundant code
15830         that was copying bytes if data unaligned.
15831
15832 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
15833
15834         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
15835         mbstowcs.def, and wcstombs.def.
15836
15837 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
15838
15839         * libc/include/sys/errno.h: Add Cygwin errno.
15840         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
15841         is specified.
15842
15843 1999-01-29  Nick Clifton  <nickc@cygnus.com>
15844
15845         * libc/sys/arm/syscalls.c: Move C library functions into seperate
15846         file.
15847
15848         * libc/sys/arm/libcfunc.c: New file containing C library functions
15849         from syscalls.c
15850
15851         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
15852         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
15853
15854
15855 1999-01-27  Michael Meissner  <meissner@cygnus.com>
15856
15857         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
15858         type, and cut size in half so that the jmp_buf array is guaranteed
15859         to be aligned on a 64-bit boundary.
15860
15861 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15862
15863         * libc/string/strings.tex: Added information about
15864         strcasecmp and strncasecmp.
15865         * libc/stdlib/stdlib.tex: Added missing information
15866         about mblen, mbstowcs, and wcstombs.
15867         * libc/string/strchr.c: Changed how mask is built to use
15868         shift operators so register will be used instead of storage.
15869
15870 1999-01-22  DJ Delorie  <dj@cygnus.com>
15871
15872         * libc/include/stdlib.h: don't use dllimport if we're building
15873         newlib, since it's inside cygwin.dll
15874
15875 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
15876
15877         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
15878         _ctype_ under cygwin.
15879
15880 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
15881
15882         * include/stdlib.h: Fix typo from previous checkin.
15883
15884 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
15885
15886         * include/ctype.h: Use __declspec(dllimport) method for exporting
15887         variable from cygwin DLL.
15888         * include/time.h: Ditto.
15889         * sys/errno.h: Ditto.
15890         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
15891         * libc/locale/locale.c: Use __declspec(dllexport) method for
15892         exporting variable from cygwin DLL.
15893
15894 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
15895
15896         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
15897         access of bogus pointer will result in SIGSEGV.
15898
15899 1999-01-07  Nick Clifton  <nickc@cygnus.com>
15900
15901         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
15902         of an underscore prefix to function names.
15903
15904 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
15905
15906         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
15907         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
15908
15909 1998-12-31  Michael Meissner  <meissner@cygnus.com>
15910
15911         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
15912         to `%' if not already defined.
15913
15914 1998-12-30  Michael Meissner  <meissner@cygnus.com>
15915
15916         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
15917         arguments const char *, not char *.
15918         * libc/include/stdio.h (_tempnam_r): Ditto.
15919
15920         * libc/include/sys/reent.h (struct _reent): The _sig_func type
15921         points to a function taking an integer, not void.
15922
15923 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
15924
15925         * configure.host: Add a define for Cygwin builds.
15926         * libc/include/ctype.h: Don't use dll imported variables in newlib.
15927
15928 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
15929
15930         * libc/include/ctype.h: Define _ctype_ as dll imported variable
15931         for use with Cygwin.
15932         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
15933         dll imported variables for use with Cygwin.
15934         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
15935         as a dll imported variable for Cygwin.
15936
15937 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
15938
15939         * libc/include/sys/unistd.h: Add proto for getpass.
15940
15941 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
15942
15943         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
15944         alphasort.
15945
15946 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
15947
15948         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
15949         not posix_path_list_p.
15950
15951 1998-12-15  Nick Clifton  <nickc@cygnus.com>
15952
15953         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
15954         a signed int.
15955
15956 1998-12-13  Nick Clifton  <nickc@cygnus.com>
15957
15958         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
15959
15960 1998-12-12  Nick Clifton  <nickc@cygnus.com>
15961
15962         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
15963         <msalter@cygnus.com>
15964         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
15965         * libc/machine/fr30/Makefile.in: Regenerated.
15966
15967 1998-12-11  Nick Clifton  <nickc@cygnus.com>
15968
15969         * configure.host: Remove use of libc/sys for FR30 port.
15970         * libc/sys/fr30: Remove directory (replaced by libgloss).
15971
15972 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
15973
15974         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
15975         * libc/string/strncat.c (ALIGNED): Ditto.
15976
15977 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
15978
15979         * libc/include/sys/time.h: include sys/types.h
15980
15981 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15982
15983         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
15984         comparison found when checking word at a time.
15985
15986 1998-12-04  Nick Clifton  <nickc@cygnus.com>
15987
15988         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
15989
15990 1998-12-03  Nick Clifton  <nickc@cygnus.com>
15991
15992         * libc/sys/fr30/syscalls.c (_times): New function stub.
15993
15994 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
15995
15996         * configure.host (mach_add_setjmp): Replaced mach_add_objs
15997         with mach_add_setjmp flag which indicates if setjmp should
15998         be added to the machine directory objects.
15999         * acinclude.m4: Removed reference to mach_add_objs.
16000         * aclocal.m4: Regenerated.
16001         * Makefile.in: Regenerated.
16002         * configure: Regenerated.
16003         * libc/aclocal.m4: Regenerated.
16004         * libc/Makefile.in: Regenerated.
16005         * libc/configure: Regenerated.
16006         * libc/machine/aclocal.m4: Regenerated.
16007         * libc/machine/Makefile.in: Regenerated.
16008         * libc/machine/configure: Regenerated.
16009         * libc/machine/i386/aclocal.m4: Regenerated.
16010         * libc/machine/i386/Makefile.am: Altered to selectively add
16011         setjmp.S to the src files list.
16012         * libc/machine/i386/Makefile.in: Regenerated.
16013         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
16014         * libc/machine/i386/configure: Regenerated.
16015
16016 1998-12-02  Nick Clifton  <nickc@cygnus.com>
16017
16018         * libc/sys/fr30/crt0.s (_start): Fix function names.
16019
16020         * libc/machine/fr30: New directory
16021         * libc/machine/fr30/Makefile.am: New file.
16022         * libc/machine/fr30/Makefile.in: New generated file.
16023         * libc/machine/fr30/configure.in: New file.
16024         * libc/machine/fr30/configure: New generated file.
16025         * libc/machine/fr30/aclocal.m4: New generated file.
16026         * libc/sys/fr30/Makefile.am: New file.
16027         * libc/sys/fr30/Makefile.in: New generated file.
16028         * libc/sys/fr30/configure.in: New file.
16029         * libc/sys/fr30/configure: New generated file.
16030         * libc/sys/fr30/syscalls.c: New file.
16031
16032 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
16033
16034         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
16035
16036 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
16037
16038         * libc/time/strftime.c (strftime): Also handle %y for years before
16039         1900.
16040
16041 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
16042
16043         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
16044         UNIX convention.  Perform tolower on characters before comparing
16045         them rather than use toupper.
16046         * libc/string/strncasecmp.c (strncasecmp): Ditto.
16047
16048 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16049
16050         * configure.host: Added using i386 machine directory
16051         for all x86 cross-compiler and configuring
16052         which added object files to use via new "mach_add_objs" variable.
16053         * configure: Regenerated.
16054         * libc/configure: Regenerated.
16055         * libc/Makefile.in: Regenerated.
16056         * libc/aclocal.m4: Regenerated.
16057         * libc/ctype/Makefile.in: Regenerated.
16058         * libc/errno/Makefile.in: Regenerated.
16059         * libc/locale/Makefile.in: Regenerated.
16060         * libc/machine/Makefile.in: Regenerated.
16061         * libc/machine/aclocal.m4: Regenerated.
16062         * libc/machine/configure: Regenerated.
16063         * libc/posix/Makefile.in: Regenerated.
16064         * libc/reent/Makefile.in: Regenerated.
16065         * libc/signal/Makefile.in: Regenerated.
16066         * libc/stdio/Makefile.in: Regenerated.
16067         * libc/stdlib/Makefile.in: Regenerated.
16068         * libc/string/Makefile.in: Regenerated.
16069         * libc/string/memmove.c: Optimized code to use memcpy
16070         logic when performing a non-destructive copy.
16071         * libc/string/strncmp.c: Altered code to allow building
16072         optimized for size or speed.
16073         * libc/syscalls/Makefile.in: Regenerated.
16074         * libc/time/Makefile.in: Regenerated.
16075         * libc/unix/Makefile.in: Regenerated.
16076         * libc/machine/i386/Makefile.am: Added new files and reference
16077         to "mach_add_objs" to indicate optional object files.
16078         * libc/machine/i386/Makefile.in: Regenerated.
16079         * libc/machine/i386/aclocal.m4: Regenerated.
16080         * libc/machine/i386/configure: Regenerated.
16081         * libc/machine/i386/memchr.S: New file that implements
16082         function in Intel assembler.
16083         * libc/machine/i386/memcmp.S: ditto.
16084         * libc/machine/i386/memcpy.S: ditto.
16085         * libc/machine/i386/memmove.S: ditto.
16086         * libc/machine/i386/memset.S: ditto.
16087         * libc/machine/i386/strchr.S: ditto.
16088         * libc/machine/i386/strlen.S: ditto.
16089         * libc/machine/i386/f_atan2.S: New file that implements
16090         fast version of math function to be used by compiler when
16091         --ffast_math compile option is used.
16092         * libc/machine/i386/f_atan2f.S: ditto.
16093         * libc/machine/i386/f_exp.c: ditto.
16094         * libc/machine/i386/f_expf.c: ditto.
16095         * libc/machine/i386/f_frexp.S: ditto.
16096         * libc/machine/i386/f_frexpf.S: ditto.
16097         * libc/machine/i386/f_ldexp.S: ditto.
16098         * libc/machine/i386/f_ldexpf.S: ditto.
16099         * libc/machine/i386/f_log.S: ditto.
16100         * libc/machine/i386/f_logf.S: ditto.
16101         * libc/machine/i386/f_log10.S: ditto.
16102         * libc/machine/i386/f_log10f.S: ditto.
16103         * libc/machine/i386/f_math.h: New file.
16104         * libc/machine/i386/f_pow.c: ditto.
16105         * libc/machine/i386/f_powf.S: ditto.
16106         * libc/machine/i386/f_tan.S: ditto.
16107         * libc/machine/i386/f_tan.S: ditto.
16108         * libc/machine/i386/i386mach.h: New file.
16109
16110 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
16111
16112         patch from Mumit Khan <khan@xraylith.wisc.edu>
16113         * libc/include/stdio.h (tempnam): Add prototype.
16114         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
16115         (tempnam): Adhere to prototype.
16116
16117 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
16118
16119         * Makefile.am: Add default for AR_FLAGS.
16120         * Makefile.in: Regenerate.
16121
16122 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
16123
16124         * libc/include/time.h: move __cplusplus wrapper after includes
16125         * libc/include/sys/time.h: ditto.  If Cygwin, include
16126         sys/select.h.
16127         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
16128
16129 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
16130
16131         * libc/time/strftime.c (strftime): Handle %y after year 2000.
16132
16133 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
16134
16135         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
16136         abnormnal end-of-crt0 marker.
16137
16138 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
16139
16140         * libc/sys/fr30/crt0.s: New file/directory.
16141         * libc/include/machine/setjmp.h: Add FR30 target.
16142         * libc/include/machine/ieeefp.h: Add FR30 target.
16143         * configure.host: Add FR30 target.
16144
16145 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16146
16147         * libm/math: Files that are duplicated in common directory removed.
16148         * libm/math/fdlibm.h: Removed.
16149         * libm/math/s_cbrt.c: Removed.
16150         * libm/math/s_copysign.c: Removed.
16151         * libm/math/s_expm1.c: Removed.
16152         * libm/math/s_finite.c: Removed.
16153         * libm/math/s_ilogb.c: Removed.
16154         * libm/math/s_infinity.c: Removed.
16155         * libm/math/s_lib_ver.c: Removed.
16156         * libm/math/s_log1p.c: Removed.
16157         * libm/math/s_logb.c: Removed.
16158         * libm/math/s_matherr.c: Removed.
16159         * libm/math/s_modf.c: Removed.
16160         * libm/math/s_nan.c: Removed.
16161         * libm/math/s_nextafter.c: Removed.
16162         * libm/math/s_rint.c: Removed.
16163         * libm/math/s_scalbn.c: Removed.
16164         * libm/math/sf_cbrt.c: Removed.
16165         * libm/math/sf_copysign.c: Removed.
16166         * libm/math/sf_expm1.c: Removed.
16167         * libm/math/sf_finite.c: Removed.
16168         * libm/math/sf_ilogb.c: Removed.
16169         * libm/math/sf_infinity.c: Removed.
16170         * libm/math/sf_log1p.c: Removed.
16171         * libm/math/sf_logb.c: Removed.
16172         * libm/math/sf_modf.c: Removed.
16173         * libm/math/sf_nan.c: Removed.
16174         * libm/math/sf_nextafter.c: Removed.
16175         * libm/math/sf_rint.c: Removed.
16176         * libm/math/sf_scalbn.c: Removed.
16177         * libm/math/Makefile.am: Removed references to deleted files (above).
16178         * libm/math/Makefile.in: Regenerated.
16179         * libm/Makefile.am: Added common directory to math.
16180         * libm/Makefile.in: Regenerated.
16181
16182 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16183
16184         * libm/mathfp: Add non-ANSI functions.
16185         * libm/mathfp/e_acosh.c acosh(): New file.
16186         * libm/mathfp/e_atanh.c atanh(): New file.
16187         * libm/mathfp/e_hypot.c hypot(): New file.
16188         * libm/mathfp/e_j0.c j0(): New file.
16189         * libm/mathfp/e_j1.c j1(): New file.
16190         * libm/mathfp/e_remainder.c remainder(): New file.
16191         * libm/mathfp/e_scalb.c scalb(): New file.
16192         * libm/mathfp/ef_acosh.c acoshf(): New file.
16193         * libm/mathfp/ef_atanh.c atanhf(): New file.
16194         * libm/mathfp/ef_hypot.c hypotf(): New file.
16195         * libm/mathfp/ef_j0.c j0f(): New file.
16196         * libm/mathfp/ef_j1.c j1f(): New file.
16197         * libm/mathfp/ef_remainder.c remainderf(): New file.
16198         * libm/mathfp/ef_scalb.c scalbf(): New file.
16199         * libm/mathfp/er_gamma.c gamma_r: New file.
16200         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
16201         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
16202         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
16203         * libm/mathfp/w_cabs.c cabs(): New file.
16204         * libm/mathfp/w_drem.c drem(): New file.
16205         * libm/mathfp/w_jn.c jn(): New file.
16206         * libm/mathfp/wf_cabs.c cabsf(): New file.
16207         * libm/mathfp/wf_drem.c dremf(): New file.
16208         * libm/mathfp/wf_jn.c jnf(): New file.
16209
16210 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
16211
16212         * libc/sys/cygwin32: remove directory and contents
16213         * libc/sys/cygwin: and add back, losing the "32".
16214         * configure.host: check for cygwin* instead of cygwin32.
16215         * acinclude.m4: ditto.
16216         * aclocal.m4: regenerate with aclocal
16217         * configure: regenerate with autoconf
16218
16219 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
16220
16221         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
16222         for length
16223
16224 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16225
16226         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
16227         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
16228         to make rand/srand, strtok, asctime, localtime, w_gamma,
16229         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
16230         time.h to bring in struct tm definition.
16231         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
16232         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
16233         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
16234         instead of static variable.
16235         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
16236         struct reent instead of static variable.
16237         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
16238         struct reent instead of static variable.
16239         * libm/math/Makefile.am: Removed s_signgam.o.
16240         * libm/math/Makefile.in: Regenerated.
16241         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
16242         struct reent instead of global variable 'signgam'.
16243         * libm/math/w_lgamma.c (lgamma): Likewise.
16244         * libm/math/wf_gamma.c (gammaf): Likewise.
16245         * libm/math/wf_lgamma.c (lgammaf): Likewise.
16246         * libm/math/s_signgam.c: Removed.
16247         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
16248         to be const.
16249         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
16250         to be const.
16251         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
16252         libc/include/reent.h.
16253         * libc/reent/Makefile.in: Regenerated.
16254         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
16255         to be const.
16256         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
16257         'JIS_action_table' to be const.
16258         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
16259
16260 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
16261
16262         * acinclude.m4:  $with_target_subdir should default to '.'
16263         or confusion results when configuring in same directory as sources.
16264         * Regenerate all aclocal.m4 and configure files.
16265
16266 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16267
16268         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
16269         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
16270         for platforms where sizeof(size_t) < sizeof(long) via
16271         SIZE_T_SMALLER_THAN_LONG macro.
16272
16273 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16274
16275         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
16276         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
16277         which sets _CLOCKS_PER_SEC_ for selected machines.
16278         * libc/include/machine/time.h: New file.
16279
16280 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16281
16282         * libc/syscalls/sysexecve.c: New file.
16283         * libc/syscalls/sysgettod.c: New file.
16284         * libc/syscalls/systimes.c: New file.
16285         * libc/syscalls/Makefile.am: Added new objects.
16286         * libc/syscalls/Makefile.in: Regenerated.
16287         * libc/include/_syslist.h (_execve): Moved define in file.
16288         * libc/include/reent.h:  Added _execve_r declaration.
16289         * libc/Makefile.in: Regenerated.
16290         * libc/ctype/Makefile.in: Regenerated.
16291         * libc/errno/Makefile.in: Regenerated.
16292         * libc/locale/Makefile.in: Regenerated.
16293         * libc/machine/Makefile.in: Regenerated.
16294         * libc/misc/Makefile.in: Regenerated.
16295         * libc/posix/Makefile.in: Regenerated.
16296         * libc/reent/Makefile.in: Regenerated.
16297         * libc/reent/execr.c (_execve_r): Added _execve_r function.
16298         * libc/signal/Makefile.in: Regenerated.
16299         * libc/stdio/Makefile.in: Regenerated.
16300         * libc/time/Makefile.in: Regenerated.
16301         * libc/unix/Makefile.in: Regenerated.
16302         * libm/mathfp/Makefile.in: Regenerated.
16303
16304 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16305
16306         * libc/string/Makefile.in: Regenerated.
16307         * libc/string/memchr.c (memchr): Moved code to reduce object size.
16308         * libc/string/memcpy.c (memcpy): Ditto.
16309         * libc/string/memcmp.c (memcmp): Ditto.
16310         * libc/string/memset.c (memset): Ditto.
16311         * libc/string/strchr.c (strchr): Ditto.
16312         * libc/string/strcmp.c (strcmp): Ditto.
16313         * libc/string/strcpy.c (strcpy): Ditto.
16314         * libc/string/strlen.c (strlen): Ditto.
16315
16316 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16317
16318         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
16319         to generate aclocal.m4.
16320         * libm/Makefile.in: Regenerated.
16321         * libm/aclocal.m4: Regenerated.
16322         * libm/configure: Regenerated.
16323         * libm/math/Makefile.in: Regenerated.
16324         * libm/mathfp/Makefile.in: Regenerated.
16325
16326 1998-09-25  Mark Salter  <msalter@cygnus.com>
16327
16328         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
16329         by adding leading and trailing underscores to symbol names.
16330
16331 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
16332
16333         * Makefile.in: Add default for AR_FLAGS.
16334
16335 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
16336
16337         patch from ian@airs.com (Ian Taylor):
16338         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
16339         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
16340         is needed for detecting the build machine.  Required for
16341         cygwin native builds.
16342
16343         * Regenerate all aclocal.m4 and configure files.
16344
16345 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
16346
16347         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
16348         used to start with LC.
16349
16350 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16351
16352         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
16353         (longjmp): Likewise.
16354
16355 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16356
16357         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
16358         the test for small number of bytes.
16359
16360 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
16361
16362         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
16363         math library that uses floating point algorithms instead of the old
16364         libm.
16365         * Makefile.in: Regenerate with automake version 1.3b.
16366         * configure: Rebuild.
16367         * libm/Makefile.in: Regenerate with automake version 1.3b.
16368         * libm/aclocal.m4: Regenerate.
16369         * libm/configure: Rebuild.
16370         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
16371         * libm/acinclude.m4: Define macros for configure.in.
16372         * libm/config.h.in: Generate.
16373         * libm/mathfp/Makefile.am: New file.
16374         * libm/mathfp/Makefile.in: Generate.
16375         * libm/mathfp/s_acos.c (acos): New file.
16376         * libm/mathfp/s_asin.c (asin): New file.
16377         * libm/mathfp/s_asine.c (asine): New file.
16378         * libm/mathfp/s_atan.c (atan): New file.
16379         * libm/mathfp/s_atan2.c (atan2): New file.
16380         * libm/mathfp/s_atangent.c (atangent): New file.
16381         * libm/mathfp/s_ceil.c (ceil): New file.
16382         * libm/mathfp/s_copysign.c (copysign): New file.
16383         * libm/mathfp/s_cos.c (cos): New file.
16384         * libm/mathfp/s_cosh.c (cosh): New file.
16385         * libm/mathfp/s_exp.c (exp): New file.
16386         * libm/mathfp/s_fabs.c (fabs): New file.
16387         * libm/mathfp/s_finite.c (finite): New file.
16388         * libm/mathfp/s_floor.c (floor): New file.
16389         * libm/mathfp/s_fmod.c (fmod): New file.
16390         * libm/mathfp/s_frexp.c (frexp): New file.
16391         * libm/mathfp/s_infconst.c: New file.
16392         * libm/mathfp/s_isinf (isinf).c: New file.
16393         * libm/mathfp/s_isnan.c (isnan): New file.
16394         * libm/mathfp/s_ispos.c (ispos): New file.
16395         * libm/mathfp/s_ldexp.c (ldexp): New file.
16396         * libm/mathfp/s_log.c (log): New file.
16397         * libm/mathfp/s_log10.c (log10): New file.
16398         * libm/mathfp/s_logarithm.c (logarithm): New file.
16399         * libm/mathfp/s_mathcnst.c: New file.
16400         * libm/mathfp/s_modf (modf).c: New file.
16401         * libm/mathfp/s_numtest.c (numtest): New file.
16402         * libm/mathfp/s_pow.c (pow): New file.
16403         * libm/mathfp/s_scalbn.c (scalbn): New file.
16404         * libm/mathfp/s_sin (sin).c: New file.
16405         * libm/mathfp/s_sine.c (sine): New file.
16406         * libm/mathfp/s_sineh.c (sineh): New file.
16407         * libm/mathfp/s_sinf.c (sinf): New file.
16408         * libm/mathfp/s_sinh.c (sinh): New file.
16409         * libm/mathfp/s_sqrt.c (sqrt): New file.
16410         * libm/mathfp/s_tan.c (tan): New file.
16411         * libm/mathfp/s_tanh.c (tanh): New file.
16412         * libm/mathfp/sf_acos.c (acosf): New file.
16413         * libm/mathfp/sf_asin.c (asinf): New file.
16414         * libm/mathfp/sf_asine.c (asinef): New file.
16415         * libm/mathfp/sf_atan.c (atanf): New file.
16416         * libm/mathfp/sf_atan2.c (atan2f): New file.
16417         * libm/mathfp/sf_atangent.c (atangent): New file.
16418         * libm/mathfp/sf_ceil.c (ceilf): New file.
16419         * libm/mathfp/sf_copysign.c (copysignf): New file.
16420         * libm/mathfp/sf_cos.c (cosf): New file.
16421         * libm/mathfp/sf_cosh.c (coshf): New file.
16422         * libm/mathfp/sf_exp.c (expf): New file.
16423         * libm/mathfp/sf_fabs.c (fabsf): New file.
16424         * libm/mathfp/sf_finite.c (finitef): New file.
16425         * libm/mathfp/sf_floor.c (floorf): New file.
16426         * libm/mathfp/sf_fmod.c (fmodf): New file.
16427         * libm/mathfp/sf_frexp.c (frexpf): New file.
16428         * libm/mathfp/sf_isinf.c (isinff): New file.
16429         * libm/mathfp/sf_isnan.c (isnanf): New file.
16430         * libm/mathfp/sf_ispos.c (isposf): New file.
16431         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
16432         * libm/mathfp/sf_log.c (logf): New file.
16433         * libm/mathfp/sf_log10.c (log10f): New file.
16434         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
16435         * libm/mathfp/sf_modf.c (modff): New file.
16436         * libm/mathfp/sf_numtest.c (numtestf): New file.
16437         * libm/mathfp/sf_pow.c (powf): New file.
16438         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
16439         * libm/mathfp/sf_sin.c (sinf): New file.
16440         * libm/mathfp/sf_sine.c (sinef): New file.
16441         * libm/mathfp/sf_sineh.c (sinehf): New file.
16442         * libm/mathfp/sf_sinh.c (sinhf): New file.
16443         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
16444         * libm/mathfp/sf_tan.c (tanf): New file.
16445         * libm/mathfp/sf_tanh.c (tanhf): New file.
16446         * libm/mathfp/zmath.h: New file.
16447
16448 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16449
16450         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
16451         exit if it has been overwritten by pre-fetching in delay slot.
16452
16453 1998-09-01  Michael Meissner  <meissner@cygnus.com>
16454
16455         * Makefile.am (tooldir): Add in host_alias, so that multilib
16456         libraries are installed in the directory the compiler looks in.
16457         * Makefile.in: Regenerate.
16458
16459         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
16460
16461 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16462
16463         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
16464         ahead of test for number of bytes being moved.
16465
16466 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
16467
16468         * libc/include/sys/unistd.h: Nothing special needed for
16469         _exit under cygwin.
16470
16471 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
16472
16473         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
16474         conform to user label naming conventions.
16475
16476 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
16477
16478         * libc/sys/cygwin32/sys/utime.h: variable names in
16479         protos should start with two leading underscores
16480         * libc/include/string.h: ditto
16481         * libc/include/sys/signal.h: ditto
16482         * libc/include/sys/stat.h: ditto
16483         * libc/include/sys/time.h: ditto
16484         * libc/include/sys/unistd.h: ditto
16485         * libc/include/ctype.h: ditto
16486         * libc/include/stdlib.h: ditto
16487         * libc/include/sys/reent.h: struct _atexit function ptr takes a
16488         void, same with _sig_func.
16489
16490 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16491
16492         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
16493         for MB_CAPABLE to reduce code size when newlib is not configured
16494         with --enable-newlib-mb.
16495         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
16496         mbtowc_r.o to minimize size.
16497         * libc/stdlib/Makefile.in: Rebuild.
16498
16499 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
16500
16501         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
16502         to -DREENT.
16503         * libc/sys/sparc64/Makefile.in: Rebuild.
16504
16505 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
16506
16507         * Makefile.am (MAKEOVERRIDES): Define.
16508         * Makefile.in: Rebuild.
16509
16510 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
16511
16512         * libc/sys/sparc64/sys/stat.h (stat): Add const.
16513
16514 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
16515
16516         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
16517         newlib_cflags when looking for targ-include.
16518         * */aclocal.m4, */configure: Rebuild.
16519
16520 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
16521
16522         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
16523         to "_end".
16524
16525 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
16526
16527         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
16528         on SPARCs with little-endian data.
16529         * libc/include/machine/ieeefp.h: Ditto.
16530
16531 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
16532
16533         * acinclude.m4: Handle a relative srcdir correctly when setting
16534         newlib_cflags.
16535         * */aclocal.m4, */configure: Rebuild.
16536
16537 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16538
16539         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
16540         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
16541         * libm/math/wrf_gamma.c (gammaf_r): ditto
16542         * libm/math/wr_lgamma.c (lgamma_r): ditto
16543         * libm/math/wr_gamma.c (gamma_r): ditto
16544         * libm/math/wf_sqrt.c (sqrtf): ditto
16545         * libm/math/wf_sinh.c (sinhf): ditto
16546         * libm/math/wf_scalb.c (scalbf): ditto
16547         * libm/math/wf_remainder.c (remainderf): ditto
16548         * libm/math/wf_pow.c (powf): ditto
16549         * libm/math/wf_log10.c (log10f): ditto
16550         * libm/math/wf_log.c (logf): ditto
16551         * libm/math/wf_lgamma.c (lgammaf): ditto
16552         * libm/math/wf_jn.c (jnf, ynf): ditto
16553         * libm/math/wf_j1.c (j1f, y1f): ditto
16554         * libm/math/wf_j0.c (j0f, y0f): ditto
16555         * libm/math/wf_hypot.c (hypotf): ditto
16556         * libm/math/wf_gamma.c (gammaf): ditto
16557         * libm/math/wf_fmod.c (fmodf): ditto
16558         * libm/math/wf_exp.c (expf): ditto
16559         * libm/math/wf_cosh.c (coshf): ditto
16560         * libm/math/wf_atanh.c (atanhf): ditto
16561         * libm/math/wf_atan2f.c (atan2f): ditto
16562         * libm/math/wf_asin.c (asinf): ditto
16563         * libm/math/wf_acosh.c (acoshf): ditto
16564         * libm/math/wf_acos.c (acosf): ditto
16565         * libm/math/w_sqrt.c (sqrt): ditto
16566         * libm/math/w_sinh.c (sinh): ditto
16567         * libm/math/w_scalb.c (scalb): ditto
16568         * libm/math/w_remainder.c (remainder): ditto
16569         * libm/math/w_pow.c (pow): ditto
16570         * libm/math/w_log10.c (log10): ditto
16571         * libm/math/w_log.c (log): ditto
16572         * libm/math/w_lgamma.c (lgamma): ditto
16573         * libm/math/w_jn.c (jn, yn): ditto
16574         * libm/math/w_j1.c (j1, y1): ditto
16575         * libm/math/w_j0.c (j0, y0): ditto
16576         * libm/math/w_hypot.c (hypot): ditto
16577         * libm/math/w_gamma.c (gamma): ditto
16578         * libm/math/w_fmod.c (fmod): ditto
16579         * libm/math/w_exp.c (exp): ditto
16580         * libm/math/w_cosh.c (cosh): ditto
16581         * libm/math/w_atanh.c (atanh): ditto
16582         * libm/math/w_atan2f.c (atan2): ditto
16583         * libm/math/w_asin.c (asin): ditto
16584         * libm/math/w_acosh.c (acosh): ditto
16585         * libm/math/w_acos.c (acos): ditto
16586
16587 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
16588
16589         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
16590         (fsrc): Add wf_cabs.c and wf_drem.c.
16591         * libm/math/Makefile.in: Rebuild.
16592
16593         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
16594         unused directory variables.  Remove duplicate CFLAGS.
16595         * Makefile.in: Rebuild.
16596
16597         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
16598         with $(CC_FOR_BUILD).
16599         (makedoc.o): Likewise.
16600         * doc/Makefile.in: Rebuild.
16601
16602         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
16603         force a definition of COMPILE.
16604         (libfoo_a_SOURCES): Define.
16605         * libc/sys/cygwin32/Makefile.in: Rebuild.
16606         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
16607         force a definition of COMPILE.
16608         (libfoo_a_SOURCES): Define.
16609         * libc/sys/tic80/Makefile.in: Rebuild.
16610
16611 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
16612
16613         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
16614         flag.
16615
16616 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
16617
16618         * Build using autoconf and automake.  Added many Makefile.am and
16619         configure.in files, plus generated files.  Old configure.in files
16620         and all old Makefile.in files completely replaced.  Removed
16621         host/any.  Added acinclude.m4 and configure.host.
16622
16623 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
16624
16625         * libc/stdio/vfprintf.c: enable long long support, sometimes.
16626         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
16627
16628 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16629
16630         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
16631         * libc/machine/sh/Makefile.in: Add rules for new files.
16632
16633 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16634
16635         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
16636         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
16637         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
16638
16639 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
16640
16641         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
16642         code is ignored.
16643
16644 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16645
16646         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
16647         internal static buffer when s is NULL, as prescribed by ANSI.
16648
16649 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
16650
16651         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
16652         removed.
16653         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
16654         libc/stdlib will be used for h8300hms.
16655
16656 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16657
16658         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
16659         version that can be built either for speed or size.
16660         * libc/machine/mn10300/memset.S (_memset): ditto
16661         * libc/machine/mn10300/memchr.S (_memchr): ditto
16662         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
16663         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
16664         * libc/machine/mn10300/strchr.S (_strchr): ditto
16665         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
16666         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
16667         * libc/machine/mn10300/Makefile.in: Added entries for
16668         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o,
16669         strcmp.o, strcpy.o, and strlen.o.
16670
16671 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
16672
16673         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
16674         been replaced with libgloss/mn10200.
16675
16676 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
16677
16678         * libc/string/strchr.c (strchr): Make s a constant pointer to
16679         avoid warning.
16680
16681 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
16682
16683         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
16684         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
16685         board SWIs instead of Demon board SWIs).
16686
16687 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
16688
16689         * libc/string/strncat.c (strncat):  Make -Os act the same as
16690         PREFER_SIZE_OVER_SPEED being defined.
16691
16692 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
16693
16694         * libc/string/memchr.c (memchr): Make -Os act the same as
16695         PREFER_SIZE_OVER_SPEED being defined.
16696         * libc/string/memcmp.c (memcmp): Ditto.
16697         * libc/string/memcpy.c (memcpy): Ditto.
16698         * libc/string/memset.c (memset): Ditto.
16699         * libc/string/strcat.c (strcat): Ditto.
16700         * libc/string/strchr.c (strchr): Ditto.
16701         * libc/string/strcmp.c (strcmp): Ditto.
16702         * libc/string/strcpy.c (strcpy): Ditto.
16703         * libc/string/strlen.c (strlen): Ditto.
16704         * libc/string/strncat.c (strncat): Ditto.
16705         * libc/string/strncmp.c (strncmp): Ditto.
16706         * libc/string/strncpy.c (strncpy): Ditto.
16707
16708 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
16709
16710         * libc/include/sys/itimer.h: remove
16711         * libc/include/sys/time.h: itimer stuff should be here
16712
16713 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16714
16715         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
16716         bit instead of comparing to 0 so -0.0 can be printed correctly.
16717
16718 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16719
16720         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
16721
16722 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
16723
16724         * libc/include/sys/unistd.h: fix sync() proto
16725         * libc/include/sys/fcntl.h: remove _close which is already
16726         defined in unistd.h.
16727         * libc/include/sys/time.h: add getitimer proto
16728
16729 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
16730
16731         * libc/string/strchr.c: convert arg to unsigned char
16732         * libc/include/stdlib.h: add protos for random, srandom
16733         * libc/include/sys/stat.h: add lstat proto
16734         * libc/include/sys/time.h: add setitimer proto
16735         * libc/include/sys/unistd.h: add readlink, symlink protos
16736         * libc/include/process.h: instead of including windows.h and using
16737         HANDLEs in sexec protos, just use void *s.  Need to include
16738         sys/types.h.
16739
16740 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
16741
16742         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
16743
16744 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
16745
16746         * libc/include/process.h: add secure exec protos
16747
16748 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
16749
16750         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
16751         which are accessed as both doubles and integers.
16752         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
16753         * libc/stdlib/strtod.c (_strtod_r): Likewise.
16754         * libc/stdlib/mprec.h: Add "union double_union" and change
16755         word0/word1 macros to use it.
16756
16757 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
16758
16759         * libc/include/sys/signal.h: add __cplusplus wrapper
16760
16761 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
16762
16763         * libc/include/sys/utime.h: new generic file that gets replaced by
16764         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
16765         function.
16766         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
16767         * libc/include/time.h: remove duplicate utime proto
16768         * libc/include/utime.h: add comment
16769
16770 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
16771
16772         * libc/include/sys/time.h: Add missing include to
16773         allow use of _EXFUN.  Remove times function that is
16774         already defined in times.h.
16775
16776 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
16777
16778         * libc/include/time.h: Fix typo in tzset.
16779
16780 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
16781
16782         * libc/include/sys/time.h: add missing Cygwin32 function protos
16783         * libc/include/sys/unistd.h: ditto
16784         * libc/include/time.h: ditto
16785
16786 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
16787
16788         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
16789         FIXME.
16790         * libc/include/sys/types.h: add a new __MS_types__ section
16791         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
16792         __BIT_TYPES_DEFINED__.
16793
16794 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
16795
16796         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
16797         since it overrides the one in libc/include/sys.  Also, start
16798         including types.h.
16799
16800 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
16801
16802         * libm/math/Makefile.in: add s_signgam.o to obj list
16803
16804 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16805
16806         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
16807
16808 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
16809
16810         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
16811         so don't use defines.
16812
16813 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
16814
16815         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
16816
16817 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
16818
16819         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
16820         _current_locale as default locale.
16821
16822 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
16823
16824         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
16825         insufficient space in a chunk.
16826
16827 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16828
16829         * configure.in (links): Added check for --enable-newlib-mb configure
16830         option which defines the MB_CAPABLE macro.
16831         * libc/locale/locale.c (_setlocale_r): Added support for setting
16832         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
16833         defined.
16834         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
16835         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
16836         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
16837         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
16838         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
16839         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
16840         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
16841         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
16842         * libc/stdlib/Makefile.in: Added new multibyte
16843         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
16844         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
16845         _mbstowcs_r(), and _wcstombs_r().
16846         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
16847         for JIS, SJIS, and EUC-JP characters.
16848         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
16849         MB_CAPABLE defined.
16850         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
16851         MB_CAPABLE defined.
16852         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
16853         MB_CAPABLE defined.
16854         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
16855         if MB_CAPABLE defined.
16856         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
16857         if MB_CAPABLE defined.
16858         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
16859         to the format string processing when MB_CAPABLE.
16860         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
16861         call _mbtowc_r().
16862
16863 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
16864
16865         The following modifications are courtesy of Anthony Thompson,
16866         athompson@cambridge.arm.com:
16867         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
16868         boith RDI and RDP monitors.
16869         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
16870         RDI and RDP monitors.
16871
16872 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16873
16874         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
16875         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
16876         (_swiopen): Fixed open flags to treat write with append as just append.
16877         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
16878         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
16879
16880 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16881
16882         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
16883         When needing to transfer an initial 2-byte-word, store as
16884         two single bytes.
16885
16886 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16887
16888         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
16889         __SH3E__ .
16890         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
16891         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
16892
16893 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
16894
16895         * configure.in (target_cflags): If --enable-target-optspace, use
16896         -Os to compile newlib rather than -O2.  Default to using -Os for
16897         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
16898         used.
16899
16900 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
16901
16902         * libc/include/machine/setjmp.h: change sigsetjmp and
16903         siglongjmp definitions to use an array instead of a struct
16904         for __CYGWIN32__
16905
16906 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
16907
16908         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
16909
16910 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
16911
16912         * libc/string/strxfrm.c: fix to get correct return value
16913
16914 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
16915
16916         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
16917         builds.  Make mode change labels global so that they will be seen
16918         by the debugger.
16919
16920 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
16921
16922         * configure.in (links): Do not use ARM debiugging protocols for PE
16923         builds.
16924
16925         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
16926         message.
16927
16928 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
16929
16930         * libc/stdio/findfp.c (__sinit): Made stdout default to
16931         line buffered mode as defined by ANSI.
16932
16933 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
16934
16935         * libc/include/sys/itimer.h: New file.
16936
16937         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
16938
16939 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
16940
16941         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
16942         failure.
16943
16944 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
16945
16946         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
16947         insns.
16948
16949 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
16950
16951         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
16952
16953 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
16954
16955         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
16956         support.
16957
16958         * libc/include/machine/setjmp.h: Add D30V support.
16959
16960         * configure.in (d30v-*): Add d30v machine directory.
16961
16962 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
16963
16964         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
16965         been replaced with libgloss/mn10300.
16966
16967 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
16968
16969         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
16970         it is no longer needed.
16971
16972 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
16973
16974         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
16975
16976 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
16977
16978         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
16979         the file when O_APPEND is set, wherever the EOF happens to be at
16980         that time.
16981
16982 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
16983
16984         patch from cgf@bbc.com (Christopher Faylor):
16985         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
16986         convention of closing fp prior to attempting to open the file
16987         argument.  This allows correct operation when reopening
16988         stdin/stdout/stderr.  Replaces last freopen.c patch.
16989
16990 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
16991
16992         patch from cgf@bbc.com (Christopher Faylor):
16993         * libc/stdio/freopen.c: freopen was not preserving the fd
16994         of the stream being operated on.  This confuses programs that
16995         expect that the handles for stdout and stderr will be 1 and 2.
16996
16997 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
16998
16999         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
17000
17001 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
17002
17003         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
17004
17005 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17006
17007         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
17008         altered to not use a branch.  Also added hint that last
17009         bclr in longjmp will likely result in branch.
17010
17011
17012 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
17013
17014         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
17015
17016 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
17017
17018         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
17019         v850 builds.
17020
17021         * configure.in: Add -msmall-sld to target_cflags for v850 builds.
17022
17023 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17024
17025         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
17026         that loads FR14 to specify offset of 8 rather than 4
17027         so it loads from offset 96 (where setjmp stored it).
17028
17029 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17030
17031         * libc/machine/sh/memcpy.S: (_memcpy): Update to
17032         latest version supplied by customer.
17033         * libc/machine/sh/memset.S (_memset): Ditto.
17034
17035 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
17036
17037         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
17038         PR14730).
17039
17040 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
17041
17042         * libc/include/string.h: remove redefinition of ffs
17043
17044 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
17045
17046         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
17047         defined
17048
17049 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
17050
17051         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
17052         TI Libraries to link to libc.a
17053
17054 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
17055
17056         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
17057         * libc/include/sys/stat.h (_{,f}stat): Ditto.
17058         * libc/include/sys/wait.h (_wait): Ditto.
17059         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
17060         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
17061
17062 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
17063
17064         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
17065         minded stabs so function name shows up when running the simulator
17066         with -t.
17067         * libc/sys/d10v/{crt0,trap}.S: Ditto.
17068
17069 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
17070
17071         * libc/sys/d10v/trap.S: Change syscalls to use trap 15.
17072         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
17073         Use R5 where we used to use R3.
17074
17075 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
17076
17077         * libc/stdlib/getopt.c (getopt): replaced __progname
17078         with nargv[0] to improve portability to imbedded systems.
17079
17080 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
17081
17082         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
17083         patch supplied by Tont.Thompson@arm.com to fix the creation of the
17084         stdout file.
17085
17086 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
17087
17088         * libc/stdio/tmpnam.c (worker): Generate a different file name
17089         each time.
17090
17091         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
17092         fails, try an execlp for sh.
17093
17094         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
17095         option for the winsup include directory.
17096
17097 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
17098
17099         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
17100         debugging interface from Tony.Thompson@arm.com.
17101
17102         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
17103         * libc/sys/arm/swi.h: ditto.
17104
17105 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
17106
17107         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
17108         DIR struct used for readdir hashes.
17109
17110 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
17111
17112         * libc/string/strchr.c: Use "unsigned chars" as necessary.
17113
17114 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
17115
17116         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
17117         integer targets.
17118
17119 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17120
17121         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
17122         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
17123         * libc/include/malloc.h: Add extern "C" if __cplusplus.
17124         (__malloc_copy): Declare.
17125
17126 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
17127
17128         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
17129         <sys/config.h>.
17130         (POINTER_UINT): Define.
17131         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
17132         (MALLOC_ALIGNMENT): Don't define if already defined.
17133         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
17134         long.
17135
17136 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
17137
17138         * libc/string/memset.c (memset): Fiddle with code so that the long
17139         value being stored is not a stack value.  Unroll storing longs 4
17140         times.
17141
17142 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
17143
17144         * Reduce code size for libm modules.
17145         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
17146         and simply move code into sqrt.
17147         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
17148         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
17149         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
17150         * libm/math/wr_gamma.c (gamma_r): Likewise.
17151         * libm/math/wf_sinh.c (sinfh): Likewise.
17152         * libm/math/w_sinh.c (sinh): Likewise.
17153         * libm/math/wf_scalb.c (scalbf): Likewise.
17154         * libm/math/w_scalb.c (scalb): Likewise.
17155         * libm/math/wf_remainder.c (remainderf): Likewise.
17156         * libm/math/w_remainder.c (remainder): Likewise.
17157         * libm/math/wf_pow.c (powf): Likewise.
17158         * libm/math/w_pow.c (pow): Likewise.
17159         * libm/math/wf_log10.c (log10f): Likewise.
17160         * libm/math/w_log10.c (log10): Likewise.
17161         * libm/math/wf_log.c (logf): Likewise.
17162         * libm/math/w_log.c (log): Likewise.
17163         * libm/math/w_lgamma.c (lgamma): Likewise.
17164         * libm/math/wf_lgamma.c (lgammaf): Likewise.
17165         * libm/math/wf_jn.c (jnf): Likewise.
17166         * libm/math/w_jn.c (jn): Likewise.
17167         * libm/math/wf_j1.c (j1f): Likewise.
17168         * libm/math/w_j1.c (j1): Likewise.
17169         * libm/math/wf_j0.c (j0f): Likewise.
17170         * libm/math/w_j0.c (j0): Likewise.
17171         * libm/math/wf_hypot.c (hypotf): Likewise.
17172         * libm/math/w_hypot.c (hypot): Likewise.
17173         * libm/math/wf_gamma.c (gammaf): Likewise.
17174         * libm/math/w_gamma.c (gamma): Likewise.
17175         * libm/math/wf_fmod.c (fmodf): Likewise.
17176         * libm/math/w_fmod.c (fmod): Likewise.
17177         * libm/math/wf_exp.c (expf): Likewise.
17178         * libm/math/w_exp.c (exp): Likewise.
17179         * libm/math/wf_cosh.c (coshf): Likewise.
17180         * libm/math/w_cosh.c (cosh): Likewise.
17181         * libm/math/wf_atanh.c (atanhf): Likewise.
17182         * libm/math/w_atanh.c (atanh): Likewise.
17183         * libm/math/wf_atan2.c (atan2f): Likewise.
17184         * libm/math/w_atan2.c (atan2): Likewise.
17185         * libm/math/wf_asin.c (asinf): Likewise.
17186         * libm/math/w_asin.c (asin): Likewise.
17187         * libm/math/wf_acosh.c (acoshf): Likewise.
17188         * libm/math/w_acosh.c (acosh): Likewise.
17189         * libm/math/wf_acos.c (asocf): Likewise.
17190         * libm/math/w_acos.c (acos): Likewise.
17191         * libm/math/wf_sqrt.c (sqrtf): Likewise.
17192         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
17193         for embedded systems.
17194
17195 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
17196
17197         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
17198         Lea in case of a foreign sbrk.
17199
17200 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
17201
17202         Incorporate Doug Lea's malloc:
17203         * libc/stdlib/mallocr.c: Completely replaced.
17204         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
17205         (realloc): Remove.
17206         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
17207         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
17208         mallopt.
17209         (mallinfo, malloc_stats, mallopt): New functions.
17210         (_mstats_r): Just call _malloc_stats_r.
17211         * libc/stdlib/malign.c: New file.
17212         * libc/stdlib/mlock.c: New file.
17213         * libc/stdlib/msize.c: New file.
17214         * libc/stdlib/mtrim.c: New file.
17215         * libc/stdlib/realloc.c: New file.
17216         * libc/stdlib/valloc.c: New file.
17217         * libc/stdlib/malloc.h: Remove.
17218         * libc/stdlib/callocr.c: Remove.
17219         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
17220         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
17221         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
17222         reallocr.o, valloc.o, vallocr.o.
17223         (CHEWOUT_FILES): Add mlock.def, mstats.def.
17224         (MALLOC_CFLAGS): New variable.
17225         (mallocr.o): New target, build from mallocr.c.
17226         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
17227         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
17228         (msizer.o, malloptr.o): Likewise.
17229         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
17230         (valloc.o): New target.
17231         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
17232         * libc/include/malloc.h: Declare struct mallinfo, and new
17233         routines.
17234         * libc/include/stdlib.h (cfree): Correct declaration.
17235
17236 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
17237
17238         * libc/include/machine/setjmp.h: Add support for Thumb target.
17239
17240         * libc/include/machine/ieeefp.h: Add support for Thumb target.
17241
17242         * configure.in (links): Add support for Thumb target.
17243
17244 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
17245
17246         * libc/sys/arm/setjmp.S: Updated with version from branch.
17247
17248 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
17249
17250         * libc/include/stdio.h: add POSIX-required define L_ctermid
17251         for ctermid
17252
17253 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
17254
17255         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
17256         addition to MISSING_SYSCALL_NAMES.
17257
17258 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17259
17260         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
17261
17262 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
17263
17264         * libc/include/string.h: change strsignal proto to return
17265         a char *.  This eliminates compile problems in gdb resulting
17266         from gdb's definition of strsignal in defs.h.
17267
17268 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
17269
17270         * libc/sys/cygwin32/sys/utime.h: new (moved here from
17271         winsup/include) so as not to conflict with the one in
17272         libc/include.
17273         * libc/include/string.h: add protos for strsignal, strtosigno
17274
17275 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
17276
17277         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
17278
17279         * configure.in (d30v-*-*): Add configuration.
17280
17281 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
17282
17283         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
17284         to select which kind of debug monitor is in use for an ARM target.
17285
17286         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
17287         Angel and Demon debug monitors.  Part of this code was supplied by
17288         Tony Thompson at ARM: athompso@arm.com.
17289
17290 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
17291
17292         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
17293         semantics when the count is greater than the length of the second
17294         source string.
17295
17296 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
17297
17298         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
17299         * libc/include/sys/unistd.h: add protos for usleep, truncate,
17300         truncate and ftruncate take off_t, not size_t
17301
17302 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
17303
17304         * libc/string/strcat.c (strcat): Add missing comment end.
17305         * libc/string/strncat.c (strncat): Likewise.
17306
17307 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
17308
17309         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
17310         targets.
17311         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
17312         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
17313         defined.
17314         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17315         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17316         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17317
17318 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
17319
17320         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
17321         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
17322
17323 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
17324
17325         * libc/machine/i386/setjmp.S: New file.
17326         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
17327         (OFILES): Add setjmp.o.
17328         (setjmp.o): Add rule for.
17329         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
17330
17331 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
17332                          Jeffrey A Law  (law@cygnus.com)
17333
17334         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
17335         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
17336         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
17337         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
17338
17339 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
17340
17341         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
17342         rules.
17343
17344         * libc/include/sys/config.h: Use __v850 to select v850
17345         endianness.
17346
17347         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
17348         buffer size.
17349
17350         * libc/include/machine/ieeefp.h: Use __v850 to select v850
17351         endianness.
17352
17353 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
17354
17355         * libc/stdlib/setenv.c: change unsetenv definition to match
17356         style of setenv (with _DEFUN).  The string should be a const.
17357         * libc/include/stdlib.h: unsetenv proto should return void.
17358
17359 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
17360
17361         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
17362
17363 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
17364
17365         * libc/stdio/glue.h: remove.
17366         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
17367         * libc/stdio/Makefile.in: remove glue.h dependencies
17368
17369 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
17370
17371         * libc/sys/sysnecv850/crt0.S: Created V850e version.
17372
17373 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
17374
17375         * configure.in (target_cpu): Add `arc'.
17376
17377 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
17378
17379         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and
17380           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
17381         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
17382         * newlib/libc/reent/reent.c: Add _wrapup_reent.
17383         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
17384
17385 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
17386
17387         * libc/machine/mips/setjmp.S: Handle mips16 builds.
17388
17389 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
17390
17391         * libc/include/stdio.h (siprintf): Declare.
17392
17393 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
17394
17395         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
17396         TARGET_CFLAGS and NEWLIB_FLAGS.
17397
17398 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17399
17400         * configure.in (links): Add support for v850ea target.
17401
17402 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
17403
17404         * configure.in (links): Add support for v850e target.
17405
17406 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
17407
17408         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
17409
17410 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
17411
17412         * configure.in (arc-*-*): Add support for.
17413         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
17414
17415 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
17416
17417         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
17418
17419 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
17420
17421         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
17422         comparison which accesses invalid memory when the key is
17423         larger than the last member of the array.
17424         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
17425         for CYGWIN32
17426         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
17427
17428 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
17429
17430         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
17431         not _STRICT_ANSI.
17432
17433 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
17434
17435         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
17436         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
17437
17438 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
17439
17440         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
17441         to load/store memory.
17442
17443 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
17444
17445         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
17446         underscores if _WIN32.
17447
17448 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
17449
17450         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
17451         support ifdef _USE_WRITE missed in last change.
17452         From Anders Blomdell <anders.blomdell@control.lth.se>.
17453
17454 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
17455
17456         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
17457         (_tmpnam_r, _tempnam_r): Update.
17458
17459 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
17460
17461         * libc/machine/sparc/setjmp.S: New file.
17462         * libc/machine/sparc/Makefile.in: Add setjmp.
17463         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
17464
17465 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
17466
17467         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
17468
17469 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
17470
17471         From Joel Sherrill <joel@oarcorp.com>.
17472         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
17473
17474         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
17475         * configure.in: Recognize *-*-rtems*.
17476         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
17477         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
17478         time.h,times.h,types.h}: New files.
17479         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
17480
17481 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
17482
17483         patch from sos@prospect.com.ru (Sergey Okhapkin):
17484         * include/sys/wait.h: correct operator precidence bug
17485         in WIFSIGNALED
17486
17487 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
17488
17489         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
17490         with newlib's unsetenv function
17491         * libc/sys/cygwin32/sys: new directory for includes
17492         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
17493         here from winsup/include/sys
17494
17495 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
17496
17497         * libc/include/sys/unistd.h: _exit should only be
17498         labelled noreturn when not __CYGWIN32__
17499         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
17500         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
17501         increment NSIG
17502
17503 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
17504
17505         * libc/include/sys/time.h: Only define timeval and timezone if
17506         _GNU_H_WINDOWS32_SOCKETS is not defined.
17507         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
17508
17509 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
17510
17511         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
17512         * libc/machine/mn10300/setjmp.S: Likewise.
17513
17514         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
17515         the mn10300 (more relaxing opportunities).
17516
17517 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
17518
17519         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
17520         Build libraries with -mstrict-align.
17521
17522 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
17523
17524         * libc/string/strlwr.c: New file.
17525         * libc/string/strupr.c: New file.
17526         * libc/include/string.h: Declare strlwr and strupr.
17527         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
17528         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
17529         (strlwr.o, strupr.o): New targets.
17530         * libc/string/strings.tex: Include strlwr and strupr docs.
17531
17532         * libc/include/sys/types.h: Don't define u_char, et. al., if
17533         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
17534         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
17535         _types_fd_set rather than fd_set, and define fd_set as a macro.
17536
17537         * libc/include/malloc.h: New file.
17538
17539         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
17540         strnicmp if they are not already defined.
17541
17542         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
17543         _timezone, _daylight, and _tzname.
17544
17545 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17546
17547         * configure.in: Sort all configuration tables.
17548
17549         From Joel Sherrill <joel@oarcorp.com>
17550         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
17551
17552 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
17553
17554         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
17555         use int when declaring kill.
17556
17557         * libc/include/sys/timeb.h: New file.
17558
17559 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
17560
17561         * libc/include/sys/time.h: add itimer support for Cygwin32
17562
17563 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
17564
17565         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
17566         out a message that abort was called to stderr.
17567
17568 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
17569
17570         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
17571         so that libio doesn't freak.
17572
17573         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
17574         int.
17575
17576         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
17577         memory sizes, not int.
17578
17579 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
17580
17581         * libm/math/ef_hypot.c: Use long constants where
17582         appropriate.
17583         * libm/math/ef_sqrt.c: Ditto.
17584
17585         * libc/sys/sysmec/times.c(_times): Change to times.
17586
17587         * libc/sys/sysmec/read.c(_read): The third argument is
17588         size_t.
17589         * libc/sys/sysmec/write.c (_write): Ditto.
17590
17591         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
17592         (_lseek): It's off_t for the second argument.
17593
17594 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
17595
17596         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
17597         as well as machine/ieeefp.h.
17598
17599 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
17600
17601         * libc/include/sys/signal.h: add signal protos for winsup
17602         functions (when __CYGWIN32__), include types.h
17603         * libc/include/sys/types.h: Change __go32_types__ internal
17604         define to __MS_types__ since it's used for more than just
17605         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
17606         defined.
17607         * libc/include/sys/unistd.h: add ftruncate proto for
17608         winsup functions (when __CYGWIN32__)
17609
17610 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
17611
17612         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
17613
17614 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
17615
17616         * libc/include/machine/setjmp.h: Add tic80 support.
17617         * libc/machine/tic80/setjmp.S: Likewise.
17618
17619 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
17620
17621         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
17622         link programs from libraries only (such as in the X11
17623         distribution)
17624
17625 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
17626
17627         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
17628         supplied elsewhere in newlib.
17629
17630 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
17631
17632         * Makefile.in (INSTALL): Change install.sh to install-sh.
17633
17634 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
17635
17636         * README: update WWW address for on-line documentation.
17637
17638 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
17639
17640         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
17641         increment NSIG
17642
17643 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
17644
17645         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
17646         mn10300.
17647         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
17648
17649 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
17650
17651         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
17652         * libc/sys/d10v/syscalls.c: Likewise.
17653         * libc/sys/h8300hms/sbrk.c: Likewise.
17654         * libc/sys/h8500hms/syscalls.c: Likewise.
17655         * libc/sys/m88kbug/syscalls.c: Likewise.
17656         * libc/sys/sh/syscalls.c: Likewise.
17657         * libc/sys/sysmec/sbrk.c: Likewise.
17658         * libc/sys/sysnecv850/sbrk.c: Likewise.
17659         * libc/sys/w65/syscalls.c: Likewise.
17660         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
17661
17662 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
17663
17664         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
17665         emulated syscall instead of "trap".
17666
17667 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
17668
17669         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
17670         not trap 0.
17671
17672 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
17673
17674         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
17675
17676 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
17677
17678         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
17679         not "sh".
17680         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
17681         not "d10v".
17682         * libc/sys/tic80/crt0.c: New file for TIc80.
17683         * libc/sys/tic80/Makefile.in: New file for TIc80.
17684         * libc/machine/tic80/Makefile.in: New file for TIc80.
17685
17686 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
17687
17688         * libc/machine/sh/memcpy.S: New file.
17689         * libc/machine/sh/memset.S: New file.
17690         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
17691
17692 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
17693
17694         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
17695         for TIc80.
17696
17697 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
17698
17699         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
17700         the mn10200.
17701
17702 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
17703
17704         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
17705         (patch from andrew@pogo.WV.TEK.COM).
17706
17707 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
17708
17709         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
17710         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
17711
17712 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
17713
17714         * configure.in:  Add cases for "tic80" to set machine_dir,
17715         sys_dir, and syscall_dir.
17716
17717 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
17718
17719         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
17720
17721 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
17722
17723         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
17724
17725 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
17726
17727         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
17728         Use proper constant prefix.
17729
17730 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
17731
17732         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
17733         that loses on the mn10200 where ints and pointers are different
17734         sizes.
17735
17736 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
17737
17738         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
17739         target as signal is provided in winsup.
17740
17741 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
17742
17743         * libc/include/sys/process.h: Corrected const definitions
17744         in spawn functions. Added cwait.
17745
17746 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
17747
17748         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
17749         doubles.
17750         * libc/include/sys/config.h: Similarly.
17751
17752 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17753
17754         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
17755         target_cflags.
17756         (i[3456]86-*-sco*): Ditto.
17757
17758         * libc/signal/Makefile.in (OFILES): Add signal.o.
17759         (CFILES): Add signal.c.
17760
17761         * libc/signal/raise.c (_raise_r): Only compile code if
17762         SIGNAL_PROVIDED is defined.
17763
17764         * libc/signal/signal.c: Redo whole file so that it works with
17765         current newlib.  Use _kill_r if no signal handler provided.
17766
17767         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
17768         signal stubs.
17769         * libc/sys/sysvnecv70/Makefile.in: Ditto.
17770         * libc/sys/sysnecv850/Makefile.in: Ditto.
17771
17772         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
17773         * libc/sys/sysmec/{raise,signal}.c: Ditto.
17774         * libc/sys/sysvnecv70/signal.s: Ditto.
17775         * libc/sys/sysnecv850/raise.c: Ditto.
17776
17777         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
17778         simulator and debugger can tell the difference between a signal
17779         being raised and an exit system call.
17780
17781         * NEWS: Document software signals being provided.
17782
17783 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17784
17785         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
17786         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
17787         include/sys/config.h.
17788         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
17789         Change from 'inpure_data'.
17790         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
17791         &impure_data, not &inpure_data.
17792
17793         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
17794         and and System V ABI, define so that _impure_ptr lives in the
17795         .sdata section.
17796
17797 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17798
17799         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
17800         nothing if not defined.
17801         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
17802         its attributes.
17803
17804         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__):
17805
17806 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
17807
17808         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
17809         * libc/sys/sysmec/trap.s: Handle mn10200 too.
17810         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
17811
17812 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
17813
17814         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
17815
17816 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
17817
17818         * libc/include/sys/errno.h: Added net errno's.
17819
17820 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17821
17822         * libc/misc/ffs.c: New file to support ffs function for GCC test
17823         gcc.c-torture/execute/960909-1.c.
17824
17825         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
17826
17827 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
17828
17829         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
17830         * libc/sys/sysmec/trap.S: Likewise.
17831
17832 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
17833
17834         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
17835         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
17836
17837 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
17838
17839         * libc/sys/sysmec/signal.c: Dummy file.
17840         * libc/sys/sysmec/Makefile.in: Build it.
17841
17842 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
17843
17844         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
17845         mips16.
17846
17847 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
17848
17849         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
17850         c-startup and simulator traps.
17851
17852
17853         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
17854         * libc/sys/sysmec/trap0.S: Likewise.
17855
17856 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17857
17858         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
17859         round to double word alignment.
17860         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
17861         byte alignment.
17862
17863         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
17864
17865         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
17866         out of memory.
17867
17868 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
17869
17870         * configure.in: Handle mn10200 and mn10300.
17871         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
17872         * libc/include/sys/config.h: Likewise.
17873         * libc/sys/sysmec: New directory for mec stuff.
17874         * libc/machine/mn10300: New directory for mn10300 stuff.
17875         * libc/machine/mn10200: Similarly for mn10200 stuff.
17876
17877 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
17878
17879         * libc/sys/arm/crt0.S: Use .text, not .section .text.
17880         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
17881
17882         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
17883         (nlink_t): Change type from unsigned int to unsigned short.
17884         (mode_t): Ensure size is 32 bits even if int is 16.
17885         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
17886         (st_spare[123]): Change type from int to long.
17887
17888 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17889
17890         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
17891         byte boundary.
17892
17893         * configure.in (d10v*): Define SMALL_MEMORY.
17894
17895 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17896
17897         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
17898         -mrelocatable-lib and -mno-eabi flags.
17899
17900 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
17901
17902         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
17903         Fix handling of mis-aligned source operand when both the
17904         destination & length are properly aligned.
17905
17906 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
17907
17908         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
17909         times.o, time.o and gettime.o
17910         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
17911         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
17912         SYS_gettimeofday.
17913
17914 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
17915
17916         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
17917         * libc/sys/sysnecv850/access.c: New file.
17918
17919 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
17920
17921         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
17922
17923         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
17924         long.
17925
17926 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
17927
17928         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
17929
17930 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
17931
17932         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
17933         * libc/include/sys/config.h: Add m32r support.
17934
17935 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
17936
17937         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
17938         here.
17939
17940 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
17941
17942         * libc/include/machine/setjmp.h: Add D10v support.
17943
17944 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
17945
17946         * configure.in: Configure the "libc/syscalls" directory for
17947         the v850.
17948
17949         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
17950         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
17951         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
17952         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
17953         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
17954
17955 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
17956
17957         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
17958         stack for args for main and other routines.  Zero out args for
17959         main.
17960
17961         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
17962         correctly.
17963
17964 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
17965
17966         * libc/stdio/findfp.c (std): Remove extraneous ';' after
17967         function.
17968
17969         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
17970
17971         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
17972         real system calls now.
17973
17974         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
17975         before casting them to int.
17976         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
17977
17978         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
17979         aligning pointer.
17980         * libc/string/memset.c (memset): Ditto.
17981
17982         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
17983         first convert ints to _POINTER_INT to eliminate GCC warning.
17984
17985         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
17986         processing %p.
17987
17988         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
17989         from 65000 if ints are only 16 bits.
17990
17991         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
17992         from 50000 if ints are only 16 bits.
17993
17994         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
17995         int type that is the same size as a pointer.
17996
17997         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
17998         processing %p.
17999         (get_number): Explicitly cast number to long before shifting by 16
18000         or 24, in case ints are short.
18001
18002         * libc/include/sys/config.h (_POINTER_INT): Define as short.
18003
18004 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
18005
18006         * libc/string.h: Added ffs, removed swab.
18007         * libc/sys/errno.h: Added EOPNOTSUPP.
18008         * libc/sys/unistd.h: Added swab.
18009
18010 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
18011
18012         * libc/include/sys/stat.h: Added fchmod.
18013         * libc/include/sys/unistd.h: Added fsync.
18014
18015 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
18016
18017         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
18018         and ECONNRESET (104) for cygwin32.
18019
18020 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
18021
18022         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
18023         do the static destructors.
18024
18025 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
18026
18027         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
18028
18029 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
18030
18031         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
18032         * configure.in: Recognize m32r-*-*.
18033
18034 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
18035
18036         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
18037         __rt_stkovf_split_small): Added default software stack overflow
18038         handlers, which just call SWI_Exit.
18039         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
18040         limit initialisation.
18041
18042 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
18043
18044         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
18045
18046 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
18047
18048         * libc/include/sys/types.h: Added ssize_t definition.
18049
18050 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18051
18052         * libc/machine/d10v/setjmp.S: Use ';' for comments.
18053         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
18054
18055         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
18056         branch around a single ldi instruction.
18057
18058         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
18059         Call exit, instead of just issuing a stop instruction.
18060
18061 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18062
18063         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
18064
18065 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18066
18067         * libc/stdlib/mprec.h: Explicitly declare all large constants as
18068         longs, and then cast them to __uint32_t.
18069
18070         * libc/include/sys/config.h: Protect against multiple inclusions.
18071
18072 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
18073
18074         * configure.in (d10v*): Set syscall_dir.
18075
18076 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
18077
18078         * libc/sys/d10v/crt0.S: Set stack pointer.
18079
18080 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
18081
18082         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
18083         in assembly for efficiency.  Change calling convention to allow
18084         long ints to be returned.
18085
18086 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18087
18088         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
18089
18090 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
18091
18092         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
18093         Handle empty entries in $PATH.
18094
18095 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
18096
18097         * libc/machine/d10v/setjmp.S: Make it really work.
18098
18099 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
18100
18101         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
18102         the .stack section.
18103
18104 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
18105
18106         * sys/sysnecv850/sys/file.h: Remove.
18107         * sys/sysnecv850/sys/syscall.h: New file.
18108         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
18109         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
18110         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
18111         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
18112         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
18113         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
18114         * sys/sysnec850/trap.S: New file.
18115         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
18116         syscalls.
18117         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
18118         * sys/sysnec850/sbrk.c: New version.
18119
18120 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
18121
18122         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
18123         as long as r6 is less than r7.
18124
18125 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
18126
18127         * Makefile.in (mostlyclean): Separate from clean target.  Don't
18128         remove *.a or targ-include.
18129         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
18130
18131 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18132
18133         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
18134         d10v.
18135         (__SMALL_BITFIELDS): Ditto.
18136
18137         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
18138
18139 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
18140
18141         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
18142         prefix.
18143
18144         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
18145         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
18146         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
18147         * libc/sys/sysnecv850/write.c (write): Likewise.
18148
18149         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
18150         .bss.
18151
18152 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18153
18154         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
18155         appropriately for D10V, depending on -mint16/-mint32.
18156
18157 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
18158
18159         * configure.in: Add cases for D10V.
18160
18161 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18162
18163         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
18164
18165 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
18166
18167         * libc/include/machine/ieeefp.h: Fix typo.
18168
18169 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
18170
18171         * libc/sys/d10v: New directory for D10V stuff.
18172         * libc/include/machine/ieeefp.h: Add D10V defines.
18173
18174 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
18175
18176         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
18177         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
18178         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
18179         * libc/string/strerror.c (strerror): Add them.
18180
18181 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
18182
18183         * libc/sys/sysnecv850: New directory for v850 stuff.
18184
18185         * libc/machine/v850: New directory for v850 stuff.
18186         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
18187
18188         * configure.in: Add support for the v850.
18189
18190         * libc/include/machine/ieeefp.h: Add v850 defines.
18191         * libc/include/machine/setjmp.h: Likewise.
18192         * libc/include/sys/config.h: Add v850 defines.
18193
18194 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
18195
18196         * libc/include/machine/ieeefp.h
18197         * libc/include/machine/setjmp.h
18198         * libc/include/sys/fcntl.h
18199         * libc/include/sys/signal.h
18200         * libc/include/sys/types.h
18201         * libc/stdlib/system.c:
18202         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
18203         API availability, __CYGWIN32__ for cygwin32 environment specific).
18204
18205 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
18206
18207         * libc/include/stdlib.h: add multibyte character functions.  Add
18208         __eprintf for assert.
18209
18210 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18211
18212         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
18213         arithmetic or __alignof__ to properly get the alignment, instead
18214         of hardwiring it to 4.
18215
18216 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
18217
18218         * libc/stdio/fseek.c: add fflush call to adjust seek offset
18219         on append stream (fix from NetBSD sources), adjust curoff offset
18220         for ungetc's benefit.
18221         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
18222         * libc/stdio/rewind.c: replace code with up to date NetBSD
18223         code to undo hacks made to work around above problem of not
18224         having fflush call mentioned above
18225
18226 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18227
18228         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
18229         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
18230         Partially revert last changes.  The thread specific errno is set
18231         iff if the underlying syscall fails and the global errno is not
18232         zero.
18233
18234 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18235
18236         * libc/reent/filer.c: Removed files, all functions have split out
18237         into their own files.
18238         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}:
18239         New files containing functions formally in filer.c
18240         * libc/reent/Makefile.in: Updated for above change.
18241
18242         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
18243         syscall fails, not if errno is changed.
18244         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r,
18245         _write_r): Likewise.
18246         * libc/reent/fstatr.c (_fstat_r): Likewise.
18247         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
18248         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
18249         * libc/reent/signalr.c (_kill_r): Likewise.
18250         * libc/reent/statr.c (_stat_r): Likewise.
18251         * libc/reent/timer.c (_gettimeofday_r): Likewise.
18252
18253         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
18254         signalr.c, statr.c, timer.c} (errno): declare extern rather
18255         than as a common.
18256
18257         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
18258         instead of calling vfprintf so that i*printf will not require
18259         floating point support code.
18260
18261 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
18262
18263         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
18264         path delimiter.
18265         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
18266         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
18267
18268 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
18269
18270         * libc/include/signal.h: _sig_func_ptr function takes an int
18271         * libc/include/sys/signal.h: sa_handler function takes an int
18272
18273 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
18274
18275         * libc/include/machine/ieeefp.h: Simplify H8/S support.
18276         * libc/include/sys/config.h: Add missing H8/S conditional.
18277
18278 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
18279
18280         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
18281
18282 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
18283
18284         * libc/include/machine/setjmp.h: Handle H8/S.
18285         * libc/include/machine/ieeefp.h: Likewise.
18286         * libc/include/sys/config.h: Likewise.
18287         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
18288         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
18289         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
18290         * libc/sys/h8300hms/crt0.S: Likewise.
18291
18292 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
18293
18294         * Makefile.in (datadir): Set to $(prefix)/share.
18295         (oldincludedir, docdir): Removed.
18296         * doc/Makefile.in (datadir): Set to $(prefix)/share.
18297         (oldincludedir, docdir): Removed.
18298         * libc/Makefile.in (datadir): Set to $(prefix)/share.
18299         (oldincludedir, docdir): Removed.
18300         * libm/Makefile.in (datadir): Set to $(prefix)/share.
18301         (oldincludedir, docdir): Removed.
18302
18303 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
18304
18305         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
18306         _reent struct.
18307
18308 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
18309
18310         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
18311         fetch current path rules with sysconf and handler posix/win32
18312         appropriately.
18313
18314         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
18315
18316         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
18317         (WAIT_CHILD): Always define.
18318
18319 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
18320
18321         * libc/stdlib/eprintf.c: New file.
18322         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
18323         (eprintf.o): New target.
18324
18325 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
18326
18327         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
18328         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
18329
18330 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
18331
18332         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
18333         NT in PowerPC endianess cases.
18334
18335 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18336
18337         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
18338
18339 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18340
18341         * libc/string/strtok.c: Fix doc typo.
18342
18343 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18344
18345         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
18346         _next, _scanpoint, _signgam fields.
18347
18348         * libc/include/stdlib.h (rand_r): Added new declaration.
18349         (_rand_r, _srand_r): Removed declarations.
18350         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
18351         have been made obsolete by rand_r.
18352         * libc/stdlib/rand_r.c: New file, rand_r function as specified
18353         by POSIX.1c.
18354
18355         * libc/string/strtok.c: Update documentation to describe
18356         strtok_r().
18357
18358 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
18359
18360         * libc/include/sys/stat.h (stat structure): Use the expanded stat
18361         structure on Solaris, and PowerPC systems even though __svr4__ is
18362         defined.
18363
18364 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18365
18366         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
18367
18368 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
18369
18370         * host/any: Use ../.. rather than .. to get to the main build
18371         directory.  This matches the current layout of the build
18372         directory.
18373
18374 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
18375
18376         * libc/machine/h8300/__main.S: Delete.  No longer needed.
18377         * libc/machine/h8300/Makefile.in: Corresponding changes.
18378         * libc/sys/h8300hms/crt1.c: New file.
18379         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
18380         * libc/sys/h8300hms/crt0.s: Call __main.
18381
18382         * libc/sys/h8300hms/crt0.S: Use temporary label names
18383         for branch targets.
18384
18385 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
18386
18387         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
18388
18389 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18390
18391         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
18392         .sdata on the PowerPC so that we can link newlib with code
18393         compiled with -msdata.
18394
18395 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
18396
18397         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
18398
18399 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
18400
18401         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
18402         exception handler to __cygwin_exception_handler.
18403
18404 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
18405
18406         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
18407
18408 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
18409
18410         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
18411         SunOS VPATH.
18412         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
18413         wcstombs.o): Likewise.
18414
18415 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
18416
18417         * libc/stdlib/environ.c (initial_env): New static local.
18418         (environ): Point to `initial_env'.
18419
18420         * libc/include/machine/setjmp.h: Clean up.
18421         (__H8300H__,__PPC__): Define _JBTYPE.
18422         (__arm__): Provide entry for.
18423         (sigjmp_buf): Delete.
18424         (jmp_buf): Use _JBTYPE if defined, otherwise int.
18425
18426 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
18427
18428         * libc/machine/h8300/strcmp.S: Sign extend the result to
18429         32bits so we don't lose with -mint32.
18430
18431 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
18432
18433         * libc/sys/go32/sys/errno.h: New file.
18434         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
18435         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
18436         errno's address (make compatible with rest of newlib).
18437         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
18438         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
18439
18440 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
18441
18442         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
18443         * libc/machine/sparc/Makefile.in: Build them.
18444         * libc/machine/sparc/machine/sparclet.h: New file.
18445
18446 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18447
18448         * libc/machine/sh/asm.h: New file.
18449         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
18450         support for SH3e's FP registers.  Use asm.h.
18451
18452 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
18453
18454         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
18455         as first argument.  Call _dtoa_r and pass the reent structure
18456         instead of calling __dtoa.
18457
18458 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
18459
18460         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
18461         the h8300, h8500, and others.  Add comments for some rather
18462         dubious code.
18463
18464 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
18465
18466         * Makefile.in (check): Check that testsuite exists before cd.
18467
18468 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18469
18470         * libc/include/string.h (strsep): Correct prototype.
18471
18472 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
18473
18474         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
18475         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
18476         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
18477
18478 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
18479
18480         * libc/posix/{creat.c,isatty.c}: New files.
18481         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
18482
18483         * libc/sys/sparc64/crt0.S (environ): Delete.
18484         (.LHaveBias): Renamed from HaveBias.
18485
18486 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
18487
18488         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
18489         (_morecore_r): Delete SBRK_IS_ALLOC support.
18490
18491 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18492
18493         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
18494         module rather than touch, so we don't get warning messages when
18495         all of the libraries are combined into libc.a.
18496
18497 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
18498
18499         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
18500         crt0.s replaced by version in libgloss.
18501
18502 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
18503
18504         * libc/reent/Makefile.in (OFILES): Add impure.o.
18505         * libc/reent/impure.o: New file, define initial reentrancy struct.
18506         * libc/reent/reent.c: Remove above definition.
18507
18508         * libm/math/sf_asinh.c: Fix typo.
18509
18510         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
18511         srf_ldexp.o.
18512
18513         * libm/libm.texinfo: Change documentation to reflect changes
18514         in reentrancy model.
18515         * libm/math/w_gamma.c: Likewise.
18516
18517 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18518
18519         * configure.in (*-*-cygwin32): New.
18520         (*-*-win32): Deleted.
18521         * libc/sys/win32 renamed libc/sys/cygwin32.
18522
18523 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18524
18525         * libc/include/sys/file.h: New include file.
18526
18527 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18528
18529         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
18530
18531 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
18532
18533         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
18534
18535 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
18536
18537         * doc/makedoc.c (realloc): Declare at file scope.
18538         (catchar): Not here.
18539
18540 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
18541
18542         * Makefile.in (VERSION): Update to 1.7.0.
18543         * {libc,libm}/Makefile.in (VERSION): Likewise.
18544         * configure.in: Minor clean up of multilib stuff.
18545
18546         From David Johnson <davidj@ICSI.Berkeley.EDU>
18547         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
18548
18549         * libc/stdlib/environ.c: New file.
18550         * libc/stdlib/Makefile.in (OFILES): Build it.
18551         * libc/sys/h8500hms/crt0.c (environ): Deleted.
18552         * libc/sys/m88kbug/crt0.c (environ): Deleted.
18553         * libc/sys/z8ksim/crt0.c (environ): Deleted.
18554         * libc/sys/netware/environ.c: Deleted.
18555
18556 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
18557
18558         * configure.in (links): set sys_dir, posix_dir, syscall_dir
18559
18560 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18561
18562         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
18563         declaration out to external scope and declare it PTR, not char *.
18564
18565 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
18566
18567         * libc/include/sys/unistd.h (getpagesize): New declaration.
18568         (_SC_PAGESIZE): New definition.
18569         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
18570         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
18571
18572 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
18573
18574         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
18575         addressing. System call returns size, not (last address + 1).
18576
18577 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18578
18579         * libm/math/*.c: Removed _foo_r() reentrancy API.
18580         * libc/include/math.h: Removed _foo_r prototypes and macros.
18581
18582         * libm/math/*.c: On systems with IEEE single precision "doubles"
18583         move foo() -> foof() wrapper code from the files that implement
18584         the standard IEEE double precision functions to the files that
18585         implement IEEE single precision functions. (ie. On those systems
18586         sin is moved from s_sin.c to sf_sin.c).  There should eventually
18587         be use of a C extension (like gcc's alias attribute) so that the
18588         wrappers are not needed at all.
18589
18590         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
18591         strict NEC V810 compiler.
18592         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
18593         for same reason.
18594
18595 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18596
18597         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
18598         from NetBSD C library.
18599         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
18600
18601         * libc/stdlib/assert.c (__assert): Renamed from __assertfail
18602         and adapted from implementation I wrote for NetBSD C library.
18603         The difference is __assert doesn't take a format argument,
18604         so that there won't be multiple copies of the same string
18605         constant in the executable if assertions are enabled in
18606         more than one source module.
18607         * libc/include/assert.h (assert): Changed to call __assert.
18608
18609 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18610
18611         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
18612         word1 on systems with 32 bit doubles.
18613         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
18614         so that we can do arithmetic on them.
18615         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
18616         compilers.
18617
18618 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
18619
18620         * libc/sys/arm/crt0.S: Zero bss.
18621
18622 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
18623
18624         * libc/include/unctrl.h: New file.
18625         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
18626         * configure.in (subdirs): Add libc/misc.
18627         * libc/Makefile.in (SUBDIRS): Add misc.
18628         (SUBLIBS): Add misc/lib.a.
18629
18630         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
18631
18632 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
18633
18634         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
18635         (_vfprintf_r): Call CHECK_INIT.
18636
18637 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
18638
18639         * Makefile.in (MULTITOP): Delete.
18640         (MULTISRCTOP, MULTIBUILDTOP): Add.
18641         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
18642         instead of cfg-ml-pos.in.
18643
18644 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18645
18646         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
18647         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
18648         presence.
18649
18650 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
18651
18652         * libc/string/strtok.c: Include string.h to pick up strtok_r
18653         prototype.
18654
18655 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18656
18657         * libc/string/strtok.c: include <_ansi.h>.
18658         * libc/time/asctime_r.c: `reresult' -> `result'.
18659
18660 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18661
18662         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
18663         in #ifndef _REENT_ONLY ... #endif conditional.
18664
18665         * libc/include/string.h (_strtok_r): Remove declaration.
18666         * libc/include/time.h (_asctime_r): Remove declaration.
18667         * libc/string/strtok.c (_strtok_r): Removed.
18668         * libc/time/asctime.c (_asctime_r): Removed.
18669
18670         * libc/string/Makefile.in (OFILES): Add new object.
18671         * libc/string/strtok_r.c: New file.  strtok_r function as
18672         specified by POSIX.1c, adapted from strtok implementation
18673         from NetBSD C library.
18674         * libc/string/strtok.c (strtok): Reimplemented in terms of
18675         strtok_r.
18676
18677         * libc/time/Makefile.in (OFILES): Add new objects.
18678         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
18679         New files, reentrant time functions specified by POSIX.1c.
18680         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
18681         reentrant time functions re-written in terms of reentrant
18682         functions.
18683         * libc/time/lcltime.c: Renamed from localtime.c
18684
18685         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
18686         gmtime_r, and localtime_r.
18687
18688 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
18689
18690         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
18691         * libc/include/sys/unistd.h (getlogin): Revert change of
18692         Oct 19.
18693         * libc/include/sys/signal.h (sigprocmask): Change prototype
18694         so it compiles with c++.
18695
18696 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
18697
18698         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
18699         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
18700         to give some room in case we need to align the jmp_buf.
18701
18702         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
18703         the new ppc-asm.h include file the compiler provides to specify
18704         function prologue/epilogue.  Eliminate saves of the xer and ctr
18705         registers, which are volatile.  Before starting to save registers,
18706         align to 8 byte boundary.
18707
18708 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
18709
18710         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
18711         referenced by standard libraries.
18712
18713 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
18714
18715         * libc/unix/Makefile.in, libc/string/Makefile.in,
18716         libc/stdio/Makefile.in, libc/reent/Makefile.in,
18717         libc/posix/Makefile.in:
18718         Remove tabs from otherwise empty line.  Confuses some
18719         older non-GNU versions of "make".
18720
18721 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18722
18723         * libc/sys/unistd.h (getlogin): Returns const char *.
18724
18725 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
18726
18727         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
18728         * libc/include/errno.h: Moved into and include...
18729         * libc/include/sys/errno.h: New file.
18730         * libc/include/sys/wait.h: New file.
18731         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
18732         * libc/sys/win32/*: Moved out.
18733         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
18734         * configure.in (i[345]86-*-win32): HAVE_RENAME
18735
18736 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
18737
18738         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
18739         avoid macro expansion for these two names.
18740
18741 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
18742
18743         * libc/machine/h8500/psi.S: r6 renamed to fp.
18744
18745 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
18746
18747         * configure.in (powerpc*): No longer need to define
18748         NO_LONGLONG_POINTERS to supress warnings.
18749
18750 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18751
18752         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
18753         through PTR instead of directly.
18754
18755         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
18756         non-standard constructor support.
18757
18758 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18759
18760         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
18761         address of the Bigint instead of the address of its _x field,
18762         as the size the result buffer was calculated accordingly.
18763         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
18764
18765         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
18766         from NetBSD C library.  No longer special cases division by
18767         zero (which needs to be done by the application anyway), but
18768         it doesn't need to call abs() (or labs()) four times either.
18769
18770         * libc/stdlib/qsort.c: Replaced with implementation from
18771         NetBSD C library.
18772
18773 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18774
18775         * libc/stdio/vfprintf.c: Replaced with implementation from
18776         NetBSD C library (which is derived from the 4.4BSD C library).
18777         * libc/stdio/cvt.c: Removed.
18778         * libc/stdio/Makefile: Updated.
18779
18780 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
18781
18782         * libc/sys/win32/syscalls.c (rename): New.
18783         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
18784
18785 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
18786
18787         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
18788         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
18789
18790         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
18791         (setjmp.o): Delete rule to build setjmp.o.
18792         * libc/sys/sh/setjmp.S: Delete file.
18793
18794 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18795
18796         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
18797         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
18798         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
18799         pow5mult and s2b to identifiers with leading underscores.
18800         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
18801         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
18802
18803 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
18804
18805         * libc/sys/posix/popen.c (sys/types.h): Include.
18806
18807 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
18808
18809         * libc/sys/win32/syscalls.h (fhandler): New struct.
18810         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
18811         (__fhandler_normal): Declare.
18812         (hinfo): New member op_handlers.
18813         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
18814         (__write): Likewise.
18815         (_read, _write, _open, _close, _lseek): Validate fd here.
18816         Move file type specific stuff to foo_normal.
18817         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
18818         New functions.
18819         (__lookup_fhandler): New function.
18820         (__lookup_fhandler_hook, __fhandler_normal): New variables.
18821
18822         From anders.blomdell@control.lth.se (Anders Blomdell)
18823         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
18824         Don't touch standard handles.
18825         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
18826         (_execve): Only create __FD_TABLE__ if necessary.
18827         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
18828
18829 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
18830
18831         * libc/sys/win32/sys/termios.h (FLUSHO): New.
18832         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
18833         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
18834         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
18835         without a handler is received.
18836         * libc/sys/win32/Makefile.in: Remove --nodelete.
18837         * libc/sys/win32/resouce.c (gettimeofday): New.
18838         * libc/sys/win32/syscalls.c (path_to_real_path): New.
18839         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
18840
18841 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
18842
18843         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
18844         Don't append "/*" to search pattern if trailing '/' already there,
18845         append "*".
18846         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
18847         like /'s, convert them to \'s.  Handle //<drive>/ path names.
18848         Add space for quoted \'s in arg string.  Print translated prog name
18849         and original prog name.
18850         (_execve): Handle parent doing exec a teensy bit better.
18851         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
18852         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
18853         path needs conversion, handle both cases.  Delete `const' from result.
18854         (hash_path_name): New function.
18855         (_open): Call it.
18856         (_stat): Likewise.  Fill in more fields for directories.
18857         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
18858         (wait_for_any): Fix trace message.
18859         (waitpid): Explicitly test for intpid == 0.
18860
18861         From anders.blomdell@control.lth.se (Anders Blomdell)
18862         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
18863         so `next' is valid.
18864
18865 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
18866
18867         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
18868         complicated.
18869
18870 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
18871
18872         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
18873         at all, not just == 1.
18874         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
18875
18876 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
18877
18878         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
18879         * libc/sys/win32/include/wintypes.h: include <winnt.h>
18880         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
18881         file.
18882
18883 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18884
18885         * libc/sys/syscalls.c (getcwd): Fix off by one error.
18886
18887         * libc/sys/signal.c (sleep): Fill it in.
18888         * libc/sys/termios.c (tcflush): Use PurgeComm
18889         (tcsetattr): Set some more of the bits.
18890         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
18891
18892 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
18893
18894         * libc/sys/arm/crt0.S (fp): Initialize to 0.
18895         Conditionally include .idata$3 stuff ifdef __pe__.
18896
18897 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
18898
18899         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
18900         * libc/sys/win32/pipe.c (pipe): Ditto.
18901         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
18902         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
18903         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
18904         (tcgetattr): Contents are new.
18905         * libc/sys/win32/include/winkernel.h (DCB): New.
18906         (GetCommState, SetCommState): New.
18907
18908 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
18909
18910         * libc/sys/arm/crt0.S (_start): Define.
18911
18912 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
18913
18914         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
18915         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
18916
18917         * libc/sys/win32/sysconf.c: New
18918         * libc/sys/win32/sys/winadvapi.h: New
18919         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
18920         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
18921         * libc/sys/win32/pipe.c (pipe): Ditto.
18922         * libc/sys/win32/signal.c (_raise): New.
18923         (_kill): Moved from spawn.c
18924         * libc/sys/win32/spawn.c (kill): Moved to signal.c
18925         * libc/sys/win32/syscalls.c (__read): Use new fields.
18926         (_open): Ditto.
18927         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
18928         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
18929         * libc/include/sys/unistd.h (rmdir): Takes const path.
18930         * libc/include/sys/stat.h (mkdir): Takes const path.
18931         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
18932
18933 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18934
18935         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
18936
18937         Add support for specifying paths as //<drive>/foo/bar.
18938         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
18939         (__path_to_real_path): Declare.
18940         (PATH_TO_REAL_PATH): New macro.
18941         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
18942         (__path_needs_conversion_p, __path_to_real_path): New functions.
18943         (_open): Fix test for error return from CreateFileA.
18944         Handle new path syntax.
18945         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
18946         * libc/sys/win32/dirsearch.c (opendir): Likewise.
18947
18948 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
18949
18950         * libc/sys/win32/include/*.h: Reorganized
18951         * libc/sys/win32/include/WINREADME: New.
18952         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
18953         * libc/sys/win32/*.c: Fix for new include scheme.
18954         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
18955         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
18956         * libc/sys/win32/passwd.c (*): Fix.
18957         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
18958         (_stat): Get directory owner and permissions right.
18959         * libc/sys/win32/syscalls.h (uinfo): New.
18960         * libc/sys/win32/version.def: Remove leading underscores.
18961
18962 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
18963
18964         * libc/sys/win32/key.c: include "include/wincon.h".
18965
18966 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
18967
18968         * libc/sys/win32/{key, stubs}.c: New.
18969         * libc/sys/win32/Makefile: Adjust to cope.
18970         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
18971         (environ_init): Change env names to upper case.
18972         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
18973         * libc/sys/win32/passwd.c (*): Fill in the functions.
18974         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
18975         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
18976         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
18977         (_open): Initialze hmap->execable_p too.
18978         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
18979         (_fstat): Fill in permissions.
18980         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
18981
18982 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
18983
18984         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
18985         if defined.
18986         (cfg-ml-pos.in invocation): Likewise.
18987
18988 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
18989
18990         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
18991         s_isnan.o and sf_isnan.o.
18992
18993 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
18994
18995         * All Makefile.in files: added maintainer-clean target as a
18996         synonym for realclean.
18997
18998 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
18999
19000         * libc/include/machine/setjmp.h: Add hppa support.
19001         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
19002         support.
19003         * libc/machine/hppa/Makefile.in: Related changes.
19004
19005 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19006
19007         * configure.in (machine_dir): Don't set for v810-*-*.
19008
19009 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19010
19011         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
19012         conventions correctly.
19013
19014 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
19015
19016         * libc/stdio/puts.c: Update documentation of return value to match
19017         ANSI standard.
19018
19019 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
19020
19021         Fix file descriptor inheritance.
19022         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
19023         (NOT_OPEN_FD): Fix.
19024         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
19025         close-on-exec flag not set.  Initialize child's entire fd table.
19026         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
19027         CHILD_P.
19028         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
19029         if CHILD_P.  Initialize entire hmap entry.
19030         (dup): Only create new handle as inheritable if CHILD_P.
19031         (dup2): Likewise.  Properly initialize hmap entry.
19032
19033         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
19034         _spawn.
19035         (_exit): Use CHILD_P.
19036         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
19037         (_stat): Likewise.
19038
19039 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19040
19041         * libc/sys/win32/crt0.c (passover): fix up the state table.
19042         * libc/posix/popen.c: Added.
19043         * libc/posix/Makefile.in: compile popen.c.
19044
19045 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
19046
19047         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
19048         h8/500 define _DOUBLE_IS_32BITS.
19049
19050 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
19051
19052         Get vfork/exec/spawn/cwait/wait working again.
19053         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
19054         (procinfo): New member vfork_level.
19055         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
19056         (vfork_init_first): Use GetCurrentProcessId to get pid.
19057         Initialize vfork_level.
19058         (vfork_init): Delete __PID__.
19059         (environ_init): New function.  Undo patch of Aug 19, Posix says
19060         environment variables are case sensitive.
19061         (mainCRTStartup): Call it.
19062         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
19063         (my_longjump: Make static.
19064         (_spawn): New argument `h'.  Delete setting of __PID__.
19065         Delete local `idx'.  Look for chars that need quotes, rather than
19066         ones that don't.  Set handle of created process in `h'.
19067         Result is process id if created task.
19068         (allocate_spawn_entry): New function.
19069         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
19070         (_execve): Set __FD_TABLE__ before spawning child.
19071         Scan our fd table when passing fds, not our parent's.
19072         Store handle and pid in procinfo entry.
19073         (vfork0): Ensure strace message always printed.
19074         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
19075         (vfork): Don't clobber result of vfork0.
19076         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
19077         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
19078
19079         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
19080         and `exit_code'.
19081         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
19082         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
19083         adding vfork level to pseudo-pid.
19084         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
19085         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
19086         (_exit): If child, set exit code.
19087         (__vfork_record_death): Only close process handle if valid.
19088         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
19089         didn't exec.
19090         (wait_for_any): Likewise.  Start scan after root entry.
19091
19092 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19093
19094         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
19095         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
19096         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
19097         of actual file length.
19098
19099         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
19100         * libc/include/paths.h: _PATH_BSHELL added.
19101         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
19102         and STDERR_FILENO.
19103
19104 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19105
19106         * libc/include/ar.h: Added.
19107         * libc/include/sys/types.h: ino_t goes back to 32-bits.
19108         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
19109         * libc/sys/win32/syscalls.c (_open): compute .namehash based
19110         on filename.
19111         (_fstat): use .namehash for inode number of the fd.
19112
19113 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19114
19115         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
19116          Change hinfo to __this_procinfo.
19117         * libc/sys/win32/crt0.c: Remove procinfo_list.
19118
19119 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19120
19121         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
19122         win32 environment.
19123
19124 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19125
19126         * libc/sys/win32/include/grp.h: Removed.
19127         * libc/sys/include/grp.h: Added.
19128         * libc/sys/win32/grp.c: Include <grp.h>.
19129
19130 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
19131
19132         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
19133         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
19134         Defined for all but strict ANSI.
19135         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
19136         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
19137         * libc/signal/signal.c (_signal_r): Changed from using
19138         _MAX_SIGNALS to NSIG.
19139         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
19140          __hmap): Deleted.
19141         (__strace, __vfork_next_pid): New.
19142         (__exe_suffix): Default to 1.
19143         (passover, table): Understand quoted arguments.
19144         (vfork_init_first): New.
19145         (vfork_init): Initialize new process structure.
19146         (mainCRTStartup): Pass environ to main.
19147         * exceptions.c (__sig_mask): New
19148         (ehandler3): Ignore signals in mask.
19149         (really_exit): Remove CHILD_P test.
19150         * pipe.c (pipe, dup, dup2): Use new process and file structure.
19151         * resource.c (getrusage): Ditto.
19152         * signal.c (sigprocmask): New.
19153         * spawn.c (*): Rewritten.
19154         * syscalls.c (*): Use new process and file structure.
19155         (find_unused_handle): New.
19156         * syscalls.h (MAX_HANDLES): Deleted.
19157         (hinfo): Removed child_created_p.
19158         (MAX_CHILDREN): Deleted.
19159         (vfork_jmp_info, procinfo): New.
19160         * wait.c (*): Mostly new.
19161         * sys/strace.h (_STRACE_PARANOID): New.
19162         * sys/param.h: New file.
19163
19164 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19165
19166         * libc/include/sys/stat.h: add S_BLKSIZE.
19167         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
19168         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
19169         types under win32.
19170         (mode_t): add a #else to avoid multiple definitons.
19171
19172         * libc/sys/win32/Makefile.in: add grp.c.
19173         * libc/sys/win32/grp.c: include grp.h correctly.
19174         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
19175         of the st structure with real information.
19176         * libc/sys/win32 (dirent): d_ino is of type ino_t.
19177
19178 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
19179
19180         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
19181         and (maybe) sparc64.
19182         (nlink_t): Provide typedef.
19183
19184 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
19185
19186         * libc/sys/win32/grp.c: New file.
19187         * libc/sys/win32/include/grp.h: New file.
19188
19189 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19190
19191         * libc/include/machine/ieeefp.h: Added whitespace to make this
19192         file easier to maintain.
19193         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
19194         depending on the value of __LITTLE_ENDIAN__.
19195         On the sh3e, define _DOUBLE_IS_32BITS.
19196
19197 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19198
19199         * libc/sys/vr4300/syscalls.c: Added missing support
19200         routines. _raise() and getpid().
19201
19202 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
19203
19204         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
19205
19206 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
19207
19208         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
19209         and VR4300 processor.
19210         * libc/sys/vr4300: Add directory.
19211         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
19212         monitor run-time support.
19213
19214 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19215
19216         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
19217         * libc/stdlib/stdlib.tex: Don't include atol.def.
19218
19219 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19220
19221         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
19222
19223 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
19224
19225         * libc/ctype/Makefile.in: Fill in _to* dependencies.
19226
19227 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
19228
19229         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
19230         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
19231         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
19232         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
19233         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
19234
19235 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19236
19237         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
19238
19239 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19240
19241         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
19242         * libc/stdlib/atoff.c: New file.
19243         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
19244         * libc/stdlib/atoi.c (atol): Removed.
19245         * libc/stdlib/atol.c: Removed duplicate documentation.
19246
19247         * libc/include/ctype.h (_tolower, _toupper): Moved inside
19248         #ifndef _STRICT_ANSI conditional.
19249         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
19250         * libc/ctype/_tolower.c: New file.
19251         * libc/ctype/_toupper.c: New file.
19252         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
19253         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
19254         * libc/ctype/toascii.c (_toascii): Removed.
19255
19256 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
19257
19258         * libc/sys/sparc64/sys/types.h: Deleted.
19259
19260 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19261
19262         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
19263         and recognize Windows_95 systems.
19264
19265 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19266
19267         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
19268         and passed fds should be opened in text mode.
19269
19270 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
19271
19272         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
19273         in __hmap, set to binary mode by default.
19274
19275 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19276
19277         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
19278         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
19279         vector 34.
19280
19281 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
19282
19283         * Makefile.in (install): Install all libraries found in the
19284         top level.  If there's a sys/<type>/include directory,
19285         install those headers into include.
19286
19287         * libc/sys/win32/kernel.def351: Delete
19288         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
19289         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
19290         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
19291         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
19292         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
19293         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
19294         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
19295         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
19296
19297         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
19298         * libc/sys/win32/crt0.c: Force all env names to upper case.
19299         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
19300         * libc/sys/win32/*.c: Headers have moved.
19301         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
19302         __vfork_child_idx is now __vfork_child_ptr.
19303
19304         * posix/execvp (execvp): Don't crash if no PATH envname.
19305
19306 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19307
19308         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
19309         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
19310         through the _freelist instead of through the _reclaim list.
19311         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
19312         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
19313         sources.
19314
19315 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19316
19317         * libc/machine/h8500/setjmp.S: New file.
19318         * libc/include/machine/setjmp.h: Updated for H8/500.
19319
19320 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
19321
19322         * libc/sys/win32/syscalls.c (_open): More stracing.
19323         (_stat): Open the file in O_BINARY.
19324
19325 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19326
19327         * libc/machine/h8300/setjmp.S: New file.
19328         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
19329
19330 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
19331
19332         * libc/sys/win32/crt0.c (__exe_suffix): New global.
19333         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
19334         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
19335         __exe_suffix.  Free fd_tab after setting env variable.
19336         (spawnv,_execve): Update.
19337         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
19338         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
19339         (__small_vfprintf): New function.
19340         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
19341         * libc/sys/win32/wait.c (cwait): Validate argument.
19342
19343         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
19344         (process_deletion_queue): Likewise.
19345
19346         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
19347
19348 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
19349
19350         * libc/sys/win32: Copyrights and gratuitous indenting.
19351
19352 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
19353
19354         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
19355         (process_deletion_queue): Likewise.
19356         (__close_all_files): New function.
19357         (_close): Only queue file deletion if really a file.
19358         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
19359         _P_APPEND_EXE.
19360         (_exit): Call __close_all_files.
19361
19362         * libc/stdlib/system.c: #include <errno.h>.
19363         (_system_r): Fix results in -DNO_EXEC case.
19364
19365         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
19366         Reorganize structure.
19367         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
19368         if argument is valid.  Save directory name in DIR.  malloc space
19369         for dirent struct separately.
19370         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
19371
19372         * libc/include/errno.h (ENAMETOOLONG): Define.
19373         * libc/string/strerror.c (strerror): Reword ENFILE.
19374         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
19375
19376 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
19377
19378         * libc/sys/win32/crt0.c (__progname): New global.
19379         (mainCRTStartup): Support strace=bitmask,filename.
19380         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
19381         * libc/sys/win32/syscalls.c (_write): Print parent trace message
19382         if error.
19383         (getcwd): Handle len too small.  Convert '\\' to '/'.
19384         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
19385         Add prototypes for open, creat, fcntl.
19386         (O_APPEND): Change value to conform to Microsoft's value.
19387         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
19388
19389         * libc/stdlib/getopt.c: New file.
19390         * libc/stdlib/Makefile.in: Build it.
19391
19392 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
19393
19394         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
19395         Fix scanning of $PATH.
19396         * libc/posix/exec*.c: Call _execve, not execve.
19397         * libc/posix/execve.c: New file.
19398         * libc/posix/Makefile.in (OFILES): Add execve.o.
19399
19400         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
19401         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
19402         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
19403         * libc/sys/win32/crt0.c: Update _STRACE calls.
19404         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
19405
19406         * libc/sys/win32/smallprint.c (rn): Fix digit list.
19407
19408         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
19409         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
19410         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
19411         Print __seterrno trace message first.
19412         (_execve): Renamed from execve.
19413         (vfork): Update __strace usage.
19414         (__vfork_child_pid): Deleted.
19415         (__vfork_children, __vfork_child_idx): New globals.
19416         (_spawnvp): New function.
19417         (spawnvp, spawnv, _execve): Call _spawnvp.
19418         (init_child): Record child in __vfork_children.
19419         (__vfork_get_entry, __vfork_record_death): New functions.
19420         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
19421         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
19422         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
19423         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
19424         (children): New typedef.
19425         (__vfork_children,__vfork_child_idx): Declare.
19426         (__vfork_get_entry,__vfork_record_death): Declare.
19427         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
19428         (waitpid): Handle pid == -1.
19429         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
19430         * configure.in (i386-win32): Add -DNO_FORK.
19431         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
19432         * libc/reent/execr.c (_fork_r): Likewise.
19433         * libc/stdlib/system.c (do_system): New function.
19434         If WIN32, try to get shell path from $SH_PATH, use vfork.
19435         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
19436         otherwise return 0.
19437
19438 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
19439
19440         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
19441         * libc/sys/win32/fcntl.h: Don't include self.
19442         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
19443         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
19444         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
19445         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
19446         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
19447         Correct prototypes.
19448         * libc/sys/win32/strace.c: New file.
19449         * libc/sys/win32/smallprint.c: New file.
19450         * libc/sys/win32/crt0.c (func): Delete.
19451         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
19452         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
19453         * libc/sys/win32/exceptions.c: Lint.
19454         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
19455         Clean up handle usage.
19456         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
19457         (open.c): Default file type is text.
19458         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
19459         * libc/sys/win32/advapi32.def: New
19460
19461 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19462
19463         * configure.in (posix_dir, libc_posix_lib): New variables.
19464         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
19465         (i[345]86-*-win32): Define posix_dir.
19466         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
19467         (if unix_dir): Fix typo.
19468         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
19469         scandir,seekdir,telldir}: New files.
19470         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
19471         from libc/unix.
19472         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
19473         (SUBDIRS): Add posix.
19474         (SUBLIBS): Add $(LIBC_POSIX_LIB).
19475
19476         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
19477         (NSIG): Increase to 21.
19478         * libc/include/sys/unistd.h (pid_t): Move from here,
19479         * libc/include/sys/types.h (pid_t): to here.
19480
19481         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
19482         (__ptrace): Delete.
19483         (hinfo): New members close_exec_p, child_created_p.
19484         (struct exception_list): Define.
19485         (__hmap): Redefine as pointer to table.
19486         (__parent_hmap, __child_hmap): New globals.
19487         (__set_errno, __really_exit): Declare.
19488         (__vfork_child_pid): Declare.
19489         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
19490         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
19491         (__parent_hmap, __child_hmap): New globals.
19492         (__hmap): Redefine as pointer to active map.
19493         (__get_console): New function.
19494         (mainCRTStartup): Change leading '=' in environ vars to '!'.
19495         (env __FD_TABLE__): Watch for this and initialize our fd/handle
19496         mapping table from it if defined.
19497         (argv, envp): Dump if __strace >= 4.
19498         (main): Call here.
19499         * libc/sys/win32/exceptions.c (myp): Redefine.
19500         (__syscalls_b): Delete.
19501         (__stack_trace): New function.
19502         (ehandler3): Update to use _STRACE.  Print stack trace.
19503         Call __really_exit instead of exit.
19504         (init_exceptions): Delete args argc,argv.  New arg mine.
19505         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
19506         FindFirstFileA, FindNextFileA, GetComputerNameA,
19507         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
19508         * libc/sys/win32/signal.c (signal): Validate arg.
19509         (alarm, sleep): Define as stubs for now.
19510         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
19511         (__syscalls_b, errno): Delete.
19512         (__vfork_child_pid, __vfork_jmp_buf): New globals.
19513         (__seterrno): Handle more errors.
19514         (__sys_printf): Renamed from _ptrace.
19515         (__really_exit): New function.
19516         (queue_file_deletion, process_deletion_queue): New functions.
19517         (__resume_parent): New function.
19518         (_unlink): Handle trying to delete open file.
19519         (__totime_t): Renamed from totime_t.
19520         (setsid, __read, __write): New functions.
19521         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
19522         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
19523         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
19524         * libc/sys/win32/console.c: Update to new definition of __hmap.
19525         * libc/sys/win32/Makefile.in: Build new files.
19526         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
19527         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
19528         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
19529         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
19530
19531 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
19532
19533         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
19534
19535 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19536
19537         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
19538         have been made to the master dtoa.c sources (from netlib.att.com)
19539         since they were integrated into newlib in early 1992.  Fixes
19540         problems with storage leaks and handling of numbers with very
19541         negative exponents.
19542
19543 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19544
19545         * Makefile.in (all): set rootpre and srcrootpre before calling
19546         sub-makes.
19547
19548 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
19549
19550         * libc/sys/win32/crt0.c: Change __hmap usage.
19551         * libc/sys/win32/exceptions.c: Use _ptrace call.
19552         * libc/sys/win32/syscalls.c: Use _ptrace call.
19553         (read, write): Cope with DOS style CRLF when in TEXT mode.
19554         * libc/sys/win32/syscalls.h: Declare hinfo struct.
19555         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
19556         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
19557         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
19558         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
19559
19560 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19561
19562         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
19563
19564         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
19565         wrappers for hypot() and remainder() for BSD libm compatibility.
19566         These are public domain implementations written by me for the
19567         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
19568         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
19569         (fobj): Added wf_cabs.o and wf_drem.o.
19570
19571 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19572
19573         * libc/sys/h8500hms/misc.c: New file.
19574         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
19575
19576 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19577
19578         * libc/time/localtime.c (localtime): Fix problem with leap year
19579         handling.  Stole algorithm from Arthur David Olson's tz code.
19580
19581 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
19582
19583         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
19584
19585         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
19586         (_exit): Use argument.
19587
19588 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
19589
19590         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
19591
19592 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
19593
19594         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
19595
19596 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19597
19598         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
19599         target_cflags.
19600
19601 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
19602
19603         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
19604         ptrace with case insensitivity
19605         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
19606         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
19607         New files.
19608
19609 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
19610
19611         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19612         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
19613         (all, install, *clean): Use new multilib support.
19614         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
19615
19616 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
19617
19618         * libc/include/sys/signal.h (__WIN32__): New.
19619
19620         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
19621
19622         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
19623         (ulp, b2d): Handle 32 bit doubles.
19624         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
19625         * libc/stdlib/strtod.c (_strtod_r): Ditto.
19626
19627 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
19628
19629         from medp@primag.co.uk:
19630         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
19631         dynamically allocated buffers.
19632
19633 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
19634
19635         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
19636         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
19637
19638 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19639
19640         * configure.in (powerpc): Fix previous fix.
19641
19642 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19643
19644         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
19645         directories for this target.
19646
19647 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
19648
19649         * configure.in (hppa): Add machine_dir definition.
19650         * libc/machine/hppa: New directory with PA specific implementations
19651         of the basic memory/string functions.
19652
19653 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
19654
19655         * configure.in: Update current PowerPC multilib directories.
19656         Split big and little endian configurations.
19657
19658 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
19659
19660         * configure.in: Add --enable-single-float option to configure to
19661         control use of MIPS single-float directories.  Default to yes.
19662
19663         * Makefile.in (all): Don't recurse into multilib directory if it
19664         does not exist.
19665
19666 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19667
19668         * libc/sys/sh/syscalls.c: Fix typo.
19669
19670 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19671
19672         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
19673         Pass down DLLTOOL.
19674         * libc/include/process.h: Define WAIT_CHILD.
19675         * libc/include/types.h: Get sizes right for win32.
19676         * configure.in (i386-*-pe): Becomes i386-win32.
19677         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19678         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
19679         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
19680         is defined.
19681
19682 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19683
19684         * configure.in (i[345]86-*-pe):  New target (NT).
19685         * host/any: DLLTOOL new.
19686         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
19687         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
19688         WIN32 (just enough to cross host the comp-tools).
19689
19690 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
19691
19692         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
19693         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
19694
19695 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
19696
19697         * libc/include/machine/ieeefp.h (arm): Change to always be
19698         __IEEE_BIG_ENDIAN (even on little endian ARM's).
19699
19700 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19701
19702         * libc/sys/crt0.S: Initialze sp, and call exit after main.
19703         * libc/sys/syscalls.c (abort): New.
19704         * configure.in (arm): Define ABORT_PROVIDED.
19705
19706 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19707
19708         * configure.in (powerpc): Define multidirs.
19709
19710 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
19711
19712         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
19713
19714 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
19715
19716         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
19717
19718 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
19719
19720         * configure.in, libc/include/machine/ieeefp.h: Modified
19721         for arm:
19722         libc/machine/arm/*, libc/sys/arm/*: New
19723
19724 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19725
19726         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
19727           __powerpc__ when determining endianness.
19728
19729 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19730
19731         * configure.in (m68*): Add multidir for the m68332.
19732
19733         * host/any (CC): Fix typo in last change.
19734
19735 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
19736
19737         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
19738         when determining endianness.
19739         * libc/include/machine/ieeefp.h: Ditto.
19740         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
19741         operands.
19742
19743 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
19744
19745         * libc/include/errno.h (ENOTEMPTY): Define.
19746
19747 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19748
19749         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
19750           target_cflags.
19751
19752         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
19753           and umultiply.o.
19754
19755         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
19756           instead of only when open succeeds.  ANSI requires that multiple
19757           calls to tmpnam() result in different files.
19758
19759         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
19760           objects pulled in from /lib/libc.a that must be renamed before
19761           being pulled into newlib.  /lib/libc.a's div.o conflicted with
19762           newlib's file with the same name.
19763
19764         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
19765
19766         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
19767           the build tree will only be used if the executables are present
19768           (instead of just the Makefiles).
19769
19770         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
19771           wcstombs): Define.
19772         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
19773           versions of these functions that I orignally wrote for the
19774           NetBSD C library.
19775         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
19776           versions I wrote for NetBSD.
19777
19778 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
19779
19780         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
19781         * libc/sys/sparclite/crt0.s: ditto.
19782
19783 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
19784
19785         * configure.in: Add soft-float for proelf.
19786
19787 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
19788
19789         * libc/stdlib/mprec.h (Bcopy): Copy the right number
19790         of bytes.
19791
19792 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
19793
19794         * Makefile.in (all): Depend on `force'.
19795         * configure.in (syscall_dir): Renamed from fake_sys_dir.
19796         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
19797         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
19798         * libc/Makefile.in: Likewise.
19799         * libc/include/reent.h: Update syscall references.
19800         (_fcntl_r): Add prototype.
19801         * libc/syscalls/*.c #include <reent.h>.
19802         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
19803
19804 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
19805
19806         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
19807         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
19808         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
19809         (time.h, sys/types.h): Always include (even if MSDOS).
19810         (stat): Fix prototype.
19811
19812 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
19813
19814         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
19815
19816 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
19817
19818         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
19819
19820 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
19821
19822         * libc/include/regdef.h: New file.
19823         * libc/machine/mips/machine/regdef.h: New file.
19824
19825 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
19826
19827         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
19828
19829 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
19830
19831         * libc/sys/sh/crt0.S: Pass main's return to exit.
19832         * libc/sys/sh/trap.S: Put errno in the right place.
19833
19834 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19835
19836         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
19837         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
19838         * libm/math/ef_rem_pio2.c: Likewise.
19839         * libm/math/e_log10.c: Remove unused static one.
19840         * libm/math/ef_log10.c: Likewise.
19841         * libm/math/s_frexp.c: Likewise.
19842         * libm/math/sf_frexp.c: Likewise.
19843
19844 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
19845
19846         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
19847         longjmp.S: Upgraded.
19848         * libc/sys/go32/sys/setjmp.h: Upgraded.
19849         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
19850
19851 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19852
19853         * configure.in: Add many entries to multidirs for mips targets.
19854
19855 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
19856
19857         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
19858           5.2 which fixes bug where jn(-1,x) is three times larger than
19859           the actual answer.
19860         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
19861
19862 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
19863
19864         * libc/sys/w65/sys/syscalls.h: New file
19865         * libc/include/machine/ieeefp.h: W65 support.
19866         * libc/include/sys/config.h: Ditto.
19867         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
19868         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
19869         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
19870
19871 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19872
19873         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
19874
19875 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
19876
19877         * Makefile.in, configure.in: Remove any references to the old
19878         "stub" dir.
19879
19880 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19881
19882         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
19883         uses ... in prototype.
19884
19885
19886 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
19887
19888         * libc/sys/a29khif/sys/libconfig.h: Remove.
19889         * libc/sys/go32/sys/libconfig.h: Remove.
19890         * libc/sys/sun4/sys/libconfig.h: Remove.
19891         * libc/sys/sysvi386/sys/libconfig.h: Remove.
19892         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
19893         * libc/sys/sparc64/sys/libconfig.h: Remove.
19894
19895         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
19896         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
19897         * libc/include/math.h: Change all uses of _FLOAT_RET and
19898         _FLOAT_ARG to float.
19899         * libm/test/math.c: Likewise.
19900         * testsuite/libm.sac/math.c: Likewise.
19901         * testsuite/libm.sac/working/math.c: Likewise.
19902
19903 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19904
19905         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
19906         gcc calls gas with endian option.
19907         * configure.in (sh): Build little endian version too.
19908
19909 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19910
19911         * configure.in: Configure big and little endian versions for MIPS
19912         targets.
19913
19914 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
19915
19916         * libc/include/limits.h: Deleted.
19917         * libc/include/machine/limits.h: Deleted.
19918
19919 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
19920
19921         * ChangeLog: Remove stub directory. This has all been rewritten
19922         and moved to devo/libgloss.
19923
19924 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
19925
19926         * Makefile.in (dvi): Add to info target, use $@ in sub make.
19927         (docs): Merge into info target.
19928         * libm/Makefile.in (dvi): Add $(srcdir).
19929         * libm/math/Makefile.in (chobjs): Remove underscores from file
19930         names.  Texinfo doesn't like them.
19931         (wacos.def, ...): Add explicit targets for all .def files.
19932         * libm/math/math.tex: Remove underscores from @include file names.
19933         * doc/Makefile.in (dvi): Add dummy target.
19934         * testsuite/Makefile.in (dvi): Add dummy target.
19935
19936 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
19937
19938         * Makefile.in (VERSION): Define.  For net newlib releases.
19939
19940 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
19941
19942         * README: New file.
19943
19944 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19945
19946         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
19947
19948 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19949
19950         * libc/stdlib/setenv.c (_findenv): Declare.
19951
19952         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
19953         fcntl to not use _EXFUN, and change string parameters to open and
19954         creat to be ``const char *''.
19955         * libc/sys/sparc64/sys/fcntl.h: Likewise.
19956         * libc/sys/sparc64/creat.c (creat): Make PATH const.
19957         * libc/syscalls/sysopen.c: Include <fcntl.h>.
19958         (open) Make _FILE const.
19959         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
19960         (_creat): Make PATH const.
19961         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
19962         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
19963         * libc/sys/m88kbug/syscalls.c (open): Likewise.
19964         * libc/sys/sh/syscalls.c (_open): Likewise.
19965         * stub/shared/glue.c (open): Make BUF const.
19966         * stub/ex93x/syscalls.c (open): Make FILENAME const.
19967
19968 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
19969
19970         * libc/include/errno.h: Add ENMFILE
19971         * libc/include/sys/config.h: Support Z8000.
19972         * libc/include/sys/signal.h: New signals for go32.
19973         * libc/machine/h8500/psi.S (__addpsir0r0): New function
19974         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
19975         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
19976         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
19977         size is variable, depending upon CHUNK_POWER.
19978         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
19979
19980 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
19981
19982         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
19983
19984 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19985
19986         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
19987
19988 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19989
19990         * configure.in: Change i[34]86 to i[345]86.
19991
19992         * libc/include/math.h: Don't define HUGE_VAL if it is already
19993         defined.
19994
19995 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
19996
19997         * testsuite/libm.sac/test_erfc.c: Correct some result values.
19998         * testsuite/libm.sac/test_gammaf.c: Likewise.
19999         * testsuite/libm.sac/test_sin.c: Likewise.
20000         * testsuite/libm.sac/test_tanh.c: Likewise.
20001
20002 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20003
20004         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
20005         already set.  Define typedefs __int32_t and __uint32_t.
20006         * libc/include/math.h: Include <machine/ieeefp.h>.
20007         (union __dmath): Use __uint32_t.
20008         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
20009         instead of int and unsigned int.
20010
20011 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20012
20013         Replace the math library with the SunPRO fdlibm package.
20014         * libm/math: Completely changed all files.
20015         * libm/ieeefp: Remove contents and directory.
20016         * libm/Makefile.in (LIBM_FP_LIB): Remove.
20017         (SUBDIRS): Just set to math/lib.a.
20018         * libm/libm.texinfo: Updated for new library.
20019         * libc/include/math.h: Extensive changes for new math library.
20020         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
20021         from _FLOAT_ARG to float.
20022         (maxpowtwo, maxpowtwof): Don't declare.
20023         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
20024         (libm_fp_lib): Removed.
20025         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
20026         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
20027         argument to ${RUNTEST}.
20028         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
20029         (.c.o): New rule.
20030         (RUNTESTFLAGS): Set CC and CFLAGS.
20031         (TESTS): Remove test_log2 and test_log2f.
20032         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
20033         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
20034         _FLOAT_ARG, for single precision argument type.
20035         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
20036         expected failure.  Close the input pipe.
20037         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
20038         Correct misspelling of inaccurate.
20039         (test_mok): Use ``inaccurate'', not ``wrong''.
20040         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
20041         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
20042         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
20043         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
20044         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
20045         test_yn.c): Correct many result values.  Many are still wrong.
20046
20047         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
20048         just copy the string.
20049         (_gcvt): Always return the buffer.
20050
20051 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20052
20053         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
20054
20055 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
20056
20057         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
20058         structure.
20059         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
20060         (_reclaim_reent): declare new entry point.
20061         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
20062         functions.
20063
20064         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
20065         ever allocated, so that we can later reclaim them all.
20066         (pow5mult): make reentrant.
20067
20068         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
20069         so that when given NULL as a buffer, return a pointer to static
20070         space in the rent structure.  This is not documented behaviour;
20071         it's only to support ecvt and fcvt, which aren't ANSI anyway.
20072         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
20073         therefore become reentrant).
20074
20075         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
20076
20077 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20078
20079         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
20080
20081 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
20082
20083         * Makefile.in: Make link to libg.a after libc.a; this is needed
20084           for the testsuites to build executables when everything comes
20085           from the tree.
20086
20087 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
20088
20089         * libc/Makefile.in: Add a VERSION variable so we can keep track.
20090         * libm/Makefile.in: Add a VERSION variable so we can keep track.
20091
20092 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
20093
20094         * libc/include/stdio.h: Use __VALIST, not va_list.
20095
20096 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
20097
20098         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
20099         testsuite/libm.sac/execute.exp:
20100           Replace error proc calls with perror calls.
20101
20102 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
20103
20104         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
20105         * libc/include/time.h: #define NULL as 0L.
20106
20107 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
20108
20109         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
20110         care of it.
20111
20112 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20113
20114         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
20115         not __unix__.
20116
20117 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
20118
20119         * configure.in (TARGET_CFLAGS): Set -O2 as default.
20120         (z8k-*-*): Use syscalls fake sys dir.
20121         * libc/sys/z8k/glue.c: Rename syscalls.
20122         * libc/sys/go32/Makefile.in: Use new routines.
20123         * libc/machine/Makefile.in: Fix typo in ln stuff.
20124
20125 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20126
20127         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
20128         * libc/Makefile.in (crt0.o): Likewise.
20129         * libc/machine/Makefile.in (lib.a): Likewise.
20130         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
20131
20132         All Makefile.in files: Added mostlyclean, realclean and distclean
20133         targets.
20134
20135         * Makefile.in: Don't bother to unexport XTRAFLAGS or
20136         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
20137         the top level Makefile.
20138
20139 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
20140
20141         * libc/sys/sparc64/sys/stat.h: New file.
20142         * libc/sys/sparc64/sys/time.h: New file.
20143         * libc/sys/sparc64/sys/types.h: New file.
20144
20145 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
20146
20147         * stub/ex93x/crt0.s (start): Add code to clear bss.
20148
20149 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
20150
20151         * libc/include/sys/types.h (time_t): Properly protect inside
20152         #ifndef __time_t_defined.
20153
20154         * libc/stdio/fileno.c: New file.
20155         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
20156         (fileno.o): Add dependency.
20157         * libc/include/stdio.h (__sgetc): Rename never to _never.
20158         (fileno macro): Disable, needs to do CHECK_INIT first.
20159
20160 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
20161
20162         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
20163         goal.
20164
20165         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
20166         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
20167         runtest.
20168         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
20169         runtest.
20170
20171 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
20172
20173         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
20174         of the various constants.
20175
20176 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
20177
20178         * libc/include/math.h: #ifndef __math_68881 around things which
20179         conflict with the (gcc-provided) inline functions in
20180         gcc/ginclude/math-68881.h.
20181
20182 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
20183
20184         * libc/include/_syslist.h (_gettimeofday): Define.
20185         (_times): Ditto.
20186         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
20187         (struct tms, timeval, timezone): Declare.
20188         (_gettimeofday_r, _times_r): Declare.
20189         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
20190         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20191         (time_t): Add multiple definition protection, __time_t_defined.
20192         * libc/include/sys/time.h: Don't #include <time.h>.
20193         Always define struct timezone (remove #ifndef _TIME_H_).
20194         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
20195         #ifdef _CLOCK_T_ surrounding definition of clock_t.
20196         * libc/reent/Makefile.in (OFILES): Add timer.o.
20197         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
20198         * libc/reent/timer.c: New file.
20199         * libc/time/clock.c: #include <reent.h>.
20200         (clock): Call _times_r instead of times.
20201         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
20202         HAVE_GET_TIME_OF_DAY.
20203         Add comment regarding supporting OS routine(s) required (for docs).
20204         #include <reent.h>.
20205         (time): Call _gettimeofday_r instead of gettimeofday.
20206         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
20207         * libc/time/ctime.c: Ditto.
20208         * libc/time/strftime.c: Ditto.
20209         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
20210         (TEMPLATE_SFILES_R): Define here.  Also define times.
20211         Add times_r.o/times.S dependence.
20212         (time2.c, junk.c): Deleted.
20213         * libc/sys/sparc64/time2.c: Deleted.
20214         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
20215
20216         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
20217         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
20218         * libc/sys/sparc64/junk.c: Deleted.
20219
20220 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
20221
20222         * libc/sys/sparc64/Makefile.in: Add times syscall.
20223         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
20224         be used with and without it.  Add comment clarifying Medium/Anywhere
20225         model requirements.
20226         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
20227         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
20228         even if obsolete.
20229
20230 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
20231
20232         * configure.in (target_cflags): Move init.
20233         (sparc64-*-*): Define HAVE_BLKSIZE.
20234
20235 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
20236
20237         * libc/include/sys/_types.h: New file.
20238         * libc/include/reent.h: #include it.
20239         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
20240         MISSING_SYSCALL_NAMES.
20241         Sort syscalls.
20242         * libc/include/_syslist.h: Remove _raise.
20243         * libc/reent/signalr.c: New file.
20244         * libc/reent/Makefile.in: Compile it.
20245         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
20246         Add doc for raise and _raise_r.
20247         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
20248         (raise): Call _raise_r.
20249         (_raise_r): Call _getpid_r and _kill_r.
20250         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
20251         (abort): Loop forever calling raise and _exit.
20252
20253 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20254
20255         * configure.in: Remove extraneous echo.
20256
20257 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
20258
20259         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
20260         collision with unistd.h, and fix for svr4.
20261
20262 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
20263
20264         * libc/stdio/local.h (_llicvt): Declare.
20265         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
20266         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
20267         (_llicvt): Define.
20268         (_sicvt): Fix function header (`value' is short).
20269         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
20270         Add printing of long long's support.
20271         Add printing of 8 byte pointer support.
20272
20273 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
20274
20275         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
20276         stat, chmod): New hooks.
20277         (sbrk): Abort if stack and heap collide.
20278         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
20279         shortcut when given small args.
20280         * libc/machine/sh/setjmp.s: Rewritten.
20281         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
20282         of cmp/str instruction.
20283
20284 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20285
20286         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
20287         and machine_dir powerpc.
20288         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
20289         Add cases for __powerpc__.
20290         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
20291         New files.
20292
20293         * libc/include/stdio.h (_iprintf_r): Declare correctly.
20294
20295 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
20296
20297         * libc/stdlib/callocr.c: New file with _calloc_r in it.
20298         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
20299
20300 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
20301
20302         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
20303         (print_e): More comments to describe args, etc.
20304         "type" arg may now be 'g' or 'G' for %g/G format --> remove
20305         trailing blanks.
20306         (_gcvt): Remove locals decpt, sign, end, p, done.
20307         More comments for print_e invocation.
20308         Pass "type" to print_e as is (g/G).
20309
20310 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
20311
20312         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
20313         stock m68000.
20314
20315 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
20316
20317         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
20318         works with any sized pointer, including ones bigger than ints and
20319         longs.
20320
20321 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
20322
20323         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
20324
20325 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20326
20327         * libc/include/stdlib.h (_calloc_r): Add prototype.
20328         * libc/machine/h8500/negsi2.c: New file.
20329         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
20330         large unsigned numbers.
20331         * libc/machine/h8500/cmpsi.c: Add cmppsi.
20332         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
20333         works when sizeof(size_t) != sizeof(char *).
20334         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
20335         get play area
20336         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
20337
20338 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
20339
20340         * libc/include/assert.h (assert): Handle -traditional.
20341
20342 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
20343
20344         * Makefile.in: added ; after every "fi" and "done" that wasn't at
20345         the end of a line (ie. anything before a backslash continuation)
20346         so that bash handles them.
20347
20348 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20349
20350         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
20351         stat to lstat
20352
20353 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
20354
20355         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
20356         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
20357         libc/machine/sh/udivsi3.s: Use new calling convention.
20358
20359 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
20360
20361         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
20362         chmod, access, chdir, chown by making _path const. Also fix _amode
20363         param of access.
20364
20365 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
20366
20367         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
20368         _khif_tmpnam, because it doesn't comply with ANSI but may be
20369         useful anyway. Real tmpnam was already in libc/stdio, and was
20370         colliding with this one (pr 2176.)
20371         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
20372         the wrong idea anyhow.
20373
20374 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20375
20376         * configure.in: Remove h8300h, we have multilib now.
20377
20378 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
20379
20380         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
20381         functions, to get preference over the ones in libiberty (since we
20382         provide correct declarations in <string.h>.
20383         * libc/string/Makefile.in: add support for strncasecmp,
20384         strcasecmp.
20385
20386 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
20387
20388         * Change netware config not to look for cpu explicitly.
20389
20390 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20391
20392         * libc/sys/sparc64/{creat.c,junk.c}: New files.
20393         * libc/sys/sparc64/Makefile.in: Add dependencies.
20394
20395 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
20396
20397         * configure.in: Clean up v9 a bit, new "os" aoutv8.
20398
20399 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
20400
20401         * libc/include/sys/reent.h: make structure smaller by allocating
20402         some stuff when needed.
20403         * libc/signal/signal.c: allocate as needed
20404         * libc/stdio/findfp.c,stdio/local.h: ditto
20405         * libc/stdlib/mprec.c: ditto
20406
20407         * libc/time/localtime.c: don't return a dangling stack ptr.
20408
20409 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20410
20411         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
20412
20413 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20414
20415         * libc/include/stdio.h (__sputc): comment out static inline which
20416           confuses coff toolchains.
20417
20418 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
20419
20420         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
20421         _write.s, getpid.c, kill.c, read.s}:
20422         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
20423         through the syscalls directory.
20424
20425 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20426
20427         * configure.in: fixed double quote gotcha.
20428
20429 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
20430
20431         * stub/ex931: stub library for sparclite board.
20432         * stub/idp: Renamed from mc68ec. Added contructor table
20433         stuff to linker script.
20434         * stub/mvme135: Renamed from m68kmvme. Added contructor table
20435         stuff to linker script.
20436
20437 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20438
20439         * configure.in: Configure testsuites only if they exist.
20440
20441 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20442
20443         * configure.in: Don't set machine_dir for i386 until there is
20444         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
20445         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
20446         CLOCK_PROVIDED and MALLOC_PROVIDED.
20447
20448         * libc/sys/netware: New directory.  Contains simplistic and
20449         probably incorrect stubs for NetWare.  Should be enough to load
20450         the library.
20451         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
20452         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
20453         stub files.
20454
20455         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
20456         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
20457         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
20458         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
20459
20460 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
20461
20462         * testsuite/Makefile.in: add "docs" dummy target for consistency
20463         with rest of newlib; turn "info" and "install-info" into dummy
20464         targets, since they wouldn't have worked.  (Depended on
20465         nonexistent "doc" subdir.)
20466
20467 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
20468
20469         * configure.in: handle mips* instead of mips
20470
20471 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
20472
20473         * libc/include/sys/dirent.h: New file.  If it is not overridden by
20474         a version of libc/sys/*/sys/dirent.h, it includes the next
20475         <dirent.h> file in case there is one lurking somewhere.
20476
20477 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20478
20479         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
20480         compliance, namely: Accept a minus sign.  Consider a single 0 with
20481         a radix of 0 as being a conversion.  Determine overflow correctly.
20482         If an overflow occurs, set *ptr to the end of the number, not the
20483         middle.
20484         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
20485
20486 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
20487
20488         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
20489
20490 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
20491
20492         * Makefile.in (INSTALL): Use $srcrootpre.
20493         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
20494         can't handle it.
20495         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
20496         it.
20497         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
20498         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
20499         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
20500         * libm/math/Makefile.in (matherr.o): Ditto.
20501
20502 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20503
20504         * configure.in: Build multidirs for z8k.
20505         * libc/include/stdlib.h (_strtoul_r): add prototype.
20506         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
20507         * libc/include/machine/setjmp.h: Add for z8k.
20508         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
20509         * libc/sys/z8ksim/glue.c: tidy up.
20510
20511 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
20512
20513         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
20514         New files.  Requires execve system call.
20515         * libc/unix/Makefile.in: Use them.
20516         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
20517         Deleted, moved to libc/unix.
20518         * libc/sys/sparc64/Makefile.in: Remove them.
20519
20520 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20521
20522         * libc/sys/sparc64/{template.S template_r.S}: New files.
20523         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
20524         from templates.
20525         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
20526         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
20527         umask.S unlink.S wait4.S write.S}: Removed, now built from
20528         templates.
20529
20530 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
20531
20532         * libc/time/time.c: #include <_ansi.h>.
20533
20534 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
20535
20536         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
20537
20538 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20539
20540         * configure.in: match m8* rather than m88k so that m88110 is
20541           recognized as well.
20542
20543 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
20544
20545         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
20546         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
20547         misc.c: New file.
20548
20549         * configure.in: Add multilib support to h8300.
20550
20551 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20552
20553         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
20554         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
20555         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
20556
20557 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20558
20559         * configure.in: Corrected multidirs for sparc target.
20560
20561 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
20562
20563         Support for building newlib multiple times with different
20564         compilation flags.
20565         * configure.in: Only configure doc at top level.  Set multidirs
20566         when appropriate for target, unless not at top level.  If
20567         multidirs is set, independently configure each subdirectory.
20568         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
20569         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
20570         automagically set by configure.in.
20571         (all): If MULTIDIRS is set, build multiple copies of libraries.
20572         (install): If MULTIDIRS is set, install multiple copies of
20573         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
20574         MULTISUBDIR is set, don't bother to install header files.
20575         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
20576         ${srcrootpre}.
20577         * stub/configure.in: Set MULTISUBDIR appropriately.
20578         * stub/Makefile.in (install): Install in
20579         $(tooldir)/lib/$(MULTISUBDIR).
20580         * All Makefile.in files: Define SRCTOP as well as TOP.
20581
20582 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
20583
20584         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
20585         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
20586
20587 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
20588
20589         * libc/sys/h8300hms/exit.c (_exit): New function.
20590
20591 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20592
20593         * configure.in: recognize m88110.
20594
20595 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20596
20597         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
20598           prototype main and call with args.
20599
20600 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
20601
20602         First real try at system traps for m88k-bug.
20603         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
20604           to real trap calls.
20605         * libc/sys/m88kbug/sys/systraps.h: new file.
20606
20607 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20608
20609         Patches to fix info building when target does not use sys
20610         directory.
20611         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
20612         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
20613           libc/sys.tex.
20614         * libc/sys/Makefile.in (doc): do nothing.
20615
20616 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20617
20618         * libc/Makefile.in (CRT0): new macro.
20619           (all): depend on $(CRT0) rather than crt0.o.
20620
20621         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
20622           do not default crt0, instead, set crt0 and crt0_dir based on
20623           sys_dir and stub_dir.
20624
20625         * Makefile.in (CRT0_DIR): new macro.
20626           (all): depend on $(CRT0) rather than crt0.o which may not exist.
20627           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
20628           $(CRT0).
20629           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
20630
20631 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20632
20633         * testsuite/lib/libm.exp:
20634                 added code to support compiling and linking of tests for
20635                 libm.sac (paranoia to be added next) and processing the
20636                 pass or failure of the tests.
20637
20638         * testsuite/config/unix-libm.exp:
20639                 platform specific proc's for dealing with compiler, linker
20640                 and the way we execute and process the test results.
20641
20642         * testsuite/libm.sac/execute.exp:
20643                 generic framework for the sac tests. the config and lib
20644                 expect code for specific platforms tie it all together.
20645
20646         * testsuite/libm.sac/test_is.c:
20647                 changed the output of the test to be consistant with the
20648                 other tests. parsing of pass nad fail messages is now fixed.
20649
20650 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
20651
20652         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
20653         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
20654         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
20655         #ifdef __cplusplus, surround by extern ""C { ... }.
20656         * libc/include/assert.h:  Do *not* protect assert.h against
20657         multiple inclusion!  Also, #undef it before #define, to allow
20658         redefinition.
20659         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
20660         should be only in unistd.h.
20661
20662         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
20663         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
20664         ... }.
20665
20666 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
20667
20668         * libc/machine/sparc/Makefile.in: Must create a library, even
20669         if empty.
20670
20671 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20672
20673         * configure.in: set machine_dir for m88k.  edit crt0 definition
20674           into makefiles.
20675
20676         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
20677
20678         * libc/Makefile.in (all): also build crt0.o.
20679
20680         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
20681           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
20682           to remove CRT0.
20683
20684         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
20685           (all): reworked to build in place.
20686           (clean): remove lib.a
20687           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
20688
20689         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
20690           (_start): key off edata rather than _start_bss.
20691
20692 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
20693
20694         * libc/include/sys/unistd.h, libc/include/reent.h,
20695         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
20696
20697 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20698
20699         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
20700
20701         * Makefile.in (libc.a): break into two rules, one for libc.a and
20702           one for libc/libc.a.  Force subdirs current before rebuilding
20703           library.
20704           (libm.a): break into two rules, one for libm.a and one for
20705           libm/libm.a.  Force subdirs current before rebuilding library.
20706
20707         * libc/Makefile.in (SUBLIBS): fix typo.
20708
20709         * libc/sys/Makefile.in (all): force descent into subdirs, then
20710           rebuild library iff out of of date.
20711
20712 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
20713
20714         Rework so that library is built and then finished rather than
20715         being built on each invocation of make.
20716
20717         * host/any (machine_dir, sys_dir, signal_dir): these are not
20718           shared and have been moved to their associated Makefile.in's.
20719           (AR_FLAGS): switch to qc which is faster.
20720         * configure.in: no longer assign machine_dir for m88k.  set
20721           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
20722           stub_dir set, then add to configdirs.  add comment about silly
20723           configuration.
20724           (configdirs): drop stub.  It will be added only
20725           when needed.
20726           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
20727           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
20728           stub_lib, crt0): new variables for tailoring lower level
20729           makefiles.  Assign accordingly and edit into makefiles.
20730         * libm/Makefile.in: updated copyright.
20731           (TARGETLIB): removed.
20732           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
20733           (SUBDIRS): removed TARGETDEP_DIRS.
20734           (LIBM_FP_LIB, SUBLIBS): new macros.
20735           (all): reworked.
20736           (force): new target to force rebuilds.
20737           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20738         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
20739           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
20740           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
20741           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
20742           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
20743           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
20744           stub/m68kmvme/Makefile.in: updated copyright.
20745           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
20746           (all): reworked.  made this the default rule.
20747           (clean): also remove lib.a.
20748           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20749         * stub/Makefile.in: updated copyright.
20750           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
20751           (stub_lib): new macro.
20752           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
20753           RANLIB.
20754           (all): reworked.
20755           (clean, install): assume stub_dir exists.
20756           (Makefile): depend on configure.in.  call $(SHELL) rather than
20757           sh.  drop redundant ./
20758         * stub/configure.in (stublib): new macro, assign it, edit it into
20759           makefiles.
20760         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
20761           updated copyright.
20762           (all): reworked.
20763           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20764         * libc/Makefile.in (TARGETCRT0): removed.
20765           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
20766           TARGETCRT0.
20767           (SUBDIRS): drop TARGETDEP_DIRS.
20768           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
20769           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
20770           (force): new target to force rebuilds.
20771         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
20772           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
20773           removed.
20774           (clean): assume sys_dir always exists.
20775         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
20776           drop redundant ./
20777         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
20778           libc/locale/Makefile.in, libc/machine/Makefile.in,
20779           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
20780           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
20781           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
20782           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
20783           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
20784           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
20785           libc/signal/Makefile.in, libc/stdio/Makefile.in,
20786           libc/stdlib/Makefile.in, libc/string/Makefile.in,
20787           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
20788           libc/time/Makefile.in, libc/unix/Makefile.in,
20789           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
20790           (TARGETLIB): removed.
20791           (all): reworked.
20792           (clean): also remove lib.a.
20793           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
20794         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
20795           new macros.
20796           (SUBDIRS): moved to follow frag inclusion, change stub to
20797           stub_dir.
20798           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
20799           are now set in the libc Makefile.
20800         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
20801           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
20802           TARGETCRT0.
20803           (force): new target to force rebuilds.
20804         * stub/configure.in: determine and set stub_lib for for Makefile.
20805
20806 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
20807
20808         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
20809         crt0.s renamed to crt0.S.
20810         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
20811
20812         * libc/machine/h8300/Makefile.in: Make `all' the default target.
20813         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
20814         h8300h.
20815         * libc/machine/h8300/defines.h: Add macros to handle pointers for
20816         h8300 (16 bits) and h8300h (32 bits).
20817         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
20818         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
20819
20820 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
20821
20822         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
20823         implementation of setjmp and longjmp for the m88k.
20824         * libc/include/machine/setjmp.h: Added __m88000__ case.
20825
20826 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
20827
20828         * configure.in: Recognize h8300h as variant of h8300.
20829
20830 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20831
20832         * libc/include/sys/unistd.h (read, write): get prototypes right.
20833         (sbrk): New prototype.
20834         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
20835         * libc/stdio/local.h: Include unistd.h.
20836         * libc/machine/h8300/syscalls.c: Names have changed.
20837
20838 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
20839
20840         * configure.in: add sys_dir assignment for m88k-bug.
20841
20842 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
20843
20844         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
20845         a.out or elf.
20846         * libc/sys/sparc64: all *.S files: Use new macros.
20847         * libc/sys/sparc64/isatty.c: New file.
20848         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
20849         functions beyond what newlib provides.
20850
20851 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
20852
20853         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
20854         svr4.
20855
20856 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
20857
20858         * libc/include/machine/ieeefp.h: Add support for h8/300h.
20859
20860 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
20861
20862         * configure.in: add m88k.
20863         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
20864         sanity check so no one else need ever chase what I did to find
20865         this.
20866
20867         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
20868
20869 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20870
20871         * doc/makedoc.c: Include <ctype.h>.
20872
20873 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
20874
20875         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20876         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20877         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
20878
20879         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
20880
20881 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
20882
20883         * libc/include/errno.h (ENOSYS): Added.
20884
20885         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
20886
20887 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
20888
20889         * libc/stdio/fflush.c (fflush): Check for reent struct
20890         initialization.
20891         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
20892
20893 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
20894
20895         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
20896         out of dtoa.c so it doesn't pollute the namespace.
20897         * libc/include/_syslist.h: new file -- mappings from _function to
20898         function, for systems where we can't win (by default, all of them,
20899         until we start updating system calls.)
20900         * libc/syscalls: new directory -- stubs for exporting _function
20901         names as unmodified function names.
20902         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
20903         _syslist.h on all platforms by default, but put hooks in for
20904         fake_sys_dir so we can include it when we've renamed the system
20905         calls.
20906         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
20907         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
20908         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
20909         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
20910         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
20911         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
20912         non ANSI functions to call _function.
20913
20914 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
20915
20916         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
20917         when base 16 is specified.  Don't accept non-digits if radix > 10.
20918
20919 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
20920
20921         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
20922
20923 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
20924
20925         * libc/include/sys/stat.h: Surround text after #endif with
20926         comments.
20927
20928 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
20929
20930         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
20931         _malloc_r, _realloc_r, and free_r call the corresponding
20932         non-reentrant functions.
20933
20934         * libm/math/modf.c (modf): We now take the address of ipart, so
20935         don't make it a register variable.
20936
20937 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
20938
20939         * libm/math/*: Rename all xxx_r fns to _xxx_r.
20940
20941 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
20942
20943         * libc/libc.texinfo and embedded docn throughout: formatting
20944         improvements, minor rephrasing for clarity, and improved
20945         reentrancy docn.
20946
20947 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
20948
20949         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
20950
20951         * libc/stdio/cvt.c (_licvt): Print the right value on machines
20952         where sizeof(int) != sizeof(long).
20953
20954 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
20955
20956         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
20957         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
20958         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
20959         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
20960         libm/math/matherr.c: changes for better docn formatting (info).
20961
20962         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
20963         libc/reent/reent.tex, libc/signal/signal.tex,
20964         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
20965         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
20966         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
20967         makeinfo node defaulting to get better Info file node structure.
20968         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
20969         Also include a few formerly missing sections (subroutines).
20970
20971         * doc/doc.str: delete fossil expansion for "func"
20972
20973         * default.menu, no-signal.menu: delete.
20974
20975         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
20976         method used to adjust doc for missing "signals" chapter when
20977         signal_dir is empty.
20978
20979 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20980
20981         * configure.in: added testsuite/libm.sac
20982
20983 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
20984
20985         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
20986         code model).
20987
20988 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
20989
20990         * libm/Makefile.in: Use $(MAKE) rather than make, and define
20991         MAKEOVERRIDES to be empty.
20992
20993 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
20994
20995         * configure.in: Don't build mips-*-* with -msoft-float, since that
20996         makes it incompatible with hard floating point.
20997
20998 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
20999
21000         * Makefile.in: added recursive 'make check'
21001
21002 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
21003
21004         * configure.in: added ./testsuite ./testsuite/libm.paranoia
21005         * ./testsuite/Makefile.in: created
21006         * ./testsuite/libm.paranoia: paranoia tests added
21007
21008 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
21009
21010         * configure.in: For mips-*-* set machine_dir to mips.
21011
21012         * libc/machine/mips: New directory.
21013         * libc/machine/mips/Makefile.in: New file.
21014         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
21015         setjmp and longjmp.
21016         * libc/include/machine/setjmp.h: Added __mips__ case.
21017
21018         * libc/machine/lmips: Removed unused and useless directory.
21019
21020 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
21021
21022         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
21023
21024 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
21025
21026         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
21027         start up).
21028
21029 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
21030
21031         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
21032         SETJMP_H.
21033
21034 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
21035
21036         * libm/test/convert.c: structure member errno -> errno_val.
21037         Must include <errno.h> to use errno, it's a macro now.
21038         * libm/test/math.c: Ditto.
21039         * libm/test/math2.c: Include errno.h.
21040         * libm/test/string.c: Ditto.
21041         * libm/test/test.h: structure member errno -> errno_val.
21042         Remove extern int errno decl.
21043
21044 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
21045
21046         * libc/stdio/Makefile.in: Added dependencies on local header
21047         files.
21048         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
21049         files.
21050
21051 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
21052
21053         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
21054
21055 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21056
21057         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
21058         Initialize _data.
21059
21060         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
21061         * libc/stdio/local.h: Add prototype for _licvt.
21062
21063         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
21064         instead of malloc,reealloc.
21065
21066         * libc/stdlib/local.h: New file.
21067         * libc/stdlib/efgcvt.c: #include local.h.
21068         (gcvt): Fix call to _gcvt.
21069         * libc/stdlib/ecvtbuf.c: #include local.h.
21070
21071         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
21072         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
21073         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
21074
21075         * libc/stdlib/atexit.c: moved global data to struct _reent.
21076         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
21077
21078         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
21079
21080 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
21081
21082         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
21083         here from ../reent.h.
21084
21085 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
21086
21087         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
21088         should be provided in both libc.a and libm.a.
21089         (libc.a): Depend on targ-include and libm.a.  Copy
21090         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
21091         (libm.a): Depend on targ-include.
21092         * configure.in (subdirs): Removed libc/math.
21093
21094 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21095
21096         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
21097
21098 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
21099
21100         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
21101         sys/reent.h instead of reent.h.
21102         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
21103         headers moved to sys/reent.h.
21104         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
21105         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
21106         __need__MAX_SIGNALS defined.
21107         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
21108         std{in,out,err} refer to new _std{in,out,err} members.
21109
21110 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
21111
21112         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
21113         case.
21114
21115 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
21116
21117         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
21118         rather than whatever macro seterrno() has.
21119
21120 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
21121
21122         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
21123         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21124
21125         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
21126         __STDC__.
21127
21128         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
21129         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
21130         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21131
21132         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
21133         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
21134
21135         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
21136         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
21137         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
21138         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
21139         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
21140         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
21141         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
21142         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
21143         for ANSI.  structure members given leading "_" for ANSI.  Use
21144         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21145
21146         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
21147         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
21148         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
21149         reent_struct renamed to struct _reent for ANSI.
21150         Structure members given leading "_" for ANSI.
21151         _CONST --> const in prototypes.
21152         Use _HAVE_STDC instead of __STDC__.
21153
21154         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
21155         _xxx_r.
21156         struct reent_struct renamed to struct _reent for ANSI.
21157         Structure members given leading "_" for ANSI.
21158
21159         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
21160         _xxx_r.
21161         struct reent_struct renamed to struct _reent for ANSI.
21162
21163         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
21164         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
21165         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
21166         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
21167         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
21168
21169         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
21170         signal.h, stdio.h, stdlib.h, string.h, time.h}:
21171         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
21172         #ifndef _STRICT_ANSI non-ANSI routines.
21173         Reentrant routines renamed from _r_xxx to _xxx_r.
21174         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
21175         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
21176         Clean up namespace (structure members have leading "_").
21177         struct reent_struct renamed to struct _reent for ANSI compliance.
21178         _CONST --> const in function prototypes.
21179
21180         * libc/include/string.h: Add NULL and size_t.
21181
21182         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
21183         unlink, wait, wait4. Reentrant syscall routines close, fork,
21184         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
21185         write.
21186         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
21187         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
21188         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
21189         write.S}: Define reentrant versions.
21190         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
21191         reentrant syscalls.
21192
21193         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
21194
21195         * libc/include/stdlib.h (RAND_MAX): Fix value.
21196
21197 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
21198
21199         * libc/sys/a29khif/_main.c: Removed unnecessary file.
21200         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
21201         VPATH support targets after all: target.
21202
21203         * stub/mvme135/mvme.S: Renamed exceptionhandler to
21204         exceptionHandler, which is what mvme135-stub.c expects.
21205
21206 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
21207
21208         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
21209
21210         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
21211         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
21212         compliant).
21213
21214 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
21215
21216         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
21217         first.
21218         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
21219         _r_write): Ditto.
21220         libc/reent/fstatr.c (_r_fstat): Ditto.
21221         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
21222         libc/reent/sbrkr.c (_r_sbrk): Ditto.
21223         libc/reent/statr.c (_r_stat): Ditto.
21224
21225         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
21226         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
21227         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
21228         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
21229         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
21230         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
21231         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
21232         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
21233         (__swrite): Ditto for _r_lseek, _r_write.
21234         (__sseek): Ditto for _r_lseek.
21235         (__close): Ditto for _r_close.
21236         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
21237
21238         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
21239         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
21240
21241         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
21242         to make reent_struct the first argument (and thus consistent with
21243         the rest of newlib).
21244
21245         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
21246         reference to __STDC__.
21247
21248 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
21249
21250         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
21251         global __cleanup.
21252
21253 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
21254
21255         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
21256         first.
21257         libc/stdio/fclose.c (fclose): Ditto.
21258
21259 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
21260
21261         * Run through indent and rename reentrant routines for ANSI.
21262         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
21263         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
21264         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
21265         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
21266         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
21267         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
21268         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
21269         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
21270         vsprintf.c wbuf.c wsetup.c local.h}
21271
21272         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
21273
21274         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
21275         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
21276         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
21277         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
21278         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
21279         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
21280
21281         * Run through indent.
21282         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
21283         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
21284         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
21285         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
21286         strxfrm.c}
21287
21288         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
21289         localtime.c mktime.c strftime.c time.c}:
21290         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
21291
21292         * Reformatting + renaming (for ANSI, GNU style, consistency).
21293         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
21294         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
21295         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
21296
21297 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
21298
21299         * libc/include/stdio.h (stdin_r): Fix.
21300
21301 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
21302
21303         * Makefile.in: Unexport some variables to keep GNU make from
21304         putting them in the environment and using up needed ARG_MAX space
21305         (a hack is used to let this work with older makes as well).
21306
21307 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
21308
21309         * Makefile.in: Use $(MAKE) rather than make.
21310         (MAKEOVERRIDES): Define to be empty.
21311         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21312         (libc.a, libm.a): Depend on targ-include.
21313         * host/any (LD): Don't define.
21314         (INCLUDES): Use targ-include.
21315         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
21316         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
21317         * libc/Makefile.in: Use $(MAKE) rather than make.
21318         (MAKEOVERRIDES): Define to be empty.
21319         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21320         (all): Rewrote to be slightly smaller.
21321         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
21322         Define to be empty.
21323         (FLAGS_TO_PASS): Don't pass LD (it's not used).
21324         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
21325
21326 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
21327
21328         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
21329         with errno/errno.c.
21330
21331 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
21332
21333         * Changes for reentrancy.
21334         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
21335         Use ptr->_errno, not errno.
21336         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
21337         libc/stdio/remove.c (remove_r): New function.
21338         libc/stdio/rename.c (rename_r): New function.
21339         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21340         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
21341         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
21342         reentrant versions of system calls.
21343         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
21344         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
21345         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
21346         libc/stdio/findfp.c: Include <string.h>.
21347         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
21348         "local.h".
21349         libc/stdio/wbuf.c: Include "fvwrite.h"
21350
21351         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
21352         <string.h>.
21353         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
21354         (NULL): Don't define if already defined.
21355         libc/stdlib/system.c: Call reentrant versions of system calls.
21356         (system_r): New function.
21357
21358         * Changes for reentrancy.
21359         libc/include/_ansi.h (_PARAMS): New macro.
21360         libc/include/errno.h: Define errno as a macro that calls __errno.
21361         (__errno_r): New macro for reentrant code.
21362         libc/include/math.h: Include reent.h.  Declare many reentrant
21363         functions.
21364         (signgam): Now a macro, not a variable.
21365         (struct exception): Added err field.
21366         libc/include/reent.h: Don't declare __sglue.  Added function
21367         declarations.
21368         (struct reent_struct): Moved errno to beginning.  Added _signgam.
21369         libc/include/stdio.h, libc/include/stdlib.h: Added function
21370         declarations.
21371
21372         * More reentrancy hacking.
21373         libc/errno/errno.c (__errno): New function.
21374         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
21375         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
21376         files.
21377
21378         * Added many new reentrant functions to libm/math/*.
21379         libm/math/error.c (__matherror): Added reent_struct pointer
21380         argument. Changed all callers.
21381         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
21382         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
21383         libm/math/tan.h: Removed obsolete unused header files.
21384
21385         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
21386
21387         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
21388
21389 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21390
21391         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
21392         delay slots.
21393
21394 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21395
21396         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
21397
21398 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21399
21400         * libc/reent/reent.tex:  New file.  (text from
21401         newlib/libc/libc.texinfo)
21402         * libc/stdio/tmpnam.c:  fixed doc typo
21403         * libc/stdlib/rand.c:   fixed doc typo
21404
21405 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
21406
21407         * libc/reent/reent.tex:  New file.  (text from
21408         newlib/libc/libc.texinfo)
21409
21410 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21411
21412         support for reentrancy
21413         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
21414         new files
21415         * libc/errno/errno.c, libc/include/ieeefp.h,
21416         libc/include/locale.h, libc/include/reent.h,
21417         libc/include/signal.h, libc/include/stdio.h,
21418         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
21419         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
21420         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
21421         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
21422         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
21423         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
21424         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
21425         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
21426         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
21427         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
21428         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
21429         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
21430         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
21431         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
21432         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
21433         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
21434         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
21435         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
21436         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
21437         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
21438         libc/time/strftime.c: modify to provide reentracy.
21439
21440         new routines:
21441         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
21442         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
21443         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
21444         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
21445         mstats_r, realloc_r, localeconv_r, setlocale_r
21446
21447 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
21448
21449         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
21450         libc/include/sys/config.h, libc/include/sys/signal.h,
21451         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
21452         provided macros (such as m68000), use the ansi version
21453         (__m68000__) so that the library can be used with code compiled
21454         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
21455         and sparc.
21456
21457 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
21458
21459         * configure.in (sparc*): Don't set -fsoft-float for sparc
21460         configurations.  Do set -fsoft-float for sparclite configurations.
21461
21462 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21463
21464         * default.menu, no-signal.menu: alternate forms of libc main menu
21465           (in newlib rather than newlib/libc due to configuration restrictions)
21466
21467         * configure.in: select one of the two menus above, link to
21468         libc.menu
21469
21470         * libc/libc.texinfo: include menu from separate file
21471
21472 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
21473
21474         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
21475         (info): Split long shell command in half.
21476         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
21477         sub-makes, just CHEW and TARGETDOC.
21478         (targetdep.tex): Removed now special handling of sys and machine
21479         subdirectories, made obsolete some time ago.
21480         * libc/machine/Makefile.in (doc): Don't pass everything to
21481         sub-make, just CHEW and TARGETDOC.
21482         (Makefile): New target.
21483         * libc/sys/Makefile.in (Makefile): New target.
21484
21485 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
21486
21487         * Makefile.in (here and most subdirectories): Only pass down CHEW
21488         and TARGETDOC when making info, not for other targets.
21489
21490         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
21491         $(AR_FLAGS) rather than $(ARUPDATE).
21492
21493 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
21494
21495         * Try to reduce command line length:
21496         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
21497         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
21498         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
21499         (info): Pass CHEW to other subdirs.
21500
21501 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
21502
21503         * configure.in: add signal_dir, like unix_dir, but by default it
21504         is set to "signal" so that a29khif can turn it off (since a29khif
21505         has raise() as part of machine-specific signal.s.)
21506
21507 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
21508
21509         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
21510         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
21511         correctly.
21512         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
21513         libc/stdio/vfprintf: type lint.
21514         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
21515         initialzation code.
21516         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
21517
21518 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
21519
21520         * stub/mvme135/mvme135-asm.S: new file.
21521         stub/mvme135mvme135-stub.c: moved all assembler routines into
21522         mvme135-asm.S.
21523         stub/mvme135/Makefile.in: build mvme135-stub.o.
21524
21525 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21526
21527         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
21528         sub-Makefiles instead, to try to avoid line length limitations.
21529
21530 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
21531
21532         * libc/include/unistd.h (read, write):  Use void* instead of
21533         char*.
21534
21535 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
21536
21537         * stub/go32/resetpc: sample script to send a reset packet to the
21538         stub
21539
21540         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
21541         DOS environment, which compiles with Turbo C.
21542
21543         * stub/go32/DSER32.LNK: new file, linker commands for serial
21544         remote stub.
21545
21546         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
21547         start up message to identify version; call set_debug_traps.
21548
21549         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
21550         keyboard interaction); call handle_exception() in go_til_stop,
21551         rather than return, so that the remote stub gets control.
21552
21553         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
21554         rename, rather than mv), set flags that work with current Turbo C,
21555         including using the /3 flag; also, add commands to build dser32.
21556
21557         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
21558         default Turbo C installation (\tc rather than \usr)
21559
21560         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
21561         "&..."
21562
21563 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21564
21565         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
21566
21567 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21568
21569         * libc/stdio/cvt.c (licvt): new function to convert ints when
21570         sizeof(int) != sizeof(long).
21571
21572         * libc/include/stdio.h: added prototype for iprintf.
21573         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
21574
21575 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21576
21577         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
21578         __REGISTER_PREFIX__.
21579
21580 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21581
21582         * libc/sys/m68kbare: moved into stub directory.
21583
21584 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
21585
21586         * configure.in, Makefile.in: created new directory stub, to hold
21587         sample code for specific targets.
21588
21589 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
21590
21591         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
21592         in the unified libc/include/sys/fcntl.h.
21593
21594 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
21595
21596         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
21597         printed .01, not 0.01.
21598
21599 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
21600
21601         * configure.in: compile with -m68000 for m68* targets.
21602
21603 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
21604
21605         * libm/math/remainder.c (remainder): document the svr4 and sunos
21606         references used to construct the function.
21607
21608 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
21609
21610         * libm/math/remainder.c (rint, remainder): fix old typos.
21611         * libm/math/Makefile.in: actually build remainder.c (functions
21612         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
21613         page.)
21614
21615 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
21616
21617         * libc/string/bcopy.c: BSD version works on overlapping strings,
21618         so ours should too.
21619
21620         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
21621         ("SHELL").
21622
21623 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
21624
21625         * Makefile.in (docs): new target.
21626
21627 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
21628
21629         * libc/include/sys/times.h: define clock_t as required by POSIX.
21630         libc/include/time.h: protect clock_t from multiple definitions.
21631
21632 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21633
21634         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
21635         does not need more than the original three iterations to get
21636         within 1 ulp. (Paranoia tests for rounding to better than that,
21637         but further iterations *don't* help, only more subtle changes
21638         can.)
21639
21640 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
21641
21642         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
21643         were doing nothing useful.
21644
21645 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21646
21647         * configure.in: define MALLOC_PROVIDED for vxworks targets;
21648         removed sys_dir settings of vxworks68 and vxworks960.
21649         host/any: don't pass -nostdinc to gcc, since newlib no longer
21650         provides all required header files.
21651
21652         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
21653         is not defined; this provides a hook for VxWorks.
21654
21655 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21656
21657         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
21658         buffer if buf is NULL, don't do it here -- it is already being
21659         done by makebuf elsewhere in stdio.
21660
21661 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21662
21663         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
21664         that C programs can call functions without using initial
21665         underscores.
21666
21667 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
21668
21669         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
21670
21671 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
21672
21673         * configure.in: set TARGET_CFLAGS for certain CPU types to
21674         -msoft-float.
21675
21676 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21677
21678         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
21679
21680 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21681
21682         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
21683         m68k*-unknown-coff.
21684
21685 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
21686
21687         * libc/include/stdio.h: define __need___va_list before including
21688         <stdarg.h>, to avoid defining va_arg, et. al.
21689
21690 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
21691
21692         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
21693         (don't cd to the user's home directory).
21694
21695         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
21696         In general this is the wrong thing to do, but I can't get around
21697         GNU make's insistence on passing command line arguments any other
21698         way.
21699
21700 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
21701
21702         * configure.in: always configure the libc/sys directory, since it
21703         now provides a required documentation file.
21704
21705         * Makefile.in: replaced all instances of $(MAKE) with make.  In
21706         general this is the wrong thing to do, but I can't get around GNU
21707         make's insistence on passing command line arguments any other way.
21708
21709 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
21710
21711         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
21712         terminated.
21713
21714         * libc/stdio/local.h: include <stdarg.h> to define va_list.
21715         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
21716
21717         * libc/include/float.h, libc/include/stdarg.h,
21718         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
21719         versions instead.
21720         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
21721         <stdarg.h>, not from <machine/types.h>.  Protect definition of
21722         NULL.
21723         libc/include/time.h: get size_t from stddef.h.  Protect definition
21724         of NULL.
21725         libc/include/machine/limits.h: override gcc <limits.h> by defining
21726         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
21727         get correct INT_MIN and LONG_LONG values.
21728         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
21729         size_t or va_list at all; they're now gotten from stddef.h
21730         instead.
21731         libc/include/machine/varargs.h: removed; use gcc version instead.
21732         libc/include/sys/types.h: explicitly include <machine/types.h>.
21733
21734         * libm/math/sqrt.h: using the fp-bit routines appears to require
21735         more iterations.
21736
21737         * Makefile.in, host/any: let system include files override machine
21738         include files.
21739
21740 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21741
21742         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
21743         override _*_T_ definitions defaulted here.
21744
21745 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
21746
21747         * Makefile.in (install): install the include files in
21748         $(tooldir)/include, not $(exec_prefix)/include.
21749
21750 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
21751
21752         * Makefile.in (install): fixed typo, and changed install to not
21753         force rebuild of libc.a and libm.a.
21754
21755 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
21756
21757         * libc/sys/a29khif/*: Changed all .include's to include
21758         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
21759         that they will be installed for the user.
21760
21761         * Makefile.in (all): create targ-include, a directory holding the
21762         machine and system specific header files during the build.
21763         (install): fixed installation of machine and system specific
21764         header files.
21765
21766         * Makefile.in: fixed comment.
21767         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
21768         we can pass $(INCLUDES) to it.
21769
21770 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
21771
21772         * libc/include/sys/param.h: new generic file, which may be
21773         overridden for specific systems.
21774
21775         * libc/include/sys/signal.h: define all ANSI signal names, and
21776         NSIG (which is not ANSI) for a29k.
21777
21778 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
21779
21780         * Makefile.in: don't pass down arguments the lower level makes
21781         will not need.
21782         * libc/Makefile.in: recurse directly, rather than using subdir_do,
21783         in hopes of avoiding argument length limits.
21784         * libm/Makefile.in: recurse directly, rather using subdir_do, in
21785         hopes of avoiding argument length limits.
21786
21787 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
21788
21789         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
21790         mode_t is defined.
21791
21792 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
21793
21794         * Fixed make info and make install-info for newlib, changing most
21795         Makefile.in and several *.tex files.  Moved doc directory from
21796         libc to top level.
21797
21798         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
21799         Should be rewritten.
21800
21801         * libc/string/strings.tex: renamed node index to node index
21802         function, so that it does not conflict with the top level index
21803         node.
21804
21805         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
21806
21807 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21808
21809         * Overhauled general configuration for newlib.  Eliminated all
21810         target dependent Makefile fragments.  Create libraries in newlib
21811         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
21812         than CROSS_CC, et. al.  Broke make docs; will fix later.
21813
21814         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
21815         Should be rewritten.
21816
21817 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
21818
21819         * libc/configure.in: cleaned up somewhat; switch on ${target}
21820         rather than ${target_alias}.
21821         * libm/configure.in: cleaned up somewhat; switch on ${target}
21822         rather than ${target_alias}.
21823
21824         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
21825         * libc/include/ctype.h: marked _ctype_ as _CONST.
21826
21827         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
21828         _CONST.
21829
21830         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
21831         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
21832         libc/stdio/gets.c (gets): removed non-ANSI warning message.
21833         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
21834
21835         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
21836         bigtens, tinytens): marked arrays _CONST.
21837         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
21838         rather than a static variable.
21839
21840         * libc/time/asctime.c (asctime), libc/time/localtime.c
21841         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
21842         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
21843         mname_len, mname): Marked static arrays _CONST.
21844
21845         * libm/math/gamma.h: made local variables non-static.
21846
21847         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
21848         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
21849         _CONST.
21850
21851         * libm/math/constants.c: removed file, because the constants it
21852         defined were never referenced.
21853         libm/math/Makefile.in: removed references to constants.c.
21854         libm/math/mathimpl.h: removed declarations of constants.
21855
21856 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
21857
21858         * libc/include/machine/varargs.h: only call __builtin_saveregs if
21859         it is sensibly defined in libgcc2.  Checks preprocessor defines,
21860         which is not a good solution.
21861
21862         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
21863
21864         * libm/frexp.c: handle denormalized numbers as arguments.
21865
21866         * libm/math/Makefile.in: added some dependencies for .c files
21867         which include local .h files.
21868
21869 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
21870
21871         * libc/configure.in: set target_alias for OSE*.  Replace
21872         target_makefile_frag if it is blank.
21873
21874         * libc/Makefile.in: make sure everything is passed to subsidiary
21875         makes; create all directories when installing.
21876
21877         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
21878         CROSS_ARUPDATE instead of AR.
21879
21880         * libm/configure.in: set target_alias for OSE*.  Replace
21881         target_makefile_frag if it is blank.
21882
21883         * libm/Makefile.in: make sure everything is passed to subsidiary
21884         makes; create all directories when installing.
21885
21886 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
21887
21888         * add following change from libc copy.
21889
21890 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21891
21892         * libc/libc.texinfo: make copyright disclaimers appear on back of
21893         title page; make format of same slightly less ugly; avoid using
21894         underbars in section headings (avoids nasty texinfo bug in table
21895         of contents).
21896
21897         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
21898           comments only) avoid using underbars in section headings
21899
21900         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21901           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
21902           changes in comments only): shorten headings ieeefp/infinity.c,
21903           ieeefp/isnan.c: (doc, comments only) more informative headings
21904
21905         * libc/math/bessel.c: (doc, comments only) shorten heading
21906
21907         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
21908         (doc, comments only) shorten headings
21909
21910         * libc/time/localtime.c (doc, comments only): shorten headings
21911
21912         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
21913           isnan
21914           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
21915           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
21916           headings
21917           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
21918           only) more informative headings
21919         * libm/math/bessel.c: (doc, comments only) shorten heading
21920
21921 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
21922
21923         * .../Makefile.in: use CROSS_ARUPDATE consistently.
21924         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
21925         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
21926         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
21927         defined, the one from the .mt file will be correct.
21928         * libc/include/machine, libc/include/sys: created, and populated
21929         with common files from machine/*/machine. ifdefs were used for
21930         most, typically by handling exceptions first and then filling in
21931         defaults. Files with D.J. Delorie copyright #included rather than
21932         copied. Most files in include/sys really were the same in the
21933         original.
21934         * libc/include/...: cleaned up use of _EXFUN.
21935         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
21936         it with double quotes, not angles.
21937
21938 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
21939
21940         * libc/Makefile.in: always create installation directories.
21941
21942 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
21943
21944         * libc/configure.in: handle host properly (using canonical
21945         triples), better error message for the case of target not found
21946
21947 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
21948
21949         * libc/Makefile.in (insincdir): Ensure this directory exists
21950         before attempting installation.
21951
21952 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21953
21954         * libc/stdlib/assert.c: now calls abort like it should
21955         * libc/sys/a29khif: many many patches for 29khif work
21956         * libc/machine/i386: gnulib2 expanded there.
21957
21958 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21959
21960         Added accurate fp conversion routines to stdlib, moved dcvt from
21961         stdio to stdlib and called it ecvtbuf:
21962         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
21963         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
21964         routines
21965         * libc/libc.texinfo: Modifed to include the copyright info from
21966         the mprec files
21967         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
21968         * libc/test/ : many vector which tested for the implementation
21969         defined returns of strange conversion requests have been updated
21970         to relflect the new implementation
21971
21972 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21973
21974         * libc/libc.texinfo: new chapter on variable arg lists
21975         (stdarg.h/varargs.h)
21976         * libc/libc.texinfo: new title
21977         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
21978         (doc only) shorter headings for better formatting.
21979
21980 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
21981
21982         * libc/libc.texinfo: three more info menu entries
21983         * libc/locale/locale.tex: new chapter
21984         * libc/locale/locale.c: new doc for setlocale, localeconv
21985         * libc/locale/Makefile.in: use new locale doc
21986         * libc/signal/signal.tex: new chapter
21987         * libc/signal/raise.c, libc/signal/signal.c: new doc
21988         * libc/signal/Makefile.in: use new doc
21989         * libc/time/time.tex: new chapter
21990         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
21991         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
21992         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
21993         * libc/time/Makefile.in: use new doc
21994
21995 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
21996
21997         * libm/math/log1p.c: split to use the new function way of float
21998         function definition. math/log1p.h deleted
21999         * libm/math/scalb.c: obsolete and deleted
22000         * libm/math/scalbn.c: created from part log1p.c
22001         * libm/math/Makefile.in: know about log1p and scalbn
22002
22003 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22004
22005         * libc/ctype/isupper.c: revise doc;
22006           libc/ctype/ctype.tex: use doc from isupper.c
22007
22008         * libc/string/bzero.c: new doc
22009
22010 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
22011
22012         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
22013         new doc
22014         * libc/stdlib/Makefile.in: extract new doc
22015         * libc/stdlib/stdlib.tex: use new doc
22016
22017         * libc/string/strerror.c: expanded doc.
22018
22019         * libc/stdio/Makefile.in: extract doc from more files
22020         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
22021         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
22022         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
22023         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
22024         libc/stdio/vsprintf.c: new doc
22025         * libc/stdio/stdio.tex: use new doc
22026
22027 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22028
22029         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
22030         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
22031         finitef functions.
22032         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
22033         time ago.
22034
22035         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
22036         * libc/stdio/setbuf.c: added ansi style definition.
22037         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
22038         buffer if none provided.
22039         * libc/stdio/tmpfile.c: lint
22040         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
22041         rather than using static, also make sure file isn't already
22042         present.  Uses P_tmpdir. (tempnam): rewritten to use new
22043         subroutine, and uses P_tmpdir.
22044         * libc/stdio/siprintf.c: created
22045
22046 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
22047
22048         Release 1.03 for NEC, major mods. Main differences from release
22049         1.02::
22050
22051         More tests in test/:
22052         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
22053         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
22054         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
22055         get/set mask, get/set sticky and get/set roundtoi.  Tests
22056         that setting the bits changes the way arithmetic is done.
22057         * string.c: added test to make sure memcmp does it with unsigned
22058         chars.
22059         * test.c: cleaned up and removed lint.
22060         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
22061         dvec.c: tests for string to value conversions,  sprintf, scanf,
22062         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
22063         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
22064         rounding in sprintf too.
22065         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
22066         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
22067         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
22068         and function form.
22069         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
22070         powf
22071
22072         In the library:
22073         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
22074         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
22075         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
22076         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
22077         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
22078         than sprintf.
22079         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere.
22080         * Method of producting float versions of double functions has
22081         changed, functions will be modified gradually. So far:
22082         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
22083         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
22084         altered
22085         * libc/string/memcmp.c: now uses unsigned chars
22086         * libc/string/bcmp.c, libc/string/strcpy.c,
22087         libc/stsring/strxfrm.c: fixed doc
22088         * libc/sys/sysvnecv70.tex: fix example of sbrk code
22089 \f
22090 Local Variables:
22091 version-control: never
22092 End: