OSDN Git Service

0a72707cc6baea6d21ec798f395890af5c50f9fa
[pf3gnuchains/pf3gnuchains4x.git] / newlib / ChangeLog
1 2006-12-14  Jeff Johnston  <jjohnstn@redhat.com>
2             Eric Blake  <ebb9@byu.net>
3
4         * libc/stdio/fflush.c (fflush): On seekable streams, always flush
5         read but unused data.
6         * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
7         even read streams may have side effects that must happen.
8
9 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
10
11         * libc/machine/spu/setjmp.S: Fix to handle registers past 115
12         correctly.
13
14 2006-12-13  Joel Schopp <jschopp@austin.ibm.com>
15
16         * libc/include/alloca.h: Add undef alloca to work with xlc.
17
18 2006-12-12  Joel Schopp <jschopp@austin.ibm.com>
19
20         * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for 
21         cell spu.
22
23 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
24
25         * libc/machine/spu/strncpy.c: Add padding.
26
27 2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>
28
29         * testsuite/newlib.string/tstring.c: 
30
31 2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>
32
33         * libc/machine/spu/strchr.c: Fix mask for misaligned string.
34         * libc/machine/spu/strrchr.c: Ditto.
35
36 2006-11-30  Lev Bishop  <lev.bishop@gmail.com>
37
38         * libc/include/math.h: Allow C99 functions/macros to be
39         defined for C++ even when __STRICT_ANSI__.
40
41 2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>
42
43         * libc/stdio/makebuf.c (__smakebuf): If dealing with
44         an asprintf-family buffer, make the default initial size 64.
45
46 2006-11-29  Eric Blake  <ebb9@byu.net>
47
48         * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
49         asprintf, as well as quadratic realloc behavior.
50
51 2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jpi
52
53         * libc/machine/spu/memset.c: Fix type of explicit cast.
54         * libc/machine/spu/strncmp.c: Add explicit cast.
55         * libc/machine/spu/strrchr.c: Ditto.
56         * libc/machine/spu/strspn.c: Ditto.
57
58 2006-11-22  Luca Barbato  <lu_zero@gentoo.org>
59
60         * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
61         * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
62         * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
63         * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
64         * libc/machine/spu/strncat.c: Explicit cast.
65         * libc/machine/spu/strncmp.c: Use spu_splats.
66         * libc/machine/spu/strncpy.c: Explicit cast.
67         * libc/machine/spu/strrchr.c: Use spu_splats.
68         * libc/machine/spu/strspn.c: Use spu_splats.
69
70 2006-11-15  Till Straumann  <strauman@slac.stanford.edu>
71
72         * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
73
74 2006-11-14  Eric Blake  <ebb9@byu.net>
75
76         * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
77         (chclass): ' is a flag.  j, t, and z are modifiers.
78
79 2006-11-08  Jie Zhang  <jie.zhang@analog.com>
80
81         * configure.host: Add support for bfin.
82         * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
83         * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
84         * libc/machine/bfin/aclocal.m4: Generate.
85         * libc/machine/bfin/configure.in: New.
86         * libc/machine/bfin/configure: Generate.
87         * libc/machine/bfin/Makefile.am: New.
88         * libc/machine/bfin/Makefile.in: Generate.
89         * libc/machine/bfin/setjmp.S: New.
90         * libc/machine/bfin/longjmp.S: New.
91         * libc/machine/configure.in: Add bfin support.
92         * libc/machine/configure: Generate.
93
94 2006-11-07  Corinna Vinschen  <corinna@vinschen.de>
95
96         * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
97         (_PC_FILESIZEBITS): Add definition.
98         (_PC_2_SYMLINKS): Ditto.
99         (_PC_SYMLINK_MAX): Ditto.
100
101 2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>
102
103         * libc/machine/spu/memcpy.c: Override generic function with vectorized
104         version optimized for the cell spu.
105         * libc/machine/spu/memmove.c: Ditto.
106         * libc/machine/spu/memset.c: Ditto.
107         * libc/machine/spu/strcat.c: Ditto.
108         * libc/machine/spu/strchr.c: Ditto.
109         * libc/machine/spu/strcmp.c: Ditto.
110         * libc/machine/spu/strcpy.c: Ditto.
111         * libc/machine/spu/strcspn.c: Ditto.
112         * libc/machine/spu/strlen.c: Ditto.
113         * libc/machine/spu/strncat.c: Ditto.
114         * libc/machine/spu/strncmp.c: Ditto.
115         * libc/machine/spu/strncpy.c: Ditto.
116         * libc/machine/spu/strpbrk.c: Ditto.
117         * libc/machine/spu/strrchr.c: Ditto.
118         * libc/machine/spu/strspn.c: Ditto.
119         * libc/machine/spu/strxfrm.c: Ditto.
120         * libc/machine/spu/vec_literal.h: Add abstraction of vector literals, 
121         removing altivec style initializers.
122         * libc/machine/spu/Makefile.am: Add new files to list so they build
123         * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
124
125 2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>
126
127         * README: Add a brief section on how to regenerate
128         configuration files in newlib.
129
130 2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>
131
132         * libc/include/math.h: (exception): Add a comment
133         telling fixincludes that we handle C vs. C++ issue.
134
135 2006-10-11  Yang Tse  <yangsita@gmail.com>
136
137         * libc/include/machine/setjmp.h: Use __extension__ keyword for gcc's
138         braced-groups.
139
140 2006-10-11  Corinna Vinschen  <corinna@vinschen.de>
141
142         * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
143
144 2006-09-26  Jeff Johnston  <jjohnstn@redhat.com>
145
146         * libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
147         for clearerr, feof, or fileno.
148         * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change 
149         the dummy std stream scheme to use pointers to const external 
150         fake files, one for each standard stream.
151         * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
152         argument.  For _REENT_SMALL, reset the file pointer if it
153         matches one of the fake std stream pointers.
154         * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
155         argument.
156         * libc/stdio/fclose.c: Ditto.
157         * libc/stdio/feof.c: Ditto.
158         * libc/stdio/ferror.c: Ditto.
159         * libc/stdio/fflush.c: Ditto.
160         * libc/stdio/fgetc.c: Ditto.
161         * libc/stdio/fgets.c: Ditto.
162         * libc/stdio/fileno.c: Ditto.
163         * libc/stdio/findfp.c: Ditto.
164         * libc/stdio/fputc.c: Ditto.
165         * libc/stdio/fputs.c: Ditto.
166         * libc/stdio/fread.c: Ditto.
167         * libc/stdio/freopen.c: Ditto.
168         * libc/stdio/fseek.c: Ditto.
169         * libc/stdio/ftell.c: Ditto.
170         * libc/stdio/fwrite.c: Ditto.
171         * libc/stdio/getc.c: Ditto.
172         * libc/stdio/getdelim.c: Ditto.
173         * libc/stdio/putc.c: Ditto.
174         * libc/stdio/refill.c: Ditto.
175         * libc/stdio/setvbuf.c: Ditto.
176         * libc/stdio/ungetc.c: Ditto.
177         * libc/stdio/vfprintf.c: Ditto.
178         * libc/stdio/vfscanf.c: Ditto.
179         * libc/stdio/wbuf.c: Ditto.: Ditto.
180         * libc/stdio/wsetup.c: Ditto.
181         * libc/stdio64/freopen64.c: Ditto.
182         * libc/stdio64/fseeko64.c: Ditto.
183         * libc/stdio64/ftello64.c: Ditto.
184         * libc/machine/powerpc/vfprintf.c: Ditto.
185         * libc/machine/powerpc/vfscanf.c: Ditto.
186
187 2006-09-22  Paul Brook  <paul@codesourcery.com>
188
189         * libc/include/sys/reent.h: Define and use __reent_assert.
190
191 2006-09-13  Joel Sherrill <joel@oarcorp.com>
192
193         * libc/include/pthread.h: Add pthread barriers,
194         rwlocks, and spinlocks.  Change const to
195         _CONST and prefix parameter names with
196         an underscore.
197         * libc/include/sys/types.h: Add id and attribute
198         types for barriers, wrlocks, and spinlocks.
199         * libc/include/sys/features.h: Enable barriers,
200         wrlocks, and spinlocks for RTEMS.
201
202 2006-09-13  Patrick Mansfield <patmans@us.ibm.com>
203
204         * libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
205         supposed to be writable.
206         * libm/common/s_lib_ver.c: Ditto.
207
208 2006-09-12  Paul Brook  <paul@codesourcery.com>
209
210         * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
211
212 2006-09-07  Masaki Muranaka  <monaka@monami-software.com>
213
214
215         * libc/machine/xstormy16/Makefile.am:
216         Add $(lpfx) prefix to LIBADD objects.
217         lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
218         * libc/machine/xstormy16/Makefile.in: Regenerated.
219
220 2006-09-06  Eric Blake  <ebb9@byu.net>
221
222         * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
223         't', and 'z' modifiers.
224
225 2006-09-01  Kazu Hirata  <kazu@codesourcery.com>
226
227         Merge from newlib-csl-20060320-branch:
228         2006-05-22  Sandra Loosemore <sandra@codesourcery.com>
229
230         * configure.host: Tell it we have _rename and _system when
231         building m68k-unknown-elf.
232
233 2006-08-29  Paul Brook  <paul@codesourcery.com>
234
235         * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
236
237 2006-08-27  Joel Sherrill <joel.sherrill@OARcorp.com>
238
239         * libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
240         BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
241         This is needed to build all AVR and H8300 RTEMS multilib variants.
242
243 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
244
245         * libc/machine/configure.in: Add configuration for SPU.
246         * libc/machine/configure: Regenerated.
247         * libc/machine/spu/memcpy.c: Include string.h.
248
249 2006-08-22  Eric Blake  <ebb9@byu.net>
250
251         * libc/posix/popen.c (popen): Don't close output end of pipe in
252         child if stdout was closed on entry.
253         [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
254
255 2006-08-19  Ramana Radhakrishnan  <ramana.r@gmail.com>
256
257         * sys/types.h: Correct syntax error caused by missing '\' on #ifdef
258         line.
259
260 2006-08-17  Brian Ford  <Brian.Ford@FlightSafety.com>
261
262         * libc/time/gmtime.c: Correct man page; clock is not a
263         local time and no conversion occurs.
264
265 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
266
267         * configure.host (newlib_cflags) [spu]: Add special compiler
268         options to reduce size.
269
270 2006-08-16  Joel Schopp  <jschopp@austin.ibm.com>
271
272         * configure.host: Add spu support.
273         * libc/include/stdint.h: Ditto.
274         * libc/include/machine/ieeefp.h: Ditto.
275         * libc/include/machine/setjmp.h: Ditto.
276         * libc/include/sys/config.h: Ditto.
277         * libc/include/sys/types.h: Ditto.
278         * libc/machine/spu/Makefile.am: New file.
279         * libc/machine/spu/Makefile.in: Ditto.
280         * libc/machine/spu/aclocal.m4: Ditto.
281         * libc/machine/spu/configure: Ditto.
282         * libc/machine/spu/configure.in: Ditto.
283         * libc/machine/spu/memcpy.c: Ditto.
284         * libc/machine/spu/setjmp.S: Ditto.
285
286 2006-08-03  J"orn Rennecke  <joern.rennecke@st.com>
287
288         * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
289         properly.
290
291 2006-08-01  Jeff Johnston  <jjohnstn@redhat.com>
292
293         * libc/Makefile.am: Add libc_TEXINFOS dependency on
294         generated .texi files.
295         * libm/Makefile.am: Add libm_TEXINFOS dependency on
296         generated .texi files.
297         * libc/Makefile.in: Regenerated.
298         * libm/Makefile.in: Ditto.
299
300 2006-08-01  Thiemo Seufer  <ths@mips.com>
301             Nigel Stephens  <nigel@mips.com>
302
303         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
304         define this to force _impure_ptr to live in the .sdata section.
305
306 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>
307
308         * acinclude.m4: Check for readelf tool.
309         * configure.in: Use ${READELF} instead of hard-coding.
310         * Regenerate all aclocal.m4, Makefile.in, and configure files.
311
312 2006-07-31  Jeff Johnston  <jjohnstn@redhat.com>        
313
314         * libc/sys/linux/mmap.c: Remove include of sys/mman.h
315         to avoid conflict with newer glibc's revision of mremap.
316
317 2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>        
318
319         * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex 
320         floating-point format support.  Also redefine
321         dword0 and dword1 macros.
322         * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
323         to prevent setting dword1 which is an rvalue only.
324
325 2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>        
326
327         * libc/stdlib/Makefile.am: Add new gdtoa routines.
328         * libc/stdlib/Makefile.in: Regenerated.
329         * libc/stdlib/gd_qnan.h: New file.
330         * libc/stdlib/gdtoa-gethex.c: Ditto.
331         * libc/stdlib/gdtoa-hexnan.c: Ditto.
332         * libc/stdlib/gdtoa.h: Ditto.
333         * libc/stdlib/mprec.c: Add new helper routines needed by
334         the new gdtoa code.
335         * libc/stdlib/mprec.h: Integrate some defines and prototypes
336         used by gdtoa routines here.
337         * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
338         which adds C99 support such as nan, inf, and hexadecimal input
339         format.
340
341 2006-06-15  Corinna Vinschen  <corinna@vinschen.de>
342
343         * libc/include/stdio.h (__sgetc_r): Fix typo.
344         * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
345         * libc/stdio/rget.c (__srbuf): Reinstantiate.
346         * libc/stdio/wbuf.c (__swbuf): Ditto.
347
348 2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>        
349
350         * libc/include/stdio.h: Add new reentrant I/O prototypes for
351         read/write functions.  Change getc/putc macros to have reentrant underlying 
352         macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
353         * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
354         new reentrant I/O functions/macros for reading/writing.
355         * libc/stdio/fgets.c: Ditto.
356         * libc/stdio/fputc.c: Ditto.
357         * libc/stdio/fputs.c: Ditto.
358         * libc/stdio/fread.c: Ditto.
359         * libc/stdio/fseek.c: Ditto.
360         * libc/stdio64/fseeko64.c: Ditto.
361         * libc/stdio/fwrite.c: Ditto.
362         * libc/stdio/getc.c: Ditto.
363         * libc/stdio/getc_u.c: Ditto.
364         * libc/stdio/getchar.c: Ditto.
365         * libc/stdio/getchar_u.c: Ditto.
366         * libc/stdio/putc.c: Ditto.
367         * libc/stdio/putc_u.c: Ditto.
368         * libc/stdio/putchar.c: Ditto.
369         * libc/stdio/puts.c: Ditto.
370         * libc/stdio/vfprintf.c: Ditto.
371         * libc/stdio/vfscanf.c: Ditto.
372         * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
373         Change all previous callers of __sfvwrite.  Set errno to EBADF and
374         set error flag on if attempt is made to write to file that does not
375         allow writing.
376         * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
377         * libc/stdio/local.h: Ditto.
378         * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
379         Set errno to EBADF and the error flag on if attempt is made to
380         read unreadable file.  Change all previous callers of __srefill.
381         * libc/stdio/rget.c
382         * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
383         all previous callers of __swbuf.
384         * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
385         huge value macros are already defined correctly for i386 by <math.h>.
386
387 2006-06-13  Sandra Loosemore <sandra@codesourcery.com>
388
389         * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
390         Make them do something useful in the ARM_RDI_MONITOR case.
391
392 2006-06-07  Fred Fish  <fnf@specifix.com>
393
394         * libc/search/hash_bigkey.c (MIN,MAX): Remove
395         defines that are already supplied by <sys/param.h>.
396
397 2006-06-07  Fred Fish  <fnf@specifix.com>
398
399         * configure.host: Remove references to HAVE_GETTIMEOFDAY.
400
401 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
402
403         * libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
404         usleep.c.
405         * libc/posix/Makefile.in: Regenerate.
406         * libc/posix/sleep.c: New file.
407         * libc/posix/usleep.c: Ditto.
408
409 2006-06-05  Shaun Jackman  <sjackman@gmail.com>
410
411         * configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
412         -DABORT_PROVIDED flag.
413         * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
414         * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
415
416 2006-06-05  Jeff Johnston  <jjohnstn@redhat.com>
417
418         * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
419         * Makefile.in: Regenerated.
420         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
421         extraneous CFLAGS reference now that CCASFLAGS are being extended
422         properly via multilib.
423         * libc/machine/sh/Makefile.in: Regenerated.
424
425 2006-06-02  Shaun Jackman  <sjackman@gmail.com>
426
427         * libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
428         sigismember.
429
430 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
431
432         * libc/misc/dprintf.c: Removed.
433         * libc/misc/__dprintf.c: Renamed from dprintf.c.
434         * libc/misc/Makefile.am: Changed appropriately for rename.
435         * libc/misc/Makefile.in: Regenerated.
436
437 2006-05-23  Jeff Johnston  <jjohnstn@redhat.com>
438
439         * libc/include/stdio.h: Protect dprintf prototype
440         with #ifndef dprintf so as to not interfere with
441         historical code defining their own dprintf macro.
442
443 2006-05-18  Jeff Johnston  <jjohnstn@redhat.com>
444
445         * libc/include/stdio.h: Add prototypes for fiscanf,
446         iscanf, and siscanf.
447
448 2006-05-11  J"orn Rennecke <joern.rennecke@st.com>
449
450         * acinclude.m4 (_NEWLIB_VERSION): Rename to:
451         (DEF_NEWLIB_VERSION).
452         * configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
453         * configure: Regenerate.
454
455 2006-05-09  Jeff Johnston  <jjohnstn@redhat.com>
456
457         * libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
458         lib_a_SOURCES.
459         * libc/ctype/Makefile.in: Regenerated.
460
461 2006-05-09  Kazu Hirata  <kazu@codesourcery.com>
462
463         * libc/machine/arm/Makefile.am: Fix a typo.
464         * libc/machine/arm/Makefile.in: Regenerated.
465
466 2006-05-08  J"orn Rennecke <joern.rennecke@st.com>
467
468         * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
469         * libc/machine/sh/Makefile.in: Regenerate.
470
471 2006-05-03  J"orn Rennecke <joern.rennecke@st.com>
472
473         * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
474         * libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
475
476 2006-05-02  Jeff Johnston  <jjohnstn@redhat.com>
477
478         * libc/sys/sysnec810/Makefile.am: Specify .S files instead of
479         .s.
480         * libc/sys/sysnec810/Makefile.in: Regenerated.
481         * libc/sys/sysnec810/crt0.S: Renamed from .s file.
482         * libc/sys/sysnec810/io.S: Ditto.
483         * libc/sys/sysnec810/crt0.s: Renamed to .S file.
484         * libc/sys/sysnec810/io.s: Ditto.
485
486 2006-05-01  Jeff Johnston  <jjohnstn@redhat.com>
487
488         * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
489         be specified instead of object, do so.
490         * libc/ctype/Makefile.am: Ditto.
491         * libc/iconv/ccs/Makefile.am: Ditto.
492         * libc/iconv/ces/Makefile.am: Ditto.
493         * libc/iconv/lib/Makefile.am: Ditto.
494         * libc/locale/Makefile.am: Ditto.
495         * libc/posix/Makefile.am: Ditto.
496         * libc/reent/Makefile.am: Ditto.
497         * libc/search/Makefile.am: Ditto.
498         * libc/stdio/Makefile.am: Ditto.
499         * libc/stdio64/Makefile.am: Ditto.
500         * libc/stdlib/Makefile.am: Ditto.
501         * libc/string/Makefile.am: Ditto.
502         * libc/syscalls/Makefile.am: Ditto.
503         * libc/unix/Makefile.am: Ditto.
504         * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
505         prefix added automatically.  Any specified rules must use $(lpfx) for
506         object file names.
507         * libc/machine/arm/Makefile.am: Ditto.
508         * libc/machine/cris/Makefile.am: Ditto.
509         * libc/machine/crx/Makefile.am: Ditto.
510         * libc/machine/d10v/Makefile.am: Ditto.
511         * libc/machine/d30v/Makefile.am: Ditto.
512         * libc/machine/fr30/Makefile.am: Ditto.
513         * libc/machine/frv/Makefile.am: Ditto.
514         * libc/machine/h8300/Makefile.am: Ditto.
515         * libc/machine/h8500/Makefile.am: Ditto.
516         * libc/machine/hppa/Makefile.am: Ditto.
517         * libc/machine/i386/Makefile.am: Ditto.
518         * libc/machine/i960/Makefile.am: Ditto.
519         * libc/machine/iq2000/Makefile.am: Ditto.
520         * libc/machine/m32c/Makefile.am: Ditto.
521         * libc/machine/m32r/Makefile.am: Ditto.
522         * libc/machine/m68hc11/Makefile.am: Ditto.
523         * libc/machine/m68k/Makefile.am: Ditto.
524         * libc/machine/m88k/Makefile.am: Ditto.
525         * libc/machine/mips/Makefile.am: Ditto.
526         * libc/machine/mn10200/Makefile.am: Ditto.
527         * libc/machine/mn10300/Makefile.am: Ditto.
528         * libc/machine/mt/Makefile.am: Ditto.
529         * libc/machine/necv70/Makefile.am: Ditto.
530         * libc/machine/powerpc/Makefile.am: Ditto.
531         * libc/machine/sh/Makefile.am: Ditto.
532         * libc/machine/sh/Makefile.in: Ditto.
533         * libc/machine/sparc/Makefile.am: Ditto.
534         * libc/machine/tic4x/Makefile.am: Ditto.
535         * libc/machine/tic80/Makefile.am: Ditto.
536         * libc/machine/v850/Makefile.am: Ditto.
537         * libc/machine/w65/Makefile.am: Ditto.
538         * libc/machine/xscale/Makefile.am: Ditto.
539         * libc/machine/xstormy16/Makefile.am: Ditto.
540         * libc/machine/z8k/Makefile.am: Ditto.
541         * libc/sys/a29khif/Makefile.am: Ditto.
542         * libc/sys/arm/Makefile.am: Ditto.
543         * libc/sys/d10v/Makefile.am: Ditto.
544         * libc/sys/h8300hms/Makefile.am: Ditto.
545         * libc/sys/h8500hms/Makefile.am: Ditto.
546         * libc/sys/linux/Makefile.am: Ditto.
547         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
548         * libc/sys/linux/net/Makefile.am: Ditto.
549         * libc/sys/linux/stdlib/Makefile.am: Ditto.
550         * libc/sys/m88kbug/Makefile.am: Ditto.
551         * libc/sys/mmixware/Makefile.am: Ditto.
552         * libc/sys/rdos/Makefile.am: Ditto.
553         * libc/sys/rtems/Makefile.am: Ditto.
554         * libc/sys/sh/Makefile.am: Ditto.
555         * libc/sys/sun4/Makefile.am: Ditto.
556         * libc/sys/sysmec/Makefile.am: Ditto.
557         * libc/sys/sysnec810/Makefile.am: Ditto.
558         * libc/sys/sysnecv850/Makefile.am: Ditto.
559         * libc/sys/sysvi386/Makefile.am: Ditto.
560         * libc/sys/sysvnecv70/Makefile.am: Ditto.
561         * libc/sys/tic80/Makefile.am: Ditto.
562         * libc/sys/w65/Makefile.am: Ditto.
563         * libc/sys/z8ksim/Makefile.am: Ditto.
564         * libc/machine/necv70/fastmath.S: Renamed from .s file.
565         * libc/machine/necv70/setjmp.S: Ditto.
566         * libc/machine/necv70/fastmath.s: Removed.
567         * libc/machine/necv70/setjmp.s: Ditto.
568         * libc/machine/w65/*.S: New files renamed from .s files.
569         * libc/machine/w65/*.s: Renamed and removed.
570         * libc/sys/a29khif/*.S: New files renamed from .s files.
571         * libc/sys/a29khif/*.s: Renamed and removed.
572         * libc/sys/sysvi386/*.S: New files renamed from .s files.
573         * libc/sys/sysvi386/*.s: Renamed and removed.
574         * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
575         * libc/sys/sysvnecv70/*.s: Renamed and removed.
576         * libc/*Makefile.in: Regenerated as appropriate.
577
578 2006-04-24  DJ Delorie  <dj@redhat.com>
579
580         * libc/machine/sh/configure.in: Avoid link tests.
581         * libc/machine/sh/configure: Regenerate.
582
583 2006-04-18  Jeff Johnston  <jjohnstn@redhat.com>
584
585         * libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
586         (sigaddset, sigemptyset): Add return code.
587
588 2006-04-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
589
590         * acinclude.m4: New _NEWLIB_VERSION.
591         * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
592         Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
593         Use new form of AC_INIT_AUTOMAKE.
594         * configure.in: AC_PREREQ(2.59).
595         Use autoconf-2.5.x version of AC_INIT.
596         Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
597         autoconf-2.13's AC_OUTPUT.
598         * libm/configure.in: Ditto.
599         * libm/machine/configure.in: Ditto.
600         * libm/machine/i386/configure.in: Ditto.
601         * libc/configure.in: Ditto.
602         * libc/machine/a29k/configure.in: Ditto.
603         * libc/machine/arm/configure.in: Ditto.
604         * libc/machine/configure.in: Ditto.
605         * libc/machine/mn10300/configure.in: Ditto.
606         * libc/machine/powerpc/configure.in: Ditto.
607         * libc/machine/z8k/configure.in: Ditto.
608         * libc/machine/h8300/configure.in: Ditto.
609         * libc/machine/mips/configure.in: Ditto.
610         * libc/machine/crx/configure.in: Ditto.
611         * libc/machine/m68hc11/configure.in: Ditto.
612         * libc/machine/h8500/configure.in: Ditto.
613         * libc/machine/xscale/configure.in: Ditto.
614         * libc/machine/d10v/configure.in: Ditto.
615         * libc/machine/fr30/configure.in: Ditto.
616         * libc/machine/sh/configure.in: Ditto.
617         * libc/machine/tic80/configure.in: Ditto.
618         * libc/machine/m32r/configure.in: Ditto.
619         * libc/machine/xstormy16/configure.in: Ditto.
620         * libc/machine/i386/configure.in: Ditto.
621         * libc/machine/d30v/configure.in: Ditto.
622         * libc/machine/mn10200/configure.in: Ditto.
623         * libc/machine/frv/configure.in: Ditto.
624         * libc/machine/mt/configure.in: Ditto.
625         * libc/machine/i960/configure.in: Ditto.
626         * libc/machine/v850/configure.in: Ditto.
627         * libc/machine/necv70/configure.in: Ditto.
628         * libc/machine/tic4x/configure.in: Ditto.
629         * libc/machine/cris/configure.in: Ditto.
630         * libc/machine/m68k/configure.in: Ditto.
631         * libc/machine/m32c/configure.in: Ditto.
632         * libc/machine/hppa/configure.in: Ditto.
633         * libc/machine/w65/configure.in: Ditto.
634         * libc/machine/iq2000/configure.in: Ditto.
635         * libc/machine/sparc/configure.in: Ditto.
636         * libc/machine/m88k/configure.in: Ditto.
637         * libc/sys/linux/configure.in: Ditto.
638         * libc/sys/linux/machine/configure.in: Ditto.
639         * libc/sys/linux/machine/i386/configure.in: Ditto.
640         * libc/sys/linux/linuxthreads/configure.in: Ditto.
641         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
642         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
643         * libc/sys/arm/configure.in: Ditto.
644         * libc/sys/configure.in: Ditto.
645         * libc/sys/decstation/configure.in: Ditto.
646         * libc/sys/a29khif/configure.in: Ditto.
647         * libc/sys/sysnecv850/configure.in: Ditto.
648         * libc/sys/d10v/configure.in: Ditto.
649         * libc/sys/netware/configure.in: Ditto.
650         * libc/sys/mmixware/configure.in: Ditto.
651         * libc/sys/h8500hms/configure.in: Ditto.
652         * libc/sys/sh/configure.in: Ditto.
653         * libc/sys/tic80/configure.in: Ditto.
654         * libc/sys/rdos/configure.in: Ditto.
655         * libc/sys/sysmec/configure.in: Ditto.
656         * libc/sys/sysvi386/configure.in: Ditto.
657         * libc/sys/h8300hms/configure.in: Ditto.
658         * libc/sys/sparc64/configure.in: Ditto.
659         * libc/sys/arc/configure.in: Ditto.
660         * libc/sys/sysnec810/configure.in: Ditto.
661         * libc/sys/m88kbug/configure.in: Ditto.
662         * libc/sys/sysvnecv70/configure.in: Ditto.
663         * libc/sys/z8ksim/configure.in: Ditto.
664         * libc/sys/rtems/configure.in: Ditto.
665         * libc/sys/w65/configure.in: Ditto.
666         * libc/sys/sun4/configure.in: Ditto.
667         * doc/configure.in: Ditto.
668         * iconvdata/configure.in: Ditto.
669         * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
670
671 2006-04-11  Jeff Johnston  <jjohnstn@redhat.com>
672
673         * acinclude.m4: Properly add square brackets for
674         AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
675         macros no longer available.  Add LIB_AM_PROG_AS to
676         remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
677         macro.  Substitute lpfx (library object prefix).
678         * configure.host: Set lpfx depending on whether
679         libtool is used or not.
680         * configure.in: Individually specify libc and libm
681         to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
682         necessary.
683         * Makefile.am: Use $(lpfx) to get object names for
684         math-library functions that should also be in libc.
685         * libc/machine/configure.in: Use case statement to determine
686         AC_CONFIG_SUBDIRS statement.
687         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
688         * libc/sys/linux/machine/configure.in: Ditto.
689         * libc/sys/configure.in: Ditto.
690         * libm/machine/configure.in: Ditto.
691         * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
692         * libm/configure.in: Add AM_CONDITIONAL statement
693         for HAVE_LIBM_MACHINE_DIR.
694         * libc/machine/a29k/Makefile.am: Modified to work with
695         latest automake.  Change includes setting AM_CCASFLAGS
696         so building .S files will properly pick up flags used
697         to build C files.
698         * libc/machine/arm/Makefile.am: Ditto.
699         * libc/machine/crx/Makefile.am: Ditto.
700         * libc/machine/d10v/Makefile.am: Ditto.
701         * libc/machine/d30v/Makefile.am: Ditto.
702         * libc/machine/fr30/Makefile.am: Ditto.
703         * libc/machine/frv/Makefile.am: Ditto.
704         * libc/machine/h8300/Makefile.am: Ditto.
705         * libc/machine/h8500/Makefile.am: Ditto.
706         * libc/machine/hppa/Makefile.am: Ditto.
707         * libc/machine/i386/Makefile.am: Ditto.
708         * libc/machine/iq2000/Makefile.am: Ditto.
709         * libc/machine/m32c/Makefile.am: Ditto.
710         * libc/machine/m32r/Makefile.am: Ditto.
711         * libc/machine/m68hc11/Makefile.am: Ditto.
712         * libc/machine/m68k/Makefile.am: Ditto.
713         * libc/machine/m88k/Makefile.am: Ditto.
714         * libc/machine/mips/Makefile.am: Ditto.
715         * libc/machine/mn10200/Makefile.am: Ditto.
716         * libc/machine/mn10300/Makefile.am: Ditto.
717         * libc/machine/mt/Makefile.am: Ditto.
718         * libc/machine/necv70/Makefile.am: Ditto.
719         * libc/machine/powerpc/Makefile.am: Ditto.
720         * libc/machine/sh/Makefile.am: Ditto.
721         * libc/machine/sparc/Makefile.am: Ditto.
722         * libc/machine/tic4x/Makefile.am: Ditto.
723         * libc/machine/tic80/Makefile.am: Ditto.
724         * libc/machine/v850/Makefile.am: Ditto.
725         * libc/machine/w65/Makefile.am: Ditto.
726         * libc/machine/xscale/Makefile.am: Ditto.
727         * libc/machine/xstormy16/Makefile.am: Ditto.
728         * libc/machine/z8k/Makefile.am: Ditto.
729         * libc/sys/a29khif/Makefile.am: Ditto.
730         * libc/sys/arc/Makefile.am: Ditto.
731         * libc/sys/arm/Makefile.am: Ditto.
732         * libc/sys/d10v/Makefile.am: Ditto.
733         * libc/sys/decstation/Makefile.am: Ditto.
734         * libc/sys/h8300hms/Makefile.am: Ditto.
735         * libc/sys/h8500hms/Makefile.am: Ditto.
736         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
737         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
738         * libc/sys/m88kbug/Makefile.am: Ditto.
739         * libc/sys/mmixware/Makefile.am: Ditto.
740         * libc/sys/netware/Makefile.am: Ditto.
741         * libc/sys/rdos/Makefile.am: Ditto.
742         * libc/sys/rtems/Makefile.am: Ditto.
743         * libc/sys/sh/Makefile.am: Ditto.
744         * libc/sys/sparc64/Makefile.am: Ditto.
745         * libc/sys/sysmec/Makefile.am: Ditto.
746         * libc/sys/sysnec810/Makefile.am: Ditto.
747         * libc/sys/sysnecv850/Makefile.am: Ditto.
748         * libc/sys/sysvi386/Makefile.am: Ditto.
749         * libc/sys/sysvnecv70/Makefile.am: Ditto.
750         * libc/sys/tic80/Makefile.am: Ditto.
751         * libc/sys/w65/Makefile.am: Ditto.
752         * libc/sys/z8ksim/Makefile.am: Ditto.
753         * libm/machine/i386/Makefile.am: Ditto.
754         * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
755         trap.S so that automake will generate a .S.o suffix rule.
756         * libc/argz/Makefile.am: Modified to work with
757         latest automake.  Change includes adding lib_a_CFLAGS
758         so automake doesn't complain about libtool and non-libtool
759         libraries sharing objects.
760         * libc/ctype/Makefile.am: Ditto.
761         * libc/errno/Makefile.am: Ditto.
762         * libc/iconv/ccs/Makefile.am: Ditto.
763         * libc/iconv/ces/Makefile.am: Ditto.
764         * libc/iconv/lib/Makefile.am: Ditto.
765         * libc/locale/Makefile.am: Ditto.
766         * libc/misc/Makefile.am: Ditto.
767         * libc/posix/Makefile.am: Ditto.
768         * libc/reent/Makefile.am: Ditto.
769         * libc/search/Makefile.am: Ditto.
770         * libc/signal/Makefile.am: Ditto.
771         * libc/stdio/Makefile.am: Ditto.
772         * libc/stdio64/Makefile.am: Ditto.
773         * libc/stdlib/Makefile.am: Ditto.
774         * libc/string/Makefile.am: Ditto.
775         * libc/sys/linux/Makefile.am: Ditto.
776         * libc/sys/linux/argp/Makefile.am: Ditto.
777         * libc/sys/linux/cmath/Makefile.am: Ditto.
778         * libc/sys/linux/dl/Makefile.am: Ditto.
779         * libc/sys/linux/iconv/Makefile.am: Ditto.
780         * libc/sys/linux/intl/Makefile.am: Ditto.
781         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
782         * libc/sys/linux/net/Makefile.am: Ditto.
783         * libc/sys/linux/stdlib/Makefile.am: Ditto.
784         * libc/syscalls/Makefile.am: Ditto.
785         * libc/time/Makefile.am: Ditto.
786         * libc/unix/Makefile.am: Ditto.
787         * libm/Makefile.am: Ditto.
788         * libm/common/Makefile.am: Ditto.
789         * libm/math/Makefile.am: Ditto.
790         * libm/mathfp/Makefile.am: Ditto.
791         * Regenerate all aclocal.m4, Makefile.in, and configure files.
792
793 2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
794
795         * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
796         anymore.  Assume there is a gettimeofday syscall.
797
798 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
799
800         * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
801         for the declaration of n_long.
802
803 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
804
805         * libc/sys/linux/include/net/if.h: Include sys/socket.h for
806         struct sockaddr.
807         (IFF_SMART): Replace this define with IFF_NOTRAILERS.
808         (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
809         (IFF_NOTRAILERS): New define.
810         (struct ifreq): Add ifru_netmask.
811         (ifr_netmask): New define.
812
813 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
814
815         * libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
816         match sys/ioctl.h.
817
818 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
819
820         * libtool.m4: Set lt_cv_deplibs_check_method=pass_all for 
821         linux-newlib libc implementations.
822
823 2006-03-29  Eric Blake  <ebb9@byu.net>
824
825         * libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
826         * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
827
828 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
829
830         * libc/sys/linux/io.c (__mknod): Fix declaration of
831         syscall to pass a dev_t as third argument rather than
832         a pointer to dev_t.
833
834 2006-03-29  Jeff Johnston  <jjohnstn@redhat.com>
835
836         * libc/sys/linux/net/name6.c: Fix struct references.
837
838 2006-03-22  Mark Mitchell  <mark@codesourcery.com>
839
840         * configure.host: Allow hosts to set the default
841         newlib_atexit_dynamic_alloc value.
842         * configure.in: Likewise.
843         * configure: Regenerated.
844
845 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
846
847         * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
848         * configure.in (--disable-newlib-atexit-dynamic-alloc): New
849         option. 
850         * configure: Regenerated.
851         * newlib.hin: Regenerated.
852         * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
853         if _ATEXIT_DYNAMIC_ALLOC is undefined.
854         * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
855         if _ATEXIT_DYNAMIC_ALLOC is undefined.
856
857 2006-03-17  Jeff Johnston  <jjohnstn@redhat.com>
858
859         * libc/sys/linux/linuxthreads/config.h: Remove definition
860         of UINT32_C.
861
862 2006-03-15  Jeff Johnston  <jjohnstn@redhat.com>
863
864         * libc/stdio/wsetup.c (__swsetup): Don't make a buffer
865         for a string I/O file that isn't using the asprintf family.
866
867 2006-03-07  Eric Blake  <ebb9@byu.net>
868
869         * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
870         filename, allow read-only or write-only FILE atop O_RDWR file
871         descriptor.
872         * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
873
874 2006-03-07  Jeff Johnston  <jjohnstn@redhat.com>
875
876         * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
877         * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
878
879 2006-03-02  Jeff Johnston  <jjohnstn@redhat.com>
880
881         * libm/math/math.tex: Fix reference to sisnan.def which
882         is now in common subdirectory.
883         * libm/mathfp/mathfp.tex: Ditto.
884
885 2006-02-27  Jeff Johnston  <jjohnstn@redhat.com>
886
887         * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, 
888         s_isnand, and sf_isnanf object files.
889         * Makefile.in: Regenerated.
890         * libc/include/ieeefp.h: Undef isnan and isinf to avoid
891         conflict if <math.h> has previously been included.
892         * libc/include/math.h
893         * libc/include/math.h: Make isnan and isinf macros to
894         conform to C99.
895         (__isinfd, __isinff, __isnand, __isnanf): New functions.
896         * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
897         and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
898         sf_isinf files which have been moved from math/mathfp directories. 
899         * libm/common/Makefile.in: Regenerated.
900         * libm/common/s_isinfd.c: New file.
901         * libm/common/s_isnand.c: Ditto.
902         * libm/common/sf_isinff.c: Ditto.
903         * libm/common/sf_isnanf.c: Ditto.
904         * libm/common/s_isinf.c: Moved from libm/math directory.
905         * libm/common/s_isnan.c: Ditto.
906         * libm/common/sf_isinf.c: Ditto.
907         * libm/common/sf_isnan.c: Ditto.
908         * libm/math/Makefile.am: Remove isinf and isnan family functions
909         which have been moved into common directory.
910         * libm/mathfp/Makefile.am: Ditto.
911         * libm/math/Makefile.in: Regenerated.
912         * libm/mathfp/Makefile.in: Ditto.
913         * libm/math/s_isinf.c: Removed.
914         * libm/math/s_isnan.c: Ditto.
915         * libm/math/sf_isinf.c: Ditto.
916         * libm/math/sf_isnan.c: Ditto.
917         * libm/mathfp/s_isinf.c: Ditto.
918         * libm/mathfp/s_isnan.c: Ditto.
919         * libm/mathfp/sf_isinf.c: Ditto.
920         * libm/mathfp/sf_isnan.c: Ditto.
921
922 2006-02-20  Jeff Johnston  <jjohnstn@redhat.com>
923
924         * libc/stdio/fflush.c (fflush): For an fflush on a read-only
925         stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
926         * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
927         seek, turn off the __SNPT no-optimization flag.
928
929 2006-02-16  Jeff Johnston  <jjohnstn@redhat.com>
930
931         * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
932         will be defined.
933         * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
934         <features.h> to preset special flags.
935
936 2006-02-15  Corinna Vinschen  <corinna@vinschen.de>
937
938         * libc/include/sys/time.h (struct timeval): Change member types
939         according to SUSv3.
940         * libc/include/sys/types.h (useconds_t): Change to unsigned
941         according to SUSv3.
942         (suseconds_t): Define type.
943
944 2006-02-13  Jeff Johnston  <jjohnstn@redhat.com>
945             David Carne  <davidcarne@gmail.com>
946
947         * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
948         instead of strlen to determine number of bytes to copy.
949         * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
950         before looking at storage location.
951
952 2006-02-07  Paul Brook  <paul@codesourcery.com>
953
954         * libc/machine/arm/setjmp.S: Add Thumb-2 support.
955         * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
956         * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
957         * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
958         * libc/sys/arm/trap.S: Disable for Thumb-2.
959
960 2006-01-31  Leif Ekblad  <leif@rdos.net>
961
962         * configure.host: RDOS support added
963         * libc/include/sys/config.h: Ditto.
964         * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
965         * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
966         * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
967         * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
968         * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
969         * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
970         * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
971         * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
972         * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
973         * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
974         * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
975         * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
976         * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
977         * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
978         * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
979         * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
980         * libc/sys/rdos/write.c: Ditto.
981
982 2006-01-24  Jeff Johnston  <jjohnstn@redhat.com>
983
984         * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
985         so as not to define PACKAGE and VERSION in newlib.h.
986         * aclocal.m4: Regenerated.
987         * configure: Ditto.
988         * newlib.hin: Ditto.
989
990 2006-01-20  Jeff Johnston  <jjohnstn@redhat.com>
991
992         * acconfig.h: New file to generate newlib.hin from.
993         * newlib.hin: Regenerated.
994         * stamp-h.in: Regenerated.
995         * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
996         called automatically.
997         * Makefile.in: Regenerated.
998         * acinclude.m4: Add proper comment for hack in previous change.
999         * aclocal.m4 */aclocal.m4: Regenerated.
1000         * configure */configure: Regenerated.
1001
1002 2006-01-11  Jeff Johnston  <jjohnstn@redhat.com>
1003
1004         * acinclude.m4: Add hack to prevent INSTALL in subdirs
1005         from being set to "../".
1006         * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
1007         * aclocal.m4: Regenerated.
1008         * configure: Ditto.
1009         * Makefile.in: Ditto.
1010         * doc/aclocal.m4: Ditto.
1011         * doc/configure: Ditto.
1012         * iconvdata/aclocal.m4: Ditto.
1013         * iconvdata/configure: Ditto.
1014         * libc/*/aclocal.m4: Ditto.
1015         * libc/*/configure: Ditto.
1016         * libc/libc.texinfo: Ditto.
1017         * libm/*/aclocal.m4: Ditto.
1018         * libm/*/configure: Ditto.
1019
1020 2006-01-10  Eric Blake  <ebb9@byu.net>
1021
1022         * libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
1023         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
1024
1025 2006-01-10  Jeff Johnston  <jjohnstn@redhat.com>
1026
1027         * libm/mathfp/s_frexp.c: Check for special values on
1028         the original input, not the manipulated output value.
1029         * libm/mathfp/sf_frexp.c: Ditto.
1030         * libm/mathfp/s_atangent.c: Don't use local value branch
1031         when checking for quadrant.
1032         * libm/mathfp/sf_atangent.c: Ditto.
1033
1034 2006-01-09  Jeff Johnston  <jjohnstn@redhat.com>
1035
1036         * libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
1037         * libc/stdio64/freopen64.c: Ditto.
1038
1039 2006-01-09  Eric Blake  <ebb9@byu.net>
1040
1041         * libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
1042         * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
1043
1044 2006-01-06  Jeff Johnston  <jjohnstn@redhat.com>
1045
1046         * libc/sys/linux/include/getopt.h: Add macros needed by
1047         new version of getopt.c in libc/stdlib.
1048
1049 2006-01-04  Gregory Pietsch  <gpietsch@comcast.net>
1050
1051         * libc/stdlib/getopt.c: Replaced with version
1052         that adds getopt_long and getopt_long_only support.
1053         * libc/include/getopt.h: New file.
1054
1055 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1056
1057         * NEWS: Update with 1.14.0 info.
1058         * README: Ditto.
1059         * acinclude.m4: Change version number to 1.14.0.
1060         * aclocal.m4: Regenerated.
1061         * configure: Ditto.
1062         * doc/aclocal.m4: Ditto.
1063         * doc/configure: Ditto.
1064         * libc/*/aclocal.m4: Ditto.
1065         * libc/*/configure: Ditto.
1066         * libc/libc.texinfo: Ditto.
1067         * libm/*/aclocal.m4: Ditto.
1068         * libm/*/configure: Ditto.
1069         * libm/libm.texinfo: Ditto.
1070         * libc/sys/linux/shared.ld: Add VERS_1.14.
1071
1072 2005-12-16  Jeff Johnston  <jjohnstn@redhat.com>
1073
1074         * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
1075         take a pointer to struct stat64 rather than struct stat.
1076
1077 2005-12-16  Ralf Corsepius <ralf.corsepius@rtems.org>
1078
1079         * libc/include/stdint.h: Prefer long over int for int32_t.
1080         Use __have_long32 to set up int32_t.
1081         * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
1082         (Sync with stdint.h).
1083
1084 2005-12-14  Corinna Vinschen  <corinna@vinschen.de>
1085
1086         * libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
1087         typo in O_NDELAY comment.
1088
1089 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
1090
1091         * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
1092         * libc/include/machine/setjmp.h (__mt__): Likewise.
1093         * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
1094         * libc/machine/configure.in: Ditto.
1095
1096 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1097
1098         * configure.host: Replace ms1 arch with mt arch.
1099         * libc/machine/mt: Renamed from ms1 dir.
1100
1101 2005-12-08  Shaun Jackman  <sjackman@gmail.com>
1102
1103         * libc/include/sys/types.h: Remove the ifdef armour around
1104         standard POSIX types.
1105
1106 2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1107
1108         * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
1109         rtems_gxx_key_delete, rtems_gxx_getspecific,
1110         rtems_gxx_setspecific, rtems_gxx_mutex_trylock, 
1111         rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, 
1112         rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
1113
1114 2005-12-05  Christopher Faylor  <cgf@timesys.com>
1115
1116         * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific
1117         file.  Declare unsetenv and _unsetenv_r when not cygwin.
1118
1119 2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>
1120
1121         * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
1122         Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
1123
1124 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1125
1126         * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
1127
1128 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1129
1130         * include/time.h: Remove more cygwin-specific stuff.
1131
1132 2005-11-18  Christopher Faylor  <cgf@timesys.com>
1133
1134         * include/time.h: Move cygwin declarations to cygwin-specific header.
1135         * include/sys/time.h: Rename cygwin include to "sys_time.h".
1136
1137 2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>
1138
1139         * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
1140         in libc/sys/linux/include.
1141         * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
1142         * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
1143         * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
1144         in libc/sys/linux/dl.
1145
1146 2005-11-11  Christopher Faylor  <cgf@timesys.com>
1147
1148         * libc/include/sys/time.h: For cygwin, use general header rather than
1149         specific "sys/select.h".
1150
1151 2005-11-08  Tom Walsh  <tom@openhardware.net>
1152
1153         * libc/time/tzvars.c: New file.
1154         * libc/time/tzset_r.c: Moved globals into tzvars.c
1155         so other time functions needn't link in __tzset_r and its
1156         dependencies.
1157         * libc/time/Makefile.am: Add the new file.
1158         * libc/time/Makefile.in: Regenerated.
1159
1160 2005-11-08  Christopher Faylor  <cgf@timesys.com>
1161
1162         * libc/include/string.h: Add cygwin-specific function declaration.
1163
1164 2005-11-07  Corinna Vinschen  <corinna@vinschen.de>
1165
1166         * libc/include/ieeefp.h: Add C++ guards.
1167
1168 2005-11-03  Jeff Johnston  <jjohnstn@redhat.com>
1169
1170         * libc/unix/getcwd.c: Don't use non-reentrant syscall names.
1171         * libc/unix/getlogin.c: Ditto.
1172         * libc/unix/getpass.c: Ditto.
1173         * libc/unix/getut.c: Ditto.
1174         * libc/unix/ttyname.c: Ditto.
1175
1176 2005-11-03  Shaun Jackman  <sjackman@gmail.com>
1177
1178         * libc/include/sys/unistd.h (readlink, symlink): Provide these
1179         prototypes by default.
1180         * libc/sys/linux/include/unistd.h (readlink): Remove this
1181         prototype.
1182         * libc/sys/linux/sys/unistd.h (readlink, symlink): New
1183         prototypes.
1184
1185 2005-11-01  Ralf Corsepius <ralf.corsepius@rtems.org>
1186
1187         * libc/include/stdint.h: Cleanup #if vs. #ifdef.
1188
1189 2005-10-31  Darin Johnson  <darin@usa.net>
1190
1191         * libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
1192         correct for constants.
1193
1194 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1195
1196         * libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
1197         * libc/stdio/siscanf.c: Likewise.
1198         * libc/stdio/sprintf.c: Likewise.
1199         * libc/stdio/sscanf.c: Likewise.
1200         * libc/stdio/vfprintf.c: Likewise.
1201         * libc/stdio/vfscanf.c: Likewise.
1202         * libc/stdio/viprintf.c: Likewise.
1203         * libc/stdio/viscanf.c: Likewise.
1204
1205 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1206
1207         * libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
1208         example to use "_end" symbol instead of "end".  Change write  example
1209         to use "outbyte" instead of "writechar".
1210
1211 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1212
1213         * libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
1214         * libc/ctype/islower.c: Likewise.
1215         * libc/ctype/isupper.c: Likewise.
1216         * libc/ctype/iswalnum.c: Likewise.
1217         * libc/ctype/iswalpha.c: Likewise.
1218         * libc/ctype/iswblank.c: Likewise.
1219         * libc/ctype/iswcntrl.c: Likewise.
1220         * libc/ctype/iswdigit.c: Likewise.
1221         * libc/ctype/iswgraph.c: Likewise.
1222         * libc/ctype/iswlower.c: Likewise.
1223         * libc/ctype/iswprint.c: Likewise.
1224         * libc/ctype/iswpunct.c: Likewise.
1225         * libc/ctype/iswspace.c: Likewise.
1226         * libc/ctype/iswupper.c: Likewise.
1227         * libc/ctype/iswxdigit.c: Likewise.
1228         * libc/ctype/tolower.c: Likewise.
1229         * libc/ctype/toupper.c: Likewise.
1230         * libc/ctype/towctrans.c: Likewise.
1231         * libc/ctype/towlower.c: Likewise.
1232         * libc/ctype/towupper.c: Likewise.
1233         * libc/string/strcasecmp.c: Likewise.
1234         * libc/string/strcoll.c: Likewise.
1235         * libc/string/strings.tex: Likewise.
1236         * libc/string/strlwr.c: Likewise.
1237         * libc/string/strncasecmp.c: Likewise.
1238         * libc/string/strupr.c: Likewise.
1239         * libc/string/wcscoll.c: Likewise.
1240         * libc/string/wcslcat.c: Likewise.
1241         * libc/string/wcslcpy.c: Likewise.
1242         * libc/string/wcsnlen.c: Likewise.
1243         * libc/string/wcsstr.c: Likewise.
1244         * libc/string/wcstrings.tex: Likewise.
1245         * libc/string/wmemchr.c: Likewise.
1246         * libc/string/wmemcmp.c: Likewise.
1247         * libc/string/wmemcpy.c: Likewise.
1248         * libc/string/wmemmove.c: Likewise.
1249         * libc/string/wmemset.c: Likewise. 
1250
1251 2005-10-28  Bob Wilson  <bob.wilson@acm.org>
1252
1253         * libc/misc/unctrl.c: Replace FUNCTION description.
1254         * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
1255         * libc/stdio/getdelim.c: Fix spelling errors.
1256         * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
1257         * libc/stdio/putw.c: Likewise.
1258         * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
1259         documentation.
1260         * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
1261         * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
1262         * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
1263         * libc/stdlib/mlock.c: Likewise.
1264         * libc/stdlib/mstats.c: Likewise.
1265         * libc/time/tzlock.c: Likewise.
1266         * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
1267         * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
1268         and hyphenate "pseudo-random".
1269         * libc/string/bcmp.c: Remove extra blank lines in  documentation.
1270         * libc/string/strncat.c: Likewise.
1271         * libc/string/memchr.c: Remove extra ">" character in  documentation.
1272         * libc/string/strcspn.c: Use "characters" instead of "chars".
1273         * libc/string/strpbrk.c: Likewise.
1274         * libc/string/strerror_r.c: Capitalize "GNU".
1275         * libc/string/strnlen.c: Likewise.
1276         * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
1277         documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
1278         * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
1279         * libc/string/wcschr.c: Likewise.
1280         * libc/string/wcscmp.c: Likewise.
1281         * libc/string/wcscpy.c: Likewise.
1282         * libc/string/wcscspn.c: Likewise.
1283         * libc/string/wcslen.c: Likewise.
1284         * libc/string/wcsncat.c: Likewise.
1285         * libc/string/wcsncmp.c: Likewise.
1286         * libc/string/wcsncpy.c: Likewise.
1287         * libc/string/wcsnlen.c: Likewise.
1288         * libc/string/wcspbrk.c: Likewise.
1289         * libc/string/wcsrchr.c: Likewise.
1290         * libc/string/wcsspn.c: Likewise.
1291         * libc/string/wmemchr.c: Likewise.
1292         * libc/string/wmemcmp.c: Likewise.
1293         * libc/string/wmemcpy.c: Likewise.
1294         * libc/string/wmemset.c: Likewise.
1295         * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
1296         * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
1297         * libc/string/wcwidth.c: Likewise.
1298         * libm/common/s_modf.c: Remove extra period from documentation.
1299         * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
1300         documentation.
1301         * libm/mathfp/s_isnan.c: Likewise.
1302         * libm/math/s_ldexp.c: Fix punctuation.
1303         * libm/mathfp/s_ldexp.c: Likewise.
1304         * libm/math/w_log.c: Likewise.
1305         * libm/mathfp/s_logarithm.c: Likewise.
1306         * libm/math/w_j0.c: Add spaces to FUNCTION description.
1307         * libm/mathfp/w_jn.c: Likewise. 
1308
1309 2005-10-26  Shaun Jackman  <sjackman@gmail.com>
1310
1311         * libc/posix/scandir.c (scandir): Update the function
1312         prototype to match the header.
1313         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
1314         extraneous #endif.
1315         * libc/sys/linux/sys/lock.h: Do not include
1316         machine/weakalias.h, since it's not used by this file.
1317
1318 2005-10-26  Jeff Johnston  <jjohnstn@redhat.com>
1319
1320         * libc/Makefile.am: Reorder SUBLIBS so machine and sys
1321         directories can override properly.
1322
1323 2005-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1324
1325         * libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
1326         gcc is 3.3 or greater, use special gcc builtins.
1327
1328 2005-10-20  Corinna Vinschen <corinna@vinschen.de>
1329
1330         * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin.
1331
1332 2005-10-18  Corinna Vinschen <corinna@vinschen.de>
1333
1334         * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
1335
1336 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1337
1338         * libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
1339         * libm/common/Makefile.am: Add s_infconst.c support.
1340         * libm/common/Makefile.in: Regenerated.
1341         * libm/common/s_infconst.c: New file with float and
1342         long double infinity support added.
1343         * libm/math/Makefile.am: Remove s_infconst.c support.
1344         * libm/math/Makefile.in: Regenerated.
1345         * libm/math/s_infconst.c: Moved to common directory.
1346         * libm/mathfp/Makefile.am: Remove s_infconst.c support.
1347         * libm/mathfp/Makefile.in: Regenerated.
1348         * libm/mathfp/s_infconst.c: Moved to common directory.
1349
1350 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1351
1352         * libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
1353         dbgprintf to prevent conflict with new dprintf function.
1354
1355 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1356
1357         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
1358         "nan" processing for systems that have long double support.
1359
1360 2005-10-14  Jeff Johnston  <jjohnstn@redhat.com>
1361
1362         * libc/sys/linux/sys/types.h (int8_t): Add type.
1363
1364 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1365
1366         * libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
1367         * libm/common/Makefile.in: Regenerate.
1368         * libm/common/common.tex: Delete file.
1369         * libm/math/math.tex: Include .def files from common/.
1370         * libm/mathfp/mathfp.tex: Likewise.
1371
1372 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1373
1374         * libc/libc.texinfo (Top): Surround this node with @ifnottex
1375         instead of @ifinfo.  Update menu to add Introduction and match
1376         SUBDIRS order.
1377         (Introduction): New section.
1378
1379 2005-10-14  Bob Wilson  <bob.wilson@acm.org>
1380
1381         * libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
1382         with "Red Hat newlib C Library".
1383         * libc/sys.tex (Stubs): Likewise.
1384         * libm/math/math.tex (Math): Likewise.
1385         * libm/mathfp/mathfp.tex (Math): Likewise.
1386
1387 2005-10-11  Shaun Jackman  <sjackman@gmail.com>
1388
1389         * libc/include/stdio.h (dprintf): New declaration.
1390         (vdprintf): Ditto.
1391         * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
1392         and vdprintf.c.
1393         * libc/stdio/Makefile.in: Regenerate.
1394         * libc/stdio/dprintf.c: New file.
1395         * libc/stdio/vdprintf.c: New file.
1396         * libc/stdio/stdio.tex (dprintf): New entry.
1397
1398 2005-10-11  David Weatherford  <weath@tensilica.com>
1399
1400         * libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
1401         Print "inf" and "nan" in lowercase for e/f/g formats and in 
1402         uppercase for E/F/G formats.
1403
1404 2005-10-07  Bob Wilson  <bob.wilson@acm.org>
1405
1406         * libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
1407         to ENOMEM on failure.
1408
1409 2005-10-06  Ralf Corsepius <ralf.corsepius@rtems.org>
1410
1411         * libc/include/stdint.h: Add [u]int_fast<N>_t types.
1412
1413 2005-10-04  Ralf Corsepius <ralf.corsepius@rtems.org>
1414
1415         * libc/include/stdint.h: Move magic to set __have_long* to the
1416         beginning.  Use #if __have* instead of #if defined(__have*).
1417         Minor typo fixes.
1418
1419 2005-10-04  James E Wilson  <wilson@specifix.com>
1420
1421         * libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
1422         #error.
1423
1424 2005-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1425
1426         * libc/sys/linux/include/stdint.h: Include <sys/types.h> and
1427         incorporate Ralf's change below.
1428
1429 2005-10-03  Ralf Corsepius <ralf.corsepius@rtems.org>
1430
1431         * libc/include/stdint.h: 
1432         Use __INTMAX_TYPE__ to derive intmax_t.
1433         Use __UINTMAX_TYPE__ to derive uintmax_t.
1434         Fix minor typo.
1435
1436 2005-09-27  Ralf Corsepius <ralf.corsepius@rtems.org>
1437
1438         * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly 
1439         handling GCC >= 4.
1440
1441 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1442
1443         * libc/sys/linux/include/stdint.h: Update to match functionality
1444         of generic newlib stdint.h.
1445
1446 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1447
1448         * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
1449         and do not #undef the macro after it is used.  Fix typos.
1450         Also change 64-bit constants to use the __have_long64 and
1451         __have_longlong64 flags to determine if long or long long
1452         constants should be used.
1453         * libc/include/inttypes.h: Include stddef.h to get wchar_t
1454         type defined.
1455
1456 2005-09-20  Shaun Jackman  <sjackman@gmail.com>
1457
1458         * libc/include/stdint.h: Fix typo in names of
1459         LEAST macros.
1460
1461 2005-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1462
1463         * libc/sys/rtems/include/inttypes.h: Moved to...
1464         * libc/include/inttypes.h: ...here.
1465
1466 2005-09-19  Jeff Johnston  <jjohnstn@redhat.com>
1467
1468         * libc/sys/rtems/include/stdint.h: Moved to...
1469         * libc/include/stdint.h: ...here.
1470
1471 2005-09-08  Jeff Johnston  <jjohnstn@redhat.com>
1472
1473         * Makefile.am: Add include files under bits sub-directory.
1474         * Makefile.in: Regenerated.
1475         * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
1476         actual value of 1 to be compatible with newer glibc headers.
1477         * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
1478         glibc headers.
1479         * libc/sys/linux/sys/dirent.h: Ditto.
1480         * libc/sys/linux/argp/argp-xinl.c: Ditto.
1481         * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
1482         profile_fixup routines are marked used so they won't be
1483         optimized away.
1484         * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
1485         to mark functions as weak.
1486         * libc/sys/linux/dl/dl-open.c: Ditto.
1487         * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
1488         rules about lvalues.
1489         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
1490         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
1491         weak_extern macro to mark functions as weak.  Instead always
1492         use #pragma weak.
1493         * iconvdata/jis0208.h: Fix to work with gcc4.
1494         * libc/sys/linux/dl/dl-load.c: Ditto.
1495         * libc/sys/linux/dl/dl-reloc.c: Ditto.
1496         * libc/sys/linux/dl/do-rel.h: Ditto.
1497         * libc/sys/linux/dl/dynamic-link.h: Ditto.
1498         * libc/sys/linux/include/ltdl.h: Ditto.
1499         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
1500         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
1501         * libc/sys/linux/net/ns_ntoa.c: Ditto.
1502         * libc/sys/linux/bits/initspin.h: New file.
1503         * libc/sys/linux/bits/libc-lock.h: Ditto.
1504         * libc/sys/linux/bits/pthreadtypes.h: Ditto.
1505         * libc/sys/linux/bits/typesizes.h: Ditto.
1506
1507 2005-09-08  Eric Blake  <ebb9@byu.net>
1508
1509         * libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
1510         before is NULL.
1511
1512 2005-09-08  Brian Dessent  <brian@dessent.net>
1513
1514         * sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
1515         mantissa.
1516         * s_lrint.c: Ditto.
1517
1518 2005-09-02  Jeff Johnston  <jjohnstn@redhat.com>
1519
1520         * libc/include/stdio.h: Add prototype for viprintf.
1521
1522 2005-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1523
1524         * libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
1525         any positive power results in 0.
1526         * libm/mathfp/sf_pow.c (powf): Ditto.
1527
1528 2005-08-31  Paul Brook  <paul@codesourcery.com>
1529
1530         * configure.host: Set have_crt0 to no for Arm targts when not
1531         providing syscalls.  Set sys_dir=arm unconditionally.
1532         Default have_crt0 based on sys_dir.
1533         * configure.in: Use have_crt0.
1534         * libc/configure.in: Ditto.
1535         * libc/sys/configure.in: Ditto.
1536         * configure: Regenerate.
1537         * libc/configure: Regenerate.
1538         * libc/sys/configure: Regenerate.
1539         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
1540         Only build other files when providing syscalls.
1541         * libc/sys/arm/Makefile.in: Regenerate.
1542         * libc/sys/arm/aeabi_atexit.c: New file.
1543
1544 2005-08-26  Christopher Faylor  <cgf@timesys.com>
1545
1546         * libc/include/string.h: Revert previous change.
1547
1548 2005-08-25  Christopher Faylor  <cgf@timesys.com>
1549
1550         * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.
1551
1552 2005-08-22  Shaun Jackman  <sjackman@gmail.com>
1553
1554         * libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
1555         define _opendir as opendir, _readdir as readdir, and
1556         _closedir as closedir so that the implementations in
1557         libc/posix will be used.
1558
1559 2005-08-10  DJ Delorie  <dj@redhat.com>
1560
1561         * MAINTAINERS (CPU Ports): Add CPU port maintainer section.
1562
1563 2005-08-10  Stephen Huw Clarke  <stephen.clarke@st.com>
1564
1565         * libm/common/sf_fmax.c: Fix to properly handle NaNs.
1566         * libm/common/s_max.c: Ditto.
1567         * libm/common/sf_fmin.c: Ditto.
1568         * libm/common/s_min.c: Ditto.
1569
1570 2005-08-10  DJ Delorie  <dj@redhat.com>
1571
1572         * configure.host: Add m32c support.
1573         * libc/include/machine/ieeefp.h: Likewise.
1574         * libc/include/machine/setjmp.h: Likewise.
1575         * libc/include/sys/config.h: Likewise.
1576         * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
1577         * libc/machine/m32c/aclocal.m4: New file.
1578         * libc/machine/m32c/configure: Ditto.
1579         * libc/machine/m32c/configure.in: Ditto.
1580         * libc/machine/m32c/Makefile.am: Ditto.
1581         * libc/machine/m32c/Makefile.in: Ditto.
1582         * libc/machine/m32c/setjmp.S: Ditto.
1583
1584 2005-08-02  Bob Wilson  <bob.wilson@acm.org>
1585
1586         * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
1587         to the value for 2^126.
1588
1589 2005-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
1590
1591         * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
1592         used.
1593
1594 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
1595            Darin Petkov <darin@tensilica.com>
1596
1597        * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
1598
1599 2005-07-19  Paul Brook  <paul@codesourcery.com>
1600
1601         * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
1602
1603 2005-07-18  Joseph S. Myers  <joseph@codesourcery.com>
1604
1605         * testsuite/lib/checkoutput.exp (newlib_check_output): Use test
1606         names after PASS and FAIL which do not depend on source directory
1607         name or on whether test passed or failed.
1608         * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
1609
1610 2005-07-08  Ola Hugosson   <Ola.Hugosson@anoto.com>
1611
1612         * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
1613
1614 2005-07-07  Shaun Jackman  <sjackman@gmail.com>
1615
1616         * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
1617         twice for the same directory. _closedir calls free, and freeing
1618         the same pointer twice may cause a crash.
1619
1620 2005-07-06  Aldy Hernandez  <aldyh@redhat.com>
1621
1622         * configure.host: Added entry for ms1*.
1623         * libc/include/machine/ieeefp.h: Handle ms1.
1624         * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
1625         * libc/machine/ms1/aclocal.m4: New.
1626         * libc/machine/ms1/configure: New.
1627         * libc/machine/ms1/configure.in: New.
1628         * libc/machine/ms1/Makefile.am: New.
1629         * libc/machine/ms1/Makefile.in: New.
1630         * libc/machine/ms1/setjmp.S: New.
1631
1632 2005-07-04  Mark Mitchell  <mark@codesourcery.com>
1633
1634         * Makefile.am (site.exp): Set tmpdir.
1635         * Makefile.in: Regenerated.
1636         * testsuite/lib/checkoutput.exp (newlib_check_output): Put
1637         executables in $tmpdir.
1638         * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
1639         libgloss version if not running in the build directory.
1640         * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
1641         $tmpdir.
1642         * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
1643         in $tmpdir.
1644
1645 2005-06-28  Dave Korn  <dave.korn@artimi.com>
1646
1647         * libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
1648         and miscalculation caused by fp representation of zero.
1649         * libm/common/sf_lrint.c (lrintf):  Likewise.
1650
1651 2005-06-16  Christopher Faylor  <cgf@timesys.com>
1652
1653         * libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
1654         determine characteristics of long double.  Use a union instead.
1655         * ldtoa.c (_ldtoa_r): Ditto.
1656         (_ldcheck): Ditto.
1657         (_strtold): Ditto.
1658         (union uconv): New union.
1659
1660 2005-06-03  Jeff Johnston  <jjohnstn@redhat.com>
1661
1662         * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
1663         instead of memcpy.
1664
1665 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1666
1667         * configure.host (mn10300-*): Add long long I/O support by default.
1668
1669 2005-05-12  Jeff Johnston  <jjohnstn@redhat.com>
1670
1671         * libc/sys/linux/getpwuid.c: Removed.
1672         * libc/sys/linux/getpwnam.c: Removed.
1673         * libc/sys/linux/getpwent.c: New file containing logic
1674         from files removed above.  This allows overriding of file
1675         in libc/unix.
1676         * libc/sys/linux/Makefile.am: Support changes above.
1677         * libc/sys/linux/Makefile.in: Regenerated.
1678
1679 2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>
1680
1681         * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
1682         when checking for multiple flags.
1683
1684 2005-04-18  Hans-Peter Nilsson  <hp@axis.com>
1685
1686         * configure.host <cris-*-* | crisv32-*-*>: Set
1687         default_newlib_io_long_long="yes".
1688
1689 2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>
1690
1691         * libc/include/libgen.h: New file.
1692
1693 2005-04-08  Shaun Jackman  <sjackman@gmail.com>
1694
1695         * libc/unix/Makefile.am: Add support for basename and dirname.
1696         * libc/unix/Makefile.in: Regenerated.
1697         * libc/unix/basename.c: New file.
1698         * libc/unix/dirname.c: New file.
1699
1700 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1701
1702         * libc/sys/linux/inode.c (lchown): New function.
1703
1704 2005-04-07  Shaun Jackman  <sjackman@gmail.com>
1705
1706         * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
1707         ELIX level is defined.
1708         * libc/unix/Makefile.in: Regenerated.
1709
1710 2005-04-05  Dave Korn  <dave.korn@artimi.com>
1711
1712         * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
1713         something that looks like a "NaN", put back the characters processed.
1714
1715 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
1716
1717         * libc/stdlib/strtod.c (_strtod_r): Never change s00.
1718
1719 2005-03-23  Christopher Faylor  <cgf@timesys.com>
1720
1721         * configure.host: For cygwin, redefine CC with cygwin include directory
1722         first to mimic the behavior of the top-level configury.  Move include
1723         directory out of newlib_cflags.
1724
1725 2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>
1726
1727         * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
1728         * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather 
1729         than errno.
1730
1731 2005-03-22  Christopher Faylor  <cgf@timesys.com>
1732
1733         * libc/include/machine/_types.h: Make trivial change to comment to
1734         avoid a spurious warning from gcc.
1735
1736 2005-03-21  Nicholas Wourms  <nwourms@netscape.net>
1737
1738         * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
1739         since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
1740         reent.h include.
1741
1742 2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
1743             Corinna Vinschen  <corinna@vinschen.de>
1744
1745         * libc/include/ctype.h: Remove invalid +1 offset from
1746         ctype macro references to __ctype_ptr.
1747         (_ctype_): Move declaration outside #ifndef __cplusplus.
1748
1749 2005-03-18  Corinna Vinschen  <corinna@vinschen.de>
1750
1751         * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
1752         evaluate first parameter only once.
1753         (siglongjmp): Ditto.
1754
1755 2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>
1756
1757         * configure.in: Add new check to see if compiler supports
1758         aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
1759         * configure: Regenerated.
1760         * Makefile.in: Ditto.
1761         * newlib.hin: Add _HAVE_ARRAY_ALIASING.
1762         * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
1763         aliasing the _ctype_ array to _ctype_b.
1764         * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
1765         _ctype_ as deprecated.
1766
1767 2005-03-17  Hans-Peter Nilsson  <hp@axis.com>
1768
1769         * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
1770         -DCOMPACT_CTYPE.
1771
1772 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1773
1774         * libc/sys/rtems/include/inttypes.h: New file.
1775         * libc/sys/rtems/include/stdint.h: Ditto.
1776
1777 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1778
1779         * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
1780
1781 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
1782
1783         * libc/include/machine/_types.h: New file.
1784         * libc/include/sys/types.h: Do not check for __rtems__
1785         when including <machine/_types.h>.  Remove some redundant
1786         declarations now that <machine/_types.h> is included.
1787         * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
1788         shared header file.
1789
1790 2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>
1791
1792         * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
1793         L qualifier for these long constants.
1794
1795 2005-02-25  Eric Blake  <ebb9@byu.net>
1796
1797         * libc/include/time.h (__tzrule_struct): Make offset long, since
1798         a 16-bit int overflows on a 12-hour offset.
1799         * libc/sys/linux/include/time.h: Ditto.
1800         * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
1801         * libc/time/mktm_r.c: Ditto.
1802         * libc/time/gettzinfo.c: Ditto.
1803         * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
1804         years.  Fix '%z' to use long, not int.
1805
1806 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1807
1808         * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
1809         manipulate float values in integer form.
1810         * libm/common/sf_round.c: Ditto.
1811
1812 2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>
1813
1814         * libc/include/sys/types.h [__rtems__]: Include new
1815         header file machine/_types.h.
1816         * libc/include/machine/types.h: Ditto.
1817         * libc/sys/rtems/machine/_types.h: New file.
1818
1819 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1820
1821         * libc/include/time.h (_timezone): Change to long also for Cygwin.
1822         (timezone): Drop cast from definition.
1823
1824 2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>
1825
1826         * libc/include/time.h [!CYGWIN](_timezone): Change to long.
1827         (__tzrule_type, __tzinfo_type): New types.
1828         (__gettzinfo): New function.
1829         * libc/sys/linux/include/time.h: Ditto.
1830         * libc/time/Makefile.am: Add gettzinfo.c.
1831         * libc/time/Makefile.in: Regenerated.
1832         * libc/time/local.h: Moved __tzrule_type to time.h.
1833         * libc/time/mktime.c: Call __gettzinfo to reference
1834         __tznorth, __tzyear, and __tzrule array.
1835         * libc/time/mktm_r.c: Ditto.
1836         * libc/time/strftime.c: Ditto.
1837         * libc/time/tzset_r.c: Ditto.  Also remove definition
1838         of __tzrule which is now in gettzinfo.c.  Change _timezone
1839         references to not cast to time_t.
1840         * libc/time/gettzinfo.c: New file.
1841
1842 2005-02-23  Corinna Vinschen  <corinna@vinschen.de>
1843
1844         * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
1845
1846 2005-02-22  Corinna Vinschen  <corinna@vinschen.de>
1847
1848         * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
1849
1850 2005-02-16  Eric Blake  <ebb9@byu.net>
1851
1852         * libc/time/time.tex: Improve the documentation.
1853         * libc/time/strftime.c: Improve the documentation.
1854         (iso_year_adjust): New helper function.
1855         (strftime): Simplify '%E' and '%O'. Change '%c' to use
1856         recursion. Fix '%C', '%y', and '%Y' to deal with years with more
1857         than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
1858         '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
1859         Avoid core dumps on valid inputs (maxsize == 0, or
1860         tim_p->tm_isdst > 1).
1861
1862 2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
1863
1864         * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
1865         members to uid_t and gid_t according to SUSv3.
1866         * libc/include/sys/time.h (utimes):  Change second parameter
1867         to const according to SUSv3.
1868
1869 2005-02-07  Antony King  <antony.king@st.com>
1870
1871         * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
1872         called before _flockfile to prevent lock object use before
1873         initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
1874         take a struct _reent * instead of a FILE *.
1875         * libc/stdio/fclose.c (_fclose_r): Ditto.
1876         * libc/stdio/feof.c (feof): Ditto.
1877         * libc/stdio/ferror.c (ferror): Ditto.
1878         * libc/stdio/fflush.c (fflush): Ditto.
1879         * libc/stdio/fgetc.c (fgetc): Ditto.
1880         * libc/stdio/fgets.c (fgets): Ditto.
1881         * libc/stdio/fileno.c (fileno): Ditto.
1882         * libc/stdio/fputc.c (fputc): Ditto.
1883         * libc/stdio/fputs.c (fputs): Ditto.
1884         * libc/stdio/fread.c (fread): Ditto.
1885         * libc/stdio/freopen.c (_freopen_r): Ditto.
1886         * libc/stdio/fseek.c (_fseek_r): Ditto.
1887         * libc/stdio/ftell.c (_ftell_r): Ditto.
1888         * libc/stdio/fwrite.c (fwrite): Ditto.
1889         * libc/stdio/getc.c (getc): Ditto.
1890         * libc/stdio/getdelim.c (__getdelim): Ditto.
1891         * libc/stdio/putc.c (putc): Ditto.
1892         * libc/stdio/setvbuf.c (setvbuf): Ditto.
1893         * libc/stdio/ungetc.c (_ungetc_r): Ditto.
1894         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
1895         * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
1896         * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
1897         * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
1898         * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
1899         _reent * instead of a FILE * and so replace incorrect use of
1900         _REENT with argument.
1901         * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
1902         * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
1903         CHECK_INIT() take a struct _reent * instead of a FILE *.
1904         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
1905         * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
1906         * libc/stdio/perror.c (perror): Ditto.
1907         * libc/stdio/printf.c (printf, _printf_r): Ditto.
1908         * libc/stdio/putchar.c (putchar): Ditto.
1909         * libc/stdio/puts.c (puts): Ditto.
1910         * libc/stdio/refill.c (__srefill): Ditto.
1911         * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
1912         * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
1913         * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
1914         * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
1915         * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
1916         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
1917         * libc/stdio/wbuf.c (__swbuf): Ditto.
1918         * libc/stdio/wsetup.c (__swsetup): Ditto.
1919         * libc/stdlib/mallocr.c (malloc_stats): Ditto.
1920         * libc/stdlib/mstats.c (_mstats_r): Ditto.
1921         * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
1922         * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
1923         * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
1924         to _flockfile and _funlockfile; rely on locking in _ftell_r.
1925         * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
1926         * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
1927         initialision of _data field in FILE structure.
1928         * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
1929
1930 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1931
1932         * libc/stdio/findfp.c (__sinit): Protect with new lock.
1933         (__sinit_lock): New lock.
1934         (__sinit_lock_acquire, __sinit_lock_release): New functions.
1935         * libc/stdio/local.h: Add reference to new __sinit locking
1936         functions.
1937
1938 2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
1939
1940         * libc/include/math.h (isfinite, isnormal, isunordered): Change
1941         input variable names to avoid mixups with nesting macros.
1942
1943 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1944
1945         * configure.host: Add support for cris-*-* and crisv32-*-*.
1946         * libc/include/machine/ieeefp.h: Ditto.
1947         * libc/include/machine/setjmp.h: Ditto.
1948         * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
1949         libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
1950         libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
1951         libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
1952         libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
1953         libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
1954         libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
1955         files.
1956
1957 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1958
1959         * testsuite/newlib.string/memmove1.c: New test.
1960
1961 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1962
1963         * testsuite/include/check.h: Include stdlib.h.
1964
1965 2005-01-27  Hans-Peter Nilsson  <hp@axis.com>
1966
1967         * Makefile.am (stmp-targ-include): Support include header files
1968         from machine directories.
1969         (install-data-local): Ditto.
1970         * Makefile.in: Regenerate.
1971
1972 2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>
1973
1974         * libc/include/string.h: Remove Linux-specific declaration of
1975         strsignal and add #include <sys/string.h>.
1976         * libc/include/sys/string.h: New file.
1977         * libc/include/sys/linux/sys/string.h: New file with strsignal
1978         declaration deleted above.
1979
1980 2005-01-20  Jeff Johnston  <jjohnstn@redhat.com>
1981
1982         * libc/time/strftime.c (strftime): Change %r and %x to be compliant
1983         to POSIX standard for "C" locale.  Allow %E and %O modifiers
1984         to be ignored as long as they precede valid specifiers according
1985         to POSIX.
1986
1987 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1988
1989         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
1990         environment variable is set.
1991
1992 2005-01-19  Shaun Jackman  <sjackman@gmail.com>
1993
1994         * tzset_r.c (_tzname): Add a comma.
1995
1996 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
1997
1998         * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
1999         _VFPRINTF_R.
2000
2001 2005-01-07  Paul Brook  <paul@codesourcery.com>
2002                                                                                 
2003         * configure.in: Add test for .init_array.
2004         * configure: Regenerate.
2005         * newlib.hin: Add HAVE_INITFINI_ARRAY.
2006         * libc/misc/Makefile.am: Add init.c
2007         * libc/misc/Makefile.in: Regenerate.
2008         * libc/misc/init.c: New file.
2009         * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
2010         _init/_fini if they exist.
2011                                                                                 
2012 2005-01-06  Jeff Johnston  <jjohnstn@redhat.com>
2013
2014         * libc/stdlib/strtod.c (_strtod_r): Add NaN support.
2015         * (strtof): Ditto.
2016         * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
2017         * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
2018         functions for use by strtod and strtof.
2019         * Makefile.in: Regenerated.
2020                                                                                 
2021 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
2022                                                                                 
2023         * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
2024         bit-test in combination with NULL test.
2025                                                                                 
2026 2005-01-06  Hans-Peter Nilsson  <hp@axis.com>
2027                                                                                 
2028         * README: Fix typo of LGPL.  Change "license" to "copyright".
2029                                                                                 
2030 2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>
2031
2032         * NEWS: Update with 1.13.0 info.
2033         * README: Ditto.
2034         * acinclude.m4: Change version number to 1.13.0.
2035         * aclocal.m4: Regenerated.
2036         * configure: Ditto.
2037         * doc/aclocal.m4: Ditto.
2038         * doc/configure: Ditto.
2039         * libc/*/aclocal.m4: Ditto.
2040         * libc/*/configure: Ditto.
2041         * libc/libc.texinfo: Ditto.
2042         * libm/*/aclocal.m4: Ditto.
2043         * libm/*/configure: Ditto.
2044         * libm/libm.texinfo: Ditto.
2045         * libc/sys/linux/shared.ld: Add VERS_1.13.
2046
2047 2004-12-17  Christian Groessler  <chris@groessler.org>
2048
2049         * libc/machine/z8k/memcmp.S: New file.
2050         * libc/machine/z8k/memcpy.S: Ditto.
2051         * libc/machine/z8k/memmove.S: Ditto.
2052         * libc/machine/z8k/memset.S: Ditto.
2053         * libc/machine/z8k/Makefile.am: Add new files.
2054         * libc/machine/z8k/Makefile.in: Regenerated.
2055         * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
2056         part.  Implement Z8002 stdcall version.
2057
2058 2004-12-13  Jeff Johnston  <jjohnstn@redhat.com>
2059
2060         * libc/stdio/fread.c (fread): For unbuffered I/O, attempt
2061         a low-level read if we don't get the full amount of bytes so
2062         EOF or error flags will be set.
2063
2064 2004-12-09  Alex Mogilnikov  <alx@intellectronika.ru>
2065
2066         * libc/time/tzset_r (_tzset_r): Properly skip over
2067         '/' when it is detected.
2068
2069 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
2070
2071         * libc/time/tzset_r (_tzset_r): Fix loop.
2072
2073 2004-12-08  Alex Mogilnikov  <alx@intellectronika.ru>
2074
2075         * libc/time/mktm_r (_mktm_r): Fix overflow calculation for
2076         m_day.
2077         (__tzcalc_limits): Fix reference to month array to be zero-based.
2078
2079 2004-12-07  Jeff Johnston  <jjohnstn@redhat.com>
2080
2081         * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
2082         and usleep.
2083
2084 2004-12-03  Jeff Johnston  <jjohnstn@redhat.com>
2085
2086         * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
2087         libgcc dependencies.
2088         (libm_la_LDFLAGS): Ditto.
2089         * Makefile.in: Regenerated.
2090
2091 2004-12-03  Shaun Jackman  <sjackman@gmail.com>
2092
2093         * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
2094         our link to use readlink so as to preserve any relative link created
2095         by install-toollibLIBRARIES.
2096         * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
2097
2098 2004-12-02  Shaun Jackman  <sjackman@gmail.com>
2099
2100         * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
2101         time_t before including sys/stat.h, which uses it.
2102         * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
2103         <linux/time.h> just prior to definition of __KERNEL__ so as to
2104         allow building on Debian Linux where otherwise, mktime would
2105         be redefined.
2106
2107 2004-11-26  Paul Brook  <paul@codesourcery.com>
2108
2109         * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
2110                                                                                 
2111 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2112
2113         * libc/include/stdlib.h (putenv, _putenv_r): Change to remove
2114         const for value string parameter to match Single Unix and glibc.
2115         * libc/stdlib/putenv.c: Ditto.
2116         * libc/stdlib/putenv_r.c: Ditto.
2117
2118 2004-11-24  Jeff Johnston  <jjohnstn@redhat.com>
2119
2120         * libc/stdio/Makefile.am: Fix missing vfscanf.
2121         * libc/stdio/Makefile.in: Regenerated.
2122                                                                                 
2123 2004-11-23  Jeff Johnston  <jjohnstn@redhat.com>
2124                                                                                 
2125         * libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
2126         do some reordering.
2127         * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
2128         * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
2129         family functions.
2130         * libc/stdio/Makefile.in: Regenerated.
2131         * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
2132         * libc/stdio/iprintf.c: Ditto.
2133         * libc/stdio/local.h (__svfiscanf_r): New prototype.
2134         * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
2135         * libc/stdio/sniprintf.c: Move docs to siprintf.c.
2136         * libc/stdio/stdio.tex: Add new functions.
2137         * libc/stdio/vfscanf.c: Split out __sccl function to separate
2138         file and add special name defines so this file can be used
2139         to build vfiscanf.o.
2140         * libc/stdio/asiprintf.c: New file.
2141         * libc/stdio/fiscanf.c: Ditto.
2142         * libc/stdio/iscanf.c: Ditto.
2143         * libc/stdio/sccl.c: Ditto.
2144         * libc/stdio/siscanf.c: Ditto.
2145         * libc/stdio/vasiprintf.c: Ditto.
2146         * libc/stdio/viprintf.c: Ditto.
2147         * libc/stdio/viscanf.c: Ditto.
2148         * libc/stdio/vsiprintf.c: Ditto.
2149         * libc/stdio/vsiscanf.c: Ditto.
2150         * libc/stdio/vsniprintf.c: Ditto.
2151
2152 2004-11-19  Shaun Jackman  <sjackman@gmail.com>
2153                                                                                 
2154         * libc/include/stdio.h: Add sniprintf.
2155         * libc/stdio/Makefile.am: Add sniprintf.c.
2156         * libc/stdio/Makefile.in: Regenerated.
2157         * libc/stdio/sniprintf.c: New file.
2158         * libc/stdio/stdio.tex: Add sniprintf.
2159                                                                                 
2160 2004-11-17  Christopher Faylor  <cgf@timesys.com>
2161
2162         * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin.  Clear
2163         EOF flag if successful.
2164
2165 2004-10-28  Christopher Faylor  <cgf@timesys.com>
2166
2167         * libc/include/sys/signal.h: Move <signal.h> include to bottom of file
2168         so that all relevant definitions have been performed for use in the
2169         include.
2170
2171 2004-10-26  Jason Tishler  <jason@tishler.net>
2172
2173         * libc/stdio/fread.c (fread): Fix return value for unbuffered
2174         fread.
2175
2176 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2177
2178         * libc/include/machine/setjmp.h: Add AVR support.
2179         * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
2180
2181 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2182                                                                                 
2183         * libc/include/sys/signal.h: If <signal.h> didn't include
2184         this header file, include <signal.h> to account for
2185         applications that take advantage that the two header
2186         files are the same in glibc.
2187                                                                                 
2188 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
2189
2190         * configure.host: Add support for crx.
2191         * libc/include/machine/ieeefp.h: Ditto.
2192         * libc/include/machine/setjmp.h: Ditto.
2193         * libc/machine/crx/Makefile.am: New file.
2194         * libc/machine/crx/configure.in: Ditto.
2195         * libc/machine/crx/setjmp.S: Ditto.
2196         * libc/machine/crx/getenv.c: Ditto.
2197         * libc/machine/crx/aclocal.m4: Generate.
2198         * libc/machine/crx/configure: Ditto.
2199         * libc/machine/crx/Makefile.in: Ditto.
2200         * libc/machine/crx/sys/asm.h: New file.
2201         * libc/machine/crx/sys/libh.h: Ditto.
2202         * libc/machine/crx/sys/syscall.h: Ditto.
2203
2204 2004-10-05  Jeff Johnston  <jjohnstn@redhat.com>
2205
2206         * Makefile.am (stmp-targ-include): Support sys header files
2207         from machine directories.
2208         * Makefile.in: Regenerated.
2209
2210 2004-10-04  Jeff Johnston  <jjohnstn@redhat.com>
2211
2212         * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
2213         count skipped zero characters as part of the nread count for %n.
2214         * libc/machine/powerpc/vfscanf.c: Ditto.
2215
2216 2004-09-24  Jeff Johnston  <jjohnstn@redhat.com>
2217
2218         * libc/stdio/local.h: Include <stdlib.h>.
2219
2220 2004-09-24  Corinna Vinschen  <corinna@vinschen.de>
2221
2222         * libc/stdio/fread.c (fread): Include <malloc.h>.
2223
2224 2004-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2225
2226         * libc/stdio/fread.c (fread):  For non-space-optimized case,
2227         add special code for unbuffered files to use user buffer and
2228         only require one low-level system read.
2229
2230 2004-09-21  Ian Lance Taylor  <ian@wasabisystems.com>
2231
2232         * libc/machine/xscale/setjmp.S: New file, copied from
2233         libc/machine/arm/setjmp.S.
2234         * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
2235         * libc/machine/xscale/Makefile.in: Regenerate.
2236
2237 2004-09-16  Antony King  <antony.king@st.com>
2238
2239         * libc/include/sys/lock.h: Replaced empty {} with (0) to conform
2240         with locking API.
2241         * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add 
2242         check for__SSTR in _flags and if set, skip lock request.
2243         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2244         * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
2245         not NULL.
2246         * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
2247         initialisation of _file to -1 in local FILE.
2248         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
2249         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
2250         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
2251         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2252         * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
2253         _flags in local FILE to prevent locking.
2254         * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2255
2256 2004-09-16  Antony King  <antony.king@st.com>
2257
2258         * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
2259         and only walk the reentrancy parameter.
2260         (_fwalk_reent): Ditto.
2261         * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
2262
2263 2004-09-16  Antony King  <antony.king@st.com>
2264
2265         * libc/stdio64/freopen64.c: Remove casting of fp lock to
2266         _LOCK_RECURSIVE_T.
2267
2268 2004-09-16  Antony King  <antony.king@st.com>
2269
2270         * libc/time/tzlock.c: Add default stubs that use generic
2271         locking code.
2272
2273 2004-09-16  Antony King  <antony.king@st.com>
2274
2275         * libc/ctype/ctype.tex: Added missing documentation.
2276         * libc/stdio/stdio.tex Ditto.
2277         * libc/stdlib/stdlib.tex Ditto.
2278         * libc/string/strings.tex Ditto.
2279         * libc/time/time.tex: Ditto.
2280         * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
2281
2282 2004-09-15  Corinna Vinschen  <vinschen@redhat.com>
2283
2284         * libc/reent/impure.c (reent_data): Define as alias to impure_data
2285         when building for Cygwin.
2286         * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
2287         _global_impure_ptr.
2288
2289 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com>
2290
2291         * configure.host: Reverting 2004-09-14 change as fix has occurred on
2292         Cygwin side.
2293         * configure.in: Ditto.
2294         * libc/configure.in: Ditto.
2295         * libc/sys/configure.in: Ditto.
2296         * configure: Ditto.
2297         * libc/configure: Ditto.
2298         * libc/sys/configure: Ditto.
2299         * libc/include/sys/reent.h: Ditto.
2300         * libc/stdlib/__atexit.c: Ditto.
2301         * libc/stdlib/__call_atexit.c: Ditto.
2302         * libc/stdlib/cxa_atexit.c: Ditto.
2303         * libc/stdlib/cxa_finalize.c: Ditto.
2304         * libc/sys/cygwin/Makefile.am: Removed again.
2305         * libc/sys/cygwin/Makefile.in: Ditto.
2306         * libc/sys/cygwin/aclocal.m4: Ditto.
2307         * libc/sys/cygwin/configure: Ditto.
2308         * libc/sys/cygwin/configure.in: Ditto.
2309         * libc/sys/cygwin/dummy.c: Ditto.
2310         * libc/sys/cygwin/sys/reent.h: Ditto.
2311
2312 2004-09-14  Jeff Johnston  <jjohnstn@redhat.com>
2313
2314         * configure.host: Add Cygwin sys directory.
2315         * configure.in: Do not set CRT0 for cygwin.
2316         * libc/configure.in: Ditto.
2317         * libc/sys/configure.in: Ditto.
2318         * configure: Regenerated.
2319         * libc/configure: Ditto.
2320         * libc/sys/configure: Ditto.
2321         * libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
2322         * libc/stdlib/__atexit.c: Keep cxa support protected by new
2323         __REENT_HAS_CXA_SUPPORT flag.
2324         * libc/stdlib/__call_atexit.c: Ditto.
2325         * libc/stdlib/cxa_atexit.c: Ditto.
2326         * libc/stdlib/cxa_finalize.c: Ditto.
2327         * libc/sys/cygwin/Makefile.am: New file.
2328         * libc/sys/cygwin/Makefile.in: Ditto.
2329         * libc/sys/cygwin/aclocal.m4: Ditto.
2330         * libc/sys/cygwin/configure: Ditto.
2331         * libc/sys/cygwin/configure.in: Ditto.
2332         * libc/sys/cygwin/dummy.c: Ditto.
2333         * libc/sys/cygwin/sys/reent.h: Ditto.  This file is stabilized
2334         version of reent.h.
2335
2336 2004-09-13 Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2337
2338         * libc/iconv/iconv.tex: Updated with new content.
2339         * libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
2340         instead of NLS_DEFAULT_NLSPATH.
2341         * libc/iconv/lib/iconvnls.h: Fix typo.
2342         * libc/include/sys/iconvnls.h: New file.
2343
2344 2004-09-09  Paul Brook  <paul@codesourcery.com>
2345
2346         * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
2347         and _is_cxa.
2348         (struct _atexit): Add _next when _REENT_SMALL.
2349         (struct _reent): Add _atexit0 when _REENT_SMALL.
2350         (_REENT_INIT_PTR): Adjust.
2351         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
2352         __call_exit.c.
2353         (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
2354         * libc/stdlib/Makefile.in: Regenerate.
2355         * libc/stdlib/__atexit.c: New file.
2356         * libc/stdlib/__call_atexit.c: New file.
2357         * libc/stdlib/atexit.h: Remove old definitions.  Add new.
2358         * libc/stdlib/atexit.c (atexit): Use __register_exitproc.
2359         * libc/stdlib/cxa_atexit.c: New file.
2360         * libc/stdlib/cxa_finalize.c: New file.
2361         * libc/stdlib/exit.c (exit): Use __call_exitprocs.
2362         * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
2363         2004-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2364         * libc/reent/reent.c [_REENT_SMALL]: Fix reference to
2365         _on_exit_args_ptr.
2366
2367 2004-08-23  Jeff Johnston  <jjohnstn@redhat.com>
2368
2369         * libc/include/sys/unistd.h (getpass): Change prototype to use
2370         const instead of __const.
2371
2372 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2373
2374         * libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
2375         #if.
2376
2377 2004-08-12  Jeff Johnston  <jjohnstn@redhat.com>
2378
2379         * libc/sys/linux/sys/types.h (u64): New typedef to allow building
2380         on linux systems with glibc 2.3.3 installed.
2381         * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and
2382         profile_fixup so newlib can build on fc3 system.
2383  
2384 2004-07-30  Alexandre Oliva  <aoliva@redhat.com>
2385
2386         Introduce SH2a support.
2387         2004-03-16  Corinna Vinschen  <vinschen@redhat.com>
2388         * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS for
2389         __SH2A_SINGLE_ONLY__, too.
2390         * libc/machine/sh/asm.h: Define DELAYED_BRANCHES for __SH2A__, too.
2391         2004-02-24  Corinna Vinschen  <vinschen@redhat.com>
2392         * libc/sys/sh/crt0.S (start_l): Support sh2a-nofpu.  Fix comments.
2393         2004-02-10  DJ Delorie  <dj@redhat.com>
2394         * libc/sys/sh/crt0.S (start_l): Support sh2a.
2395
2396 2004-07-29  Jeff Johnston  <jjohnstn@redhat.com>
2397
2398         * libc/time/strptime.c: Correct full-name of "March" typo.
2399
2400 2004-07-16  Anil Paranjpe  <anilp1@kpitcummins.com>
2401
2402         * configure.host (h8300*-*-*): Default long long printing support. 
2403
2404 2004-07-16  Jeff Johnston  <jjohnstn@redhat.com>
2405
2406         * libc/stdio/fvwrite.c (_sfvwrite):  For asprintf family
2407         calls, if realloc fails, free up buffer as it is no longer
2408         used.
2409
2410 2004-07-07  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2411
2412         * libc/iconv/iconv.tex: Updated to represent recent changes.
2413         * libc/iconv/lib/iconv.c: Documentation updated.
2414
2415 2004-07-07  Nick Clifton  <nickc@redhat.com>
2416
2417         * configure.host (newlib_cflags): Define PREFER_SIZE_OVER_SPEED
2418         for xStormy16.
2419
2420 2004-07-06  Chris Demetriou  <cgd@broadcom.com>
2421
2422         * configure.host (mips*-*-elf*): Default long long printing
2423         support.
2424
2425 2004-07-05  Jeff Johnston  <jjohnstn@redhat.com>
2426
2427         * libc/Makefile.am (libc.dvi): Add target and specify
2428         same dependencies as libc.info.
2429         * libc/Makefile.in: Regenerated.
2430         * libm/Makefile.am (libm.dvi): Add target and specify
2431         same dependencies as libm.info.
2432         * libm/Makefile.in: Regenerated.
2433
2434 2004-06-29  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2435
2436         * acinclude.m4: Move --enable-newlib-iconv option back here.
2437         * configure.in: Remove --enable-newlib-iconv option.  Don't
2438         tie iconv support to --enable-newlib-mb.
2439         * aclocal.m4: Regenerated.
2440         * configure: Ditto.
2441         * doc/aclocal.m4, doc/configure: Ditto.
2442         * iconvdata/aclocal.m4, iconvdata/configure: Ditto.
2443         * libm/*/aclocal.m4: Ditto.
2444         * libm/*/configure: Ditto.
2445         * libc/*/aclocal.m4: Ditto.
2446         * libc/*/configure: Ditto.
2447
2448 2004-06-25  Artem B. Bityuckiy  <dedekind@oktetlabs.ru>
2449
2450         * acinclude.m4: Move iconv options into configure.in.
2451         * aclocal.m4: Regenerated.
2452         * configure: Ditto.
2453         * configure.in: Add iconv options.
2454         * newlib.hin: Add new iconv encodings and remove deleted ones.
2455         * doc/aclocal.m4: Regenerated.
2456         * doc/configure: Ditto.
2457         * iconvdata/aclocal.m4: Ditto.
2458         * iconvdata/configure: Ditto.
2459         * libc/iconv: Design change.  New size-optimized ccs format.
2460         * libc/iconv/AUTHORS: Removed.
2461         * libc/iconv/COPYING: Ditto.
2462         * libc/iconv/README.ORIGINAL: Ditto.
2463         * libc/iconv/README.TODO: Ditto.
2464         * libc/iconv/charset.aliases: Ditto.
2465         * libc/iconv/encoding.aliases: New file.
2466         * libc/iconv/Makefile.am: Updated.
2467         * libc/iconv/Makefile.in: Regenerated.
2468         * libc/iconv/iconv.tex: Updated.
2469         * libc/iconv/ccs/Makefile.am: Ditto.
2470         * libc/iconv/ccs/Makefile.in: Regenerated.
2471         * libc/iconv/ccs/big5.c: Updated.
2472         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
2473         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
2474         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
2475         * libc/iconv/ccs/cp775.c: Ditto.
2476         * libc/iconv/ccs/cp850.c: Ditto.
2477         * libc/iconv/ccs/cp852.c: Ditto.
2478         * libc/iconv/ccs/cp855.c: Ditto.
2479         * libc/iconv/ccs/cp866.c: Ditto.
2480         * libc/iconv/ccs/iso_8859_1.c: Ditto.
2481         * libc/iconv/ccs/README.CCS.SOURCES: Removed.
2482         * libc/iconv/ccs/gb_2312_80.c: Ditto.
2483         * libc/iconv/ccs/iconv_mktbl: Ditto.
2484         * libc/iconv/ccs/jis_x0201.c: Ditto.
2485         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
2486         * libc/iconv/ccs/shift_jis.c: Ditto.
2487         * libc/iconv/ccs/us_ascii.c: Ditto.
2488         * libc/iconv/ccs/ccs.h: New file.
2489         * libc/iconv/ccs/ccsbi.c: Ditto.
2490         * libc/iconv/ccs/ccsbi.h: Ditto.
2491         * libc/iconv/ccs/ccsnames.h: Ditto.
2492         * libc/iconv/ccs/iso_8859_10.c: Ditto.
2493         * libc/iconv/ccs/iso_8859_11.c: Ditto.
2494         * libc/iconv/ccs/iso_8859_13.c: Ditto.
2495         * libc/iconv/ccs/iso_8859_14.c: Ditto.
2496         * libc/iconv/ccs/iso_8859_3.c: Ditto.
2497         * libc/iconv/ccs/iso_8859_6.c: Ditto.
2498         * libc/iconv/ccs/iso_8859_7.c: Ditto.
2499         * libc/iconv/ccs/iso_8859_8.c: Ditto.
2500         * libc/iconv/ccs/iso_8859_9.c: Ditto.
2501         * libc/iconv/ccs/iso_ir_111.c: Ditto.
2502         * libc/iconv/ccs/jis_x0201_1976.c: Ditto.
2503         * libc/iconv/ccs/jis_x0208_1990.c: Ditto.
2504         * libc/iconv/ccs/koi8_ru.c: Ditto.
2505         * libc/iconv/ccs/koi8_uni.c: Ditto.
2506         * libc/iconv/ccs/mktbl.pl: Ditto.
2507         * libc/iconv/ccs/win_1250.c: Ditto.
2508         * libc/iconv/ccs/win_1251.c: Ditto.
2509         * libc/iconv/ccs/win_1252.c: Ditto.
2510         * libc/iconv/ccs/win_1253.c: Ditto.
2511         * libc/iconv/ccs/win_1254.c: Ditto.
2512         * libc/iconv/ccs/win_1255.c: Ditto.
2513         * libc/iconv/ccs/win_1256.c: Ditto.
2514         * libc/iconv/ccs/win_1257.c: Ditto.
2515         * libc/iconv/ccs/win_1258.c: Ditto.
2516         * libc/iconv/ccs/iso_8859_15.c: Updated.
2517         * libc/iconv/ccs/iso_8859_2.c: Ditto.
2518         * libc/iconv/ccs/iso_8859_4.c: Ditto.
2519         * libc/iconv/ccs/iso_8859_5.c: Ditto.
2520         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
2521         * libc/iconv/ccs/koi8_r.c: Ditto.
2522         * libc/iconv/ccs/koi8_u.c: Ditto.
2523         * libc/iconv/ccs/ksx1001.c: Ditto.
2524         * libc/iconv/ccs/binary/gb_2312_80.cct: Removed.
2525         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
2526         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
2527         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
2528         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
2529         * libc/iconv/ccs/binary/Makefile.am: Updated.
2530         * libc/iconv/ccs/binary/Makefile.in: Regenerated.
2531         * libc/iconv/ccs/binary/big5.cct: Updated.
2532         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
2533         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
2534         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
2535         * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto.
2536         * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto.
2537         * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto.
2538         * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto.
2539         * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto.
2540         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
2541         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
2542         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
2543         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
2544         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
2545         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
2546         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
2547         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
2548         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
2549         * libc/iconv/ccs/binary/iso_8859_10.cct: New file.
2550         * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto.
2551         * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto.
2552         * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto.
2553         * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto.
2554         * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto.
2555         * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto.
2556         * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto.
2557         * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto.
2558         * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto.
2559         * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto.
2560         * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto.
2561         * libc/iconv/ccs/binary/koi8_ru.cct: Ditto.
2562         * libc/iconv/ccs/binary/koi8_uni.cct: Ditto.
2563         * libc/iconv/ccs/binary/win_1250.cct: Ditto.
2564         * libc/iconv/ccs/binary/win_1251.cct: Ditto.
2565         * libc/iconv/ccs/binary/win_1252.cct: Ditto.
2566         * libc/iconv/ccs/binary/win_1253.cct: Ditto.
2567         * libc/iconv/ccs/binary/win_1254.cct: Ditto.
2568         * libc/iconv/ccs/binary/win_1255.cct: Ditto.
2569         * libc/iconv/ccs/binary/win_1256.cct: Ditto.
2570         * libc/iconv/ccs/binary/win_1257.cct: Ditto.
2571         * libc/iconv/ccs/binary/win_1258.cct: Ditto.
2572         * libc/iconv/ces/Makefile.am: Updated.
2573         * libc/iconv/ces/Makefile.in: Regenerated.
2574         * libc/iconv/ces/ucs-2-internal.c: Updated.
2575         * libc/iconv/ces/ucs-4-internal.c: Ditto.
2576         * libc/iconv/ces/utf-16.c: Ditto.
2577         * libc/iconv/ces/utf-8.c: Ditto.
2578         * libc/iconv/ces/cesbi.c: New file.
2579         * libc/iconv/ces/cesbi.h: Ditto.
2580         * libc/iconv/ces/cesdeps.h: Ditto.
2581         * libc/iconv/ces/euc.c: Ditto.
2582         * libc/iconv/ces/mkdeps.pl: Ditto.
2583         * libc/iconv/ces/table-pcs.c: Ditto.
2584         * libc/iconv/ces/table.c: Ditto.
2585         * libc/iconv/ces/ucs-2.c: Ditto.
2586         * libc/iconv/ces/ucs-4.c: Ditto.
2587         * libc/iconv/ces/us-ascii.c: Ditto.
2588         * libc/iconv/ces/euc-jp.c: Removed.
2589         * libc/iconv/ces/euc-kr.c: Ditto.
2590         * libc/iconv/ces/euc-tw.c: Ditto.
2591         * libc/iconv/ces/gb2312.c: Ditto.
2592         * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c
2593         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
2594         * libc/iconv/lib/Makefile.am: Updated.
2595         * libc/iconv/lib/Makefile.in: Regenerated.
2596         * libc/iconv/lib/endian.h: Updated.
2597         * libc/iconv/lib/iconv.c: Ditto.
2598         * libc/iconv/lib/local.h: Ditto.
2599         * libc/iconv/lib/aliases.c: Removed.
2600         * libc/iconv/lib/bialiasesi.c: Ditto.
2601         * libc/iconv/lib/biccs.c: Ditto.
2602         * libc/iconv/lib/bices.c: Ditto.
2603         * libc/iconv/lib/ccs.c: Ditto.
2604         * libc/iconv/lib/ces.c: Ditto.
2605         * libc/iconv/lib/ces_euc.c: Ditto.
2606         * libc/iconv/lib/ces_iso2022.c: Ditto.
2607         * libc/iconv/lib/ces_table.c: Ditto.
2608         * libc/iconv/lib/converter.c: Ditto.
2609         * libc/iconv/lib/deps.h: Ditto.
2610         * libc/iconv/lib/loaddata.c: Ditto.
2611         * libc/iconv/lib/aliasesbi.c: New file.
2612         * libc/iconv/lib/aliasesi.c: Ditto.
2613         * libc/iconv/lib/conv.h: Ditto.
2614         * libc/iconv/lib/encnames.h: Ditto.
2615         * libc/iconv/lib/encoding.deps: Ditto.
2616         * libc/iconv/lib/iconvnls.c: Ditto.
2617         * libc/iconv/lib/iconvnls.h: Ditto.
2618         * libc/iconv/lib/nullconv.c: Ditto.
2619         * libc/iconv/lib/ucsconv.c: Ditto.
2620         * libc/iconv/lib/ucsconv.h: Ditto.
2621         * libc/include/iconv.h: Update copyright.
2622         * libc/*/aclocal.m4: Regenerated.
2623         * libc/*/configure: Ditto.
2624         * libm/*/aclocal.m4: Ditto.
2625         * libm/*/configure: Ditto.
2626
2627 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2628
2629         * libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
2630         instead of typedefing jmp_buf.
2631
2632         2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2633         * libc/machine/h8300/Makefile.am (lib_a_SOURCES): Add h8sx_strcpy.S.
2634         * libc/machine/h8300/defines.h (LEN): New macro.
2635         * libc/machine/h8300/memcpy.S: Add h8sx version.
2636         * libc/machine/h8300/memset.S: Likewise.
2637         * libc/machine/h8300/strcmp.S: Likewise.
2638         * libc/machine/h8300/setjmp.S: Use h8sx move instructions.
2639         * libc/machine/h8300/h8sx_strcpy.S: New file.
2640         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
2641         * libc/include/machine/ieeefp.h: Extend __H8300S__ handling to
2642         __H8300SX__.
2643         * libc/include/machine/setjmp.h: Likewise.
2644         * libc/include/sys/config.h: Likewise.
2645         * libc/machine/h8300/defines.h: Likewise.
2646         * libc/machine/h8300/setjmp.S: Likewise.
2647         * libc/machine/h8300/strcmp.S: Likewise.
2648         * libc/sys/h8300hms/close.S: Likewise.
2649         * libc/sys/h8300hms/fstat.S: Likewise.
2650         * libc/sys/h8300hms/lseek.S: Likewise.
2651         * libc/sys/h8300hms/read.S: Likewise.
2652         * libc/sys/h8300hms/write.S: Likewise.
2653         * libc/sys/h8300hms/crt0.S: Likewise.
2654         * libc/machine/h8300/setarch.h: Use .h8300sx or .h8300sxn if
2655         __H8300SX__ is defined.
2656         * libc/sys/h8300hms/setarch.h: Likewise.
2657
2658 2004-06-17  Jeff Johnston  <jjohnstn@redhat.com>
2659
2660         * libc/include/sys/reent.h (_GLOBAL_REENT): Back
2661         out change which set _GLOBAL_REENT to _global_impure_ptr until
2662         we understand why Cygwin breaks because of it.
2663
2664 2004-06-14  Jeff Johnston  <jjohnstn@redhat.com>
2665
2666         * libc/sys/linux/machine/i386/syscall.h: For now, set up
2667         __syscall_return macro for systems with vsyscall.
2668
2669 2004-06-11  Antony King  <antony.king@st.com>
2670
2671         * libc/include/sys/_types.h: Include <sys/lock.h> and change
2672         _flock_t to be of type _LOCK_RECURSIVE_T.
2673         * libc/include/sys/reent.h: (_REENT_INIT): Reformat.
2674         (_REENT_INIT_PTR): Ditto.  Use memset where appropriate.
2675         (_global_impure_ptr): New declaration.
2676         (_GLOBAL_REENT): Change to be _global_impure_ptr.
2677         * libc/include/sys/stdio.h: Include <sys/lock.h> and
2678         <sys/reent.h>.
2679         (_flockfile)[!_SINGLE_THREAD]: Add code for lock call.
2680         (_funlockfile)[!SINGLE_THREAD]: Ditto.
2681         * libc/reent/impure.c: Set _global_impure_ptr to _impure_ptr.
2682         * libc/stdio/fclose.c: Remove casting of fp lock to
2683         _LOCK_RECURSIVE_T.
2684         * libc/stdio/findfp.c: Ditto.
2685         * libc/stdio/fopen.c: Ditto.
2686         * libc/stdio/freopen.c: Ditto.
2687         * libc/stdio/vfprintf.c: Ditto.
2688         * libc/stdio64/fopen64.c: Ditto.
2689         * libc/stdlib/envlock.c: Add default stubs that use generic
2690         locking code.
2691         * libc/stdlib/mlock.c: Ditto.
2692
2693         Jeff Johnston  <jjohnstn@redhat.com>
2694         * libc/sys/linux/sys/_types.h (__flock_mutex_t): New subtype.
2695         (_flock_t): Change to be a struct containing a single member
2696         named mutex which is of type __flock_mutex_t.
2697
2698 2004-06-09  Jeff Johnston  <jjohnstn@redhat.com>
2699
2700         * libc/sys/linux/Makefile.am: Change siglist.inc to be generated
2701         from /usr/include/asm/signal.h instead of kernel sources.  Also
2702         default max to 32 if not found in header file.
2703         * libc/sys/linux/Makefile.in: Regenerated.
2704         * libc/sys/linux/machine/i386/socketcall.h: Fix for Fedora Core 2
2705         systems where __syscall_return is not defined.
2706         * libc/sys/linux/machine/i386/syscall.h: Change for Fedora Core 2
2707         systems to use syscall() function instead of assembler interrupt.
2708
2709 2004-06-09  Toralf Lund  <toralf@procaptura.com>
2710
2711         * libc/sys/arm/setjmp.S, libc/sys/arm/access.c: Move
2712         files from libc/sys/arm to libc/machine/arm.
2713         * libc/machine/arm/Makefile.am, libc/machine/arm/Makefile.in: Add
2714         library build support for files moved from libc/sys/arm.
2715         * libc/sys/arm/Makefile.am, libc/sys/arm/Makefile.in:  Remove
2716         references to access and setjmp.
2717         * configure.host: Add checks for newlib_may_supply_syscalls to
2718         determine whether or not to use sys/arm directory and use
2719         special compiler flags: ARM_RDI_MONITOR and ARM_RDP_MONITOR.
2720        
2721 2004-06-02  Jeff Johnston  <jjohnstn@redhat.com>
2722
2723         * libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions,
2724         reset digit flags appropriately after we have discovered "0x".
2725         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2726
2727 2004-05-27  Jeff Johnston  <jjohnstn@redhat.com>
2728
2729         * libc/stdio/vfprintf.c (_VFPRINTF): Move file locking
2730         from here ...
2731         (_VFPRINTF_R): ... to here so all I/O printf routines
2732         are covered.
2733
2734 2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>
2735
2736         * libc/search/hash_buf.c: Protect MAX and MIN macros from
2737         redefinition.
2738         * libc/search/hash.c: Ditto.
2739
2740 2004-05-25  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2741
2742         * newlib.hin: (_WANT_IO_POS_ARGS): New define.
2743         (_WANT_IO_LONG_LONG): Ditto.
2744         (_WANT_IO_LONG_DOUBLE): Ditto.
2745         * configure.in: Add new configuration options
2746         --enable-newlib-io-long-long and --enable-newlib-io-long-double
2747         which tie to new defines in newlib.hin.
2748         * configure: Regenerated.
2749         * configure.host: Add checks for new configuration options.  Also
2750         fix up check for --enable-newlib-io-pos-args so configuration
2751         option will override any default for a given platform.
2752         Remove defining compiler flags for the _WANT_IO* options.
2753         * libc/stdio/vfprintf.c: Change to use new newlib.hin defines
2754         instead of looking for old compiler flags.
2755         * libc/stdio/vfscanf.c: Ditto.
2756         * libc/stdio/vfieeefp.h: Ditto.
2757         * libc/machine/powerpc/vfprintf.c: Ditto.
2758         * libc/machine/powerpc/vfscanf.c: Ditto.
2759
2760 2004-05-25  Jeff Johnston  <jjohnstn@redhat.com>
2761
2762         * testsuite/include/check.h: Add include of <stdio.h>.
2763
2764 2004-05-17  Corinna Vinschen  <corinna@vinschen.de>
2765
2766         * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin.
2767
2768 2004-05-11  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2769
2770         * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
2771         of free.
2772
2773 2004-05-07  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2774
2775         * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument
2776         list for reentrant pointer.  Call _vfiprintf_r.
2777         * libc/stdio/siprintf.c (_siprintf_r): New function.
2778         * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct
2779         pointer argument.  Change all callers.  Call _VFPRINTF_R.
2780         * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New
2781         prototypes.
2782
2783 2004-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2784
2785         * libc/include/sys/param.h: Remove endian info and include
2786         <machine/endian.h> instead.
2787         * libc/include/machine/endian.h: New file.
2788         * libc/include/machine/param.h: Ditto.
2789         * libc/machine/arm/machine/endian.h: Ditto.
2790         * libc/machine/arm/machine/param.h: Ditto.
2791         * libc/sys/arm/sys/param.h: Removed.
2792         * libc/sys/sysvi386/sys/param.h: Ditto.
2793         * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
2794
2795 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2796
2797         * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when
2798         multibyte functions return failure for %C, %S, %lc, and %ls
2799         format specifiers.
2800
2801 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2802
2803         * testsuite/include/check.h (CHECK): Add flush of stdout.
2804
2805 2004-05-03  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2806
2807         * libc/include/stdio.h (_ungetc_r): New prototype.
2808         * libc/stdio/ungetc.c (_ungetc_r): New reentrant function.
2809         (__submore): Add reentrant struct pointer argument.
2810         (ungetc): Change to call _ungetc_r.
2811
2812 2004-04-28  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2813
2814         * libc/stdio/local.h (_fwalk_reent): Specify prototype of
2815         function pointer argument.
2816         * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes
2817         to specify function pointer arguments.
2818         (__fwalk, __fwalk_reent): Ditto.
2819
2820 2004-04-26  Aldy Hernandez  <aldyh@redhat.com>
2821
2822         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Fix typo in
2823         CT_INT case.
2824
2825 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2826
2827         * configure.in: Define _MB_CAPABLE if mb supported.
2828         * configure: Regenerated.
2829         * configure.host: Remove manual setting of MB_CAPABLE compiler
2830         flag.
2831         * newlib.hin: Add _MB_CAPABLE flag.
2832         * libc/ctype/iswalpha.c, libc/ctype/iswblank.c: Include <newlib.h>
2833         and check for _MB_CAPABLE flag instead of MB_CAPABLE.
2834         * libc/ctype/iswcntrl.c, libc/ctype/iswprint.c: Ditto.
2835         * libc/ctype/iswpunct.c, libc/ctype/iswspace.c: Ditto.
2836         * libc/ctype/jp2uc.c: Ditto.
2837         * libc/ctype/towlower.c, libc/ctype/towupper.c: Ditto.
2838         * libc/locale/locale.c: Ditto
2839         * libc/machine/powerpc/vfscanf.c: Ditto
2840         * libc/stdio/vfprintf.c, libc/stdio/vfscanf.c: Ditto
2841         * libc/stdlib/mblen.c: Ditto
2842         * libc/stdlib/mblen_r.c, libc/stdlib/mbrlen.c: Ditto
2843         * libc/stdlib/mbrtowc.c, libc/stdlib/mbsrtowcs.c: Ditto
2844         * libc/stdlib/mbstowcs.c, libc/stdlib/mbtowc.c: Ditto
2845         * libc/stdlib/mbtowc_r.c, libc/stdlib/wcrtomb.c: Ditto
2846         * libc/stdlib/wcsrtombs.c, libc/stdlib/wcstombs.c: Ditto
2847         * libc/stdlib/wctomb.c, libc/sys/linux/intl/dcigettext.c: Ditto
2848         * libc/sys/linux/intl/explodename.c: Ditto
2849         * libc/sys/linux/intl/finddomain.c: Ditto
2850         * libc/sys/linux/intl/l10nflist.c: Ditto
2851         * libc/sys/linux/intl/loadmsgcat.c: Ditto
2852         * libc/sys/linux/intl/localealias.c: Ditto
2853
2854 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2855
2856         * libc/machine/powerpc/vfscanf.c (NNZDIGITS): New define.
2857         (__svfscanf_r): In integer conversions, leave out leading zeroes
2858         which are not part of a base prefix.
2859         Keep track of width truncation to fit into buf, not counting left-out
2860         zeroes against width till the truncation has been compensated for.
2861         This is based on Joern's patch of 04/21 for libc/stdio/vfscanf.c.
2862
2863 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
2864
2865         * libc/include/stdio.h: (_ftell_r, _fseek_r): New prototypes.
2866
2867 2004-04-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2868
2869         * libc/stdio/asprintf.c libc/stdio/clearerr.c,
2870         libc/stdio/fclose.c libc/stdio/fcloseall.c libc/stdio/fdopen.c,
2871         libc/stdio/feof.c libc/stdio/ferror.c libc/stdio/fflush.c,
2872         libc/stdio/fgetc.c libc/stdio/fgetpos.c libc/stdio/fgets.c,
2873         libc/stdio/fileno.c libc/stdio/findfp.c libc/stdio/fiprintf.c,
2874         libc/stdio/flags.c libc/stdio/fopen.c libc/stdio/fprintf.c,
2875         libc/stdio/fputc.c libc/stdio/fputs.c libc/stdio/fread.c,
2876         libc/stdio/freopen.c libc/stdio/fscanf.c libc/stdio/fseek.c,
2877         libc/stdio/fseeko.c libc/stdio/fsetpos.c libc/stdio/ftell.c,
2878         libc/stdio/ftello.c libc/stdio/fvwrite.c libc/stdio/fwalk.c,
2879         libc/stdio/fwrite.c libc/stdio/getc.c libc/stdio/getc_u.c,
2880         libc/stdio/getchar.c libc/stdio/getchar_u.c,
2881         libc/stdio/getdelim.c libc/stdio/getline.c libc/stdio/gets.c,
2882         libc/stdio/getw.c libc/stdio/iprintf.c libc/stdio/local.h,
2883         libc/stdio/makebuf.c libc/stdio/mktemp.c libc/stdio/perror.c,
2884         libc/stdio/printf.c libc/stdio/putc.c libc/stdio/putc_u.c,
2885         libc/stdio/putchar.c libc/stdio/putchar_u.c libc/stdio/puts.c,
2886         libc/stdio/putw.c libc/stdio/refill.c libc/stdio/remove.c,
2887         libc/stdio/rename.c libc/stdio/rewind.c libc/stdio/rget.c,
2888         libc/stdio/scanf.c libc/stdio/setbuf.c libc/stdio/setbuffer.c,
2889         libc/stdio/setlinebuf.c libc/stdio/setvbuf.c,
2890         libc/stdio/siprintf.c libc/stdio/snprintf.c,
2891         libc/stdio/sprintf.c libc/stdio/sscanf.c libc/stdio/stdio.c,
2892         libc/stdio/tmpfile.c libc/stdio/tmpnam.c libc/stdio/ungetc.c,
2893         libc/stdio/vasprintf.c libc/stdio/vfieeefp.h,
2894         libc/stdio/vfprintf.c libc/stdio/vfscanf.c,
2895         libc/stdio/vprintf.c libc/stdio/vscanf.c,
2896         libc/stdio/vsnprintf.c libc/stdio/vsprintf.c,
2897         libc/stdio/vsscanf.c libc/stdio/wbuf.c,
2898         libc/stdio/wsetup.c: Perform minor formatting changes.  Move
2899         copyright notices to top of file, ensure that <_ansi.h> is
2900         included, be consistent with open parentheses, use _DEFUN macro,
2901         include "local.h" where needed, and remove various compiler
2902         warnings.
2903
2904 2004-04-21  J"orn Rennecke <joern.rennecke@superh.com>
2905
2906         * libc/stdio/vfscanf.c (NNZDIGITS): New define.
2907         (__svfscanf_r): In integer conversions, leave out leading zeroes
2908         which are not part of a base prefix.
2909         Keep track of width truncation to fit into buf, not counting left-out
2910         zeroes against width till the truncation has been compensated for.
2911
2912 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2913
2914         * libc/include/sys/unistd.h (ttyname_r): Add missing comma.
2915
2916 2004-04-20  Corinna Vinschen  <corinna@vinschen.de>
2917
2918         * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
2919
2920 2004-04-10  Corinna Vinschen  <corinna@vinschen.de>
2921
2922         * libc/include/sys/unistd.h (sync): Define void on Cygwin according
2923         to SUSv3.
2924
2925 2004-04-08  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2926
2927         * libc/stdio/fclose.c (_fclose_r): New function.
2928         * libc/stdio/freopen.c (_freopen_r): Call _fclose_r.
2929         * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent.
2930         * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r.
2931         * libc/include/stdio.h (_fclose_r): New prototype.
2932         * libc/stdio/fopen.c: Fix typo in comment.
2933
2934 2004-04-08  Jeff Johnston  <jjohnstn@redhat.com>
2935
2936         * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
2937         to handle _r reentrant functions.
2938
2939 2004-04-08  Eric Christopher  <echristo@redhat.com>
2940
2941         * libc/include/machine/setjmp.h: Fix endif locations.
2942
2943 2004-04-01  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
2944
2945         * libc/time/strptime.c: Add standard includes to avoid
2946         warning messages at compilation time.
2947
2948 2004-04-01  Jeff Johnston  <jjohnstn@redhat.com>
2949
2950         * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking
2951         of file.
2952
2953 2004-03-30  Jeff Johnston  <jjohnstn@redhat.com>
2954
2955         * libc/machine/h8300/Makefile.am: Reformat slightly.
2956         * libc/machine/h8300/Makefile.in: Regenerate.
2957
2958 2004-03-30  Thomas Pfaff  <tpfaff@gmx.net>
2959
2960         * libc/stdio/findfp.c (__fp_lock_all): Add call to
2961         __sfp_lock_acquire.
2962         (__fp_unlock_all): Add call to __sfp_lock_release. 
2963
2964 2004-03-25  Thomas Pfaff  <tpfaff@gmx.net>
2965
2966         * libc/stdio/fclose.c (fclose): Protect file pointer list when
2967         releasing a file.
2968          * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via
2969         fwalk.
2970         * libc/stdio/fdopen.c (_fdopen_r): Add calls to
2971         _flockfile/_funlockfile.
2972         * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type
2973         to recursive.
2974         Change __lock_acquire/__lock_release calls for __sfp_lock to
2975         __sfp_lock_acquire/__sfp_lock_release throughout.
2976         (std): Make sure that file lock is only initialized once.
2977         (__sfp): Move _file initialization. Initialize file lock.
2978         (__sfp_lock_acquire): New function.
2979         (__sfp_lock_release): Ditto.
2980         (__fp_lock_all): Remove __sfp_lock_acquire call.
2981         (__fp_unlock_all): Remove __sfp_lock_release call.
2982         * libc/stdio/fopen.c (_fopen_r): Protect file pointer list.
2983         Add calls to _flockfile/_funlockfile. Remove
2984         __lock_init_recursive call.
2985         * libc/stdio/freopen.c (_freopen_r): Protect file pointer list.
2986         * libc/stdio/fwalk.c (__fwalk): New static function.
2987         (_fwalk): Protect file pointer list. Use __fwalk to walk through
2988         file pointers.
2989         * libc/stdio/local.h: Add defines for
2990         __sfp_lock_acquire/__sfp_lock_release when
2991         single threaded. Add function prototypes otherwise.
2992         * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to
2993         _flockfile/_funlockfile.
2994         * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list.
2995         Add calls to _flockfile/_funlockfile. Remove
2996          __lock_init_recursive call.
2997         * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer
2998         list. 
2999
3000 2004-03-25  Jeff Johnston  <jjohnstn@redhat.com>
3001
3002         * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already
3003         defined.  Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
3004         * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT
3005         to be __LOCK_INIT_RECURSIVE.
3006
3007 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
3008
3009         * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace
3010         _exit.c with _exit.S.
3011         * libc/sys/h8300hms/Makefile.in: Regenerate.
3012         * libc/sys/h8300hms/_exit.c: Remove.
3013         * libc/sys/h8300hms/_exit.S: New.
3014
3015 2004-03-09  Thomas Pfaff  <tpfaff@gmx.net>
3016
3017         * libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock.
3018         Change __sfp_lock to static global.
3019         (__fp_lock): New static function.
3020         (__fp_unlock): Ditto.
3021         (__fp_lock_all): New function.
3022         (__fp_unlock_all): Ditto. 
3023
3024 2004-02-10  Christopher Faylor  <cgf@redhat.com>
3025
3026         * libm/mathfp/er_gamma.c (gamma): Add new non-reentrant function.
3027         * libm/mathfp/er_lgamma.c (lgamma): Ditto.
3028         * libm/mathfp/erf_gamma.c (gammaf): Ditto.
3029         * libm/mathfp/erf_lgamma.c (lgammaf): Ditto.
3030
3031 2004-02-09  Christopher Faylor  <cgf@redhat.com>
3032
3033         * libc/include/time.h (TIMER_RELTIME): New define.
3034
3035 2004-02-09  Jeff Johnston  <jjohnstn@redhat.com>
3036
3037         * libc/stdlib/Makefile.am: Add mallstatsr to LIBADD_OBJS.
3038         * libc/stdlib/Makefile.in: Regenerated.
3039
3040 2004-02-08  Christopher Faylor  <cgf@redhat.com>
3041
3042         * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
3043         * libc/include/sys/reent.h (__getreent): Protect against possibly being
3044         defined.
3045         * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
3046
3047 2004-02-05  Paul Brook  <paul@codesourcery.com>
3048
3049         * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set 
3050         IEEE_{BIG,LITTLE} based on __ARMEL__ flag.
3051
3052 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
3053
3054         * NEWS: Update with 1.12.0 info.
3055         * README: Ditto.
3056         * acinclude.m4: Change version number to 1.12.0.
3057         * aclocal.m4: Regenerated.
3058         * configure: Ditto.
3059         * doc/aclocal.m4: Ditto.
3060         * doc/configure: Ditto.
3061         * libc/*/aclocal.m4: Ditto.
3062         * libc/*/configure: Ditto.
3063         * libc/libc.texinfo: Ditto.
3064         * libm/*/aclocal.m4: Ditto.
3065         * libm/*/configure: Ditto.
3066         * libm/libm.texinfo: Ditto.
3067         * libc/sys/linux/shared.ld: Add VERS_1.12.
3068
3069 2004-02-02  Joel Sherrill  <joel@oarcorp.com>
3070
3071         * configure.host: Add support for tic4x.
3072         * libc/include/machine/ieeefp.h: Ditto.
3073         * libc/include/machine/setjmp.h: Ditto.
3074         * libc/machine/tic4x/Makefile.am: New file.
3075         * libc/machine/tic4x/configure.in: Ditto.
3076         * libc/machine/tic4x/setjmp.S: Ditto.
3077         * libc/machine/tic4x/aclocal.m4: Generated.
3078         * libc/machine/tic4x/configure: Ditto.
3079         * libc/machine/tic4x/Makefile.in: Ditto.
3080
3081 2004-01-30  Jeff Johnston  <jjohnstn@redhat.com>
3082
3083         * libc/stdio/fwalk.c (_fwalk.c): Don't traverse the
3084         file chain on the passed in reentrancy struct if it
3085         is _GLOBAL_REENT.
3086
3087 2004-01-30  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3088             Jeff Johnston  <jjohnstn@redhat.com>
3089
3090         * libc/iconv/iconv.tex: Updated with more information.
3091
3092 2004-01-30  Thomas Pfaff  <tpfaff@gmx.net>
3093             Jeff Johnston  <jjohnstn@redhat.com>
3094
3095         * libc/stdio/fwalk.c (_fwalk): Traverse the given reentrancy
3096         struct for std streams and traverse the global reeentrancy
3097         struct for all other streams.
3098
3099 2004-01-27  Jeff Johnston  <jjohnstn@redhat.com>
3100
3101         * libc/stdlib/atexit.c: Protect global atexit list with a
3102         lock when newlib is multithreaded.
3103
3104 2004-01-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3105
3106         * configure.in: Add support to generate iconv converter flags
3107         for newlib.h
3108         * newlib.hin: Add iconv converter flags.
3109         * configure: Regenerated.
3110         * libc/Makefile.in: Ditto.
3111         * libc/configure.in: Moved iconv converter parsing logic to
3112         top level newlib configure.in.
3113         * libc/configure: Regenerated.
3114         * libc/iconv/Makefile.in: Ditto.
3115         * libc/iconv/README.TODO
3116         * libc/iconv/charset.aliases: Remove wrong BE aliases for
3117         UCS2/UCS4/UTF8.
3118         * libc/iconv/ccs/Makefile.am: Remove C flag setting now that
3119         newlib.h can be used.
3120         * libc/iconv/ces/Makefile.am: Ditto.
3121         * libc/iconv/lib/Makefile.am: Ditto.
3122         * libc/iconv/ccs/Makefile.in: Regenerated.
3123         * libc/iconv/ces/Makefile.in: Ditto.
3124         * libc/iconv/lib/Makefile.in: Ditto.
3125         * libc/iconv/ccs/README.CCS.SOURCES: Updated.
3126         * libc/iconv/ccs/iconv_mktbl: Don't write junk strings to binaries.
3127         * libc/iconv/ccs/big5.c: Switch to use new underscored flags
3128         defined in newlib.h.
3129         * libc/iconv/ccs/cns11643_plane1.c: Ditto.
3130         * libc/iconv/ccs/cns11643_plane14.c: Ditto.
3131         * libc/iconv/ccs/cns11643_plane2.c: Ditto.
3132         * libc/iconv/ccs/cp775.c: Ditto.
3133         * libc/iconv/ccs/cp850.c: Ditto.
3134         * libc/iconv/ccs/cp852.c: Ditto.
3135         * libc/iconv/ccs/cp855.c: Ditto.
3136         * libc/iconv/ccs/cp866.c: Ditto.
3137         * libc/iconv/ccs/gb_2312_80.c: Ditto.
3138         * libc/iconv/ccs/iso_8859_1.c: Ditto.
3139         * libc/iconv/ccs/iso_8859_15.c: Ditto.
3140         * libc/iconv/ccs/iso_8859_2.c: Ditto.
3141         * libc/iconv/ccs/iso_8859_4.c: Ditto.
3142         * libc/iconv/ccs/iso_8859_5.c: Ditto.
3143         * libc/iconv/ccs/jis_x0201.c: Ditto.
3144         * libc/iconv/ccs/jis_x0208_1983.c: Ditto.
3145         * libc/iconv/ccs/jis_x0212_1990.c: Ditto.
3146         * libc/iconv/ccs/koi8_r.c: Ditto.
3147         * libc/iconv/ccs/koi8_u.c: Ditto.
3148         * libc/iconv/ccs/ksx1001.c: Ditto.
3149         * libc/iconv/ccs/shift_jis.c: Ditto.
3150         * libc/iconv/ccs/us_ascii.c: Ditto.
3151         * libc/iconv/ccs/binary/big5.cct: Newly generated.
3152         * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto.
3153         * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto.
3154         * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto.
3155         * libc/iconv/ccs/binary/cp775.cct: Ditto.
3156         * libc/iconv/ccs/binary/cp850.cct: Ditto.
3157         * libc/iconv/ccs/binary/cp852.cct: Ditto.
3158         * libc/iconv/ccs/binary/cp855.cct: Ditto.
3159         * libc/iconv/ccs/binary/cp866.cct: Ditto.
3160         * libc/iconv/ccs/binary/gb_2312_80.cct: Ditto.
3161         * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto.
3162         * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto.
3163         * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto.
3164         * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto.
3165         * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto.
3166         * libc/iconv/ccs/binary/jis_x0201.cct: Ditto.
3167         * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto.
3168         * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto.
3169         * libc/iconv/ccs/binary/koi8_r.cct: Ditto.
3170         * libc/iconv/ccs/binary/koi8_u.cct: Ditto.
3171         * libc/iconv/ccs/binary/ksx1001.cct: Ditto.
3172         * libc/iconv/ccs/binary/shift_jis.cct: Ditto.
3173         * libc/iconv/ccs/binary/us_ascii.cct: Ditto.
3174         * libc/iconv/lib/bialiasesi.c: Sync with charset.aliases.
3175         * libc/iconv/ces/euc-jp.c: Use newlib.h macros.
3176         * libc/iconv/ces/euc-kr.c: Ditto.
3177         * libc/iconv/ces/euc-tw.c: Ditto.
3178         * libc/iconv/ces/gb2312.c: Ditto.
3179         * libc/iconv/ces/iso-10646-ucs-2.c: Ditto.
3180         * libc/iconv/ces/iso-10646-ucs-4.c: Ditto.
3181         * libc/iconv/ces/ucs-2-internal.c: Ditto.
3182         * libc/iconv/ces/ucs-4-internal.c: Ditto.
3183         * libc/iconv/ces/utf-16.c: Ditto.
3184         * libc/iconv/ces/utf-8.c: Ditto.
3185         * libc/iconv/lib/aliases.c: Ditto.
3186         * libc/iconv/lib/biccs.c: Ditto.
3187         * libc/iconv/lib/bices.c: Ditto.
3188         * libc/iconv/lib/ccs.c: Ditto.
3189         * libc/iconv/lib/ces.c: Ditto.
3190         * libc/iconv/lib/ces_euc.c: Ditto.
3191         * libc/iconv/lib/ces_iso2022.c: Ditto.
3192         * libc/iconv/lib/ces_table.c: Ditto.
3193         * libc/iconv/lib/converter.c: Ditto.
3194         * libc/iconv/lib/deps.h: Ditto.
3195         * libc/iconv/lib/endian.h: Ditto.
3196         * libc/iconv/lib/iconv.c: Ditto.
3197         * libc/iconv/lib/loaddata.c: Ditto.
3198         * libc/iconv/lib/local.h: Include newlib.h.
3199         * libc/argz/Makefile.in: Regenerated.
3200         * libc/ctype/Makefile.in: Ditto.
3201         * libc/errno/Makefile.in: Ditto.
3202         * libc/iconv/ccs/binary/Makefile.in: Ditto.
3203         * libc/locale/Makefile.in: Ditto.
3204         * libc/misc/Makefile.in: Ditto.
3205         * libc/posix/Makefile.in: Ditto.
3206         * libc/reent/Makefile.in: Ditto.
3207         * libc/search/Makefile.in: Ditto.
3208         * libc/signal/Makefile.in: Ditto.
3209         * libc/stdio/Makefile.in: Ditto.
3210         * libc/stdio64/Makefile.in: Ditto.
3211         * libc/stdlib/Makefile.in: Ditto.
3212         * libc/string/Makefile.in: Ditto.
3213         * libc/syscalls/Makefile.in: Ditto.
3214         * libc/time/Makefile.in: Ditto.
3215         * libc/unix/Makefile.in: Ditto.
3216         * testsuite/newlib.iconv/iconv.exp: New file.
3217         * testsuite/newlib.iconv/iconvjp.c: Ditto.
3218         * testsuite/newlib.iconv/iconvnm.c: Ditto.
3219         * testsuite/newlib.iconv/iconvru.c: Ditto.
3220
3221 2004-01-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3222
3223         * acinclude.m4 (--enable-newlib-iconv): New configuration option.
3224         (--enable-newlib-builtin-converters): Ditto.
3225         * configure.in: Add code to set _ICONV_ENABLED flag.
3226         Set _MB_LEN_MAX to 1 if not mb enabled.
3227         * configure: Regenerated.
3228         * aclocal.m4: Ditto.
3229         * Makefile.in: Ditto.
3230         * newlib.hin: Add _ICONV_ENABLED flag.
3231         * libc/Makefile.am: Add support for iconv.
3232         * libc/configure.in: Ditto.
3233         * libc/Makefile.in: Regenerated.
3234         * libc/aclocal.m4: Ditto.
3235         * libc/configure: Ditto.
3236         * libc/libc.texinfo: Add iconv documentation.
3237         * libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
3238         libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
3239         libc/iconv/README.TODO, libc/iconv/charset.aliases,
3240         libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
3241         libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
3242         libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
3243         libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
3244         libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
3245         libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
3246         libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
3247         libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
3248         libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
3249         libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
3250         libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
3251         libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
3252         libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
3253         libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
3254         libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
3255         libc/iconv/ccs/binary/big5.cct,
3256         libc/iconv/ccs/binary/cns11643_plane1.cct,
3257         libc/iconv/ccs/binary/cns11643_plane14.cct,
3258         libc/iconv/ccs/binary/cns11643_plane2.cct,
3259         libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
3260         libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
3261         libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
3262         libc/iconv/ccs/binary/iso_8859_1.cct,
3263         libc/iconv/ccs/binary/iso_8859_15.cct,
3264         libc/iconv/ccs/binary/iso_8859_2.cct,
3265         libc/iconv/ccs/binary/iso_8859_4.cct,
3266         libc/iconv/ccs/binary/iso_8859_5.cct,
3267         libc/iconv/ccs/binary/jis_x0201.cct,
3268         libc/iconv/ccs/binary/jis_x0208_1983.cct,
3269         libc/iconv/ccs/binary/jis_x0212_1990.cct,
3270         libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
3271         libc/iconv/ccs/binary/ksx1001.cct,
3272         libc/iconv/ccs/binary/shift_jis.cct,
3273         libc/iconv/ccs/binary/us_ascii.cct,
3274         libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
3275         libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
3276         libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
3277         libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
3278         libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
3279         libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
3280         libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
3281         libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
3282         libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
3283         libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
3284         libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
3285         libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
3286         libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
3287         libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
3288         libc/iconv/lib/local.h, libc/include/iconv.h: New files.
3289         * libc/sys/linux/include/iconv.h: Ditto.
3290         * libc/include/sys/_types.h (_iconv_t): Added.
3291         * doc/aclocal.m4: Regenerated.
3292         * doc/configure: Ditto.
3293         * doc/Makefile.in: Ditto.
3294         * iconvdata/Makefile.in: Ditto.
3295         * iconvdata/aclocal.m4: Ditto.
3296         * iconvdata/configure: Ditto.
3297         * libc/*aclocal.m4: Ditto.
3298         * libc/*Makefile.in: Ditto.
3299         * libc/*configure: Ditto.
3300         * libm/*aclocal.m4: Ditto.
3301         * libm/*Makefile.in: Ditto.
3302         * libm/*configure: Ditto.
3303
3304 2004-01-22  Thomas Pfaff  <tpfaff@gmx.net>
3305
3306         * libc/stdio/findfp.c (__sfp): Protect global FILE pointer list
3307         by a lock when newlib is multithreaded. 
3308
3309 2004-01-21  Jeff Johnston  <jjohnstn@redhat.com>
3310
3311         * libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null
3312         pointer to match C99 spec.
3313         * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when
3314         dst is NULL.  Also fix to not alter src pointer when dst is NULL
3315         and call _mbrtowc_r instead of _mbtowc_r.
3316         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead
3317         of _wctomb_r.
3318
3319 2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>
3320
3321         * libc/stdio/fclose.c (fclose): Release FILE as the last step.
3322         * libc/stdio/freopen.c (freopen): Ditto.
3323
3324 2004-01-16  Christopher Faylor  <cgf@redhat.com>
3325
3326         * libc/stdio/vfprintf.c: Add sys/lock.h include.
3327
3328 2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>
3329
3330         * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
3331         * libc/stdio/vfprintf.c (__sbprintf): Ditto.
3332         Add calls to __lock_init_recursive and __lock_close_recursive
3333         instead.
3334
3335 2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>
3336
3337         * libc/stdio/fclose.c: Include sys/lock.h.
3338         (fclose): Destroy lock when file is closed.
3339         * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
3340         member.
3341         * libc/stdio/freopen.c: Include sys/lock.h.
3342         (_freopen_r): Destroy lock when file is closed.
3343         * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
3344         _lock member.
3345
3346 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3347
3348         * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
3349         Remove warnings.
3350
3351 2004-01-08  Joel Sherrill  <joel@oarcorp.com>
3352
3353         * libc/sys/rtems/sys/queue.h: New file.
3354         * libc/include/sys/signal.h: Reflect renumbering of signals to
3355         fit into 32-bit mask.
3356         * libc/include/sys/unistd.h: Add fdatasync() prototype.
3357         * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
3358         required.  In particular, add the reentrant variants of libc calls.
3359         * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
3360
3361 2004-01-06  Mark Mitchell  <mark@codesourcery.com>
3362
3363         * libc/sys/arm/syscalls.c (unistd.h): Include it.
3364         (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
3365         Similarly for stdout and stderr.
3366
3367 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
3368
3369         * libc/libc.texinfo: Correct escape character for @ sign
3370         so file will be processed by make info.  Update copyright years.
3371         * libm/libm.texinfo: Ditto.
3372
3373 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3374
3375         * libc/include/sys/stat.h: No longer include stat-dj.h.
3376         * libc/include/sys/stat-dj.h: Removed.
3377
3378 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
3379
3380         * libc/include/wchar.h: Include <sys/reent.h>.
3381
3382 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3383
3384         * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors
3385         when defining _mbrtowc.
3386         * libc/stdlib/mbsinit.c: Ditto.
3387         * libc/stdlib/mbsrtowcs.c: Ditto.
3388         * libc/stdlib/wcrtomb.c: Ditto.
3389         * libc/stdlib/wcsrtombs.c: Ditto.
3390         * libc/stdlib/wctob.c: Ditto.
3391
3392 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3393
3394         * libc/stdlib/mbrlen.c: Change include order to prevent compiler
3395         errors when defining _mbrtowc.
3396         * libc/stdlib/mbsinit.c: Ditto.
3397         * libc/stdlib/mbsrtowcs.c: Ditto.
3398
3399 2003-12-05  Christopher Faylor  <cgf@redhat.com>
3400
3401         * libc/stdlib/mbrtowc.c: Change include order to prevent compiler
3402         errors when defining _mbrtowc.
3403
3404 2003-12-04  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3405
3406         * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
3407         of mb routines for %lc and %ls support.
3408         * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
3409         %ls, and %S support.  Remove CYGNUS_NEC markers and
3410         code within.
3411
3412 2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>
3413
3414         * libc/include/wchar.h: Add prototypes for _mbrtowc_r,
3415         _wcrtomb_r, and _wcsrtombs_r.
3416
3417 2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
3418
3419         * libc/include/sys/fcntl.h: Don't define struct flock when on
3420         Cygwin.  This is done in winsup/cygwin/include/cygwin/types.h now.
3421
3422 2003-11-28  Christopher Faylor  <cgf@redhat.com>
3423
3424         * libc/include/sys/signal.h: Use system specific signal file when
3425         building on cygwin.
3426
3427 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3428
3429         * libc/include/stdlib.h (_atoi_r): New prototype.
3430         * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
3431
3432 2003-11-27  Jeff Johnston  <jjohnstn@redhat.com>
3433
3434         * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
3435         * libc/stdlib/atol.c (_atol_r): New reentrant function.
3436         * libc/stdlib/atoll.c (_atoll_r): Ditto.
3437
3438 2003-11-27  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3439             Jeff Johnston  <jjohnstn@redhat.com>
3440
3441         * libc/include/stdlib.h (lldiv_t): New type.
3442         (atoll, llabs, lldiv): New prototypes.
3443         * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
3444         * libc/stdlib/stdlib.tex: Ditto.
3445         * libc/stdlib/Makefile.in: Regenerated.
3446         * libc/stdlib/atoll.c: New file.
3447         * libc/stdlib/llabs.c: Ditto.
3448         * libc/stdlib/lldiv.c: Ditto.
3449
3450 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
3451
3452         * libc/include/fcntl.h: Declare syscalls only when building newlib.
3453         * libc/include/unistd.h: Ditto.
3454         * libc/include/stat.h: Ditto.  Also declare struct stat64.
3455
3456 2003-11-24  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3457
3458         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
3459         specifier to use ch instead of *fmt.
3460
3461 2003-11-21  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3462
3463         * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
3464         code within checks for MB_CAPABLE.  For non-mb-capable platforms,
3465         use simple byte logic.
3466
3467 2003-11-21  Jeff Johnston  <jjohnstn@redhat.com>
3468
3469         * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
3470         _strtold routine for processing floats and doubles since it
3471         is not as fast as _strtod_r.
3472
3473 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
3474
3475         * libc/machine/h8300/defines.h : Correct pointer register defines 
3476         for normal mode.
3477         * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs 
3478         for normal mode.
3479         * libc/machine/h8300/reg_memcpy.S : Likewise.
3480         * libc/machine/h8300/reg_memset.S : Likewise.
3481         * libc/machine/h8300/strcmp.S : Likewise.
3482
3483 2003-11-19  Nicholas Wourms  <nwourms@netscape.net>
3484
3485         * configure.host: Enable positional arguments for printf
3486         family for Cygwin.
3487         * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
3488         pointer reference for quad_ptr_t.
3489
3490 2003-11-19  Jeff Johnston  <jjohnstn@redhat.com>
3491
3492         * libc/stdio/scanf.c: Don't include local.h more than once.
3493
3494 2003-11-18  Corinna Vinschen  <corinna@vinschen.de>
3495
3496         * libc/include/sys/fcntl.h: Declare _open64.
3497         * libc/include/sys/stat.h: Declare _fstat64.
3498         * libc/include/sys/unistd.h: Declare _lseek64.
3499
3500 2003-11-17  Corinna Vinschen  <corinna@vinschen.de>
3501
3502         * libc/include/stdlib.h (getprogname): Declare for Cygwin.
3503         (setprogname): Ditto.
3504
3505 2003-11-10  Jeff Johnston  <jjohnstn@redhat.com>
3506
3507         * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
3508         to use (Ebits + 1) which accounts for the sign-bit.
3509
3510 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3511
3512         * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux 
3513         x86 build.
3514         * iconvdata/Makefile.am: Make dependent on newlib's configure.host
3515         and set up default flags to pass to aclocal.
3516         * iconvdata/Makefile.in: Regenerated.
3517         * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
3518         and getpwuid routines.
3519         * libc/sys/linux/Makefile.in: Regenerated.
3520         * libc/sys/linux/getlogin.c: New stub file to allow x86-linux
3521         applications to link with newlib's shared libc library.
3522         * libc/sys/linux/getpwnam.c: Ditto.
3523         * libc/sys/linux/getpwuid.c: Ditto.
3524         * libc/sys/linux/sys/types.h: Include <features.h> and supply types
3525         that were formerly supplied by /usr/include/linux/types.h with
3526         kernel types.
3527         * testsuite/newlib.wctype/twctype.c: Fix testcase to properly
3528         test _ELIX_LEVEL macro.
3529
3530 2003-11-07  Jeff Johnston  <jjohnstn@redhat.com>
3531
3532         * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
3533         referring to _NO_LONGLONG macro.
3534
3535 2003-11-06  Jeff Johnston  <jjohnstn@redhat.com>
3536
3537         * libc/sys/linux/linuxthreads/td_init.c: Replace function name
3538         in LOG() macro so this will compile on gcc 3.4 and up.
3539         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
3540         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
3541         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
3542         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
3543         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
3544         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
3545         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
3546         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
3547         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
3548         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
3549         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
3550         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
3551         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
3552         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
3553         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
3554         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
3555         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
3556         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
3557         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
3558         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
3559         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
3560         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
3561         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
3562         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
3563         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
3564         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
3565         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
3566         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
3567         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
3568         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
3569         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
3570         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
3571         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
3572         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
3573         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
3574         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
3575
3576 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3577             Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3578
3579         * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
3580         %ls, %S, %lc, and %C format specifiers.
3581         (get_arg): Ditto.
3582         * libc/stdio/sprintf.c: Add documentation regarding new
3583         format specifiers added in vfprintf.c.
3584
3585 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3586
3587         * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
3588         to make code work as specified in standard.
3589
3590 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3591
3592         * configure.in: Use absolute newlib basedir when forming
3593         CC_FOR_NEWLIB include options.
3594         * configure: Regenerated.
3595
3596 2003-10-23  Artem B. Bityuckiy  <abitytsky@softminecorp.com>
3597
3598         * libc/string/wcsnlen.c: New file.
3599         * libc/include/wchar.h: Add wcsnlen prototype.
3600         * libc/string/Makefile.am: Add wcsnlen support.
3601         * libc/string/Makefile.in: Regenerated.
3602         * libc/string/wcstrings.tex: Add wcsnlen documentation.
3603
3604 2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
3605
3606         * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
3607
3608 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
3609
3610         * libc/locale/locale.c: Use double quotes in code.
3611         * libc/locale/locale.tex: Likewise.
3612         * libc/libc.texinfo: Hyphenate "floating-point".
3613         * libc/machine/necv70/necv70.tex: Likewise.
3614         * libc/stdio/sprintf.c: Likewise.
3615         * libc/stdio/sscanf.c: Likewise.
3616         * libc/stdlib/atof.c: Likewise.
3617         * libc/stdlib/ldtoa.c: Fix comment typo.
3618         * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
3619         * libc/stdlib/ldiv.c: Likewise.
3620         * libm/common/s_expm1.c: Likewise.
3621         * libm/common/s_ilogb.c: Hyphenate "floating-point".  Use "nonzero".
3622         * libm/common/s_infinity: Hyphenate "double- and single-precision".
3623         * libm/common/s_nan.c: Likewise.  Also correct the FUNCTION summary.
3624         * libm/common/s_nextafter.c: Fix typo.  Hyphenate "double-precision"
3625         and "floating-point".
3626         * libm/common/s_scalbn.c: Correct the FUNCTION summary.
3627         * libm/math/e_pow.c: Fix comment typo.
3628         * libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
3629         * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
3630         * libm/math/s_atan.c: Likewise.
3631         * libm/math/s_frexp.c: Likewise.  Also use "nonzero".
3632         * libm/math/s_isnan.c: Hyphenate "single-precision" and
3633         "floating-point".  Use "nonzero".
3634         * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3635         * libm/math/w_acos.c: Likewise.
3636         * libm/math/w_acosh.c: Likewise.
3637         * libm/math/w_asin.c: Likewise.
3638         * libm/math/w_atan2.c: Likewise.
3639         * libm/math/w_atanh.c: Likewise.
3640         * libm/math/w_cosh.c: Likewise.
3641         * libm/math/w_exp.c: Likewise.
3642         * libm/math/w_exp2.c: Likewise.  Add missing @end and missing @tex
3643         version of 2^x in the description.
3644         * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
3645         * libm/math/w_gamma.c: Likewise.
3646         * libm/math/w_hypot.c: Likewise.
3647         * libm/math/w_j0.c: Likewise.
3648         * libm/math/w_sinh.c: Likewise.
3649         * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
3650         * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
3651         "floating-point".
3652         * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
3653         * libm/mathfp/e_atanh.c: Likewise.
3654         * libm/mathfp/e_hypot.c: Likewise.
3655         * libm/mathfp/er_lgamma.c: Likewise.
3656         * libm/mathfp/s_acos.c: Likewise.
3657         * libm/mathfp/s_asine.c: Likewise.
3658         * libm/mathfp/s_asinh.c: Likewise.
3659         * libm/mathfp/s_atan.c: Likewise.
3660         * libm/mathfp/s_atan2.c: Likewise.
3661         * libm/mathfp/s_atangent.c: Likewise.
3662         * libm/mathfp/s_cosh.c: Likewise.
3663         * libm/mathfp/s_exp.c: Likewise.
3664         * libm/mathfp/s_fmod.c: Likewise.
3665         * libm/mathfp/s_frexp.c: Likewise.  Also use "nonzero".
3666         * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
3667         "floating-point".  Use "nonzero".
3668         * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
3669         * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
3670         * libm/mathfp/s_sineh.c: Likewise.
3671         * libm/mathfp/w_jn.c: Likewise.
3672
3673 2003-10-15  Alexandre Oliva  <aoliva@redhat.com>
3674
3675         * Makefile.am: Add $(MAKE) comments to multido and multiclean
3676         lines, to enable parallel make.
3677         * Makefile.in: Rebuilt.
3678
3679 2003-10-14  Christopher Faylor  <cgf@redhat.com>
3680
3681         * libc/time/clock.c: Clarify documentation of return value when no
3682         measurement is available.
3683
3684 2003-09-29  Ian Lance Taylor  <ian@wasabisystems.com>
3685
3686         * libm/configure.in: Check libm_machine_dir, not machine_dir.
3687         * libm/configure: Regenerate.
3688         * libm/Makefile.in: Ditto.
3689
3690 2003-09-29  J"orn Rennecke <joern.rennecke@superh.com>
3691
3692         * libc/machine/sh/strncpy.S: New file.
3693         * libc/machine/sh/Makefile.am: Add entry & rule for new file.
3694         * libc/machine/sh/Makefile.in: Regenerate.
3695
3696 2003-09-11  James E Wilson  <wilson@specifixinc.com>
3697
3698         * MAINTAINERS: Update my e-mail address.
3699
3700 2003-09-10  Corinna Vinschen  <corinna@vinschen.de>
3701
3702         * libc/include/sys/unistd.h: Declare function daemon for Cygwin.
3703
3704 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3705
3706         * libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
3707         prototype.
3708         * libc/machine/powerpc/simdldtoa.c: Remove prototype for
3709         _simdldcheck().  Also add unsigned cast for index variable in
3710         for loop using sizeof operators.
3711         * libc/machine/powerpc/strtoufix32.c: Remove unused variable.
3712         * libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
3713         * libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
3714         plus fix shift calculation for determining if there is a
3715         carry from word2.
3716
3717 2003-09-09  Corinna Vinschen  <corinna@vinschen.de>
3718
3719         * libc/include/grp.h: Don't define setgrfile, group_from_gid and
3720         setgroupent for Cygwin.
3721
3722 2003-09-05  Jeff Johnston  <jjohnstn@redhat.com>
3723
3724         * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
3725         is different for _REENT_SMALL than when using regular reent
3726         struct.
3727
3728 2003-09-05  Ben Elliston  <bje@wasabisystems.com>
3729
3730         * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
3731         modern versions of GCC issue a warning.
3732
3733         * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
3734         after continuation characters that induces a warning from modern
3735         versions of GCC.
3736
3737 2003-09-04  Ben Elliston  <bje@wasabisystems.com>
3738
3739         * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards.  #ifndef FOO ||
3740         FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
3741
3742 2003-09-02  Thomas Pfaff  <tpfaff@gmx.net>
3743
3744         * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout.
3745         * libc/stdlib/exit.c : Ditto.
3746         * libc/stdlib/on_exit.c: Ditto.
3747
3748 2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
3749
3750         * libc/include/reent.h: Define stat64 as __stat64 when
3751         compiling newlib for Cygwin.
3752
3753 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3754
3755         * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
3756         __stat64 when compiling newlib.
3757
3758 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3759
3760         * libc/include/stdio.h: Allow the io64 function prototypes for
3761         Cygwin when compiling newlib.
3762         * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
3763         to expose the Cygwin struct __stat64 type.
3764         * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64
3765         pointer.
3766         * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
3767
3768 2003-08-23  Christopher Faylor  <cgf@redhat.com>
3769
3770         * libc/stdio64/fseeko64.c (fseeko64_r): Rename second fseeko64_r
3771         definition to fseeko64.
3772
3773 2003-08-22  Jeff Johnston  <jjohnstn@redhat.com>
3774
3775         * libc/include/sys/reent.h: Add _GLOBAL_REENT macro.
3776         * libc/stdio: Globally remove/replace all references to fp->_data.
3777         Replace with _REENT or _GLOBAL_REENT where appropriate.
3778         * libc/stdio/asprintf.c: Ditto.
3779         * libc/stdio/fclose.c: Ditto.
3780         * libc/stdio/fvwrite.c: Ditto.
3781         * libc/stdio/makebuf.c: Ditto.
3782         * libc/stdio/refill.c: Ditto.
3783         * libc/stdio/local.h: Ditto.
3784         * libc/stdio/setvbuf.c: Ditto.
3785         * libc/stdio/sscanf.c: Ditto.
3786         * libc/stdio/stdio.c: Ditto.
3787         * libc/stdio/ungetc.c: Ditto.
3788         * libc/stdio/vfscanf.c: Ditto.
3789         * libc/stdio/vsscanf.c: Ditto.
3790         * libc/stdio/fopen.c: Ditto.  Also use _fseek_r in _fopen_r.
3791         * libc/stdio/vasprintf.c: Ditto.  Also call _vfprintf_r directly.
3792         * libc/stdio/vsnprintf.c: Ditto.
3793         * libc/stdio/vsprintf.c: Ditto.
3794         * libc/stdio/fcloseall.c(fcloseall): Use _GLOBAL_REENT macro
3795         instead of _REENT to walk file list.
3796         * libc/stdio/fflush.c: Ditto.
3797         * libc/stdio/fgetpos.c: Add reentrant version and have regular
3798         version call reentrant version with _REENT argument.
3799         * libc/stdio/fsetpos.c: Ditto.
3800         * libc/stdio/fseek.c: Ditto.
3801         * libc/stdio/fseeko.c: Ditto.
3802         * libc/stdio/ftell.c: Ditto.
3803         * libc/stdio/ftello.c: Ditto.
3804         * libc/stdio/freopen.c: Ditto.
3805         * libc/stdio/findfp.c: Use _GLOBAL_REENT pointer when adding
3806         new files to chain.  Also use _GLOBAL_REENT pointer for
3807         cleaning up.
3808         * libc/stdio/fiprintf.c: Reformatted to minimize duplicate code.
3809         * libc/stdio/siprintf.c: Ditto.
3810         * libc/stdio/iprintf.c: Ditto.
3811         * libc/stdio/fprintf.c: Ditto.
3812         * libc/stdio/printf.c: Ditto.
3813         * libc/stdio/snprintf.c: Call _vfprintf_r directly.
3814         * libc/stdio/sprintf.c: Ditto.
3815         * libc/stdio/vprintf.c: Ditto.  Also add _REENT_ONLY check.
3816         * libc/stdio/rewind.c: Call _fseek_r directly.
3817         * libc/stdio/tmpfile.c: Call _fopen_r and _remove_r directly.
3818         * libc/stdio/vfprintf.c (_VFPRINTF_R): Change _r routines to use
3819         data pointer.
3820         (get_arg): Add extra struct _reent pointer argument.
3821         * libc/stdio64/fgetpos64.c: Add _r versions, remove any reference
3822         to fp->_data.
3823         * libc/stdio64/fopen64.c: Ditto.
3824         * libc/stdio64/freopen64.c: Ditto.
3825         * libc/stdio64/fsetpos64.c: Ditto.
3826         * libc/stdio64/ftello64.c: Ditto.
3827         * libc/stdio64/local64.h: Ditto.
3828         * libc/stdio64/stdio64.c: Ditto.
3829         * libc/stdio64/fseeko64.c: Ditto plus use _fstat_r instead of
3830         _fstat64_r for the meantime.
3831
3832 2003-08-19  Jeff Johnston  <jjohnstn@redhat.com>
3833
3834         * libc/stdlib/mallocr.c (mALLOc, rEALLOc, mEMEALIGn): Enhance
3835         overflow detection.
3836         
3837 2003-08-13  Aldy Hernandez  <aldyh@redhat.com>
3838         
3839         * libc/machine/powerpc/machine/stdlib.h: Wrap SPE functions in
3840         extern "C".
3841
3842 2003-08-13  Jeff Johnston  <jjohnstn@redhat.com>
3843
3844         * libc/include/math.h: Add prototypes for __signbitf and
3845         __signbitd.
3846
3847 2003-07-31  Jeff Johnston  <jjohnstn@redhat.com>
3848
3849         * libc/ctype/iswalpha.c: Fix calls to __jp2uc to pass the
3850         correct type of conversion when dealing with EUCJP or SJIS.
3851         * libc/ctype/iswblank.c: Ditto.
3852         * libc/ctype/iswcntrl.c: Ditto.
3853         * libc/ctype/iswprint.c: Ditto.
3854         * libc/ctype/iswpunct.c: Ditto.
3855         * libc/ctype/iswspace.c: Ditto.
3856         * libc/ctype/towlower.c: Ditto.
3857         * libc/ctype/towupper.c: Ditto.
3858
3859 2003-07-31  Nick Clifton  <nickc@redhat.com>
3860
3861         * libc/sys/sysnecv850/crt0.S (_start): Allocate 4 slots on stack
3862         before calling main, in case it saves its argument registers.
3863         Remove reference to deleted v850ea port.
3864         * configure.host: Remove reference to deleted v850ea port.
3865         Do not use -mv850 when building for v850e target.  This
3866         prevents the ctbp system register from being initialised.
3867
3868 2003-07-29  Honda Hiroki  <hhonda@ipflex.com>
3869
3870         * libc/stdio/vfprintf.c: Set output size to 1 when
3871         we have %f format with precision 0 and # flag not specified.
3872
3873 2003-07-29  Alexandre Oliva  <aoliva@redhat.com>
3874
3875         * libc/machine/mn10300/setjmp.S: Never emit both .am33 and
3876         .am33_2.
3877
3878 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3879
3880         * libc/stdio64/fdopen64.c: Include sys/lock.h.
3881
3882 2003-07-25  Christopher Faylor  <cgf@redhat.com>
3883
3884         * configure.host: Find cygwin include directory, when appropriate.
3885
3886 2003-07-24  Christopher Faylor  <cgf@redhat.com>
3887
3888         * libc/stdio64/fdopen64.c: New file.
3889         * libc/stdio64/Makefile.am (LIB_OBJS): Add fdopen64.o
3890         * libc/stdio64/Makefile.in: Regenerate.
3891         * libc/include/stdio.h (fdopen64): Define.
3892         * libc/include/stdio.h (_fdopen64_r): Ditto.
3893
3894 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3895
3896         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3897         * libc/include/machine/setjmp.h (_JBLEN, AM33/2.0): Set to 26.
3898         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Save and
3899         restore callee-saved FP registers.
3900
3901 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3902
3903         * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
3904         for __sh__.
3905         * libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
3906         truncate.c.
3907         * libc/sys/sh/Makefile.in: Regenerate.
3908         * libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
3909         * libc/sys/sh/ftruncate.c: New file.
3910         * libc/sys/sh/truncate.c: Likewise.
3911
3912 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3913
3914         * libc/include/math.h (nan, nanf): Update prototype to C99.
3915         * libm/common/s_nan.c (nan): Likewise.
3916         * libm/common/s_nanf.c (nanf, nan): Likewise.
3917         * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
3918
3919 2003-07-07  Jeff Johnston  <jjohnstn@redhat.com>
3920
3921         * libc/include/stdbool.h: Removed as this is defined by gcc.
3922
3923 2003-07-03  Shaun Jackman  <sjackman@pathwayconnect.com>
3924
3925         * libc/include/stdbool.h: New header file defined by C99.
3926
3927 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3928
3929         * libc/include/sys/types.h (int8_t): Make signed.
3930
3931 2003-07-02  Jeff Johnston  <jjohnstn@redhat.com>
3932
3933         * libc/sys/linux/include/mqueue.h: Add include of <sys/fcntl.h>.
3934
3935 2003-06-27  Jose Goncalves  <jose.goncalves@inov.pt>
3936
3937         * libc/sys/linux/mq_open.c (mq_open): Only set created flag
3938         on if we actually created the shared memory file exclusively.
3939
3940 2003-06-27  Joe Vornehm  <joev@mitre.org>
3941
3942         * libm/common/s_fpclassify.c (__fpclassifyf): Fix
3943         comparisons to account for unsigned internal value w.
3944
3945 2003-06-26  Jeff Johnston  <jjohnstn@redhat.com>
3946
3947         * libc/sys/linux/mq_open.c (mq_open): Must allocate rdbuf and
3948         wrbuf for a non-creating open.
3949
3950 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3951
3952         * libc/machine/h8300/setarch.h: New.
3953         * libc/machine/h8300/memcpy.S: Use it.
3954         * libc/machine/h8300/memset.S: Likewise.
3955         * libc/machine/h8300/reg_memcpy.S: Likewise.
3956         * libc/machine/h8300/reg_memset.S: Likewise.
3957         * libc/machine/h8300/setjmp.S: Likewise.
3958         * libc/machine/h8300/strcmp.S: Likewise.
3959
3960 2003-06-24  Richard Sandiford  <rsandifo@redhat.com>
3961
3962         * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
3963         to atexit().
3964
3965 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3966
3967         * configure.host (iq2000): Add tabs.
3968
3969 2003-06-20  Jeff Johnston  <jjohnstn@redhat.com>
3970
3971         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros
3972         to handle latest on_exit change.
3973         * libc/sys/linux/Makefile.am: Remove special compilation
3974         for malloc.c and mcheck.c.
3975         * libc/sys/linux/Makefile.in: Regenerated.
3976         * libc/sys/linux/mntent.c: Add definition of _LIBC flag
3977         after including <features.h>.
3978         * libc/sys/linux/mcheck.c: Ditto.
3979         * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE
3980         for <features.h>.
3981         * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and
3982         add -DNOT_IN_libc to C flags.
3983         * libc/sys/linux/intl/Makefile.in: Regenerated.
3984         * libc/sys/linux/intl/config.h: Add definition of _LIBC.
3985         * libc/sys/linux/linuxthreads/semaphore.h: Include
3986         <bits/pthreadtypes.h>.
3987         * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after
3988         including <features.h>.
3989         * libc/sys/linux/sys/lock.h: Ditto.
3990
3991 2003-06-11  Nick Clifton  <nickc@redhat.com>
3992
3993         * libc/reent/reent.c (reclaim_reent): Fix typo in code to free
3994         _on_exit_args_ptr.
3995
3996 2003-06-10  Stan Cox  <scox@redhat.com>
3997             Anthony Green  <green@redhat.com>
3998         
3999         * configure.host: Add iq2000 support.
4000         * newlib/libc/include/machine/ieeefp.h: Ditto.
4001         * newlib/libc/include/machine/setjmp.h: Ditto.
4002         * libc/machine/iq2000, libc/machine/iq2000/setjmp.S,
4003         libc/machine/iq2000/aclocal.m4, libc/machine/iq2000/configure,
4004         libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
4005         libc/machine/iq2000/Makefile.in: New files.
4006
4007 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
4008
4009         * libc/sys/h8300hms/setarch.h: New file.
4010         * libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
4011         libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
4012         libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
4013         libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
4014
4015 2003-06-06  Jeff Johnston  <jjohnstn@redhat.com>
4016
4017         * libc/argz/argz_add.c: Change to use _DEFUN macro for function
4018         definition.
4019         * libc/argz/argz_add_sep.c: Ditto.
4020         * libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
4021         * libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
4022         * libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
4023         * libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
4024         * libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
4025         * libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
4026         * libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
4027         * libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
4028         * libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
4029         * libc/posix/closedir.c libc/posix/creat.c: Ditto.
4030         * libc/posix/execl.c libc/posix/execle.c: Ditto.
4031         * libc/posix/execlp.c libc/posix/execve.c: Ditto.
4032         * libc/posix/isatty.c libc/posix/opendir.c: Ditto.
4033         * libc/posix/popen.c libc/posix/readdir.c: Ditto.
4034         * libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
4035         * libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
4036         * libc/posix/telldir.c libc/search/hcreate.c: Ditto.
4037         * libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
4038         * libc/search/tfind.c libc/search/tsearch.c: Ditto.
4039         * libc/search/twalk.c libc/signal/signal.c: Ditto.
4040
4041 2003-06-05  Nick Clifton  <nickc@redhat.com>
4042         
4043         * libc/include/sys/reent.h (struct _on_exit_args): New
4044         structure containing fields used by the on_exit() function.
4045         (struct _atexit): Include struct _on_exit_args.  For
4046         _REENT_SMALL do his via a pointer that is initialised when
4047         needed.
4048         * libc/reent/reent.c (_reclaim_reent): Free the _on_exit_args
4049         structure, if one has been allocated.
4050         * libc/stdlib/atexit.c (atexit): Update indirection to
4051         _fntypes field.
4052         * libc/stdlib/on_exit.c (on_exit): Indirect via the
4053         _on_exit_args structure.  For _REENT_SMALL, allocate a
4054         structure if one does not exist.
4055         * libc/stdlib/exit.c (exit): Indirect via the _on_exit_args
4056         structure.
4057
4058 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4059
4060         * libc/sys/linux/net/Makefile.am: Remove extraneous markers.
4061         * libc/sys/linux/net/Makefile.in: Regenerated.
4062
4063 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4064
4065         * libc/reent/execr.c: Use _DEFUN macro for function declaration.
4066         * libc/reent/fcntlr.c: Ditto.
4067         * libc/reent/fstat64r.c: Ditto.
4068         * libc/reent/linkr.c: Ditto.
4069         * libc/reent/lseek64r.c: Ditto.
4070         * libc/reent/lseekr.c: Ditto.
4071         * libc/reent/openr.c: Ditto.
4072         * libc/reent/readr.c: Ditto.
4073         * libc/reent/reent.c: Ditto.
4074         * libc/reent/sbrkr.c: Ditto.
4075         * libc/reent/signalr.c: Ditto.
4076         * libc/reent/signgam.c: Ditto.
4077         * libc/reent/statr.c: Ditto.
4078         * libc/reent/timer.c: Ditto.
4079         * libc/reent/unlinkr.c: Ditto.
4080         * libc/reent/writer.c: Ditto.
4081         * libc/syscalls/sysclose.c: Ditto.
4082         * libc/syscalls/sysexecve.c: Ditto.
4083         * libc/syscalls/sysfcntl.c: Ditto.
4084         * libc/syscalls/sysfork.c: Ditto.
4085         * libc/syscalls/sysfstat.c: Ditto.
4086         * libc/syscalls/sysgetpid.c: Ditto.
4087         * libc/syscalls/sysgettod.c: Ditto.
4088         * libc/syscalls/syskill.c: Ditto.
4089         * libc/syscalls/syslink.c: Ditto.
4090         * libc/syscalls/syslseek.c: Ditto.
4091         * libc/syscalls/sysopen.c: Ditto.
4092         * libc/syscalls/sysread.c: Ditto.
4093         * libc/syscalls/syssbrk.c: Ditto.
4094         * libc/syscalls/sysstat.c: Ditto.
4095         * libc/syscalls/systimes.c: Ditto.
4096         * libc/syscalls/sysunlink.c: Ditto.
4097         * libc/syscalls/syswait.c: Ditto.
4098         * libc/syscalls/syswrite.c: Ditto.
4099
4100 2003-06-03  Till Straumann  <strauman@SLAC.Stanford.EDU>
4101
4102         * libc/time/tzset_r.c: Change local variables that are
4103         set via sscanf using the %h format specifier to be unsigned short
4104         instead of int.
4105
4106 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
4107
4108         * configure.host:  Allow i[34567]86 variant.
4109         * configure.in: Likewise.
4110         * README: Likewise to the docs.
4111         * configure: Regenerated.
4112         * Makefile.in: Ditto.
4113
4114 2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>
4115             Tom Fitzsimmons  <fitzsim@redhat.com>
4116
4117         * configure.in: Add iconvdata support for x86 linux.
4118         * configure: Regenerated.
4119         * libc/sys/linux/Makefile.am: Add EL/IX level 3 network, dynamic 
4120         library, iconv, and linuxthreads support.
4121         * libc/sys/linux/configure.in: Ditto.
4122         * libc/sys/linux/Makefile.in: Regenerated.
4123         * libc/sys/linux/configure: Ditto.
4124         * iconvdata/EUC-JP.irreversible: New file.
4125         * iconvdata/Makefile.am: Ditto.
4126         * iconvdata/Makefile.in: Ditto.
4127         * iconvdata/SJIS.irreversible: Ditto.
4128         * iconvdata/aclocal.m4: Ditto.
4129         * iconvdata/configure: Ditto.
4130         * iconvdata/configure.in: Ditto.
4131         * iconvdata/dummy.c: Ditto.
4132         * iconvdata/euc-jp.c: Ditto.
4133         * iconvdata/gconv-modules: Ditto.
4134         * iconvdata/jis0201.c: Ditto.
4135         * iconvdata/jis0201.h: Ditto.
4136         * iconvdata/jis0208.c: Ditto.
4137         * iconvdata/jis0208.h: Ditto.
4138         * iconvdata/jis0212.c: Ditto.
4139         * iconvdata/jis0212.h: Ditto.
4140         * iconvdata/sjis.c: Ditto.
4141         * libc/include/errno.h: Protect definition of error_t.
4142         * libc/sys/linux/gethostid.c: New file.
4143         * libc/sys/linux/sethostid.c: Ditto.
4144         * libc/sys/linux/dl/Makefile.am: Ditto.
4145         * libc/sys/linux/dl/Makefile.in: Ditto.
4146         * libc/sys/linux/dl/abi-tag.h: Ditto.
4147         * libc/sys/linux/dl/atomicity.h: Ditto.
4148         * libc/sys/linux/dl/dl-addr.c: Ditto.
4149         * libc/sys/linux/dl/dl-cache.c: Ditto.
4150         * libc/sys/linux/dl/dl-cache.h: Ditto.
4151         * libc/sys/linux/dl/dl-close.c: Ditto.
4152         * libc/sys/linux/dl/dl-debug.c: Ditto.
4153         * libc/sys/linux/dl/dl-deps.c: Ditto.
4154         * libc/sys/linux/dl/dl-dst.h: Ditto.
4155         * libc/sys/linux/dl/dl-error.c: Ditto.
4156         * libc/sys/linux/dl/dl-fini.c: Ditto.
4157         * libc/sys/linux/dl/dl-init.c: Ditto.
4158         * libc/sys/linux/dl/dl-iteratephdr.c: Ditto.
4159         * libc/sys/linux/dl/dl-libc.c: Ditto.
4160         * libc/sys/linux/dl/dl-librecon.h: Ditto.
4161         * libc/sys/linux/dl/dl-load.c: Ditto.
4162         * libc/sys/linux/dl/dl-lookup.c: Ditto.
4163         * libc/sys/linux/dl/dl-lookupcfg.h: Ditto.
4164         * libc/sys/linux/dl/dl-minimal.c: Ditto.
4165         * libc/sys/linux/dl/dl-misc.c: Ditto.
4166         * libc/sys/linux/dl/dl-object.c: Ditto.
4167         * libc/sys/linux/dl/dl-open.c: Ditto.
4168         * libc/sys/linux/dl/dl-osinfo.h: Ditto.
4169         * libc/sys/linux/dl/dl-profile.c: Ditto.
4170         * libc/sys/linux/dl/dl-profstub.c: Ditto.
4171         * libc/sys/linux/dl/dl-reloc.c: Ditto.
4172         * libc/sys/linux/dl/dl-runtime.c: Ditto.
4173         * libc/sys/linux/dl/dl-support.c: Ditto.
4174         * libc/sys/linux/dl/dl-sym.c: Ditto.
4175         * libc/sys/linux/dl/dl-version.c: Ditto.
4176         * libc/sys/linux/dl/dlfcn.h: Ditto.
4177         * libc/sys/linux/dl/do-lookup.h: Ditto.
4178         * libc/sys/linux/dl/do-rel.h: Ditto.
4179         * libc/sys/linux/dl/dynamic-link.h: Ditto.
4180         * libc/sys/linux/dl/kernel-features.h: Ditto.
4181         * libc/sys/linux/dl/ldsodefs.h: Ditto.
4182         * libc/sys/linux/dl/libintl.h: Ditto.
4183         * libc/sys/linux/dl/trusted-dirs.h: Ditto.
4184         * libc/sys/linux/dl/unsecvars.h: Ditto.
4185         * libc/sys/linux/iconv/Makefile.am: Ditto.
4186         * libc/sys/linux/iconv/Makefile.in: Ditto.
4187         * libc/sys/linux/iconv/categories.def: Ditto.
4188         * libc/sys/linux/iconv/dummy-repertoire.c: Ditto.
4189         * libc/sys/linux/iconv/gconv.c: Ditto.
4190         * libc/sys/linux/iconv/gconv_builtin.c: Ditto.
4191         * libc/sys/linux/iconv/gconv_builtin.h: Ditto.
4192         * libc/sys/linux/iconv/gconv_cache.c: Ditto.
4193         * libc/sys/linux/iconv/gconv_charset.h: Ditto.
4194         * libc/sys/linux/iconv/gconv_close.c: Ditto.
4195         * libc/sys/linux/iconv/gconv_conf.c: Ditto.
4196         * libc/sys/linux/iconv/gconv_db.c: Ditto.
4197         * libc/sys/linux/iconv/gconv_dl.c: Ditto.
4198         * libc/sys/linux/iconv/gconv_int.h: Ditto.
4199         * libc/sys/linux/iconv/gconv_open.c: Ditto.
4200         * libc/sys/linux/iconv/gconv_simple.c: Ditto.
4201         * libc/sys/linux/iconv/gconv_trans.c: Ditto.
4202         * libc/sys/linux/iconv/hash-string.h: Ditto.
4203         * libc/sys/linux/iconv/iconv.c: Ditto.
4204         * libc/sys/linux/iconv/iconv.h: Ditto.
4205         * libc/sys/linux/iconv/iconv_charmap.c: Ditto.
4206         * libc/sys/linux/iconv/iconv_close.c: Ditto.
4207         * libc/sys/linux/iconv/iconv_open.c: Ditto.
4208         * libc/sys/linux/iconv/iconvconfig.c: Ditto.
4209         * libc/sys/linux/iconv/iconvconfig.h: Ditto.
4210         * libc/sys/linux/iconv/loadinfo.h: Ditto.
4211         * libc/sys/linux/iconv/localeinfo.h: Ditto.
4212         * libc/sys/linux/iconv/loop.c: Ditto.
4213         * libc/sys/linux/iconv/skeleton.c: Ditto.
4214         * libc/sys/linux/iconv/strtab.c: Ditto.
4215         * libc/sys/linux/include/dl-hash.h: Ditto.
4216         * libc/sys/linux/include/dlfcn.h: Ditto.
4217         * libc/sys/linux/include/fnmatch.h: Ditto.
4218         * libc/sys/linux/include/gconv.h: Ditto.
4219         * libc/sys/linux/include/glob.h: Ditto.
4220         * libc/sys/linux/include/hesiod.h: Ditto.
4221         * libc/sys/linux/include/ifaddrs.h: Ditto.
4222         * libc/sys/linux/include/libc_private.h: Ditto.
4223         * libc/sys/linux/include/link.h: Ditto.
4224         * libc/sys/linux/include/namespace.h: Ditto.
4225         * libc/sys/linux/include/netconfig.h: Ditto.
4226         * libc/sys/linux/include/netdb.h: Ditto.
4227         * libc/sys/linux/include/nsswitch.h: Ditto.
4228         * libc/sys/linux/include/regex.h: Ditto.
4229         * libc/sys/linux/include/resolv.h: Ditto.
4230         * libc/sys/linux/include/rune.h: Ditto.
4231         * libc/sys/linux/include/runetype.h: Ditto.
4232         * libc/sys/linux/include/semaphore.h: Ditto.
4233         * libc/sys/linux/include/setlocale.h: Ditto.
4234         * libc/sys/linux/include/un-namespace.h: Ditto.
4235         * libc/sys/linux/include/wordexp.h: Ditto.
4236         * libc/sys/linux/include/arpa/ftp.h: Ditto.
4237         * libc/sys/linux/include/arpa/inet.h: Ditto.
4238         * libc/sys/linux/include/arpa/nameser.h: Ditto.
4239         * libc/sys/linux/include/arpa/nameser_compat.h: Ditto.
4240         * libc/sys/linux/include/arpa/telnet.h: Ditto.
4241         * libc/sys/linux/include/arpa/tftp.h: Ditto.
4242         * libc/sys/linux/include/net/bpf.h: Ditto.
4243         * libc/sys/linux/include/net/bpf_compat.h: Ditto.
4244         * libc/sys/linux/include/net/bpfdesc.h: Ditto.
4245         * libc/sys/linux/include/net/bridge.h: Ditto.
4246         * libc/sys/linux/include/net/ethernet.h: Ditto.
4247         * libc/sys/linux/include/net/fddi.h: Ditto.
4248         * libc/sys/linux/include/net/if.h: Ditto.
4249         * libc/sys/linux/include/net/if_arc.h: Ditto.
4250         * libc/sys/linux/include/net/if_arp.h: Ditto.
4251         * libc/sys/linux/include/net/if_atm.h: Ditto.
4252         * libc/sys/linux/include/net/if_dl.h: Ditto.
4253         * libc/sys/linux/include/net/if_gif.h: Ditto.
4254         * libc/sys/linux/include/net/if_ieee80211.h: Ditto.
4255         * libc/sys/linux/include/net/if_llc.h: Ditto.
4256         * libc/sys/linux/include/net/if_media.h: Ditto.
4257         * libc/sys/linux/include/net/if_mib.h: Ditto.
4258         * libc/sys/linux/include/net/if_ppp.h: Ditto.
4259         * libc/sys/linux/include/net/if_pppvar.h: Ditto.
4260         * libc/sys/linux/include/net/if_slvar.h: Ditto.
4261         * libc/sys/linux/include/net/if_sppp.h: Ditto.
4262         * libc/sys/linux/include/net/if_stf.h: Ditto.
4263         * libc/sys/linux/include/net/if_tap.h: Ditto.
4264         * libc/sys/linux/include/net/if_tapvar.h: Ditto.
4265         * libc/sys/linux/include/net/if_tun.h: Ditto.
4266         * libc/sys/linux/include/net/if_tunvar.h: Ditto.
4267         * libc/sys/linux/include/net/if_types.h: Ditto.
4268         * libc/sys/linux/include/net/if_var.h: Ditto.
4269         * libc/sys/linux/include/net/if_vlan_var.h: Ditto.
4270         * libc/sys/linux/include/net/intrq.h: Ditto.
4271         * libc/sys/linux/include/net/iso88025.h: Ditto.
4272         * libc/sys/linux/include/net/net_osdep.h: Ditto.
4273         * libc/sys/linux/include/net/netisr.h: Ditto.
4274         * libc/sys/linux/include/net/pfil.h: Ditto.
4275         * libc/sys/linux/include/net/pfkeyv2.h: Ditto.
4276         * libc/sys/linux/include/net/ppp_comp.h: Ditto.
4277         * libc/sys/linux/include/net/ppp_defs.h: Ditto.
4278         * libc/sys/linux/include/net/radix.h: Ditto.
4279         * libc/sys/linux/include/net/raw_cb.h: Ditto.
4280         * libc/sys/linux/include/net/route.h: Ditto.
4281         * libc/sys/linux/include/net/slcompress.h: Ditto.
4282         * libc/sys/linux/include/net/slip.h: Ditto.
4283         * libc/sys/linux/include/net/zlib.h: Ditto.
4284         * libc/sys/linux/include/netinet/icmp6.h: Ditto.
4285         * libc/sys/linux/include/netinet/icmp_var.h: Ditto.
4286         * libc/sys/linux/include/netinet/if_atm.h: Ditto.
4287         * libc/sys/linux/include/netinet/if_ether.h: Ditto.
4288         * libc/sys/linux/include/netinet/igmp.h: Ditto.
4289         * libc/sys/linux/include/netinet/igmp_var.h: Ditto.
4290         * libc/sys/linux/include/netinet/in.h: Ditto.
4291         * libc/sys/linux/include/netinet/in_gif.h: Ditto.
4292         * libc/sys/linux/include/netinet/in_pcb.h: Ditto.
4293         * libc/sys/linux/include/netinet/in_systm.h: Ditto.
4294         * libc/sys/linux/include/netinet/in_var.h: Ditto.
4295         * libc/sys/linux/include/netinet/ip.h: Ditto.
4296         * libc/sys/linux/include/netinet/ip6.h: Ditto.
4297         * libc/sys/linux/include/netinet/ip_dummynet.h: Ditto.
4298         * libc/sys/linux/include/netinet/ip_ecn.h: Ditto.
4299         * libc/sys/linux/include/netinet/ip_encap.h: Ditto.
4300         * libc/sys/linux/include/netinet/ip_flow.h: Ditto.
4301         * libc/sys/linux/include/netinet/ip_fw.h: Ditto.
4302         * libc/sys/linux/include/netinet/ip_icmp.h: Ditto.
4303         * libc/sys/linux/include/netinet/ip_mroute.h: Ditto.
4304         * libc/sys/linux/include/netinet/ip_var.h: Ditto.
4305         * libc/sys/linux/include/netinet/ipprotosw.h: Ditto.
4306         * libc/sys/linux/include/netinet/tcp.h: Ditto.
4307         * libc/sys/linux/include/netinet/tcp_debug.h: Ditto.
4308         * libc/sys/linux/include/netinet/tcp_fsm.h: Ditto.
4309         * libc/sys/linux/include/netinet/tcp_seq.h: Ditto.
4310         * libc/sys/linux/include/netinet/tcp_timer.h: Ditto.
4311         * libc/sys/linux/include/netinet/tcp_var.h: Ditto.
4312         * libc/sys/linux/include/netinet/tcpip.h: Ditto.
4313         * libc/sys/linux/include/netinet/udp.h: Ditto.
4314         * libc/sys/linux/include/netinet/udp_var.h: Ditto.
4315         * libc/sys/linux/include/netinet6/ah.h: Ditto.
4316         * libc/sys/linux/include/netinet6/ah6.h: Ditto.
4317         * libc/sys/linux/include/netinet6/esp.h: Ditto.
4318         * libc/sys/linux/include/netinet6/esp6.h: Ditto.
4319         * libc/sys/linux/include/netinet6/esp_rijndael.h: Ditto.
4320         * libc/sys/linux/include/netinet6/icmp6.h: Ditto.
4321         * libc/sys/linux/include/netinet6/in6.h: Ditto.
4322         * libc/sys/linux/include/netinet6/in6_gif.h: Ditto.
4323         * libc/sys/linux/include/netinet6/in6_ifattach.h: Ditto.
4324         * libc/sys/linux/include/netinet6/in6_pcb.h: Ditto.
4325         * libc/sys/linux/include/netinet6/in6_prefix.h: Ditto.
4326         * libc/sys/linux/include/netinet6/in6_var.h: Ditto.
4327         * libc/sys/linux/include/netinet6/ip6.h: Ditto.
4328         * libc/sys/linux/include/netinet6/ip6_ecn.h: Ditto.
4329         * libc/sys/linux/include/netinet6/ip6_fw.h: Ditto.
4330         * libc/sys/linux/include/netinet6/ip6_mroute.h: Ditto.
4331         * libc/sys/linux/include/netinet6/ip6_var.h: Ditto.
4332         * libc/sys/linux/include/netinet6/ip6protosw.h: Ditto.
4333         * libc/sys/linux/include/netinet6/ipcomp.h: Ditto.
4334         * libc/sys/linux/include/netinet6/ipcomp6.h: Ditto.
4335         * libc/sys/linux/include/netinet6/ipsec.h: Ditto.
4336         * libc/sys/linux/include/netinet6/ipsec6.h: Ditto.
4337         * libc/sys/linux/include/netinet6/mld6_var.h: Ditto.
4338         * libc/sys/linux/include/netinet6/nd6.h: Ditto.
4339         * libc/sys/linux/include/netinet6/pim6.h: Ditto.
4340         * libc/sys/linux/include/netinet6/pim6_var.h: Ditto.
4341         * libc/sys/linux/include/netinet6/raw_ip6.h: Ditto.
4342         * libc/sys/linux/include/netinet6/scope6_var.h: Ditto.
4343         * libc/sys/linux/include/netinet6/tcp6_var.h: Ditto.
4344         * libc/sys/linux/include/netinet6/udp6_var.h: Ditto.
4345         * libc/sys/linux/include/netns/idp.h: Ditto.
4346         * libc/sys/linux/include/netns/idp_var.h: Ditto.
4347         * libc/sys/linux/include/netns/ns.h: Ditto.
4348         * libc/sys/linux/include/netns/ns_error.h: Ditto.
4349         * libc/sys/linux/include/netns/ns_if.h: Ditto.
4350         * libc/sys/linux/include/netns/ns_pcb.h: Ditto.
4351         * libc/sys/linux/include/netns/sp.h: Ditto.
4352         * libc/sys/linux/include/netns/spidp.h: Ditto.
4353         * libc/sys/linux/include/netns/spp_debug.h: Ditto.
4354         * libc/sys/linux/include/netns/spp_timer.h: Ditto.
4355         * libc/sys/linux/include/netns/spp_var.h: Ditto.
4356         * libc/sys/linux/include/rpc/Makefile: Ditto.
4357         * libc/sys/linux/include/rpc/auth.h: Ditto.
4358         * libc/sys/linux/include/rpc/auth_des.h: Ditto.
4359         * libc/sys/linux/include/rpc/auth_kerb.h: Ditto.
4360         * libc/sys/linux/include/rpc/auth_unix.h: Ditto.
4361         * libc/sys/linux/include/rpc/clnt.h: Ditto.
4362         * libc/sys/linux/include/rpc/clnt_soc.h: Ditto.
4363         * libc/sys/linux/include/rpc/clnt_stat.h: Ditto.
4364         * libc/sys/linux/include/rpc/des.h: Ditto.
4365         * libc/sys/linux/include/rpc/des_crypt.h: Ditto.
4366         * libc/sys/linux/include/rpc/nettype.h: Ditto.
4367         * libc/sys/linux/include/rpc/pmap_clnt.h: Ditto.
4368         * libc/sys/linux/include/rpc/pmap_prot.h: Ditto.
4369         * libc/sys/linux/include/rpc/pmap_rmt.h: Ditto.
4370         * libc/sys/linux/include/rpc/raw.h: Ditto.
4371         * libc/sys/linux/include/rpc/rpc.h: Ditto.
4372         * libc/sys/linux/include/rpc/rpc_com.h: Ditto.
4373         * libc/sys/linux/include/rpc/rpc_msg.h: Ditto.
4374         * libc/sys/linux/include/rpc/rpcb_clnt.h: Ditto.
4375         * libc/sys/linux/include/rpc/rpcb_prot.h: Ditto.
4376         * libc/sys/linux/include/rpc/rpcb_prot.x: Ditto.
4377         * libc/sys/linux/include/rpc/rpcent.h: Ditto.
4378         * libc/sys/linux/include/rpc/svc.h: Ditto.
4379         * libc/sys/linux/include/rpc/svc_auth.h: Ditto.
4380         * libc/sys/linux/include/rpc/svc_dg.h: Ditto.
4381         * libc/sys/linux/include/rpc/svc_soc.h: Ditto.
4382         * libc/sys/linux/include/rpc/types.h: Ditto.
4383         * libc/sys/linux/include/rpc/xdr.h: Ditto.
4384         * libc/sys/linux/intl/Makefile.am: Ditto.
4385         * libc/sys/linux/intl/Makefile.in: Ditto.
4386         * libc/sys/linux/intl/bindtextdom.c: Ditto.
4387         * libc/sys/linux/intl/catgets.c: Ditto.
4388         * libc/sys/linux/intl/catgetsinfo.h: Ditto.
4389         * libc/sys/linux/intl/config.h: Ditto.
4390         * libc/sys/linux/intl/dcgettext.c: Ditto.
4391         * libc/sys/linux/intl/dcigettext.c: Ditto.
4392         * libc/sys/linux/intl/dcngettext.c: Ditto.
4393         * libc/sys/linux/intl/dgettext.c: Ditto.
4394         * libc/sys/linux/intl/dngettext.c: Ditto.
4395         * libc/sys/linux/intl/explodename.c: Ditto.
4396         * libc/sys/linux/intl/finddomain.c: Ditto.
4397         * libc/sys/linux/intl/gettext.c: Ditto.
4398         * libc/sys/linux/intl/gettext.h: Ditto.
4399         * libc/sys/linux/intl/gettextP.h: Ditto.
4400         * libc/sys/linux/intl/hash-string.h: Ditto.
4401         * libc/sys/linux/intl/l10nflist.c: Ditto.
4402         * libc/sys/linux/intl/loadinfo.h: Ditto.
4403         * libc/sys/linux/intl/loadmsgcat.c: Ditto.
4404         * libc/sys/linux/intl/locale.alias: Ditto.
4405         * libc/sys/linux/intl/localealias.c: Ditto.
4406         * libc/sys/linux/intl/ngettext.c: Ditto.
4407         * libc/sys/linux/intl/open_catalog.c: Ditto.
4408         * libc/sys/linux/intl/plural.c: Ditto.
4409         * libc/sys/linux/intl/plural.y: Ditto.
4410         * libc/sys/linux/intl/stpcpy.c: Ditto.
4411         * libc/sys/linux/intl/textdomain.c: Ditto.
4412         * libc/sys/linux/linuxthreads/LICENSE: Ditto.
4413         * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
4414         * libc/sys/linux/linuxthreads/Makefile.in: Ditto.
4415         * libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
4416         * libc/sys/linux/linuxthreads/attr.c: Ditto.
4417         * libc/sys/linux/linuxthreads/barrier.c: Ditto.
4418         * libc/sys/linux/linuxthreads/bp-sym.h: Ditto.
4419         * libc/sys/linux/linuxthreads/cancel.c: Ditto.
4420         * libc/sys/linux/linuxthreads/condvar.c: Ditto.
4421         * libc/sys/linux/linuxthreads/config.h: Ditto.
4422         * libc/sys/linux/linuxthreads/configure: Ditto.
4423         * libc/sys/linux/linuxthreads/configure.in: Ditto.
4424         * libc/sys/linux/linuxthreads/defs.awk: Ditto.
4425         * libc/sys/linux/linuxthreads/ecmutex.c: Ditto.
4426         * libc/sys/linux/linuxthreads/events.c: Ditto.
4427         * libc/sys/linux/linuxthreads/getcpuclockid.c: Ditto.
4428         * libc/sys/linux/linuxthreads/getreent.c: Ditto.
4429         * libc/sys/linux/linuxthreads/internals.h: Ditto.
4430         * libc/sys/linux/linuxthreads/join.c: Ditto.
4431         * libc/sys/linux/linuxthreads/joinrace.c: Ditto.
4432         * libc/sys/linux/linuxthreads/kernel-features.h: Ditto.
4433         * libc/sys/linux/linuxthreads/libc-internal.h: Ditto.
4434         * libc/sys/linux/linuxthreads/libc-symbols.h: Ditto.
4435         * libc/sys/linux/linuxthreads/linuxthreads.texi: Ditto.
4436         * libc/sys/linux/linuxthreads/lockfile.c: Ditto.
4437         * libc/sys/linux/linuxthreads/manager.c: Ditto.
4438         * libc/sys/linux/linuxthreads/mq_notify.c: Ditto.
4439         * libc/sys/linux/linuxthreads/mutex.c: Ditto.
4440         * libc/sys/linux/linuxthreads/no-tsd.c: Ditto.
4441         * libc/sys/linux/linuxthreads/oldsemaphore.c: Ditto.
4442         * libc/sys/linux/linuxthreads/posix-timer.h: Ditto.
4443         * libc/sys/linux/linuxthreads/prio.c: Ditto.
4444         * libc/sys/linux/linuxthreads/proc_service.h: Ditto.
4445         * libc/sys/linux/linuxthreads/pt-machine.c: Ditto.
4446         * libc/sys/linux/linuxthreads/ptclock_gettime.c: Ditto.
4447         * libc/sys/linux/linuxthreads/ptclock_settime.c: Ditto.
4448         * libc/sys/linux/linuxthreads/ptfork.c: Ditto.
4449         * libc/sys/linux/linuxthreads/pthread.c: Ditto.
4450         * libc/sys/linux/linuxthreads/ptlongjmp.c: Ditto.
4451         * libc/sys/linux/linuxthreads/queue.h: Ditto.
4452         * libc/sys/linux/linuxthreads/reent.c: Ditto.
4453         * libc/sys/linux/linuxthreads/reqsyscalls.c: Ditto.
4454         * libc/sys/linux/linuxthreads/restart.h: Ditto.
4455         * libc/sys/linux/linuxthreads/rwlock.c: Ditto.
4456         * libc/sys/linux/linuxthreads/semaphore.c: Ditto.
4457         * libc/sys/linux/linuxthreads/semaphore.h: Ditto.
4458         * libc/sys/linux/linuxthreads/shlib-compat.h: Ditto.
4459         * libc/sys/linux/linuxthreads/signals.c: Ditto.
4460         * libc/sys/linux/linuxthreads/specific.c: Ditto.
4461         * libc/sys/linux/linuxthreads/spinlock.c: Ditto.
4462         * libc/sys/linux/linuxthreads/spinlock.h: Ditto.
4463         * libc/sys/linux/linuxthreads/sysctl.c: Ditto.
4464         * libc/sys/linux/linuxthreads/td_init.c: Ditto.
4465         * libc/sys/linux/linuxthreads/td_log.c: Ditto.
4466         * libc/sys/linux/linuxthreads/td_symbol_list.c: Ditto.
4467         * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
4468         * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
4469         * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
4470         * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
4471         * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
4472         * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
4473         * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
4474         * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
4475         * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
4476         * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
4477         * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
4478         * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
4479         * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
4480         * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
4481         * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
4482         * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
4483         * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
4484         * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
4485         * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
4486         * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
4487         * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
4488         * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
4489         * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
4490         * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
4491         * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
4492         * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
4493         * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
4494         * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
4495         * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
4496         * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
4497         * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
4498         * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
4499         * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
4500         * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
4501         * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
4502         * libc/sys/linux/linuxthreads/testrtsig.h: Ditto.
4503         * libc/sys/linux/linuxthreads/thread_db.h: Ditto.
4504         * libc/sys/linux/linuxthreads/thread_dbP.h: Ditto.
4505         * libc/sys/linux/linuxthreads/timer_create.c: Ditto.
4506         * libc/sys/linux/linuxthreads/timer_delete.c: Ditto.
4507         * libc/sys/linux/linuxthreads/timer_getoverr.c: Ditto.
4508         * libc/sys/linux/linuxthreads/timer_gettime.c: Ditto.
4509         * libc/sys/linux/linuxthreads/timer_routines.c: Ditto.
4510         * libc/sys/linux/linuxthreads/timer_settime.c: Ditto.
4511         * libc/sys/linux/linuxthreads/tst-cancel.c: Ditto.
4512         * libc/sys/linux/linuxthreads/tst-context.c: Ditto.
4513         * libc/sys/linux/linuxthreads/tststack.c: Ditto.
4514         * libc/sys/linux/linuxthreads/unload.c: Ditto.
4515         * libc/sys/linux/linuxthreads/weaks.c: Ditto.
4516         * libc/sys/linux/linuxthreads/wrapsyscall.c: Ditto.
4517         * libc/sys/linux/linuxthreads/bits/initspin.h: Ditto.
4518         * libc/sys/linux/linuxthreads/bits/libc-lock.h: Ditto.
4519         * libc/sys/linux/linuxthreads/bits/libc-tsd.h: Ditto.
4520         * libc/sys/linux/linuxthreads/bits/local_lim.h: Ditto.
4521         * libc/sys/linux/linuxthreads/bits/posix_opt.h: Ditto.
4522         * libc/sys/linux/linuxthreads/bits/pthreadtypes.h: Ditto.
4523         * libc/sys/linux/linuxthreads/bits/sigthread.h: Ditto.
4524         * libc/sys/linux/linuxthreads/machine/Makefile.am: Ditto.
4525         * libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
4526         * libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
4527         * libc/sys/linux/linuxthreads/machine/configure: Ditto.
4528         * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
4529         * libc/sys/linux/linuxthreads/machine/generic/generic-sysd: Ditto.ep.h
4530         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
4531         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
4532         * libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
4533         * libc/sys/linux/linuxthreads/machine/i386/bp-asm.h: Ditto.
4534         * libc/sys/linux/linuxthreads/machine/i386/clone.S: Ditto.
4535         * libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
4536         * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
4537         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S: Ditto.
4538         * libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h: Ditto.
4539         * libc/sys/linux/linuxthreads/machine/i386/pspinlock.c: Ditto.
4540         * libc/sys/linux/linuxthreads/machine/i386/pt-machine.h: Ditto.
4541         * libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h: Ditto.
4542         * libc/sys/linux/linuxthreads/machine/i386/stackinfo.h: Ditto.
4543         * libc/sys/linux/linuxthreads/machine/i386/sysdep.S: Ditto.
4544         * libc/sys/linux/linuxthreads/machine/i386/sysdep.h: Ditto.
4545         * libc/sys/linux/linuxthreads/machine/i386/useldt.h: Ditto.
4546         * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
4547         * libc/sys/linux/net/Makefile.am: Ditto.
4548         * libc/sys/linux/net/Makefile.in: Ditto.
4549         * libc/sys/linux/net/addr2ascii.3: Ditto.
4550         * libc/sys/linux/net/addr2ascii.c: Ditto.
4551         * libc/sys/linux/net/ascii2addr.c: Ditto.
4552         * libc/sys/linux/net/base64.c: Ditto.
4553         * libc/sys/linux/net/bindresvport.c: Ditto.
4554         * libc/sys/linux/net/byteorder.3: Ditto.
4555         * libc/sys/linux/net/ether_addr.c: Ditto.
4556         * libc/sys/linux/net/ethers.3: Ditto.
4557         * libc/sys/linux/net/getaddrinfo.3: Ditto.
4558         * libc/sys/linux/net/getaddrinfo.c: Ditto.
4559         * libc/sys/linux/net/gethostbydns.c: Ditto.
4560         * libc/sys/linux/net/gethostbyht.c: Ditto.
4561         * libc/sys/linux/net/gethostbyname.3: Ditto.
4562         * libc/sys/linux/net/gethostbynis.c: Ditto.
4563         * libc/sys/linux/net/gethostnamadr.c: Ditto.
4564         * libc/sys/linux/net/getifaddrs.3: Ditto.
4565         * libc/sys/linux/net/getifaddrs.c: Ditto.
4566         * libc/sys/linux/net/getipnodebyname.3: Ditto.
4567         * libc/sys/linux/net/getnameinfo.3: Ditto.
4568         * libc/sys/linux/net/getnameinfo.c: Ditto.
4569         * libc/sys/linux/net/getnetbydns.c: Ditto.
4570         * libc/sys/linux/net/getnetbyht.c: Ditto.
4571         * libc/sys/linux/net/getnetbynis.c: Ditto.
4572         * libc/sys/linux/net/getnetent.3: Ditto.
4573         * libc/sys/linux/net/getnetnamadr.c: Ditto.
4574         * libc/sys/linux/net/getproto.c: Ditto.
4575         * libc/sys/linux/net/getprotoent.3: Ditto.
4576         * libc/sys/linux/net/getprotoent.c: Ditto.
4577         * libc/sys/linux/net/getprotoname.c: Ditto.
4578         * libc/sys/linux/net/getservbyname.c: Ditto.
4579         * libc/sys/linux/net/getservbyport.c: Ditto.
4580         * libc/sys/linux/net/getservent.3: Ditto.
4581         * libc/sys/linux/net/getservent.c: Ditto.
4582         * libc/sys/linux/net/herror.c: Ditto.
4583         * libc/sys/linux/net/hesiod.3: Ditto.
4584         * libc/sys/linux/net/hesiod.c: Ditto.
4585         * libc/sys/linux/net/if_indextoname.3: Ditto.
4586         * libc/sys/linux/net/ifname.c: Ditto.
4587         * libc/sys/linux/net/inet.3: Ditto.
4588         * libc/sys/linux/net/inet6_option_s: Ditto.pace.3
4589         * libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
4590         * libc/sys/linux/net/inet_addr.c: Ditto.
4591         * libc/sys/linux/net/inet_lnaof.c: Ditto.
4592         * libc/sys/linux/net/inet_makeaddr.c: Ditto.
4593         * libc/sys/linux/net/inet_net.3: Ditto.
4594         * libc/sys/linux/net/inet_net_ntop.c: Ditto.
4595         * libc/sys/linux/net/inet_net_pton.c: Ditto.
4596         * libc/sys/linux/net/inet_neta.c: Ditto.
4597         * libc/sys/linux/net/inet_netof.c: Ditto.
4598         * libc/sys/linux/net/inet_network.c: Ditto.
4599         * libc/sys/linux/net/inet_ntoa.c: Ditto.
4600         * libc/sys/linux/net/inet_ntop.c: Ditto.
4601         * libc/sys/linux/net/inet_pton.c: Ditto.
4602         * libc/sys/linux/net/innetgr-stub.c: Ditto.
4603         * libc/sys/linux/net/ip6opt.c: Ditto.
4604         * libc/sys/linux/net/iso_addr.3: Ditto.
4605         * libc/sys/linux/net/iso_addr.c: Ditto.
4606         * libc/sys/linux/net/issetugid-stub.c: Ditto.
4607         * libc/sys/linux/net/linkaddr.3: Ditto.
4608         * libc/sys/linux/net/linkaddr.c: Ditto.
4609         * libc/sys/linux/net/map_v4v6.c: Ditto.
4610         * libc/sys/linux/net/name6.c: Ditto.
4611         * libc/sys/linux/net/namespace.h: Ditto.
4612         * libc/sys/linux/net/ns.3: Ditto.
4613         * libc/sys/linux/net/ns_addr.c: Ditto.
4614         * libc/sys/linux/net/ns_name.c: Ditto.
4615         * libc/sys/linux/net/ns_netint.c: Ditto.
4616         * libc/sys/linux/net/ns_ntoa.c: Ditto.
4617         * libc/sys/linux/net/ns_parse.c: Ditto.
4618         * libc/sys/linux/net/ns_print.c: Ditto.
4619         * libc/sys/linux/net/ns_ttl.c: Ditto.
4620         * libc/sys/linux/net/nsap_addr.c: Ditto.
4621         * libc/sys/linux/net/nsdispatch.3: Ditto.
4622         * libc/sys/linux/net/nsdispatch.c: Ditto.
4623         * libc/sys/linux/net/nslexer.c: Ditto.
4624         * libc/sys/linux/net/nslexer.l: Ditto.
4625         * libc/sys/linux/net/nsparser.c: Ditto.
4626         * libc/sys/linux/net/nsparser.h: Ditto.
4627         * libc/sys/linux/net/nsparser.y: Ditto.
4628         * libc/sys/linux/net/rcmd.3: Ditto.
4629         * libc/sys/linux/net/rcmd.c: Ditto.
4630         * libc/sys/linux/net/rcmdsh.3: Ditto.
4631         * libc/sys/linux/net/rcmdsh.c: Ditto.
4632         * libc/sys/linux/net/recv.c: Ditto.
4633         * libc/sys/linux/net/res_comp.c: Ditto.
4634         * libc/sys/linux/net/res_config.h: Ditto.
4635         * libc/sys/linux/net/res_data.c: Ditto.
4636         * libc/sys/linux/net/res_debug.c: Ditto.
4637         * libc/sys/linux/net/res_init.c: Ditto.
4638         * libc/sys/linux/net/res_mkquery.c: Ditto.
4639         * libc/sys/linux/net/res_mkupdate.c: Ditto.
4640         * libc/sys/linux/net/res_query.c: Ditto.
4641         * libc/sys/linux/net/res_send.c: Ditto.
4642         * libc/sys/linux/net/res_update.c: Ditto.
4643         * libc/sys/linux/net/resolver.3: Ditto.
4644         * libc/sys/linux/net/rthdr.c: Ditto.
4645         * libc/sys/linux/net/send.c: Ditto.
4646         * libc/sys/linux/net/un-namespace.h: Ditto.
4647         * libc/sys/linux/net/vars.c: Ditto.
4648         * libc/sys/linux/stdlib/COPYRIGHT: Ditto.
4649         * libc/sys/linux/stdlib/Makefile.am: Ditto.
4650         * libc/sys/linux/stdlib/Makefile.in: Ditto.
4651         * libc/sys/linux/stdlib/cclass.h: Ditto.
4652         * libc/sys/linux/stdlib/cname.h: Ditto.
4653         * libc/sys/linux/stdlib/collate.c: Ditto.
4654         * libc/sys/linux/stdlib/collate.h: Ditto.
4655         * libc/sys/linux/stdlib/collcmp.c: Ditto.
4656         * libc/sys/linux/stdlib/engine.c: Ditto.
4657         * libc/sys/linux/stdlib/fnmatch.3: Ditto.
4658         * libc/sys/linux/stdlib/fnmatch.c: Ditto.
4659         * libc/sys/linux/stdlib/glob.3: Ditto.
4660         * libc/sys/linux/stdlib/glob.c: Ditto.
4661         * libc/sys/linux/stdlib/reallocf.c: Ditto.
4662         * libc/sys/linux/stdlib/regcomp.c: Ditto.
4663         * libc/sys/linux/stdlib/regerror.c: Ditto.
4664         * libc/sys/linux/stdlib/regex.3: Ditto.
4665         * libc/sys/linux/stdlib/regex2.h: Ditto.
4666         * libc/sys/linux/stdlib/regexec.c: Ditto.
4667         * libc/sys/linux/stdlib/regfree.c: Ditto.
4668         * libc/sys/linux/stdlib/utils.h: Ditto.
4669         * libc/sys/linux/stdlib/wordexp.c: Ditto.
4670         * libc/sys/linux/stdlib/wordfree.c: Ditto.
4671         * libc/sys/linux/sys/dlfcn.h: Ditto.
4672         * libc/sys/linux/sys/elfclass.h: Ditto.
4673         * libc/sys/linux/sys/event.h: Ditto.
4674         * libc/sys/linux/sys/ioccom.h: Ditto.
4675         * libc/sys/linux/sys/libc-tsd.h: Ditto.
4676         * libc/sys/linux/sys/link.h: Ditto.
4677         * libc/sys/linux/sys/lock.h: Ditto.
4678         * libc/sys/linux/sys/param.h: Ditto.
4679         * libc/sys/linux/sys/socket.h: Ditto.
4680         * libc/sys/linux/sys/sockio.h: Ditto.
4681
4682 2003-05-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com> 
4683
4684         * newlib/libc/machine/h8300/memcpy.S: Use .h8300hn and .h8300sn for 
4685         normal mode
4686         * newlib/libc/machine/h8300/memset.S: Likewise
4687         * newlib/lib/machine/h8300/reg_memcpy.S: Likewise
4688         * newlib/lib/machine/h8300/reg_memset.S: Likewise
4689         * newlib/lib/machine/h8300/setjmp.S: Likewise
4690         * newlib/lib/machine/h8300/strcmp.S: Likewise
4691         * newlib/lib/sys/h8300hms/crt0.S: Likewise
4692
4693 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4694
4695         * libc/ctype/ctype_.c: Remove checks for deprecated __CYGWIN32__.
4696         * libc/include/stdio.h: Ditto.
4697         * libc/include/sys/config.h: Ditto.
4698         * libc/stdio/mktemp.c: Ditto.
4699
4700 2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
4701
4702         * libc/locale/ldpart.c (__part_load_locale): Substitute
4703         __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
4704         * libc/search/hash.c (__hash_open): Ditto.
4705         (init_hash): Ditto.
4706         * libc/stdio/fseek.c (fseek): Ditto.
4707         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4708         * libc/stdio/mktemp.c (_gettemp): Ditto.
4709
4710 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4711
4712         * libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
4713
4714 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
4715
4716         * configure.host: Accomodate removing the libc/sys/cygwin dir.
4717         * libc/locale/ldpart.c (__part_load_locale): Use 64 bit stat call
4718         if __CYGWIN_USE_BIG_TYPES__ is set.
4719         * libc/search/hash.c (__hash_open): Ditto.
4720         (init_hash): Ditto.
4721         * libc/stdio/fseek.c (fseek): Ditto.
4722         * libc/stdio/makebuf.c (__smakebuf): Ditto.
4723         * libc/stdio/mktemp.c (_gettemp): Ditto.
4724         * libc/sys/cygwin/Makefile.am: Remove.
4725         * libc/sys/cygwin/Makefile.in: Remove.
4726         * libc/sys/cygwin/aclocal.m4: Remove.
4727         * libc/sys/cygwin/configure: Remove.
4728         * libc/sys/cygwin/configure.in: Remove.
4729         * libc/sys/cygwin/crt0.c: Move to winsup/cygwin directory.
4730         * libc/sys/cygwin/sys/dirent.h: Move to winsup/cygwin/include/sys
4731         directory.
4732         * libc/sys/cygwin/sys/param.h: Ditto.
4733         * libc/sys/cygwin/sys/utime.h: Ditto.
4734         * libc/sys/cygwin/sys/utmp.h: Ditto.
4735
4736 2003-05-11  Corinna Vinschen  <corinna@vinschen.de>
4737
4738         * libc/include/sys/types.h: Don't define key_t for Cygwin.
4739
4740 2003-05-10  Christopher Faylor  <cgf@redhat.com>
4741
4742         * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly)
4743         64 bit inodes.
4744
4745 2003-05-09  Corinna Vinschen  <corinna@vinschen.de>
4746
4747         * libc/include/sys/config.h: Remove all Cygwin specific configuration.
4748         Include cygwin/config.h instead.
4749
4750 2003-04-16  Jeff Johnston  <jjohnstn@redhat.com>
4751
4752         * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
4753         all code with #ifdef __SPE__ test.
4754         * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
4755
4756 2003-04-15  Chris January <chris@atomice.net>
4757
4758         * newlib/libc/include/sys/unistd.h: add declaration for gethostid on
4759         Cygwin.
4760
4761 2003-04-09  J"orn Rennecke <joern.rennecke@superh.com>
4762
4763         * libc/machine/sh/memset.S: Avoid clobbering volatile
4764         objects following a tiny to-be-set array in the same quadword.
4765
4766 2001-04-09  Corinna Vinschen  <corinna@vinschen.de>
4767
4768         * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.  
4769         * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
4770         * libc/string/Makefile.in: Regenerated.
4771         * libc/string/wcswidth.c: New file.
4772         * libc/string/wcwidth.c: New file.
4773         * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
4774
4775 Thu Apr  3 14:01:16 2003  J"orn Rennecke <joern.rennecke@superh.com>
4776
4777         * libc/machine/sh/memset.S: Fix problem with alloco region
4778         exceeding destination region for length >= 88 bytes, start
4779         & 0x16 == 0, end & 0x1f == 18.
4780
4781 2001-04-03  Corinna Vinschen  <corinna@vinschen.de>
4782
4783         * libc/string/wcscoll.c: Fix comment.
4784
4785 2001-04-02  Corinna Vinschen  <corinna@vinschen.de>
4786
4787         * libc/include/wchar.h: Add definition for wcscoll.
4788         * libc/string/Makefile.am: Add wcscoll.c.
4789         * libc/string/Makefile.in: Regenerated.
4790         * libc/string/wcscoll.c: New file.
4791         * libc/string/wcstrings.tex: Add wcscoll.   
4792
4793 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4794
4795         * libc/stdio/sscanf.c: Update flags description.
4796         * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
4797         type.
4798         (__svfscanf_r): Add 'hh' and 'll' handling.
4799
4800 2003-04-01  Corinna Vinschen  <corinna@vinschen.de>
4801
4802         * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
4803         __d_position member to _off_t.
4804
4805 2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>
4806
4807         * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
4808         count all characters used to create number against maximum width.
4809         * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
4810
4811 2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>
4812
4813         * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
4814         support.
4815         * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
4816         flag to support simulator only extensions.
4817
4818 2003-03-17  Bob Cassels  <bcassels@abinitio.com>
4819
4820         * libc/string/wcschr.c: (wcschr): Look for character first, 
4821         then for end of string, so you can do wcschr(x, '\0').
4822
4823 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>     
4824
4825         * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
4826         with internal (_fpos_t and _off_t) datatypes when compiling newlib.
4827         * libc/include/sys/unistd.h: Declare _lseek using _off_t.
4828         * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
4829         * libc/stdio/fseeko.c (fseeko): Ditto.
4830         * libc/stdio/ftello.c (ftello): Ditto.
4831         * libc/stdio/stdio.c (__swrite): Ditto.
4832         (__sseek): Ditto.
4833         * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
4834         * libc/stdio/fseek.c (fseek): Ditto.
4835         * libc/stdio/fsetpos.c (fsetpos): Ditto.
4836         * libc/stdio/ftell.c (ftell): Ditto.
4837         * libc/stdio/local.h: Declare __sseek using _off_t.
4838
4839 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4840
4841         * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
4842
4843 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4844
4845         * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
4846         Cygwin.
4847
4848 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
4849
4850         * libc/include/pwd.h: Add guards to avoid type clashes when compiling
4851         Cygwin.
4852         * libc/include/sys/stat.h: Ditto.
4853         * libc/include/sys/unistd.h: Ditto.
4854         * libc/sys/cygwin/sys/dirent.h: Ditto.
4855
4856 2003-03-07  Christopher Faylor  <cgf@redhat.com>
4857
4858         * libc/include/sys/unistd.h: Guard getopt.h call to force only
4859         declaration of getopt and avoid getopt_long declaration.
4860         * libc/sys/cygwin/include/unistd.h: Remove.
4861
4862 2003-03-07  Corinna Vinschen  <corinna@vinschen.de>
4863
4864         * configure.host: Define stdio64_dir for Cygwin.
4865         * libc/include/stdio.h: Change definition of fpos_t to fulfill
4866         Cygwin 64bit file access requirements.
4867         Drop definition of f*64() functions when compiled for Cygwin.
4868         * libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
4869         * libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
4870         * libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
4871
4872 2003-03-07   Jeff Johnston  <jjohnstn@redhat.com>
4873
4874         * libc/include/sys/reent.h: Remove extraneous _sig_func
4875         declaration.
4876
4877 2003-02-25   D.Venkatasubramanian <dvenkat@noida.hcltech.com>
4878
4879         * libc/sys/h8300hms/Makefile.am: Add support for new files.
4880         * libc/sys/h8300hms/Makefile.in: Regenerated.
4881         * libc/sys/h8300hms/close.S: New file.
4882         * libc/sys/h8300hms/fstat.S: Ditto.
4883         * libc/sys/h8300hms/lseek.S: Ditto.
4884         * libc/sys/h8300hms/open.S: Ditto.
4885         * libc/sys/h8300hms/stat.S: Ditto.
4886         * libc/sys/h8300hms/read.S: New file to replace read.c.
4887         * libc/sys/h8300hms/read.c: Removed.
4888         * libc/sys/h8300hms/syscalls.c: Removed functions _open,
4889         _lseek, _close, _stat, _fstat.
4890         * libc/sys/h8300hms/write.S: New file to replace write.c.
4891         * libc/sys/h8300hms/write.c: Removed.
4892
4893 2003-02-20  Nick Clifton  <nickc@redhat.com>
4894
4895         * Add support for Cirrus Maverick ARM co-processor:
4896         
4897         2000-09-13  Aldy Hernandez  <aldyh@redhat.com>
4898
4899                 * libc/include/machine/ieeefp.h: Set IEEE_BIG_ENDIAN or
4900                 IEEE_LITTLE_ENDIAN depending on endian mode (cirrus).
4901
4902         2000-08-11  Aldy Hernandez  <aldyh@redhat.com>
4903
4904                 * configure.host: set sys_dir, syscall_dir, and
4905                 newlib_cflags for ep9312 host.
4906
4907         * configure.host: Restore alpha sorting of entries in case
4908         statements.
4909
4910 2003-02-19  Jeff Johnston  <jjohnstn@redhat.com>
4911
4912         * libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
4913
4914 2003-02-18  Christian Groessler  <chris@groessler.org>
4915
4916         * libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
4917         support z8001 segmented mode.
4918
4919 2003-02-18  Earnie Boyd  <earnie@users.sf.net>
4920
4921         * libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
4922         with a NULL value.
4923
4924 2003-02-10  Christopher Faylor  <cgf@redhat.com>
4925
4926         * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
4927         Don't define some types under cygwin.
4928
4929 2003-02-07  Jeff Johnston  <jjohnstn@redhat.com>
4930
4931         * acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration 
4932         option to allow disabling of syscalls being supplied in newlib.
4933         * aclocal.m4: Regenerated.
4934         * configure: Ditto.
4935         * configure.host: Add support of new configuration option and add
4936         -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
4937         * doc/aclocal.m4: Regenerated.
4938         * doc/configure: Ditto.
4939         * libc/*aclocal.m4: Ditto.
4940         * libc/*configure: Ditto.
4941         * libm/*aclocal.m4: Ditto.
4942         * libm/*configure: Ditto.
4943         * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
4944         is disabled.
4945         * libc/sys/arm/Makefile.in: Regenerated.
4946
4947 2003-02-05  Jonathan Larmour  <jifl@eCosCentric.com>
4948
4949         * libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
4950         -1 to be sure it cannot later match a valid file fd causing
4951         isatty() to return 1.
4952         * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
4953         * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
4954         * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
4955
4956 2003-02-03  Jeff Johnston  <jjohnstn@redhat.com>
4957
4958         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
4959         buffer based on the precision, after we have processed the input value 
4960         in a local buffer and know its relative magnitude. 
4961
4962 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4963
4964         * libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
4965         into registers r1 and r2, so that the simulator can distinguish
4966         this trap from a breakpoint trap.  Copied from libgloss.
4967
4968 2003-01-31  Michael Snyder  <msnyder@redhat.com>
4969
4970         * libc/sys/h8300hms/crt0.S (_start): Change local label
4971         from .loop to .Loop, so that ld and gdb will ignore it.
4972
4973 2003-01-29  Jason Tishler  <jason@tishler.net>
4974
4975         * libc/include/time.h: Declare nanosleep() under Cygwin.
4976
4977 2003-01-24  Nick Clifton  <nickc@redhat.com>
4978
4979         * Add sh2e support:
4980
4981         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4982
4983                 * libc/machine/sh/asm.h: Added __SH2E__ next to __SH3E__.
4984                 * libc/machine/sh/setjmp.S: Likewise.
4985                 * libc/include/machine/ieeefp.h: Likewise.
4986
4987 2003-01-24  Corinna Vinschen  <corinna@vinschen.de>
4988
4989         * libc/include/sys/unistd.h: Add setregid and setreuid declarations
4990         for Cygwin.
4991
4992 2003-01-21 Anita Kulkarni  <anitak@kpit.com>
4993   
4994         * libc/time/difftime.c : Typecast the result to double.
4995
4996 2003-01-20  Christopher Faylor  <cgf@redhat.com>
4997
4998         * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
4999
5000 2003-01-18  Nick Clifton  <nickc@redhat.com>
5001
5002         * libc/include/machine/ieeefp.h : Define __IEEE_BIG_ENDIAN,
5003         __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
5004
5005 2003-01-16  Joel Sherrill <joel@OARcorp.com>
5006
5007         * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
5008         libc/sys/rtems/sys/syslimits.h: Update to be in sync with what 
5009         constants are defined in each file in the shared versions in
5010         libc/include.
5011         * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
5012         autoconf can link programs.
5013         * libc/include/machine/types.h: Explicitly specify signed on
5014         intXX_t types to ensure they are signed.
5015
5016 2003-01-14  Christopher Faylor  <cgf@redhat.com>
5017
5018         * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
5019         extensions.
5020
5021 2003-01-08  Richard Sandiford  <rsandifo@redhat.com>
5022
5023         * configure.host (mips64vr-elf, mips64vrel-elf): New config.
5024
5025 2003-01-07  Charles Wilson  <cwilson@ece.gatech.edu>
5026
5027         * libc/stdio/sprintf.c: fix typo
5028         * libc/stdio/vfprintf.c: fix typo
5029
5030 2003-01-07  Jeff Johnston  <jjohnstn@redhat.com>
5031
5032         * configure.host: Support long double I/O for x86-linux.
5033         * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
5034         large enough to hold formatted result.
5035         * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
5036
5037 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
5038
5039         * Makefile.am: Add vasprintf.
5040         * Makefile.in: Regenerated.
5041
5042 2003-01-06  Charles Wilson  <cwilson@ece.gatech.edu>
5043
5044         * asprintf.c (_asprintf_r): insure both declarations
5045         are the same.
5046
5047 2002-12-28  Christopher Faylor  <cgf@redhat.com>
5048
5049         * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather
5050         than defining getopt directly.
5051
5052 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5053
5054         * NEWS: Update with 1.11.0 info.
5055         * README: Ditto.
5056         * acinclude.m4: Change version number to 1.11.0.
5057         * aclocal.m4: Regenerated.
5058         * configure: Ditto.
5059         * doc/aclocal.m4: Ditto.
5060         * doc/configure: Ditto.
5061         * libc/*/aclocal.m4: Ditto.
5062         * libc/*/configure: Ditto.
5063         * libc/libc.texinfo: Ditto.
5064         * libm/*/aclocal.m4: Ditto.
5065         * libm/*/configure: Ditto.
5066         * libm/libm.texinfo: Ditto.
5067         * libc/sys/linux/shared.ld: Add VERS_1.11.
5068
5069 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5070
5071         * libc/machine/i386/f_atan2.S: Change copyright from Cygnus
5072         Solutions to Red Hat Inc.
5073         * libc/machine/i386/f_atan2f.S: Ditto.
5074         * libc/machine/i386/f_exp.c: Ditto.
5075         * libc/machine/i386/f_expf.c: Ditto.
5076         * libc/machine/i386/f_frexp.S: Ditto.
5077         * libc/machine/i386/f_frexpf.S: Ditto.
5078         * libc/machine/i386/f_ldexp.S: Ditto.
5079         * libc/machine/i386/f_ldexpf.S: Ditto.
5080         * libc/machine/i386/f_log.S: Ditto.
5081         * libc/machine/i386/f_log10.S: Ditto.
5082         * libc/machine/i386/f_log10f.S: Ditto.
5083         * libc/machine/i386/f_logf.S: Ditto.
5084         * libc/machine/i386/f_pow.c: Ditto.
5085         * libc/machine/i386/f_powf.c: Ditto.
5086         * libc/machine/i386/f_tan.S: Ditto.
5087         * libc/machine/i386/f_tanf.S: Ditto.
5088         * libc/machine/i386/memchr.S: Ditto.
5089         * libc/machine/i386/memcmp.S: Ditto.
5090         * libc/machine/i386/memcpy.S: Ditto.
5091         * libc/machine/i386/memmove.S: Ditto.
5092         * libc/machine/i386/memset.S: Ditto.
5093         * libc/machine/i386/strchr.S: Ditto.
5094         * libc/machine/i386/strlen.S: Ditto.
5095         * libm/machine/i386/f_atan2.S: Ditto.
5096         * libm/machine/i386/f_atan2f.S: Ditto.
5097         * libm/machine/i386/f_exp.c: Ditto.
5098         * libm/machine/i386/f_expf.c: Ditto.
5099         * libm/machine/i386/f_frexp.S: Ditto.
5100         * libm/machine/i386/f_frexpf.S: Ditto.
5101         * libm/machine/i386/f_ldexp.S: Ditto.
5102         * libm/machine/i386/f_ldexpf.S: Ditto.
5103         * libm/machine/i386/f_log.S: Ditto.
5104         * libm/machine/i386/f_log10.S: Ditto.
5105         * libm/machine/i386/f_log10f.S: Ditto.
5106         * libm/machine/i386/f_logf.S: Ditto.
5107         * libm/machine/i386/f_pow.c: Ditto.
5108         * libm/machine/i386/f_powf.c: Ditto.
5109         * libm/machine/i386/f_tan.S: Ditto.
5110         * libm/machine/i386/f_tanf.S: Ditto.
5111
5112 2002-12-20  Jeff Johnston  <jjohnstn@redhat.com>
5113
5114         * libc/stdlib/environ.c: Update license to Red Hat.
5115         * libc/machine/hppa/setjmp.S: Ditto.
5116         * libm/test/Makefile.in: Ditto.
5117
5118 2002-12-19  Jeff Johnston  <jjohnstn@redhat.com>
5119
5120         * configure.host: Remove references to go32.
5121         * libc/sys/go32/*: Removed.
5122
5123 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
5124
5125         * libc/include/sys/config.h: Change setting of INT_MAX
5126         and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
5127         __H8300S__.  Also consolidate flag settings for these
5128         platforms.
5129
5130 2002-12-10  Joel Sherrill  <joel@OARcorp.com>
5131
5132         * libc/include/machine/setjmp.h: Make sure _JBLEN is defined
5133         for i386-rtems targets.
5134
5135 2002-12-06  Jeff Johnston  <jjohnstn@redhat.com>
5136
5137         * libc/include/stdlib.h (strtof): New prototype (from C99).
5138         (strtodf): Changed from prototype to macro which redefines
5139         to strtof.
5140         * libc/stdlib/atof.c: Change documentation to refer to strtof
5141         instead of strtodf.
5142         * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
5143         strtodf.
5144         * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
5145         (strtof): New function.
5146         * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
5147         calls strtof.
5148
5149 2002-11-27  Christopher Faylor  <cgf@redhat.com>
5150
5151         * libc/string/memset.c (memset): Fix comment.
5152
5153 2002-11-26  Christopher Faylor  <cgf@redhat.com>
5154
5155         * libc/string/memset.c (memset): Move initialization of 'd' earlier in
5156         function.
5157
5158 2002-11-25  Christopher Faylor  <cgf@redhat.com>
5159
5160         * libc/string/memset.c (memset): Minor optimization: Use new 'd'
5161         variable, introduced below, everywhere.
5162
5163 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
5164
5165         * libc/string/memset.c (memset): Make it safe even if
5166         sizeof (int) = 2.
5167
5168 2002-11-22  Joe Buehler  <jbuehler@hekimian.com>
5169
5170         * configure.in: Change check for libc/include in ${CC} to
5171         use an intermediate value so as to work with different shells.
5172         * configure: Regenerated.
5173         * Makefile.in: Ditto.
5174
5175 2002-11-22  Vijay L. Khuspe  <vijayk1@kpit.com>
5176
5177         * libc/sys/h8300hms/read.c: Add support for normal mode
5178         architecture.
5179
5180 2002-11-20  Ryo Tsuruta  <ryo@kitanet.ne.jp>
5181
5182         * libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
5183         code for __H8300H__ and __H8300S__.  Also return 32-bit return code
5184         when -mint32 is used.
5185
5186 2002-11-18  Nick Clifton  <nickc@redhat.com>
5187
5188         * libc/sys/arm/crt0.S: Add NULL to end of argv array.
5189
5190 2002-11-14  Jeff Johnston  <jjohnstn@redhat.com>
5191
5192         * testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
5193         only issue one pass/fail message for a compile/link/execute.
5194         * testsuite/newlib.elix/elix.exp: New file.
5195         * testsuite/newlib.elix/tmmap.c: Ditto.
5196
5197 2002-11-06  Christopher Faylor  <cgf@redhat.com>
5198
5199         * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
5200         * libc/stdlib/mlock.c: Ditto.
5201         * libc/stdlib/msize.c: Ditto.
5202         * libc/stdlib/msize.c: Ditto.
5203         * libc/stdlib/mtrim.c: Ditto.
5204         * libc/stdlib/valloc.c: Ditto.
5205
5206 2002-11-12  Jeff Johnston  <jjohnstn@redhat.com>
5207
5208         * libc/stdlib/ldtoa.c (e64toe): When checking the exponent
5209         for inf/nan, make sure that the check ignores the sign bit.
5210
5211 2002-11-07  Joel Sherrill <joel@OARcorp.com>
5212
5213         * libc/sys/rtems/machine: New directory.
5214         * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
5215         libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
5216         libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
5217         targets more BSD like when installed without requiring files to
5218         be overwritten at install point when RTEMS itself is installed.
5219         * Makefile.am: Pick up system dependent machine .h files such as
5220         might be found on a BSD-ish system.
5221         * Makefile.in: Regenerate.
5222         * libc/include/machine/types.h: When on an RTEMS target, define a
5223         few BSD flavor types. 
5224
5225 2002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>
5226
5227         * include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.
5228
5229 2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5230
5231         * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
5232         * libc/include/wctype.h: Ditto.
5233
5234 2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
5235
5236         * libc/include/wchar.h: Add extern "C" specifier if C++.
5237         * libc/include/wctype.h: Ditto.
5238
5239 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5240
5241         * testsuite/newlib.wctype/tiswctype.c: New test case.
5242         * testsuite/newlib.wctype/twctrans.c: Ditto.
5243
5244 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5245
5246         * libc/sys/linux/machine/i386/include/endian.h: New file.
5247         * libc/sys/linux/machine/i386/include/param.h: Ditto.
5248
5249 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5250
5251         * libm/machine/i386/aclocal.m4: Regenerated.
5252         * libm/machine/i386/configure: Ditto.
5253
5254 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
5255
5256         * testsuite/include/check.h: New header file to use with
5257         test cases.
5258         * testsuite/lib/newlib.exp: Add testsuite/include directory
5259         to list of header files to use.
5260         * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
5261         * testsuite/newlib.wctype/wctype.exp: New file.
5262
5263 2002-10-11  Graham Stott  <graham.stott@btinternet.com>
5264             Richard Sandiford  <rsandifo@redhat.com>
5265
5266         * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
5267         * libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
5268         doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
5269
5270 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5271
5272         * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
5273         dummy programs.
5274
5275 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5276
5277         * libc/include/pthread.h: Define PTHREAD_CANCELED.
5278
5279 2002-10-07      Joel Sherrill <joel@OARcorp.com>
5280
5281         * libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
5282         libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
5283         compile with current GNU tools.
5284
5285 2002-10-07  Jeff Johnston  <jjohnstn@redhat.com>
5286
5287         * Makefile.am: Add EXTRA_DIRS to allow future dependencies on
5288         the build library.
5289         * configure.in: Ditto.
5290         * Makefile.in: Regenerated.
5291         * configure: Ditto.
5292         * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
5293         for specifying configured libraries/directories.
5294         * libc/sys/linux/configure.in: Ditto.
5295         * libc/sys/linux/Makefile.in: Regenerated.
5296         * libc/sys/linux/configure: Ditto.
5297
5298 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
5299
5300         * libc/include/reent.h: Update documentation at start of file.
5301
5302 2002-09-27  Jim Wilson  <wilson@redhat.com>
5303
5304         * libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
5305         the ctbp register.
5306
5307 2002-09-27  Jeff Johnston  <jjohnstn@redhat.com>
5308
5309         * libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
5310         Also convert to EUCJP before using arrays.  For values not in
5311         the conversion arrays, return WEOF.
5312         * libc/ctype/jp2uc.h: Change from one array to a number of
5313         arrays to account for the fact that the originating table
5314         is not contiguous for the input values since some are invalid.
5315
5316 2002-09-24  Jeff Johnston  <jjohnstn@redhat.com>
5317
5318         * libc/time/ctime.c: Fix prototype documentation.
5319
5320 2002-09-24  Corinna Vinschen  <corinna@vinschen.de>
5321
5322         * libc/include/sys/errno.h: Add EOVERFLOW.
5323
5324 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5325
5326         * libc/include/wctype.h: New file.
5327
5328 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5329
5330         * libc/ctype/Makefile.am: Add new files.
5331         * libc/ctype/Makefile.in: Regenerated.
5332         * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
5333         and wctrans functions to documentation index.
5334         * libc/ctype/iswalnum.c: New file.
5335         * libc/ctype/iswalpha.c: Ditto.
5336         * libc/ctype/iswblank.c: Ditto.
5337         * libc/ctype/iswcntrl.c: Ditto.
5338         * libc/ctype/iswctype.c: Ditto.
5339         * libc/ctype/iswdigit.c: Ditto.
5340         * libc/ctype/iswgraph.c: Ditto.
5341         * libc/ctype/iswlower.c: Ditto.
5342         * libc/ctype/iswprint.c: Ditto.
5343         * libc/ctype/iswpunct.c: Ditto.
5344         * libc/ctype/iswspace.c: Ditto.
5345         * libc/ctype/iswupper.c: Ditto.
5346         * libc/ctype/iswxdigit.c: Ditto.
5347         * libc/ctype/jp2uc.c: Ditto.
5348         * libc/ctype/jp2uc.h: Ditto.
5349         * libc/ctype/local.h: Ditto.
5350         * libc/ctype/towctrans.c: Ditto.
5351         * libc/ctype/towlower.c: Ditto.
5352         * libc/ctype/towupper.c: Ditto.
5353         * libc/ctype/utf8alpha.h: Ditto.
5354         * libc/ctype/utf8print.h: Ditto.
5355         * libc/ctype/utf8punct.h: Ditto.
5356         * libc/ctype/wctrans.c: Ditto.
5357         * libc/ctype/wctype.c: Ditto.
5358         * libc/locale/locale.c (__lc_ctype): New external array to
5359         replace static lc_ctype array.
5360         * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
5361         rather than reentrancy structure's _current_locale field.
5362         * libc/stdlib/wctomb_r.c: Ditto.
5363
5364 2002-09-20  Jeff Johnston  <jjohnstn@redhat.com>
5365
5366         * configure.host: Minor comment and formatting changes.
5367         * libc/Makefile.am: Add libc_la_DEPENDENCIES.
5368         * libc/Makefile.in: Regenerated.
5369         * libc/include/sys/config.h: Minor format change.
5370
5371 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5372
5373         * libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
5374         statement comment.
5375
5376 2002-09-19  Jeff Johnston  <jjohnstn@redhat.com>
5377
5378         * libc/posix/opendir.c (opendir): Change code to check
5379         for HAVE_FCNTL before calling fcntl.
5380         * libc/search/hash.c (hash_open): Ditto.
5381         * libc/search/hash_page.c (open_tmp): Ditto.
5382         * libc/reent/Makefile.am: Add fcntlr.c.
5383         * libc/reent/Makefile.in: Regenerated.
5384         * libc/reent/fcntlr.c: New file.
5385         * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
5386         instead of _fcntl when HAVE_FCNTL flag is set.
5387         * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
5388         to see if _fcntl or _fcntl_r should be called.  If flag is not
5389         set, default to ENOSYS stub.
5390
5391 2002-09-16  Jeff Johnston  <jjohnstn@redhat.com>
5392
5393         * libc/include/wchar.h (mbstate_t): Change protective flag to
5394         be _MBSTATE_T.
5395         * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
5396         [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
5397         for Cygwin.
5398         * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
5399
5400 2002-09-11  Jeff Johnston  <jjohnstn@redhat.com>
5401
5402         * acinclude.m4 (enable-newlib-mb): Change check to
5403         default newlib_mb variable to empty string rather than "no".
5404         * configure.host: Remove hard-coding of -DMB_CAPABLE for
5405         x86-linux and Cygwin.  Add code to check for newlib_mb
5406         being unset in which case set to "yes" for x86-linux and
5407         Cygwin.  Change check for newlib_mb being "yes" to allow
5408         for an empty string.
5409         * configure.in (_MB_LEN_MAX): New AC_DEFINE.
5410         * newlib.hin (_MB_LEN_MAX): New define to configure.
5411         * aclocal.m4: Regenerated.
5412         * configure: Ditto.
5413         * libc/include/limits.h: New file.
5414         * libc/sys/linux/include/limits.h: Ditto.
5415         * doc/aclocal.m4 doc/configure libc/aclocal.m4
5416           libc/configure libc/machine/aclocal.m4
5417           libc/machine/configure libc/machine/a29k/aclocal.m4
5418           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
5419           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
5420           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
5421           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
5422           libc/machine/fr30/configure libc/machine/frv/aclocal.m4
5423           libc/machine/frv/configure libc/machine/h8300/aclocal.m4
5424           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
5425           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
5426           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
5427           libc/machine/i386/configure libc/machine/i960/aclocal.m4
5428           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
5429           libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
5430           libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
5431           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
5432           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
5433           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
5434           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
5435           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
5436           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
5437           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
5438           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
5439           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
5440           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
5441           libc/machine/v850/configure libc/machine/w65/aclocal.m4
5442           libc/machine/w65/configure libc/machine/xscale/aclocal.m4
5443           libc/machine/xscale/configure
5444           libc/machine/xstormy16/aclocal.m4
5445           libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
5446           libc/machine/z8k/configure libc/sys/aclocal.m4
5447           libc/sys/configure libc/sys/a29khif/aclocal.m4
5448           libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
5449           libc/sys/arc/configure libc/sys/arm/aclocal.m4
5450           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
5451           libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
5452           libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
5453           libc/sys/decstation/configure libc/sys/go32/aclocal.m4
5454           libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
5455           libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
5456           libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
5457           libc/sys/idt/configure libc/sys/linux/aclocal.m4
5458           libc/sys/linux/configure
5459           libc/sys/linux/machine/aclocal.m4
5460           libc/sys/linux/machine/configure
5461           libc/sys/linux/machine/i386/aclocal.m4
5462           libc/sys/linux/machine/i386/configure
5463           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
5464           libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
5465           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
5466           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
5467           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
5468           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
5469           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
5470           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
5471           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
5472           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
5473           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
5474           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
5475           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
5476           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
5477           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
5478           libm/aclocal.m4 libm/configure: Regenerated.
5479
5480 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5481
5482         * libc/sys/linux/machine/i386/crt0.c (_start): Remove
5483         code that clears the .bss section.
5484
5485 2002-09-09  Jeff Johnston  <jjohnstn@redhat.com>
5486
5487         * libc/include/sys/_types.h (_mbstate_t): Changed to use
5488         unsigned char internally.
5489         * libc/sys/linux/sys/_types.h: Ditto.
5490         * libc/include/sys/reent.h
5491         * libc/stdlib/mblen.c (mblen): Use function-specific state
5492         value from default reentrancy structure.
5493         * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
5494         _mbtowc_r is less than 0, reset state __count value and
5495         return -1.
5496         * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
5497         is NULL, use the function-specific pointer provided in the
5498         default reentrancy structure.
5499         * libc/stdlib/mbrtowc.c: Add reentrant form of function.
5500         If input state pointer is NULL, use function-specific area
5501         provided in reentrancy structure.
5502         * libc/stdlib/mbsrtowcs.c: Ditto.
5503         * libc/stdlib/wcrtomb.c: Ditto.
5504         * libc/stdlib/wcsrtombs.c: Ditto.
5505         * libc/stdlib/mbstowcs.c: Reformat.
5506         * libc/stdlib/wcstombs.c: Ditto.
5507         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
5508         reset the state's __count value and return -1.
5509         * libc/stdlib/mbtowc.c: Ditto.
5510         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
5511         If number of bytes is used up before completing a valid multibyte
5512         character, return -2 and save the state.
5513         * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
5514         and change some __count references to __state for clarity.
5515
5516 2002-09-06  Jeff Johnston  <jjohnstn@redhat.com>
5517
5518         * libc/include/sys/config.h (MB_LEN_MAX): Removed as this
5519         is defined by <limits.h>.
5520
5521 2002-09-05  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5522
5523         * libc/include/wchar.h (WCHAR_MAX): Only define if not already
5524         defined.
5525
5526 2002-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5527
5528         * libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
5529         * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
5530         __WCHAR_MAX__ or 0x7fffffffu.
5531         * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
5532         * libc/string/wcsncmp.c: Ditto.
5533
5534 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5535
5536         * libc/string/wcschr.c: Add include of <stddef.h>.
5537         * libc/string/wcspbrk.c: Ditto.
5538         * libc/string/wcsrchr.c: Ditto.
5539         * libc/string/wcsstr.c: Ditto.
5540
5541 2002-09-03  Jeff Johnston  <jjohnstn@redhat.com>
5542
5543         * libc/include/sys/_types.h (_flock_t): Added.
5544         * libc/include/sys/lock.h (__lock_try_acquire): New interface.
5545         (__lock_try_acquire_recursive): Ditto.
5546         * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
5547         _lock field.
5548         * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
5549         field.
5550         * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
5551         * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
5552         * libc/sys/linux/include/time.h (struct timespec): Moved from
5553         <sys/types.h> and added check for __need_timespec flag so type
5554         can be defined by itself.
5555         * libc/sys/linux/sys/_types.h (_flock_t): New type.
5556         * libc/sys/linux/sys/types.h (struct timespec): Moved to
5557         <time.h>.
5558
5559 2002-08-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
5560
5561         * libc/sys/linux/argp: New directory.
5562         * libc/sys/linux/getopt.c: New file.
5563         * libc/sys/linux/getopt1.c: New file.
5564         * libc/sys/linux/getoptlong.c: Remove file.
5565         * libc/sys/linux/include/argp.h: New file.
5566         * libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
5567         based on ELIX level.
5568         (SUBDIRS): Add argp_dir.
5569         (SUBLIBS): Add ARGP_LIB.
5570         (ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
5571         getopt_long.$(oext).
5572         * libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
5573
5574 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5575
5576         * libc/libc.texinfo: Add node reference to wide-character strings.
5577         * libc/string/wcstrings.tex: New file.
5578         * libc/string/strtok_r.c: Remove outdated advertising clause.
5579         * libc/string/Makefile.am (doc): Add wide-character string
5580         chapter to documentation.
5581         * libc/string/Makefile.in: Regenerated.
5582
5583 2002-08-29  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
5584
5585         * libc/include/wchar.h: Define NULL. Define WEOF more general
5586         way. Declare functions in newlib manner.
5587         * libc/stdlib/Makefile.am: Delete wmem*.c
5588         * libc/stdlib/Makefile.in: Regenerated.
5589         * libc/stdlib/wmemchr.c: Delete.
5590         * libc/stdlib/wmemcmp.c: Ditto.
5591         * libc/stdlib/wmemcpy.c: Ditto.
5592         * libc/stdlib/wmemmove.c: Ditto.
5593         * libc/stdlib/wmemset.c: Ditto.
5594         * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
5595         * libc/string/Makefile.in: Regenerated.
5596         * libc/string/wcscat.c: New file derived from the NetBSD C Library.
5597         * libc/string/wcschr.c: Ditto.
5598         * libc/string/wcscmp.c: Ditto.
5599         * libc/string/wcscpy.c: Ditto.
5600         * libc/string/wcscspn.c: Ditto.
5601         * libc/string/wcslcat.c: Ditto.
5602         * libc/string/wcslcpy.c: Ditto.
5603         * libc/string/wcslen.c: Ditto.
5604         * libc/string/wcsncat.c: Ditto.
5605         * libc/string/wcsncmp.c: Ditto.
5606         * libc/string/wcsncpy.c: Ditto.
5607         * libc/string/wcspbrk.c: Ditto.
5608         * libc/string/wcsrchr.c: Ditto.
5609         * libc/string/wcsspn.c: Ditto.
5610         * libc/string/wcsstr.c: Ditto.
5611         * libc/string/wmemchr.c: Ditto.
5612         * libc/string/wmemcmp.c: Ditto.
5613         * libc/string/wmemcpy.c: Ditto.
5614         * libc/string/wmemmove.c: Ditto.
5615         * libc/string/wmemset.c: Ditto.
5616
5617 2002-08-29  Jeff Johnston  <jjohnstn@redhat.com>
5618
5619         * libc/locale/locale.c (_setlocale_r)[MB_CAPABLE]: Fix so
5620         default locale "" is accepted for LC_CTYPE or LC_MESSAGES
5621         and is treated as if "C" was specified.
5622
5623 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5624
5625         * Makefile.am (install-data-local): Move install of build
5626         newlib.h after installing headers in libc/include so as to
5627         overwrite default newlib.h.
5628         * Makefile.in: Regenerated.
5629
5630 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5631
5632         * libc/include/newlib.h: New file for tools that use newlib
5633         headers but don't build newlib first (e.g. gcc).
5634
5635 2002-08-28  Jeff Johnston  <jjohnstn@redhat.com>
5636
5637         * libc/stdlib/wmemchr.c: Explicitly include <_ansi.h>.
5638         * libc/stdlib/wmemcmp.c: Ditto.
5639         * libc/stdlib/wmemcpy.c: Ditto.
5640         * libc/stdlib/wmemmove.c: Ditto.
5641         * libc/stdlib/wmemset.c: Ditto.
5642
5643 2002-08-27  Egor Duda  <deo@logos-m.ru>
5644
5645         * libc/stdlib/wmemchr.c: New file.
5646         * libc/stdlib/wmemcmp.c: Ditto.
5647         * libc/stdlib/wmemcpy.c: Ditto.
5648         * libc/stdlib/wmemmove.c: Ditto.
5649         * libc/stdlib/wmemset.c: Ditto.
5650         * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add new files.
5651         * configure.host: Default -DMB_CAPABLE for cygwin.
5652         * libc/include/wchar.h: Declare wmemchr(), wmemcmp(), wmemcpy(),
5653         wmemmove() and wmemset().  Add include of <_ansi.h>.
5654         * libc/stdlib/Makefile.in: Regenerate.
5655
5656 2002-08-27  Jeff Johnston  <jjohnstn@redhat.com>
5657
5658         * configure.host: Remove _ELIX_LEVEL flag setting.
5659         * Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
5660         (install-data-local): Install newlib.h.
5661         * Makefile.in: Regenerated.
5662         * aclocal.m4: Ditto.
5663         * configure: Ditto.
5664         * configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on 
5665         newlib.hin.  Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
5666         and _NEWLIB_VERSION to fill in newlib.h header file entries.
5667         In AC_OUTPUT statement, unset ac_file so multilib support does
5668         not use last ac_file temporary used in newlib.h configuration.
5669         * libc/include/_ansi.h: Include <newlib.h>.
5670         * newlib.hin: New template file for newlib.h.
5671         * stamp-h.in: New file.
5672
5673 2002-08-26  Wu Yongwei <adah@netstd.com>
5674
5675         * time.h (timezonevar): Change "#if" to "#ifdef".
5676
5677 2002-08-26  Jeff Johnston  <jjohnstn@redhat.com>
5678
5679         * Makefile.am(LIBC_OBJECTLISTS): Add STDIO64_OBJECTLIST.
5680         * Makefile.in: Regenerated.
5681         * acinclude.m4: Add support for --enable-newlib-elix-level option.
5682         * aclocal.m4: Regenerated.
5683         * configure: Ditto.
5684         * configure.host: Add code to define _ELIX_LEVEL if
5685         --enable-newlib-elix-level option is used.
5686         * configure.in: 
5687         * libc/aclocal.m4: Regenerated.
5688         * libc/configure: Ditto.
5689         * libc/argz/Makefile.am: Add EL/IX level checking.
5690         * libc/argz/Makefile.in: Regenerated.
5691         * libc/argz/dummy.c: New file.
5692         * libc/ctype/Makefile.am: Add EL/IX level checking.
5693         * libc/ctype/Makefile.in: Regenerated.
5694         * libc/locale/Makefile.am: Add EL/IX level checking.
5695         * libc/locale/Makefile.in: Regenerated.
5696         * libc/posix/Makefile.am: Add EL/IX level checking.
5697         * libc/posix/Makefile.in: Regenerated.
5698         * libc/posix/telldir.c: Add EL/IX level checking.
5699         * libc/reent/Makefile.am: Ditto.
5700         * libc/reent/fstat64r.c: Ditto.
5701         * libc/reent/lseek64r.c: Ditto.
5702         * libc/reent/open64r.c: Ditto.
5703         * libc/reent/Makefile.in: Regenerated.
5704         * libc/search/Makefile.am: Add EL/IX level checking.
5705         * libc/search/Makefile.in: Regenerated.
5706         * libc/stdio/Makefile.am: Add EL/IX level checking.
5707         * libc/stdio/Makefile.in: Regenerated.
5708         * libc/stdio64/Makefile.am: Add EL/IX level checking.
5709         * libc/stdio64/Makefile.in: Regenerated.
5710         * libc/stdio64/dummy.c: New file.
5711         * libc/stdio64/fgetpos64.c: Fix so _LARGE64_FILES macro is checked
5712         after first include.
5713         * libc/stdio64/fopen64.c: Ditto.
5714         * libc/stdio64/freopen64.c: Ditto.
5715         * libc/stdio64/fseeko64.c: Ditto.
5716         * libc/stdio64/fsetpos64.c: Ditto.
5717         * libc/stdio64/ftello64.c: Ditto.
5718         * libc/stdio64/tmpfile64.c: Ditto.
5719         * libc/stdlib/Makefile.am: Add EL/IX level checking.
5720         * libc/stdlib/Makefile.in: Regenerated.
5721         * libc/stdlib/mstats.c: Add EL/IX level checking.
5722         * libc/string/Makefile.am: Ditto.
5723         * libc/string/Makefile.in: Regenerated.
5724         * libc/sys/linux/Makefile.am: Add EL/IX level checking.
5725         * libc/sys/linux/Makefile.in: Regenerated.
5726         * libc/sys/linux/aclocal.m4: Ditto.
5727         * libc/sys/linux/configure: Ditto.
5728         * libc/sys/linux/aio.c: Add EL/IX level checking.
5729         * libc/sys/linux/ftok.c: Ditto.
5730         * libc/sys/linux/getdate.c: Ditto.
5731         * libc/sys/linux/ids.c: Ditto.
5732         * libc/sys/linux/inode.c: Ditto.
5733         * libc/sys/linux/io.c: Ditto.
5734         * libc/sys/linux/process.c: Ditto.
5735         * libc/sys/linux/resource.c: Ditto.
5736         * libc/sys/linux/sched.c: Ditto.
5737         * libc/sys/linux/sig.c: Ditto.
5738         * libc/sys/linux/termios.c: Ditto.
5739         * libc/sys/linux/wait.c: Ditto plus add __waitpid and
5740         __libc___waitpid weak aliases.
5741         * libc/sys/linux/machine/i386/syscall.h: Add new _base macros
5742         that generate the code for a syscall, but do not create a
5743         weak alias.
5744         * libc/syscalls/Makefile.am: Add EL/IX level checking.
5745         * libc/syscalls/Makefile.in: Regenerated.
5746         * libc/time/tzset_r.c: Change to replace strdup with equivalent
5747         functionality.
5748         * libc/unix/Makefile.am: Add EL/IX level checking.
5749         * libc/unix/Makefile.in: Regenerated.
5750
5751 2002-08-26  Christopher Faylor  <cgf@redhat.com>
5752
5753         * libc/include/malloc.h: On cygwin, define malloc _r functions as
5754         wrapper macros to standard malloc functions.
5755         * libc/include/stdlib.h: Ditto.
5756         * configure.host: Always define MALLOC_PROVIDED on cygwin.
5757
5758 2002-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
5759
5760         * libc/include/langinfo.h: New file.
5761         * libc/include/wchar.h: Likewise.
5762         * libc/include/sys/syslimits.h: Likewise.
5763         * libc/locale/fix_grouping.c: Likewise.
5764         * libc/locale/ldpart.c: Likewise.
5765         * libc/locale/ldpart.h: Likewise.
5766         * libc/locale/lmessages.c: Likewise.
5767         * libc/locale/lmessages.h: Likewise.
5768         * libc/locale/lmonetary.c: Likewise.
5769         * libc/locale/lmonetary.h: Likewise.
5770         * libc/locale/lnumeric.c: Likewise.
5771         * libc/locale/lnumeric.h: Likewise.
5772         * libc/locale/nl_langinfo.3: Likewise.
5773         * libc/locale/nl_langinfo.c: Likewise.
5774         * libc/locale/timelocal.c: Likewise.
5775         * libc/locale/timelocal.h: Likewise.
5776         * libc/stdlib/btowc.c: Likewise.
5777         * libc/stdlib/mbrlen.c: Likewise.
5778         * libc/stdlib/mbrtowc.c: Likewise.
5779         * libc/stdlib/mbsinit.c: Likewise.
5780         * libc/stdlib/mbsrtowcs.c: Likewise.
5781         * libc/stdlib/wcrtomb.c: Likewise.
5782         * libc/stdlib/wcsrtombs.c: Likewise.
5783         * libc/stdlib/wctob.c: Likewise.
5784         * libc/sys/linux/prof-freq.c: Likewise.
5785         * libc/sys/linux/profile.c: Likewise.
5786         * libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
5787         * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
5788         * libc/include/stdlib.h: Change re-entrant functions to take
5789         mbstate_t pointers.
5790         * libc/include/sys/_types.h: Define _mbstate_t.
5791         * libc/include/sys/config.h (MB_LEN_MAX): New macro.
5792         * libc/include/sys/errno.h (EILSEQ): New error code.
5793         * libc/include/sys/reent.h: Include wchar.h.  Change reentrant
5794         structure to use mbstate_t.
5795         * libc/locale/Makefile.am (LIB_SOURCES): Add new files.
5796         * libc/machine/powerpc/vfprintf.c: Use mbstate_t.
5797         * libc/machine/powerpc/vfscanf.c: Likewise.
5798         * libc/stdio/getdelim.c: Reallocate buffer only when necessary.
5799         * libc/stdio/vfprintf.c: Likewise.
5800         * libc/stdio/vfscanf.c: Likewise.
5801         * libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
5802         * libc/stdlib/mblen.c: Use mbstate_t.
5803         * libc/stdlib/mblen_r.c: Likewise.
5804         * libc/stdlib/mbstowcs.c: Likewise.
5805         * libc/stdlib/mbstowcs_r.c: Likewise.
5806         * libc/stdlib/mbtowc.c: Likewise.
5807         * libc/stdlib/mbtowc_r.c: Likewise.
5808         * libc/stdlib/wcstombs.c: Likewise.
5809         * libc/stdlib/wcstombs_r.c: Likewise.
5810         * libc/stdlib/wctomb_r.c: Likewise.
5811         * libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
5812         profile.c.
5813         * libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
5814         dl-procinfo.c.
5815         * libc/sys/linux/sys/errno.h (EILSEQ): New error code.
5816         * libc/sys/linux/sys/types.h (off_t): Define type.
5817         * testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
5818         to C-UTF-8.
5819         * testsuite/newlib.locale/UTF-8.exp: Likewise.
5820
5821 2002-08-20  Casper S. Hornstrup  <chorns@users.sourceforge.net>
5822
5823         * libc/stdlib/mallocr.c: #include windows.h on Win32.
5824           (AlignPage): Continue macro on next line.
5825
5826 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5827
5828         * libc/sys/linux/include/pthread.h: New file.
5829
5830 2002-08-19  Jeff Johnston  <jjohnstn@redhat.com>
5831
5832         * libc/include/sys/types.h: Support __need_inttypes macro
5833         that only sets the __intxx and __uintxx types.  
5834         * libc/machine/powerpc/Makefile.am: Add stdlib to include directories
5835         to get mprec.h.
5836         * libc/machine/powerpc/Makefile.in: Regenerated.
5837         * libc/machine/powerpc/vfprintf.c: Fix state variable type.
5838         * libc/machine/powerpc/vfscanf.c: Fix state variable type.  Remove
5839         redundant fixed-point conversion prototypes.
5840         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
5841         after setting __need_inttypes.
5842
5843 2002-08-18  Christopher Faylor  <cgf@redhat.com>
5844
5845         * libc/include/sys/unistd.h: Add getsid declaration for cygwin.
5846
5847 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5848
5849         * libc/include/sys/config.h[__PPC__][__SPE__]: Set
5850         _LONG_DOUBLE to double.
5851
5852 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5853
5854         * configure.host: Add powerpc*-*-eabispe* configuration.
5855         * libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
5856         * libc/machine/powerpc/atosfix32.c: Ditto.
5857         * libc/machine/powerpc/atosfix64.c: Ditto.
5858         * libc/machine/powerpc/atoufix16.c: Ditto.
5859         * libc/machine/powerpc/atoufix32.c: Ditto.
5860         * libc/machine/powerpc/atoufix64.c: Ditto.
5861         * libc/machine/powerpc/fix64.h: Ditto.
5862         * libc/machine/powerpc/simdldtoa.c: Ditto.
5863         * libc/machine/powerpc/strtosfix16.c: Ditto.
5864         * libc/machine/powerpc/strtosfix32.c: Ditto.
5865         * libc/machine/powerpc/strtosfix64.c: Ditto.
5866         * libc/machine/powerpc/strtoufix16.c: Ditto.
5867         * libc/machine/powerpc/strtoufix32.c: Ditto.
5868         * libc/machine/powerpc/strtoufix64.c: Ditto.
5869         * libc/machine/powerpc/ufix64toa.c: Ditto.
5870         * libc/machine/powerpc/configure.in: Add check for
5871         powerpc*-eabispe and add fixed-point conversion functions.
5872         * libc/machine/powerpc/configure: Regenerated.
5873         * libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
5874         %r and %R format specifiers which handle fixed-point data.
5875         * libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
5876         * libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
5877         function prototypes.
5878
5879 2002-08-17  Jeff Johnston  <jjohnstn@redhat.com>
5880
5881         *  Makefile.am: Move cmath stuff into libc/sys/linux.
5882         *  Makefile.in: Regenerated.
5883         *  configure.host: Default -DMB_CAPABLE for x86-linux.
5884         *  libc/include/reent.h: Define _sbrk to take signed int argument.
5885         *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
5886         *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and 
5887         make locale name checking more efficient.  Also allow "C-ISO-8859-1" 
5888         locale for LC_CTYPE and LC_MESSAGES.
5889         *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
5890         *  libc/sys/linux/brk.c: Change sbrk prototype.
5891         *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
5892         include <sys/features.h>.
5893         (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
5894         (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
5895         *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
5896         with a few local additions.
5897         *  libc/sys/linux/sys/features.h: New file.
5898         *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
5899         to take signed argument.
5900         *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
5901         prototypes to take signed size argument.
5902
5903 2002-08-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
5904
5905         * libc/sys/linux/cmath: New directory.
5906         * libc/sys/linux/include/cmathcalls.h: New file.
5907         * libc/sys/linux/include/complex.h: New file.
5908         * libc/sys/linux/machine/i386/huge_val.h: New file
5909         * libm/math/w_sincos.c: New file
5910         * libm/math/wf_sincos.c: New file
5911         * libm/mathfp/s_sincos.c: New file
5912         * libm/mathfp/sf_sincos.c: New file
5913         * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
5914         * libc/include/math.h: Add sincos and sincosf declarations.
5915         * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
5916         (SUBLIBS): Likewise.
5917         * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
5918         * libm/math/Makefile.am (src): Add w_sincos.c.
5919         (fsrc): Add wf_sincos.c.
5920         * libm/mathfp/Makefile.am (src): Add s_sincos.c
5921         (fsrc): Add sf_sincos.c.
5922
5923 2002-08-12  Jeff Johnston  <jjohnstn@redhat.com>
5924
5925         * libc/sys/linux/machine/i386/crt0.c (__bss_start,_end):
5926         Declare as extern chars and use the address operator to
5927         properly use values set in linker script.
5928
5929 2002-08-09  Jason Tishler  <jason@tishler.net>
5930
5931         * libc/stdlib/mallocr.c: Include <limits.h>.
5932         (request2size): Change macro to do
5933         unsigned long comparisons and avoid signed overflow.
5934         (mALLOc): Add overflow check for the number of bytes to allocate.
5935         (rEALLOc): Ditto.
5936
5937 2002-08-09  Jeff Johnston  <jjohnstn@redhat.com>
5938
5939         * configure.host: Add check for --enable-newlib-io-pos-args
5940         and define WANT_IO_POS_ARGS flag if enabled.  Define
5941         the flag by default for x86-linux configurations.
5942         * configure.in: Add support for --enable-newlib-io-pos-args.
5943         * libc/configure.in: Ditto.
5944         * configure: Regenerated.
5945         * libc/configure: Ditto.
5946         * libc/stdio/Makefile.am: Specify -fshort-enums for compiling
5947         vfprintf.c and vfiprintf.c.
5948         * libc/stdio/Makefile.in: Regenerated.
5949         * libc/stdio/vfprintf.c: Add positional argument support that
5950         is enabled by compiling with -DWANT_IO_POS_ARGS.
5951
5952 2002-08-07  Richard Sandiford  <rsandifo@redhat.com>
5953
5954         * libc/include/machine/setjmp.h: For mips, define _JBLEN based
5955         based on __mips_soft_float rather than __mips64.
5956         * libc/machine/mips/setjmp.S: Provide hard and soft float versions
5957         of both 32-bit and 64-bit code.
5958
5959 2002-08-04  Christopher Faylor  <cgf@redhat.com>
5960
5961         * libc/stdio/popen.c (popen): Allow "rb", "rt", "wb", and "wt"
5962         arguments for popen to match similar functionality in fopen.
5963
5964 2002-07-29  Pierre Humblet  <pierre.humblet@ieee.org>
5965
5966         * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin.
5967
5968 2002-07-29  Jeff Johnston  <jjohnstn@redhat.com>
5969
5970         * libc/sys/linux/Makefile.am: Add aio64.c. 
5971         * libc/sys/linux/Makefile.in: Regenerated.
5972         * libc/sys/linux/aio.c (aio_init): ENOSYS stub added.
5973         * libc/sys/linux/aio64.c: New file.
5974
5975 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5976
5977         *  libc/include/sys/param.h (MAX, MIN): Added macros.
5978         *  libc/sys/linux/Makefile.am: Add new files.
5979         *  libc/sys/linux/Makefile.in: Regenerated.
5980         *  libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
5981         *  libc/sys/linux/inode.c (fchdir): Added syscall.
5982         *  libc/sys/linux/ftw.c: New file.
5983         *  libc/sys/linux/ftw64.c: Ditto.
5984         *  libc/sys/linux/getwd.c: Ditto.
5985         *  libc/sys/linux/scandir64.c: Ditto.
5986         *  libc/sys/linux/strverscmp.c: Ditto.
5987         *  libc/sys/linux/versionsort.c: Ditto.
5988         *  libc/sys/linux/versionsort64.c: Ditto.
5989
5990 2002-07-26  Jeff Johnston  <jjohnstn@redhat.com>
5991
5992         * libc/string/strings.tex: Fix typo for memccpy.
5993
5994 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
5995
5996         * libc/sys/linux/io64.c (truncate64, ftruncate64): Added.
5997         * libc/sys/linux/sys/types.h (off64_t): Definition added.
5998
5999 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6000
6001         * libc/sys/linux/Makefile.am: Add fclean.c.
6002         * libc/sys/linux/Makefile.in: Regenerated.
6003         * libc/sys/linux/fclean.c: New file.
6004
6005 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6006
6007         * libc/sys/linux/Makefile.am: Add confstr.c.
6008         * libc/sys/linux/Makefile.in: Regenerated.
6009         * libc/sys/linux/confstr.c: New file.
6010         * libc/sys/linux/confstr.h: Ditto.
6011         * libc/sys/linux/sys/unistd.h: Include <features.h> and
6012         <bits/environments.h>.
6013
6014 2002-07-25  Jeff Johnston  <jjohnstn@redhat.com>
6015
6016         * libc/sys/linux/config.h (__set_errno): Macro definition removed.
6017         * libc/sys/linux/fpathconf.c (__set_errno): Ditto.
6018         * libc/sys/linux/libc-internal.h (__set_errno): Ditto.
6019         * libc/sys/linux/pathconf.c (__set_errno): Ditto.
6020         * libc/sys/linux/ttyname_r.c (__set_errno): Ditto.
6021         * libc/sys/linux/sys/errno.h (__set_errno): Macro definition added.
6022
6023 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
6024
6025         * libc/sys/linux/Makefile.am: Add new files.
6026         * libc/sys/linux/Makefile.in: Regenerated.
6027         * libc/sys/linux/fstab.c: New file.
6028         * libc/sys/linux/fstatvfs.c: Ditto.
6029         * libc/sys/linux/fstatvfs64.c: Ditto.
6030         * libc/sys/linux/internal_statvfs.c: Ditto.
6031         * libc/sys/linux/mntent.c: Ditto.
6032         * libc/sys/linux/mntent_r.c: Ditto.
6033         * libc/sys/linux/statvfs.c: Ditto.
6034         * libc/sys/linux/statvfs64.c: Ditto.
6035         * libc/sys/linux/include/paths.h: Ditto.
6036         * libc/sys/linux/inode.c (statfs, fstatfs): New syscalls
6037         with double-underscore weak-aliases.
6038         * libc/sys/linux/sys/stat.h: Add *stat64 prototypes.
6039
6040 2002-07-24  Jeff Johnston  <jjohnstn@redhat.com>
6041
6042         * libc/include/signal.h (SIG_IGN, SIG_DFL, SIG_ERR): Change
6043         to use _sig_func_ptr type casted constants.
6044         (_sig_func_ptr): Typedef moved to sys/signal.h.
6045         * libc/include/sys/signal.h (_sig_func_ptr): Typedef added.
6046         For __rtems, use POSIX definition, otherwise default to ANSI.
6047         * libc/sys/linux/sys/signal.h (_sig_func_ptr): Typedef added.
6048
6049 2002-07-24  Stephane Carrez  <stcarrez@nerim.fr>
6050
6051         * configure.host: Recognize m6811-elf and m6812-elf targets.
6052         * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
6053         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
6054         (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
6055         * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
6056         according to __INT_MAX__.
6057         (_POINTER_INT): Define to short.
6058         * libc/machine/m68hc11/Makefile.am: New file.
6059         * libc/machine/m68hc11/Makefile.in: New file.
6060         * libc/machine/m68hc11/configure.in: New file.
6061         * libc/machine/m68hc11/configure: New file.
6062         * libc/machine/m68hc11/aclocal.m4: New file.
6063         * libc/machine/m68hc11/setjmp.S: New file.
6064
6065 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
6066
6067         * libc/include/string.h: Add mempcpy, strndup, and _strndup_r
6068         prototypes.
6069         * libc/stdlib/Makefile.am: Remove strdup.c and strdup_r.c.
6070         * libc/stdlib/Makefile.in: Regenerated.
6071         * libc/stdlib/strdup.c: Removed.
6072         * libc/stdlib/strdup_r.c: Removed.
6073         * libc/string/Makefile.am: Add strdup.c, strdup_r.c, memccpy.c,
6074         mempcpy.c, strndup.c, and strndup_r.c.
6075         * libc/string/Makefile.in: Regenerated.
6076         * libc/string/memccpy.c: New file.
6077         * libc/string/mempcpy.c: Ditto.
6078         * libc/string/strndup.c: Ditto.
6079         * libc/string/strndup_r.c: Ditto.
6080         * libc/string/strdup.c: New file moved from stdlib.
6081         * libc/string/strdup_r.c: Ditto.
6082         * libc/string/strings.tex: Add memccpy and mempcpy documentation.
6083
6084 2002-07-23  Jeff Johnston  <jjohnstn@redhat.com>
6085
6086         * libc/include/stdio.h: Move fcloseall prototype within
6087         #ifndef _REENT_ONLY section.
6088         * libc/sys/linux/Makefile.am: Add new files.
6089         * libc/sys/linux/Makefile.in: Regenerated.
6090         * libc/sys/linux/sys/stdio.h: Add ctermid prototype.
6091         * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype.
6092         * libc/sys/linux/sys/types.h: Add ino64_t type.
6093         * libc/sys/linux/ctermid.c: New file.
6094         * libc/sys/linux/ttyname_r.c: Ditto.
6095         * libc/sys/linux/readdir64.c: Ditto.
6096
6097 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
6098
6099         * libc/include/stdio.h (fcloseall, _fcloseall_r): Added prototypes.
6100         * libc/stdio/Makefile.am: Added fcloseall.c support.
6101         * libc/stdio/Makefile.in: Regenerated.
6102         * libc/stdio/fcloseall.c: New file.
6103         * libc/stdio64/Makefile.am: Remove missing .def references.
6104         * libc/stdio64/Makefile.in: Regenerated.
6105
6106 2002-07-22  Jeff Johnston  <jjohnstn@redhat.com>
6107
6108         * libc/machine/powerpc/time.c: Removed..renamed to times.c.
6109         * libc/machine/powerpc/times.c: New file.
6110         * libc/machine/powerpc/Makefile.am: Change time.c to times.c.
6111         * libc/machine/powerpc/Makefile.in: Regenerated.
6112
6113 2002-07-22  Aldy Hernandez  <aldyh@redhat.com>
6114
6115         * libc/machine/powerpc/time.c: New file.
6116         * libc/machine/powerpc/Makefile.am (lib_a_SOURCES): Add
6117         time.c.
6118         * libc/machine/powerpc/Makefile.in: Regenerated.
6119
6120 2002-07-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
6121
6122         * libc/libc.texinfo: Change copyright notices to Red Hat from
6123         Cygnus.
6124         * libm/libm.texinfo: Likewise.
6125         * README: Change docs URL to
6126         http://sources.redhat.com/newlib/docs.html.
6127
6128 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6129
6130         * libc/sys/linux/Makefile.am: Add pathconf.c and fpathconf.c.
6131         * libc/sys/linux/Makefile.in: Regenerated.
6132         * libc/sys/linux/inode.c: Add chmod, fchmod, and chown syscalls.
6133         * libc/sys/linux/io.c: Add ftruncate syscall.
6134         * libc/sys/linux/fpathconf.c: New file.
6135         * libc/sys/linux/pathconf.c: Ditto.
6136         * libc/sys/linux/linux_fsinfo.h: Ditto.
6137         * libc/sys/linux/sys/unistd.h: Ditto.
6138
6139 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6140
6141         * libc/stdio64/Makefile.am: Remove missing files.
6142         * libc/stdio64/Makefile.in: Regenerated.
6143
6144 2002-07-19  Jeff Johnston  <jjohnstn@redhat.com>
6145
6146         * libc/include/sys/config.h[__i386__][__linux__]: Define
6147         _LARGE64FILE_SOURCE to 1.
6148         * libc/sys/linux/Makefile.am: Add getrlimit64.c and setrlimit64.c.
6149         * libc/sys/linux/Makefile.in: Regenerated.
6150         * libc/sys/linux/resource.c: Add __getrlimit and __setrlimit aliases.
6151         * libc/sys/linux/sys/linux_time.h: Protect struct timeval definition.
6152         * libc/sys/linux/sys/resource.h: Include <bits/resource.h> instead
6153         of <linux/resource.h>.
6154         * libc/sys/linux/getrlimit64.c: New file.
6155         * libc/sys/linux/setrlimit64.c: Ditto.
6156
6157 2002-07-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
6158
6159         * libc/argz/argz_replace.c: Include buf_findstr.h.
6160         * libc/argz/buf_findstr.c: Likewise.
6161         * libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
6162         value to (char *).
6163         * libc/argz/envz_get.c: Likewise.
6164         * libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
6165         * libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
6166         * libc/stdlib/getsubopt.3: New file.
6167         * libc/stdlib/getsubopt.c: New file.
6168         * libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
6169         Change esp to ebp.
6170
6171 2002-07-17  Jeff Johnston  <jjohnstn@redhat.com>
6172
6173         * configure.host(stdio64_dir): New setting that is used to
6174         enable building of new stdio64 directory.
6175         * libc/Makefile.am[HAVE_STDIO64_DIR]: Add support for
6176         large files.
6177         (stmp-stdio64,stdio64.texi): New targets to optionally add in
6178         stdio64 info to info files.
6179         * libc/Makefile.in: Regenerated.
6180         * libc/configure: Ditto.
6181         * libc/configure.in: Add configuration variables that are set
6182         when stdio64 is selected as subdir in configure.host.
6183         * libc/libc.texinfo: Add optional menu item for Stdio64, based
6184         on whether STDIO64 flag is set or not.
6185         * libc/sys.tex: Add optional stdio64 syscalls based on whether
6186         STDIO64 flag is set or not.
6187         * libc/include/reent.h[__LARGE64_FILES]: Add new stdio64
6188         _r sycall routines.
6189         * libc/include/stdio.h[__LARGE64_FILES]: Add new stdio64 prototypes.
6190         (FILE): Typedef'd to __FILE instead of struct __sFILE directly.
6191         (__SL64): New file flag indicating file is opened via fopen64.
6192         * libc/include/sys/_types.h(_off64_t): Added.
6193         * libc/include/sys/config.h: For x86-linux, define __LARGE64_FILES.
6194         * libc/include/sys/reent.h(struct __sFILE64): New file structure
6195         for 64-bit offset large file support.
6196         (__FILE): New intermediate type either set to struct __sFILE64 or
6197         struct __sFILE, depending on whether __LARGE64_FILES is set or not.
6198         * libc/reent/Makefile.am[HAVE_STDIO64_DIR]: Add new files.
6199         * libc/reent/Makefile.in: Regenerated.
6200         * libc/reent/fstat64r.c: New file.
6201         * libc/reent/lseek64r.c: Ditto.
6202         * libc/reent/open64r.c: Ditto.
6203         * libc/reent/reent.tex: Optionally add stdio64 reentrant syscalls
6204         based on whether STDIO64 flag is set. 
6205         * libc/stdio/stdio.tex: Add blank line.
6206         * libc/stdio64/Makefile.am: New file.
6207         * libc/stdio64/Makefile.in: Ditto.
6208         * libc/stdio64/fgetpos64.c: Ditto.
6209         * libc/stdio64/fopen64.: Ditto.
6210         * libc/stdio64/freopen64.c: Ditto.
6211         * libc/stdio64/fseeko64.c: Ditto.
6212         * libc/stdio64/fsetpos64.c: Ditto.
6213         * libc/stdio64/ftello64.c: Ditto.
6214         * libc/stdio64/local64.h: Ditto.
6215         * libc/stdio64/stdio64.c: Ditto.
6216         * libc/stdio64/stdio64.tex: Ditto.
6217         * libc/stdio64/tmpfile64.c: Ditto.
6218         * libc/sys/linux/io64.c: Add weak aliases for lseek64, fstat64, and
6219         open64.
6220
6221 2002-07-16  Jeff Johnston  <jjohnstn@redhat.com>
6222
6223         * libc/Makefile.am (stmp-extra): New target to set makeinfo flag
6224         if LIBC_EXTRA_LIB is present.
6225         * libc/Makefile.in: Regenerated.
6226         * libc/libc.texinfo: Add blank line.
6227         * libc/argz/Makefile.am: Add doc support.
6228         * libc/search/Makefile.am: Ditto.
6229         * libc/argz/Makefile.in: Regenerated.
6230         * libc/search/Makefile.in: Ditto.
6231         * libc/misc/misc.tex: Add ffs function.
6232         * libc/stdio/ftell.c: Fix missing doc delimeter in description.
6233
6234 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6235
6236         * libc/include/sys/config.h[__H8300__]: Replace __SMALL_BITFIELDS
6237         definition that was removed in error.
6238
6239 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6240
6241         * libc/include/machine/ieeefp.h: Change to only define
6242         floating point defines (e.g one of __IEEE_BIG_ENDIAN or 
6243         __IEEE_LITTLE_ENDIAN must be defined for each platform).
6244         * libc/include/sys/config.h: Include <machine/ieeefp.h> and
6245         remove redundant floating point definitions.
6246
6247 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6248
6249         * libc/sys/linux/callocr.c: Fix so code references
6250         calloc.
6251
6252 2002-07-15  Jeff Johnston  <jjohnstn@redhat.com>
6253
6254         * libc/sys/linux/Makefile.am: Add new files.
6255         * libc/sys/linux/Makefile.in: Regenerated.
6256         * libc/sys/linux/bp-sym.h: Moved to include directory.
6257         * libc/sys/linux/mmap.c: Add weak aliases: __mmap, __munmap, __mremap.
6258         * libc/sys/linux/inode.c: Set _LIBC to 1.
6259         * libc/sys/linux/mq_close.c: Ditto.
6260         * libc/sys/linux/mq_getattr.c: Ditto.
6261         * libc/sys/linux/mq_open.c: Ditto.
6262         * libc/sys/linux/mq_receive.c: Ditto.
6263         * libc/sys/linux/mq_send.c: Ditto.
6264         * libc/sys/linux/mq_setattr.c: Ditto.
6265         * libc/sys/linux/mq_unlink.c: Ditto.
6266         * libc/sys/linux/calloc.c: New file.
6267         * libc/sys/linux/callocr.c: Ditto.
6268         * libc/sys/linux/cfreer.c: Ditto.
6269         * libc/sys/linux/config.h: Ditto.
6270         * libc/sys/linux/free.c: Ditto.
6271         * libc/sys/linux/freer.c: Ditto.
6272         * libc/sys/linux/msize.c: Ditto.
6273         * libc/sys/linux/msizer.c: Ditto.
6274         * libc/sys/linux/mstats.c: Ditto.
6275         * libc/sys/linux/mtrim.c: Ditto.
6276         * libc/sys/linux/mtrimr.c: Ditto.
6277         * libc/sys/linux/pvallocr.c: Ditto.
6278         * libc/sys/linux/realloc.c: Ditto.
6279         * libc/sys/linux/reallocr.c: Ditto.
6280         * libc/sys/linux/thread-m.h: Ditto.
6281         * libc/sys/linux/vallocr.c: Ditto.
6282         * libc/sys/linux/bp-checks.h: Ditto.
6283         * libc/sys/linux/libc-symbols.h: Ditto.
6284         * libc/sys/linux/libc-tsd.h: Ditto.
6285         * libc/sys/linux/libintl.h: Ditto.
6286         * libc/sys/linux/malign.c: Ditto.
6287         * libc/sys/linux/malignr.c: Ditto.
6288         * libc/sys/linux/mallinfor.c: Ditto.
6289         * libc/sys/linux/malloc.c: Ditto.
6290         * libc/sys/linux/mallocr.c: Ditto.
6291         * libc/sys/linux/malloptr.c: Ditto.
6292         * libc/sys/linux/mallstatsr.c: Ditto.
6293         * libc/sys/linux/mcheck.c: Ditto.
6294         * libc/sys/linux/mhooks.h: Ditto.
6295         * libc/sys/linux/include/bp-sym.h: Ditto.
6296         * libc/sys/linux/include/malloc.h: Ditto.
6297         * libc/sys/linux/include/mcheck.h: Ditto.
6298         * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Remove
6299         getpagesize.c.
6300         * libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Regenerated.
6301         * libc/sys/linux/linuxthreads/machine/i386/getpagesize.c: Moved.
6302         * libc/sys/linux/machine/i386/getpagesize.c: New file.
6303         * libc/sys/linux/machine/i386/Makefile.am: Add getpagesize.c.
6304         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6305         * libc/sys/linux/machine/i386/sysdep.h: New file.
6306         * libc/sys/linux/machine/i386/weakalias.h: Add weak_function support.
6307         * libc/sys/linux/sys/dirent.h: Set _LIBC to 1.
6308         * libc/sys/linux/sys/lock.h: Include <machine/weakalias.h>.
6309
6310 2002-07-12  Jeff Johnston  <jjohnstn@redhat.com>
6311
6312         * libc/sys/linux/include/mqueue.h: Change to use <bits/siginfo.h>
6313         instead of <asm/siginfo.h>.
6314         * libc/sys/linux/sys/signal.h: Change to include various linux
6315         <bits/xxx.h> header files, rather than <linux/signal.h> so as
6316         to work with multiple releases of glibc header files.
6317
6318 2002-07-11  Chris Demetriou  <cgd@broadcom.com>
6319
6320         * testsuite/newlib.search/hsearchtest.c: New file to test
6321         newlib/libc/search.
6322         * testsuite/newlib.search/hsearchtest.exp: Likewise.
6323
6324 2002-07-10  Florian Schrack  <florian.schrack@freenet.de>
6325
6326         * libc/sys/mmixware/read.c: Use SYS_Fgets syscall if dealing with
6327         a terminal.
6328         * libc/sys/mmixware/sys/syscall.h (SYS_Fgets): Definition added.
6329
6330 2002-07-08  Jeff Johnston  <jjohnstn@redhat.com>
6331
6332         * libc/include/math.h (MAXFLOAT): Added.
6333
6334 Mon Jul  8 13:55:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
6335
6336         * libc/machine/sh/Makefile.am (lib_a_SOURCES):
6337         Make strcmp.S unconditional.
6338         * libc/machine/sh/Makefile.in: Regenerate.
6339         * libc/machine/sh/asm.h (DELAYED_BRANCHES, SL): Also for __SH5__ .
6340         * strcmp.S (strcmp): Add SHmedia variant.  Use different registers
6341         for SHcompact.
6342
6343 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6344
6345         * libc/sys/linux/inode.c: Fix utime prototype and add _LIBC
6346         define before including <sys/lock.h>.
6347
6348 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6349
6350         * libc/include/utime.h: Add include of <_ansi.h>.
6351         * libc/sys/linux/Makefile.am: Add utimes.c.
6352         * libc/sys/linux/Makefile.in: Regenerated.
6353         * libc/sys/linux/inode.c(__umask): New static routine.
6354         (umask): Written to use __umask and attempt to thread lock.
6355         (getumask): New function written to use __umask and thread lock.
6356         * libc/sys/linux/utimes.c: New file.
6357         * libc/sys/linux/sys/time.h: Fix utimes prototype.
6358         * libc/sys/linux/sys/utime.h: New file.
6359
6360 2002-07-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
6361
6362         * libtool.m4: New file.
6363         * libc/sys/linux/process.c: Implement vfork in terms of fork,
6364         rather than as a syscall.
6365
6366 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6367
6368         * libc/include/stdio.h: Add new prototypes.
6369         * libc/stdio/Makefile.am: Add fseeko.c and ftello.c.
6370         * libc/stdio/Makefile.in: Regenerated.
6371         * libc/stdio/fseek.c: Add fseeko documentation.
6372         * libc/stdio/ftell.c: Add ftello documentation.
6373         * libc/stdio/fseeko.c: New file.
6374         * libc/stdio/ftello.c: New file.
6375
6376 2002-07-04  Jeff Johnston  <jjohnstn@redhat.com>
6377
6378         * libc/stdio/Makefile.am: Add asprintf.c and vasprintf.c.
6379         * libc/stdio/Makefile.in: Regenerated.
6380         * libc/stdio/asprintf.c: New file.
6381         * libc/stdio/vasprintf.c: Ditto.
6382         * libc/stdio/fvwrite.c: Add code to dynamically reallocate
6383         the buffer for asprintf support.
6384         * libc/stdio/sprintf.c: Add asprintf documentation.
6385         * libc/stdio/vfprintf.c: Add vasprintf documentation.
6386         * libc/include/stdio.h: Add new prototypes.
6387
6388 2002-07-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
6389
6390         * libc/search/hcreate.c: Remove advertising clause from license.
6391         * libc/search/hcreate_r.c: Likewise.
6392
6393 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6394
6395         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN)
6396         (__IEEE_BIG_ENDIAN): Define appropriately for MIPS.
6397         Check that one of them is defined and error out if not.
6398         Add any platforms defined in <machine/ieeefp.h> that are missing.
6399         * libc/search/hash.h (DB_BYTE_ORDER, DB_BIG_ENDIAN)
6400         (DB_LITTLE_ENDIAN): New defines.
6401         * libc/search/hash.c: Replace all incorrect checks for
6402         _IEEE_LITTLE_ENDIAN with tests of BYTE_ORDER, and all uses of
6403         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN with DB_* versions.
6404         * libc/search/hash_page.c: Likewise.
6405
6406 2002-06-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
6407
6408         * libm/mathfp/sf_pow.c (powf): Change k from int to float.
6409
6410 2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>
6411
6412         * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
6413         * libc/include/time.h: Same.
6414         * libc/include/string.h: Same.
6415         * libc/include/stdlib.h: Same.
6416         * libc/include/signal.h: Same.
6417         * libc/include/setjmp.h: Same.
6418         * libc/include/math.h: Same.
6419         * libc/include/locale.h: Same.
6420         * libc/include/ctype.h: Same.
6421         * libc/include/machine/setjmp.h: Same.
6422         * libc/include/_ansi.h (_BEGIN_STD_C): Add.
6423         (_END_STD_C): Add.
6424
6425 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6426
6427         * libc/include/sys/_types.h: Define _ssize_t as int if int is
6428         32-bits, otherwise define it as long.
6429         * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
6430         and define ssize_t as _ssize_t.
6431         * libc/reent/readr.c: Change return type to _ssize_t.
6432         * libc/reent/writer.c: Ditto.
6433         * libc/sys/linux/Makefile.am: Add aio.c.
6434         * libc/sys/linux/Makefile.in: Regenerated.
6435         * libc/sys/linux/aio.c: New file.
6436         * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
6437         * libm/common/fdlibm.h: Undef __P before defining it.
6438
6439 2002-06-27  Thomas Fitzsimmons  <fitzsim@redhat.com>
6440
6441         * libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
6442         exponent_is_even_int variable.  Handle case where x is
6443         negative, and y is an odd integer.
6444         * libm/mathfp/sf_pow.c (powf): Likewise.
6445
6446         * libm/mathfp/er_lgamma.c: Remove __kernel references.
6447         * libm/mathfp/erf_lgamma.c: Likewise.
6448         * libm/mathfp/s_tgamma.c: Likewise.
6449         * libm/mathfp/sf_tgamma.c: Likewise.
6450
6451 2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>
6452
6453         * libc/sys/linux/Makefile.am: Add new clock routines.
6454         * libc/sys/linux/Makefile.in: Regenerated.
6455         * libc/sys/linux/clock_getres.c: New file.
6456         * libc/sys/linux/clock_gettime.c: Ditto.
6457         * libc/sys/linux/clock_settime.c: Ditto.
6458         * libc/sys/linux/hp-timing.h: Ditto.
6459         * libc/sys/linux/libc-internal.h: Ditto.
6460         * libc/sys/linux/sysconf.c: Fix typo.
6461         * libc/sys/linux/include/time.h: Add include of <sys/linux_time.h>.
6462         * libc/sys/linux/machine/hp-timing.h: New file.
6463         * libc/sys/linux/machine/i386/Makefile.am: Add new files.
6464         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6465         * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
6466         * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
6467         * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
6468         * libc/sys/linux/sys/linux_time.h: New file.
6469         * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
6470         replace with <sys/linux_time.h>.
6471
6472 Wed Jun 26 16:33:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6473
6474         * libc/sys/sh/crt0.S: Remove vestigial .section directive.
6475
6476 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6477
6478         * libc/sys/linux/Makefile.am: Consolidate additional items under
6479         ADD_OBJS.
6480         * libc/sys/linux/Makefile.in: Regenerated.
6481
6482 2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>
6483
6484         * libc/sys/linux/sethostname.c: New file.
6485         * libc/sys/linux/Makefile.am: Add sethostname.c support.
6486         * libc/sys/linux/Makefile.in: Regenerated.
6487
6488 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6489
6490         * libc/search/db_local.h: New file.
6491         * libc/include/db.h: Remove.
6492         * libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
6493         * libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
6494         "db_local.h".
6495         * libc/search/hash_bigkey.c: Likewise.
6496         * libc/search/hash_buf.c: Likewise.
6497         * libc/search/hash_func.c: Likewise.
6498         * libc/search/hash_log2.c: Likewise.
6499         * libc/search/hash_page.c: Likewise.
6500
6501 2002-06-24  J"orn Rennecke <joern.rennecke@superh.com>
6502
6503         * libc/machine/sh/strlen.S: New file.
6504         * libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
6505         * libc/machine/sh/Makefile.am: Regenerate.
6506
6507 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6508
6509         * libc/sys/linux/gethostname.c: Change name to __gethostname and
6510         add gethostname alias.
6511
6512 2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>
6513
6514         * libc/include/math.h: Remove <sys/types.h>.
6515         (__dmath): Use __ULong instead of __uint32_t.
6516         * libc/include/sys/reent.h: If long or int is not 32-bits,
6517         include <sys/types.h> to get definitions for __int32_t and __uint32_t.
6518         * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
6519         * libm/common/fdlibm.h: Ditto.
6520
6521 2002-06-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6522
6523         * libc/include/ndbm.h: Remove.
6524         * libc/search/ndbm.c: Remove.
6525
6526 2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>
6527
6528         * libc/stdio/fseek.c (fseek): Fix braces.
6529
6530 2002-06-21  Corinna Vinschen  <corinna@vinschen.de>
6531
6532         * libc/time/strftime.c (strftime): Add %e format specifier.
6533
6534 2002-06-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
6535
6536         * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
6537         previously defined.
6538
6539 2002-06-21  Richard Earnshaw  (rearnsha@arm.com)
6540
6541         * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
6542         (BYTE_ORDER): Define as appropriate for the target.
6543
6544 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6545
6546         * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
6547         to _ssize_t.
6548         * libc/sys/linux/io.c (read, write): Change to return ssize_t.
6549
6550 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6551
6552         * libc/include/stdio.h (__getline, __getdelim): New prototypes.
6553         * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
6554         [HAVE_GETDATE](getdate_err): New error code.
6555         * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
6556         * libc/stdio/Makefile.in: Regenerated.
6557         * libc/stdio/getdelim.c: New file.
6558         * libc/stdio/getline.c: Ditto.
6559         * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
6560         and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
6561         * libc/sys/linux/Makefile.in: Regenerated.
6562         * libc/sys/linux/getdate.c: New file.
6563         * libc/sys/linux/getdate_err.c: Ditto.
6564         * libc/sys/linux/ntp_gettime.c: Ditto.
6565         * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
6566         * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.
6567
6568 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6569
6570         * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
6571         * libc/include/machine/types.h: Skip __off_t, __pid_t, and
6572         __loff_t definitions if special _HAVE_SYSTYPES macro defined.
6573         * libc/include/sys/config.h: Removed _uint*, _int* definitions.
6574         * libc/include/sys/param.h: Remove i386 case which is handled
6575         by default case.
6576         (BIG_ENDIAN, LITTLE_ENDIAN): Protect
6577         definitions in case they are already defined.
6578         (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
6579         _IEEE_LITTLE_ENDIAN flags.
6580         * libc/include/sys/reent.h: Change __uint32_t references to
6581         use _ULong instead.
6582         (_REENT_GETDATE_REENT_P): New macro.
6583         * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
6584         (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
6585         * libc/search/hash.h: Add default setting of BYTE_ORDER,
6586         LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
6587         * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
6588         ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
6589         pid_t, off_t, loff_t, caddr_t, and daddr_t type
6590         definitions which are done by subsequent glibc headers.
6591         Add macro definitions to prevent subsequent header files from
6592         defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
6593         intptr_t to after glibc definitions of types they are based on.
6594
6595 2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>
6596
6597         * libc/include/errno.h: Protect from multiple inclusion.
6598
6599 2002-06-21  Nick Clifton  <nickc@cambridge.redhat.com>
6600
6601         * libc/sys/arm/swi.h (ADP_Stopped_RunTimeError): Set correct value.
6602
6603 2002-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>
6604
6605         * Makefile.am (LIB_OBJECTLISTS): Add
6606         libc/search/objectlist.awk.in.
6607         * libc/Makefile.am (SUBDIRS): Add search.
6608         (SUBLIBS): Add search/libsearch.la.
6609         * libc/configure.in (AC_OUTPUT): Add search/Makefile.
6610         * libc/search: New directory.
6611         * libc/search/Makefile.am: New file.
6612         * libc/search/extern.h: New file.
6613         * libc/search/hash.c: New file.
6614         * libc/search/hash.h: New file.
6615         * libc/search/hash_bigkey.c: New file.
6616         * libc/search/hash_buf.c: New file.
6617         * libc/search/hash_func.c: New file.
6618         * libc/search/hash_log2.c: New file.
6619         * libc/search/hash_page.c: New file.
6620         * libc/search/hcreate.3: New file.
6621         * libc/search/hcreate.c: New file.
6622         * libc/search/hcreate_r.c: New file.
6623         * libc/search/ndbm.c: New file.
6624         * libc/search/page.h: New file.
6625         * libc/search/tdelete.c: New file.
6626         * libc/search/tdestroy.c: New file.
6627         * libc/search/tfind.c: New file.
6628         * libc/search/tsearch.3: New file.
6629         * libc/search/tsearch.c: New file.
6630         * libc/search/twalk.c: New file.
6631         * libc/include/db.h: New file.
6632         * libc/include/ndbm.h: New file.
6633         * libc/include/search.h: New file.
6634         * libc/include/sys/queue.h: New file.
6635         * libc/include/sys/cdefs.h: New file.
6636         * libc/include/sys/param.h
6637         [__IEEE_LITTLE_ENDIAN,__IEEE_BIG_ENDIAN]: Set BYTE_ORDER to
6638         LITTLE_ENDIAN or BIG_ENDIAN.
6639         * libc/include/sys/errno.h (EFTYPE): New macro.
6640         * libc/search/bsearch.c: Move from libc/stdlib.
6641         * libc/search/qsort.c: Likewise.
6642         * libc/stdlib/Makefile.am (LIB_SOURCES): Remove bsearch.c and
6643         qsort.c.
6644         (CHEWOUT_FILES): Remove bsearch.def and qsort.def.
6645         * libc/stdlib/stdlib.tex: Remove references to bsearch and qsort.
6646
6647 2002-06-19  Jeff Johnston  <jjohnstn@redhat.com>
6648
6649         * libc/sys/linux/Makefile.am: Add support for message queue routines,
6650         ipc routines, and ftok.
6651         * libc/sys/linux/Makefile.in: Regenerated.
6652         * libc/sys/linux/ftok.c: New file.
6653         * libc/sys/linux/ipc.c: Ditto.
6654         * libc/sys/linux/mq_close.c: Ditto.
6655         * libc/sys/linux/mq_getattr.c: Ditto.
6656         * libc/sys/linux/mq_notify.c: Ditto.
6657         * libc/sys/linux/mq_open.c: Ditto.
6658         * libc/sys/linux/mq_receive.c: Ditto.
6659         * libc/sys/linux/mq_send.c: Ditto.
6660         * libc/sys/linux/mq_setattr.c: Ditto.
6661         * libc/sys/linux/mq_unlink.c: Ditto.
6662         * libc/sys/linux/mqlocal.h: Ditto.
6663         * libc/sys/linux/include/mqueue.h: Ditto.
6664         * libc/sys/linux/sys/types.h: Define __gid_t_defined and
6665         __uid_t_defined.
6666
6667 2002-06-19  J"orn Rennecke <joern.rennecke@superh.com>
6668
6669         * libm/common/sf_lround.c (round): Change name to: (lround).
6670         * libm/common/sf_remquo.c (remquo): Pass all arguemnts to
6671         remquof.
6672
6673 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6674
6675         * testsuite/lib/passfail.exp (newlib_pass_fail_all): New
6676         procedure.
6677         (newlib_pass_fail): Change to compile and run only one file.
6678         * testsuite/newlib.locale/locale.exp: Use new
6679         newlib_pass_fail_all procedure.
6680         * testsuite/newlib.string/string.exp: Likewise.
6681
6682 2002-06-18  Dave Brolley  <brolley@redhat.com>
6683
6684         From Catherine Moore, Michael Meissner, Richard Sandiford:
6685         * libc/include/machine/setjmp.h (_JBLEN): Define for __frv__.
6686         (_JBTYPE): Ditto.
6687         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Ditto.
6688         (__ATTRIBUTE_IMPURE_PTR__): Ditto.
6689         * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Ditto.
6690         * configure.host: Support frv-*-*.
6691         * libc/machine/frv/Makefile.am: New file.
6692         * libc/machine/frv/configure.in: New file.
6693         * libc/machine/frv/setjmp.S: New file.
6694
6695 2002-06-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
6696
6697         * libc/include/ctype.h: Remove isblank macro.
6698
6699         * libc/ctype/Makefile.am (LIB_SOURCES): Add isblank.c.
6700         * libc/ctype/isblank.c: New file.
6701         * libc/include/ctype.h [!__STRICT_ANSI__]: Add isblank
6702         declaration.  Add isblank macro.
6703
6704 2002-06-18  Jeff Johnston  <jjohnstn@redhat.com>
6705
6706         * testsuite/newlib.stdlib/atexit.c: New file.
6707         * testsuite/newlib.stdlib/atexit.exp: Ditto.
6708         * testsuite/newlib.string/tstring.c: Change default start size
6709         to something more reasonable for embedded platforms.
6710
6711 2002-06-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
6712
6713         * libc/sys/linux/sys/errno.h (EFTYPE): Add macro.
6714
6715         * libc/argz: New directory.
6716         * libc/argz/*: New files.
6717         * libc/argz/argz_add.c: New file.
6718         * libc/argz/argz_add_sep.c: New file.
6719         * libc/argz/argz_append.c: New file.
6720         * libc/argz/argz_count.c: New file.
6721         * libc/argz/argz_create.c: New file.
6722         * libc/argz/argz_create_sep.c: New file.
6723         * libc/argz/argz_delete.c: New file.
6724         * libc/argz/argz_extract.c: New file.
6725         * libc/argz/argz_insert.c: New file.
6726         * libc/argz/argz_next.c: New file.
6727         * libc/argz/argz_replace.c: New file.
6728         * libc/argz/argz_stringify.c: New file.
6729         * libc/argz/buf_findstr.c: New file.
6730         * libc/argz/envz_add.c: New file.
6731         * libc/argz/envz_entry.c: New file.
6732         * libc/argz/envz_get.c: New file.
6733         * libc/argz/envz_merge.c: New file.
6734         * libc/argz/envz_remove.c: New file.
6735         * libc/argz/envz_strip.c: New file.
6736         * libc/include/argz.h: New file.
6737         * libc/include/envz.h: New file.
6738         * Makefile.am (LIBC_OBJECTLISTS): Add
6739         libc/argz/objectlist.awk.in.
6740         * libc/Makefile.am (SUBDIRS): Add argz.
6741         (SUBLIBS): Add argz/libargz.la.
6742         * libc/configure.in (AC_OUTPUT): Add argz/Makefile.
6743         * libc/include/errno.h: Add error_t typedef.
6744
6745 2002-06-13  Jeff Johnston  <jjohnstn@redhat.com>
6746
6747         * libc/include/stdlib.h: Add _Exit prototype.
6748         * libc/stdlib/Makefile.am: Add _Exit.c support.
6749         * libc/stdlib/Makefile.in: Ditto.
6750         * libc/stdlib/_Exit.c: New file.
6751
6752 2002-06-13  Stephen L. Moshier  <steve@moshier.net>
6753
6754         * libm/math/e_pow.c (__ieee754_pow): Fix case whereby
6755         x is close to -1.0 and y is very large to use ax (absolute value)
6756         instead of x.
6757         * libm/math/ef_pow.c (__ieee754_powf): Ditto.
6758
6759 Thu Jun 13 19:23:40 2002  J"orn Rennecke <joern.rennecke@superh.com>
6760
6761         * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):
6762         Fix clobbering bytes before destination if src and dst have same
6763         non-zero misalignment.
6764
6765         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
6766         Fixed bug in writing end of set region.
6767
6768 2002-06-10  Christopher Faylor  <cgf@redhat.com>
6769
6770         * libc/include/process.h: Remove cygwin-only sexec* declarations.  Fix
6771         spawnve declaration.
6772
6773 2002-06-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
6774
6775         * libm/common/s_fdim.c: New file.
6776         * libm/common/s_fma.c: Likewise.
6777         * libm/common/s_fmax.c: Likewise.
6778         * libm/common/s_fmin.c: Likewise.
6779         * libm/common/s_fpclassify.c: Likewise.
6780         * libm/common/s_lrint.c: Likewise.
6781         * libm/common/s_lround.c: Likewise.
6782         * libm/common/s_nearbyint.c: Likewise.
6783         * libm/common/s_remquo.c: Likewise.
6784         * libm/common/s_round.c: Likewise.
6785         * libm/common/s_scalbln.c: Likewise.
6786         * libm/common/s_signbit.c: Likewise.
6787         * libm/common/s_trunc.c: Likewise.
6788         * libm/common/sf_fdim.c: Likewise.
6789         * libm/common/sf_fma.c: Likewise.
6790         * libm/common/sf_fmax.c: Likewise.
6791         * libm/common/sf_fmin.c: Likewise.
6792         * libm/common/sf_lrint.c: Likewise.
6793         * libm/common/sf_lround.c: Likewise.
6794         * libm/common/sf_nearbyint.c: Likewise.
6795         * libm/common/sf_remquo.c: Likewise.
6796         * libm/common/sf_round.c: Likewise.
6797         * libm/common/sf_scalbln.c: Likewise.
6798         * libm/common/sf_trunc.c: Likewise.
6799         * libm/math/w_exp2.c: Likewise.
6800         * libm/math/w_tgamma.c: Likewise.
6801         * libm/math/wf_exp2.c: Likewise.
6802         * libm/math/wf_tgamma.c: Likewise.
6803         * libm/mathfp/s_exp2.c: Likewise.
6804         * libm/mathfp/s_tgamma.c: Likewise.
6805         * libm/mathfp/sf_exp2.c: Likewise.
6806         * libm/mathfp/sf_tgamma.c: Likewise.
6807         * libm/math/er_gamma.c: Fix return value.
6808         * libm/math/erf_gamma.c: Likewise.
6809         * libm/mathfp/er_gamma.c: Likewise.
6810         * libm/mathfp/erf_gamma.c: Likewise.
6811         * libc/include/math.h (!__STRICT_ANSI__): Include ISOC99-specific
6812         declarations and macros.
6813         Regenerated all Makefile.in, aclocal.m4 and configure files to
6814         use new libtool macros in top-level libtool.m4
6815
6816 2002-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6817
6818         * libc/include/string.h[__linux__]: Add strsignal prototype.
6819         * libc/include/sys/lock.h: New file with default locking support.
6820         * libc/include/sys/reent.h: Add signal buffer support for strsignal
6821         and psignal.
6822         * libc/posix/Makefile.am: Add support for readdir_r.c.
6823         * libc/posix/Makefile.in: Regenerated.
6824         * libc/posix/closedir.c: Add locking support and hash table cleanup.
6825         * libc/posix/opendir.c: Add lock support.
6826         * libc/posix/readdir.c: Ditto.
6827         * libc/posix/rewinddir.c: Ditto.
6828         * libc/posix/scandir.c: Ditto.
6829         * libc/posix/seekdir.c: Ditto.
6830         * libc/posix/telldir.c: Ditto plus add _cleanupdir routine to
6831         clean up leftover hash table entries.
6832         * libc/posix/readdir_r.c: New file.
6833         * libc/sys/linux/Makefile.am: Add psignal.c and strsignal.c support.
6834         * libc/sys/linux/Makefile.in: Regenerated.
6835         * libc/sys/linux/sys/dirent.h: Add dd_lock to DIR structure.
6836         * libc/sys/linux/sys/signal.h: Add psignal prototype.
6837         * libc/sys/linux/psignal.c: New file.
6838         * libc/sys/linux/strsignal.c: Ditto.
6839
6840 2002-06-03  Corinna Vinschen  <corinna@vinschen.de>
6841
6842         * libc/include/sys/types.h: Don't define dev_t when compiling for
6843         Cygwin.
6844
6845 2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>
6846
6847         * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
6848         make siglist.inc dependent on sig.c instead of signal.c.
6849         * libc/sys/linux/Makefile.in: Regenerated.
6850         * libc/sys/linux/sig.c: Rename from signal.c and change code to
6851         use NSIG instead of _NSIG. 
6852         * libc/sys/linux/sigaction.c: New file.
6853         * libc/sys/linux/signal.c: Changed to be linux signal() function
6854         so as to override regular newlib default signal.c.
6855         * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
6856         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6857         * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
6858         * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
6859         * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
6860         default linux sigset_t typedef by defining it equal to __sigset_t.
6861         * libc/unix/sigset.c: Add check so code isn't compiled on systems
6862         with a sigset_t that isn't implemented with a single int.
6863
6864 2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>
6865
6866         * libc/sys/linux/Makefile.am: Add support for new files.
6867         * libc/sys/linux/Makefile.in: Regenerated.
6868         * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
6869         * libc/sys/linux/signal.c: Change to use real-time syscalls for
6870         sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
6871         it is in a separate file now.
6872         * libc/sys/linux/machine/i386/Makefile.am
6873         * libc/sys/linux/machine/i386/Makefile.in
6874         * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
6875         * libc/sys/linux/sigaction.c: New file.
6876         * libc/sys/linux/sigqueue.c: Ditto.
6877         * libc/sys/linux/sigwait.c: Ditto.
6878         * libc/sys/linux/machine/i386/sigaction.c: Ditto.
6879         * libc/sys/linux/kernel_sigaction.h: Ditto.
6880
6881 2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>
6882
6883         * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
6884         tcsendbrk.c.
6885         * libc/sys/linux/Makefile.in: Regenerated.
6886         * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
6887         tcgetpgrp(), and tcsetpgrp() functions.
6888         * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
6889         to get __MAX_BAUD rate.
6890         * libc/sys/linux/machine/i386/include/termios.h: New file.
6891         * libc/include/machine/termios.h: Ditto.
6892         * libc/sys/linux/cfspeed.c: Ditto.
6893         * libc/sys/linux/tcsendbrk.c: Ditto.
6894
6895 2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>
6896
6897         * libc/include/string.h: Add strnlen and strerror_r prototypes.
6898         * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
6899         * libc/string/Makefile.in: Regenerated.
6900         * libc/string/strerror_r.c: New file.
6901         * libc/string/strnlen.c: New file.
6902         * libc/sys/linux/Makefile.am: Add rename.c.
6903         * libc/sys/linux/Makefile.in: Regenerated.
6904         * libc/sys/linux/rename.c: New file to override default rename.
6905
6906 2002-05-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
6907
6908         * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
6909         * libc/sys/linux/sys/time.h: Add conversion macros.
6910         * libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
6911         * libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
6912         * libc/sys/linux/gethostname.c: New file.
6913         * libc/sys/linux/seteuid.c: New file.
6914         * libc/sys/linux/sysctl.c: New file.
6915         
6916 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6917
6918         * libc/string/Makefile.am: Add support for strsep.c.
6919         * libc/string/Makefile.in: Regenerated.
6920         * libc/string/strsep.c: New file.
6921         * libc/string/strtok.c: Change to call __strtok_r service routine.
6922         * libc/string/strtok_r.c: Add __strtok_r routine which takes
6923         additional flag parameter regarding whether to skip leading delimeters.
6924         Change strtok_r to call __strtok_r.
6925
6926 2002-05-23  Gareth Pearce  <tilps@hotmail.com>
6927
6928         * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
6929         * libc/stdio/Makefile.in: Regenerated.
6930         * libc/stdio/setbuffer.c: New file.
6931         * libc/stdio/setlinebuf.c: New file.
6932
6933 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6934
6935         * libc/sys/linux/Makefile.am: Add resource.c.
6936         * libc/sys/linux/Makefile.in: Regenerated.
6937         * libc/sys/linux/resource.c: New file.
6938         * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
6939         * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
6940         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
6941         * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
6942         are now found in libc/sys/linux/resource.c.
6943
6944 2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>
6945
6946         * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
6947         to use void * pointers and comply with Single Unix spec.
6948         * libc/string/bcmp.c: Change to use void * instead of char *.
6949         * libc/string/bcopy.c: Ditto.
6950         * libc/string/bzero.c: Ditto.
6951
6952 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6953
6954         * libc/sys/linux/shm_open.c: New file.
6955         * libc/sys/linux/shm_unlink.c: Ditto.
6956         * libc/sys/linux/Makefile.am: Add support for shm_open.c and
6957         shm_unlink.c.
6958         * libc/sys/linux/Makefile.in: Regenerated.
6959         * libc/sys/linux/sys/types.h: Add some additional checks to see
6960         if clock_t or time_t is already defined.
6961
6962 2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>
6963
6964         * Makefile.am: Don't pass $toollibdir down directly in
6965         AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
6966         Pass it under the name: top_toollibdir.
6967         * Makefile.in: Regenerated.
6968
6969 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6970
6971         * libc/include/sys/types.h: Revert previous patch.
6972
6973 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6974
6975         * libc/include/sys/types.h: Include cygwin/types.h always under
6976         Cygwin, not only if _POSIX_THREADS is defined.
6977
6978 2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
6979
6980         * configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.
6981
6982 2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>
6983
6984         * Makefile.am: Copy and install headers from sys/machine/include
6985         directory.  Also pass $toollibdir to lower-level directories.
6986         * Makefile.in: Regenerated.
6987         * libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and 
6988         stderr to use _REENT macro instead of _impure_ptr directly.
6989         * libc/include/sys/config.h[__i386__][__linux__]: Define
6990         __DYNAMIC_REENT__.
6991         * libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be 
6992         call to __getreent() function if !__SINGLE_THREAD__ and
6993         __DYNAMIC_REENT__ is set.
6994         * libc/reent/Makefile.am: Add support for getreent.c.
6995         * libc/reent/Makefile.in: Regenerated.
6996         * libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
6997         * libc/sys/linux/Makefile.am: Add support for new files.
6998         * libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
6999         * libc/sys/linux/Makefile.in: Regenerated.
7000         * libc/sys/linux/configure: Ditto.
7001         * libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
7002         __close, __read, __write, __poll, __open, __lseek, __fcntl from
7003         their __libc_ counterparts.
7004         * libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
7005         and weak-alias to regular names.
7006         * libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
7007         to pread64 and __pread64.
7008         * libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
7009         * libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
7010         weak-alias to pwrite64.
7011         * libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
7012         __libc_sched_getscheduler, __libc_sched_get_priority_max,
7013         __libc_sched_get_priority_min, and __libc_sched_setschedule to
7014         name with __ instead of __libc_. 
7015         * libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
7016         Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
7017         Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
7018         * libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
7019         to raise.
7020         * libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
7021         __libc_send to __send.
7022         * libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
7023         __gettimeofday.
7024         * libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
7025         it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
7026         * libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
7027         type and typedef __jmp_buf to jmp_buf.
7028         * libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
7029         setjmp.S.
7030         * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
7031         * libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
7032         section.
7033         * libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
7034         prefix for function macros and then use weak_alias() to regular names.
7035         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7036         * libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
7037         * libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
7038         to be flockfile() and funlockfile() respectively.
7039         * libc/sys/linux/sys/types.h
7040         * libc/reent/getreent.c: New file.
7041         * libc/sys/linux/flockfile.c: Ditto.
7042         * libc/sys/linux/funlockfile.c: Ditto.
7043         * libc/sys/linux/getreent.c: Ditto.
7044         * libc/sys/linux/pread.c: Ditto.
7045         * libc/sys/linux/pwrite.c: Ditto.
7046         * libc/sys/linux/raise.c: Ditto.
7047         * libc/sys/linux/system.c: Ditto.
7048         * libc/sys/linux/tcdrain.c: Ditto.
7049         * libc/sys/linux/machine/i386/i386mach.h: Ditto.
7050         * libc/sys/linux/machine/i386/setjmp.S: Ditto.
7051         * libc/sys/linux/machine/i386/syscalls.c: Ditto.
7052         * libc/sys/linux/machine/i386/weakalias.h: Ditto.
7053         * libc/sys/linux/machine/i386/include/setjmp.h: Ditto.
7054
7055 2002-05-14 Dhananjay Deshpande <dhananjayd@kpit.com>
7056
7057         * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
7058         * newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
7059         * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
7060         * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
7061
7062 Thu May 16 17:24:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7063
7064         * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
7065         __LITTLE_ENDIAN__.  make sure r0 has right value at first loop
7066         exit point.
7067
7068 2002-05-15  Thomas Fitzsimmons  <fitzsim@redhat.com>
7069
7070         * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
7071         options when testing natively on i[3456]86-*-linux.
7072
7073         * testsuite/lib/checkoutput.exp (newlib_check_output): Output
7074         only one pass or fail per test file.  Trim \r's from output
7075         values received from test programs.  Remove support for named
7076         tests.
7077         * testsuite/newlib.locale/UTF-8.exp: Update to support new
7078         newlib_check_output behaviour.
7079         * testsuite/newlib.locale/UTF-8.c: Likewise.
7080
7081 2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>
7082
7083         * libc/include/stdlib.h: Add on_exit prototype.
7084         * libc/include/sys/reent.h (struct _atexit): Add argument array
7085         and bits to track type of exit routine to support both on_exit
7086         and atexit.
7087         (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
7088         by default and change the setting of the atexit structure.
7089         (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
7090         * libc/stdlib/on_exit.c: New file.
7091         * libc/stdlib/Makefile.am: Add support for on_exit.
7092         * libc/stdlib/Makefile.in: Regenerated.
7093         * libc/stdlib/atexit.c: Change to initialize types field.
7094         * libc/stdlib/exit.c: Change to look at types field for each
7095         exit routine and either call an atexit-style or an on_exit-style
7096         routine accordingly.
7097
7098 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
7099
7100         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
7101         allow v specifier with n or L specifiers.  For vector c format,
7102         move tmp declaration to the top.
7103
7104 2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>
7105
7106         * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
7107         the original format specifier when looping for vectors to compensate
7108         for any changes made in vector %g format processing.
7109         Also add syntax checking for various invalid scenarios
7110         involving vector format extensions.
7111         * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
7112         return code setting for vector formats.  Also treat vector
7113         separator mismatch as a match error instead of an input error.
7114         Perform some syntax checking for vector formats.
7115
7116 2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7117
7118         * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
7119         * libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
7120         * libc/string/strlcat.c: New file.
7121         * libc/string/strlcpy.c: New file.
7122
7123 2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>
7124
7125         * libc/string/strchr.c: Fix comment typo.
7126
7127 2002-05-08  Thomas Fitzsimmons  <fitzsim@redhat.com>
7128
7129         * acinclude.m4: Add support for --enable-newlib-multithread.
7130         * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
7131         --enable-newlib-multithread=no.
7132
7133         * libc/stdio/getc_u.c: New file.
7134         * libc/stdio/getchar_u.c: New file.
7135         * libc/stdio/putc_u.c: New file.
7136         * libc/stdio/putchar_u.c: New file.
7137         * libc/include/stdio.h: Add declarations for getc_unlocked,
7138         getchar_unlocked, putc_unlocked and putchar_unlocked.
7139         * libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
7140         (CHEWOUT_FILES): Add new files' .def's.
7141         * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
7142
7143 Wed May  8 17:47:35 2002  J"orn Rennecke <joern.rennecke@superh.com>
7144
7145         * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
7146         Also handle as single quad word when destination ends at last
7147         byte of first quad word.  Fix byte selection in single quad code.
7148
7149 2002-05-07  Thomas Fitzsimmons  <fitzsim@redhat.com>
7150
7151         * libc/include/sys/stdio.h: New file.
7152         * libc/sys/linux/sys/stdio.h: New file.
7153         * libc/include/stdio.h: Add declarations for flockfile,
7154         ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
7155         * libc/stdio/clearerr.c: Add file locking.
7156         * libc/stdio/fclose.c: Likewise.
7157         * libc/stdio/feof.c: Likewise.
7158         * libc/stdio/ferror.c: Likewise.
7159         * libc/stdio/fflush.c: Likewise.
7160         * libc/stdio/fgetc.c: Likewise.
7161         * libc/stdio/fgetpos.c: Likewise.
7162         * libc/stdio/fgets.c: Likewise.
7163         * libc/stdio/fileno.c: Likewise.
7164         * libc/stdio/fputc.c: Likewise.
7165         * libc/stdio/fputs.c: Likewise.
7166         * libc/stdio/fread.c: Likewise.
7167         * libc/stdio/freopen.c: Likewise.
7168         * libc/stdio/fseek.c: Likewise.
7169         * libc/stdio/ftell.c: Likewise.
7170         * libc/stdio/fwrite.c: Likewise.
7171         * libc/stdio/getc.c: Likewise.
7172         * libc/stdio/putc.c: Likewise.
7173         * libc/stdio/setvbuf.c: Likewise.
7174         * libc/stdio/ungetc.c: Likewise.
7175         * libc/stdio/vfprintf.c: Likewise.
7176
7177 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7178
7179         * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
7180         support for 'p' format.  Fix code to print bytes for vector
7181         integer formats that do not specify 'h' or 'l'.
7182         * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
7183         for 'p' specifier.  Fix code to scan 16 bytes for vector integer
7184         formats that do not specify 'h' or 'l'.
7185
7186         * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
7187
7188 2002-05-06  Nick Clifton  <nickc@cambridge.redhat.com>
7189
7190         * libc/sys/arm/syscalls.c (_rename): Add parameter names.
7191         (_sbrk): Add cast of return value.
7192
7193 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7194
7195         *  libc/include/sys/reent.h (_l64a_buf): New reentrant area.
7196         (_REENT_L64A_BUF): New macro for accessing area.
7197         *  libc/stdlib/Makefile.am: Add a64l.c and l64a.c.
7198         *  libc/stdlib/Makefile.in: Regenerated.
7199         *  libc/stdlib/a64l.c: New file.
7200         *  libc/stdlib/l64a.c: New file.
7201
7202 2002-05-06  Jeff Johnston  <jjohnstn@redhat.com>
7203
7204         * libc/unix/pread.c: Fix typo for _pread_r.
7205         * libc/unix/pwrite.c: Fix type for _pwrite_r.
7206         * libc/sys/linux/pread64.c: Fix typo for read syscall.
7207         * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
7208
7209 2002-05-03  Christopher Faylor  <cgf@redhat.com>
7210
7211         * libc/include/sys/unistd.h: Define getdomainname under cygwin.
7212
7213 2002-05-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
7214
7215         * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.
7216
7217 2002-05-01  Christopher Faylor  <cgf@redhat.com>
7218
7219         * utmp.h: Define more UNIX constants.
7220
7221 2002-05-01  Thomas Fitzsimmons  <fitzsim@redhat.com>
7222
7223         * Makefile.am: Add support for checking multilibs.
7224
7225         * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.
7226         (SUBDEFS): Add LIBC_EXTRA_DEF.
7227         * libc/configure.in (LIBC_EXTRA_LIB): New variable.
7228         (LIBC_EXTRA_DEF): Likewise.
7229         (extra_dir): Likewise.
7230         * libc/machine/xscale/machine: New directory.
7231         * libc/machine/xscale/machine/profile.h: New file.
7232
7233         * Makefile.am (site.exp): Remove newlib_cflags.  Add
7234         multibuildtop.
7235         * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's.
7236         * testsuite/lib/flags.exp: New file.
7237         * testsuite/lib/newlib.exp: Load flags.exp.
7238         (newlib_target_compile): Remove libgloss directory references.
7239         (newlib_init): Remove newlib_cflags references.
7240
7241 2002-04-30  Thomas Fitzsimmons  <fitzsim@redhat.com>
7242
7243         * testsuite/lib/newlib.exp (newlib_target_compile): Change
7244         method of finding libgloss_target_dir.
7245
7246         * Makefile.am (site.exp): Change host_alias, host_triplet,
7247         target_alias, target_triplet to refer to gcc's host and target
7248         variables (newlib's build and host variables).
7249         * testsuite/lib/newlib.exp (newlib_init): Change build
7250         references to host references, host references to target
7251         references to reflect Makefile.am changes.
7252         (newlib_target_compile): Likewise.
7253         (newlib_finish): Likewise.
7254
7255 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7256
7257         * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
7258
7259 2002-04-29  Jonathan Larmour  <jlarmour@redhat.com>
7260
7261         * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
7262         (_system): New function. Ditto.
7263         * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM.
7264         * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale
7265         targets.
7266
7267 2002-04-29  Jeff Johnston  <jjohnstn@redhat.com>
7268
7269         *  libc/include/sys/unistd.h (pread, pwrite): Added prototypes.
7270         *  libc/unix/Makefile.am: Add pread.c and pwrite.c.
7271         *  libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c.
7272         *  libc/sys/linux/Makefile.in: Regenerated.
7273         *  libc/unix/Makefile.in: Ditto.
7274         *  libc/sys/linux/pread64.c: New file.
7275         *  libc/sys/linux/pwrite64.c: Ditto.
7276         *  libc/unix/pread.c: Ditto.
7277         *  libc/unix/pwrite.c: Ditto.
7278
7279 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7280
7281         *  libc/sys/linux/Makefile.am: Add io64.c.
7282         *  libc/sys/linux/Makefile.in: Regenerated.
7283         *  libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls.
7284         *  libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. 
7285         *  libc/sys/linux/io64.c: New file.
7286
7287 2002-04-26  Jeff Johnston  <jjohnstn@redhat.com>
7288
7289         * configure.in (CC_FOR_NEWLIB): New variable that
7290         bases on $(CC) and adds targ-include and libc/include as
7291         -isystem directives if they are not already part of $(CC).
7292         * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal
7293         $(CC_FOR_NEWLIB).
7294         * configure: Regenerated.
7295         * Makefile.in: Ditto.
7296
7297 2002-04-25  Jeff Johnston  <jjohnstn@redhat.com>
7298
7299         *  libc/sys/linux/Makefile.am: Add support for sched.c.
7300         *  libc/sys/linux/Makefile.in: Regenerated.
7301         *  libc/sys/linux/sched.c: New file.
7302         *  libc/sys/linux/sys/types.h: Add struct timespec.
7303
7304 2002-04-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
7305
7306         * configure.in (CC_FOR_BUILD): Set to gcc whether
7307         cross-compiling or not.
7308         (CC): Add -isystem's for targ-include and libc/include when they
7309         do not already appear in CC.
7310
7311 2002-04-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
7312
7313         * Makefile.am (check-DEJAGNU): New target.
7314         (site.exp): Likewise.
7315         * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST
7316         with AC_CANONICAL_SYSTEM.  Remove AC_CANONICAL_BUILD.
7317         * libc/locale/locale.c (_setlocale_r): Add UTF-8 support.
7318         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise.
7319         * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise.
7320         * testsuite: New directory.
7321         * testsuite/config: Likewise.
7322         * testsuite/lib: Likewise.
7323         * testsuite/newlib.locale: Likewise.
7324         * testsuite/newlib.string: Likewise.
7325         * testsuite/config/default.exp: New file.
7326         * testsuite/lib/checkoutput.exp: New file.
7327         * testsuite/lib/newlib.exp: New file.
7328         * testsuite/lib/passfail.exp: New file.
7329         * testsuite/newlib.locale/UTF-8.c: New file.
7330         * testsuite/newlib.locale/UTF-8.exp: New file.
7331         * testsuite/newlib.locale/locale.exp: New file.
7332         * testsuite/newlib.string/string.exp: New file.
7333         * testsuite/newlib.string/tstring.c: New file.
7334
7335 2002-04-23  Jeff Johnston  <jjohnstn@redhat.com>
7336
7337         *  libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
7338         *  libc/sys/linux/Makefile.am: Add support for mmap.c.
7339         *  libc/sys/linux/Makefile.in: Regenerated.
7340         *  libc/sys/linux/mmap.c: New file.
7341         *  libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
7342         *  libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
7343
7344 2002-04-22  Thomas Fitzsimmons  <fitzsim@redhat.com>
7345
7346         * acinclude.m4 (newlib_cflags): Remove include directories that
7347         are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
7348
7349 2002-04-19  Bill Siegmund  <ctc-dsl@pacbell.net>
7350
7351         * libc/machine/xscale/memchr.c: Don't use multi-line strings.
7352         * libc/machine/xscale/memcmp.c: Ditto.
7353         * libc/machine/xscale/memcpy.c: Ditto.
7354         * libc/machine/xscale/memmove.c: Ditto.
7355         * libc/machine/xscale/memset.c: Ditto.
7356         * libc/machine/xscale/strchr.c: Ditto.
7357         * libc/machine/xscale/strcmp.c: Ditto.
7358         * libc/machine/xscale/strcpy.c: Ditto.
7359         * libc/machine/xscale/strlen.c: Ditto.
7360
7361 2002-04-19  Alexandre Oliva  <aoliva@redhat.com>
7362
7363         * libc/include/sys/config.h: Remove include of <limits.h>.
7364         (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would
7365         define INT_MAX and LONG_MAX.  Use them in tests.
7366
7367 2002-04-19  Jeff Johnston  <jjohnstn@redhat.com>
7368
7369         *  configure.host: Add support for powerpc-eabialtivec*.
7370         *  libc/include/malloc.h: Add include of <machine/malloc.h>.
7371         *  libc/include/stdlib.h: Add include of <machine/stdlib.h>.
7372         *  libc/include/machine/malloc.h: New file.
7373         *  libc/include/machine/stdlib.h: Ditto.
7374         *  libc/include/machine/setjmp.h: Add support for powerpc altivec.
7375         *  libc/machine/powerpc/Makefile.am: Add conditional objects and
7376         sources based on configuration.
7377         *  libc/machine/powerpc/Makefile.in: Regenerated.
7378         *  libc/machine/powerpc/configure: Ditto.
7379         *  libc/machine/powerpc/configure.in: Add check for
7380         powerpc-eabialtivec* in which case add in additional source files.
7381         *  libc/machine/powerpc/setjmp.S: Add altivec support.
7382         *  libc/machine/powerpc/vec_calloc.c: New file.
7383         *  libc/machine/powerpc/vec_free.c: Ditto.
7384         *  libc/machine/powerpc/vec_malloc.c: Ditto.
7385         *  libc/machine/powerpc/vec_mallocr.c: Ditto.
7386         *  libc/machine/powerpc/vec_realloc.c: Ditto.
7387         *  libc/machine/powerpc/machine/malloc.h: Ditto.
7388         *  libc/machine/powerpc/machine/stdlib.h: Ditto.
7389         *  libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c
7390         with added altivec format specifiers.
7391         *  libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with
7392         added altivec format specifiers.
7393
7394 2002-04-19      Joel Sherrill <joel@OARcorp.com>
7395
7396         * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions
7397         while autoconf is trying to link main(){}.
7398
7399 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7400
7401         * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>.
7402         * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
7403
7404 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7405
7406         * libc/time/time.tex: Add tzset info.
7407
7408 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7409
7410         * libc/include/time.h (tzset, _tzset_r): Added prototypes.
7411         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7412         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7413         (tzname): Defined for all platforms.
7414         (daylight, timezone): Defined only for CYGWIN.
7415         * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7416         environment set up.
7417         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7418         environment variable is set.
7419         * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7420         tzset_r.c.
7421         * libc/time/Makefile.in: Regenerated.
7422         * libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7423         * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7424         * libc/time/lcltime_r.c (lcltime_r): Ditto.
7425         * libc/time/local.h: New local header file.
7426         * libc/time/mktime.c (mktime): Add timezone support.
7427         * libc/time/mktm_r.c: New file which is the common engine
7428         for gmtime_r and lcltime_r.  This code has timezone support.
7429         * libc/time/strftime.c (strftime): Add %Z timezone support.
7430         * libc/time/tzlock.c: New file containing timezone lock stubs.
7431         * libc/time/tzset.c: New file containing tzset() routine.
7432         * libc/time/tzset_r.c: New file containing _tzset_r and
7433         internal routine for calculating timezone changes for specified year.
7434
7435 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7436
7437         * configure.in (CRT0_DIR): Set to libc/.
7438         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7439         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7440         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7441         $(CRT1_DIR)/$(CRT1).
7442         * libc/machine/xstormy16/Makefile.in: Regenerated.
7443         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7444         * libc/machine/xstormy16/configure: Regenerated.
7445
7446 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7447
7448         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7449         fails, don't bail out, and try to correct next time.
7450
7451         * libc/include/sys/config.h: Include limits.h.
7452
7453 2002-04-12  Eric Norum  <eric.norum@usask.com>
7454
7455         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7456         routine to allow autoconf to determine that building executables
7457         for rtems works.
7458         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7459         (rtems_gxx_mutex_once): Ditto.
7460
7461 2002-04-09  Tom Rix  <trix@redhat.com>
7462
7463         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7464
7465 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7466
7467         * libc/include/time.h: Fix strptime declaration.
7468         * libc/time/Makefile.am: Add strptime.c.
7469         * libc/time/Makefile.in: Regenerated.
7470         * libc/time/strptime.c: New file.
7471
7472 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7473
7474         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7475         siglongjmp prototype, and sigsetjmp macro definition.
7476         * libc/sys/linux/siglongjmp.c: New file.
7477         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7478         * libc/sys/linux/Makefile.in: Regenerated.
7479
7480 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7481
7482         * Makefile.am: Add support for installing crt1.o if one exists.
7483         * configure.host: Specify crt1.o for linux.
7484         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7485         * Makefile.in: Regenerated.
7486         * configure: Ditto.
7487         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7488         Added for non-Cygwin, non-RTEMS configurations.
7489         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7490         * libc/sys/linux/Makefile.in: Regenerated.
7491         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7492         by gcc.  This fixes problem with reconfiguring linux newlib build.
7493         * libc/sys/linux/sysconf.c: New file.
7494
7495 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7496
7497         * configure.host: Add support for machine subdirectory of
7498         sys subdirectory.
7499         * configure.in: Add check for sys machine subdirectory.
7500         * Makefile.am: Ditto.
7501         * configure: Regenerated.
7502         * Makefile.in: Ditto.
7503         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7504         * libc/sys/linux/sys/syscall.h: Ditto.
7505         * libc/sys/linux/sleep.c: New file.
7506         * libc/sys/linux/socket.c: Ditto.
7507         * libc/sys/linux/sockops.h: Ditto.
7508         * libc/sys/linux/stack.c: Ditto.
7509         * libc/sys/linux/usleep.c: Ditto.
7510         * libc/sys/linux/machine/Makefile.am: Ditto.
7511         * libc/sys/linux/machine/Makefile.in: Ditto.
7512         * libc/sys/linux/machine/aclocal.m4: Ditto.
7513         * libc/sys/linux/machine/configure: Ditto.
7514         * libc/sys/linux/machine/configure.in: Ditto.
7515         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7516         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7517         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7518         * libc/sys/linux/machine/i386/configure: Ditto.
7519         * libc/sys/linux/machine/i386/configure.in: Ditto.
7520         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7521         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7522         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7523         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7524         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7525         * libc/sys/linux/sys/select.h: Ditto.
7526         * libc/sys/linux/configure.in: Add support for machine directory.
7527         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7528         * libc/sys/linux/Makefile.in: Regenerated.
7529         * libc/sys/linux/configure: Ditto.
7530         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7531         * libc/sys/linux/inode.c: Ditto.
7532         * libc/sys/linux/linux.c: Ditto.
7533         * libc/sys/linux/process.c: Ditto.
7534         * libc/sys/linux/systat.c: Ditto.
7535         * libc/sys/linux/time.c: Ditto.
7536         * libc/sys/linux/wait.c: Ditto.
7537         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7538         * libc/sys/linux/io.c: Change header plus add readv/writev.
7539         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7540         use __sigsuspend syscall.
7541         * libc/sys/linux/select.c: Change header plus change select to
7542         use _newselect syscall.
7543         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7544         used by glibc header files.
7545         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7546         types.
7547
7548 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7549
7550         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7551         initializing a struct _reent that has been dynamically allocated.
7552         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7553         _REENT_SMALL and does nothing otherwise.
7554         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7555         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7556         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7557         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7558         [_REENT_SMALL](struct _misc_reent): New structure containing
7559         miscellaneous reentrant areas needed by newlib.
7560         [_REENT_SMALL](struct _reent): Add _misc pointer.
7561         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7562         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7563         and _REENT_STRTOK_LAST macros.
7564         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7565         and _REENT_MBLEN_STATE macros.
7566         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7567         and _REENT_MBTOWC_STATE macros.
7568         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7569         and _REENT_WCTOMB_STATE macros.
7570
7571 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7572
7573         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7574
7575 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7576
7577         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7578
7579 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7580
7581         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7582         Store high part of leading bytes too.
7583
7584 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7585
7586         * libm/math/ef_hypot.c: Increase scale factor to 68.
7587
7588 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7589
7590         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7591         error.
7592
7593 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7594
7595         * libc/sys/go32/access.c: Change license to relaxed license
7596         used in identical file throughout newlib/libgloss.
7597
7598 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7599
7600         * libc/sys/arm/access.c: New file.
7601         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7602         * libc/sys/arm/Makefile.in: Regenerate.
7603         * libc/sys/arm/syscalls.c (_stat): New function.
7604
7605 2002-03-11  Michael Meissner  <meissner@redhat.com>
7606
7607         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7608         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7609         * libc/machine/mips/Makefile.in: Regenerate.
7610         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7611         * libc/machine/mips/memset.c: Dito.
7612         * libc/machine/mips/strcmp.c: Dito.
7613         * libc/machine/mips/strlen.c: Dito.
7614         * libc/machine/mips/strncmp.c: Dito.
7615
7616 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7617
7618         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7619         object so it works for shared library or statici library.
7620 2002-04-17  Jeff Johnston  <jjohnstn@redhat.com>
7621
7622         *  libc/include/time.h (tzset, _tzset_r): Added prototypes.
7623         (strptime): Moved prototype to be within !__STRICT_ANSI__.
7624         (_tzname, _daylight, _timezone): No long __CYGWIN__ only.
7625         (tzname): Defined for all platforms.
7626         (daylight, timezone): Defined only for CYGWIN.
7627         *  libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after
7628         environment set up.
7629         * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
7630         environment variable is set.
7631         *  libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and
7632         tzset_r.c.
7633         *  libc/time/Makefile.in: Regenerated.
7634         *  libc/time/gmtime.c (gmtime): Changed to call gmtime_r.
7635         *  libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r.
7636         *  libc/time/lcltime_r.c (lcltime_r): Ditto.
7637         *  libc/time/local.h: New local header file.
7638         *  libc/time/mktime.c (mktime): Add timezone support.
7639         *  libc/time/mktm_r.c: New file which is the common engine
7640         for gmtime_r and lcltime_r.  This code has timezone support.
7641         *  libc/time/strftime.c (strftime): Add %Z timezone support.
7642         *  libc/time/tzlock.c: New file containing timezone lock stubs.
7643         *  libc/time/tzset.c: New file containing tzset() routine.
7644         *  libc/time/tzset_r.c: New file containing _tzset_r and
7645         internal routine for calculating timezone changes for specified year.
7646
7647 2002-04-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
7648
7649         * configure.in (CRT0_DIR): Set to libc/.
7650         (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty.
7651         * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to
7652         $(CRT0_DIR)$(CRT0) to prevent make warnings.  Likewise for
7653         $(CRT1_DIR)/$(CRT1).
7654         * libc/machine/xstormy16/Makefile.in: Regenerated.
7655         * libc/machine/xstormy16/aclocal.m4: Regenerated.
7656         * libc/machine/xstormy16/configure: Regenerated.
7657
7658 2002-04-13  Alexandre Oliva  <aoliva@redhat.com>
7659
7660         * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
7661         fails, don't bail out, and try to correct next time.
7662
7663         * libc/include/sys/config.h: Include limits.h.
7664
7665 2002-04-12  Eric Norum  <eric.norum@usask.com>
7666
7667         * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
7668         routine to allow autoconf to determine that building executables
7669         for rtems works.
7670         (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
7671         (rtems_gxx_mutex_once): Ditto.
7672
7673 2002-04-09  Tom Rix  <trix@redhat.com>
7674
7675         * libc/include/sys/reent.h (_REENT_INIT_PTR): Fix typo.
7676
7677 2002-04-09  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
7678
7679         * libc/include/time.h: Fix strptime declaration.
7680         * libc/time/Makefile.am: Add strptime.c.
7681         * libc/time/Makefile.in: Regenerated.
7682         * libc/time/strptime.c: New file.
7683
7684 2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>
7685
7686         * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
7687         siglongjmp prototype, and sigsetjmp macro definition.
7688         * libc/sys/linux/siglongjmp.c: New file.
7689         * libc/sys/linux/Makefile.am: Add support for siglongjmp.
7690         * libc/sys/linux/Makefile.in: Regenerated.
7691
7692 2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>
7693
7694         * Makefile.am: Add support for installing crt1.o if one exists.
7695         * configure.host: Specify crt1.o for linux.
7696         * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
7697         * Makefile.in: Regenerated.
7698         * configure: Ditto.
7699         * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
7700         Added for non-Cygwin, non-RTEMS configurations.
7701         * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
7702         * libc/sys/linux/Makefile.in: Regenerated.
7703         * libc/sys/linux/crt1.c: New empty file to override one defaulted
7704         by gcc.  This fixes problem with reconfiguring linux newlib build.
7705         * libc/sys/linux/sysconf.c: New file.
7706
7707 2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>
7708
7709         * configure.host: Add support for machine subdirectory of
7710         sys subdirectory.
7711         * configure.in: Add check for sys machine subdirectory.
7712         * Makefile.am: Ditto.
7713         * configure: Regenerated.
7714         * Makefile.in: Ditto.
7715         * libc/sys/linux/crt0.c: Moved to machine/i386 directory.
7716         * libc/sys/linux/sys/syscall.h: Ditto.
7717         * libc/sys/linux/sleep.c: New file.
7718         * libc/sys/linux/socket.c: Ditto.
7719         * libc/sys/linux/sockops.h: Ditto.
7720         * libc/sys/linux/stack.c: Ditto.
7721         * libc/sys/linux/usleep.c: Ditto.
7722         * libc/sys/linux/machine/Makefile.am: Ditto.
7723         * libc/sys/linux/machine/Makefile.in: Ditto.
7724         * libc/sys/linux/machine/aclocal.m4: Ditto.
7725         * libc/sys/linux/machine/configure: Ditto.
7726         * libc/sys/linux/machine/configure.in: Ditto.
7727         * libc/sys/linux/machine/i386/Makefile.am: Ditto.
7728         * libc/sys/linux/machine/i386/Makefile.in: Ditto.
7729         * libc/sys/linux/machine/i386/aclocal.m4: Ditto.
7730         * libc/sys/linux/machine/i386/configure: Ditto.
7731         * libc/sys/linux/machine/i386/configure.in: Ditto.
7732         * libc/sys/linux/machine/i386/crt0.c: Ditto.
7733         * libc/sys/linux/machine/i386/sigset.c: Ditto.
7734         * libc/sys/linux/machine/i386/sigstack.h: Ditto.
7735         * libc/sys/linux/machine/i386/socketcall.h: Ditto.
7736         * libc/sys/linux/machine/i386/syscall.h: Ditto.
7737         * libc/sys/linux/sys/select.h: Ditto.
7738         * libc/sys/linux/configure.in: Add support for machine directory.
7739         * libc/sys/linux/Makefile.am: Ditto plus add new files above.
7740         * libc/sys/linux/Makefile.in: Regenerated.
7741         * libc/sys/linux/configure: Ditto.
7742         * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
7743         * libc/sys/linux/inode.c: Ditto.
7744         * libc/sys/linux/linux.c: Ditto.
7745         * libc/sys/linux/process.c: Ditto.
7746         * libc/sys/linux/systat.c: Ditto.
7747         * libc/sys/linux/time.c: Ditto.
7748         * libc/sys/linux/wait.c: Ditto.
7749         * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
7750         * libc/sys/linux/io.c: Change header plus add readv/writev.
7751         * libc/sys/linux/signal.c: Change header plus change sigsuspend to
7752         use __sigsuspend syscall.
7753         * libc/sys/linux/select.c: Change header plus change select to
7754         use _newselect syscall.
7755         * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
7756         used by glibc header files.
7757         * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
7758         types.
7759
7760 2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>
7761
7762         * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
7763         initializing a struct _reent that has been dynamically allocated.
7764         (_REENT_CHECK_MISC): New macro that checks _misc struct for
7765         _REENT_SMALL and does nothing otherwise.
7766         (_REENT_STRTOK_LAST): New macro for reentrant strtok.
7767         (_REENT_MBLEN_STATE): New macro for reentrant mblen.
7768         (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
7769         (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
7770         [_REENT_SMALL](struct _misc_reent): New structure containing
7771         miscellaneous reentrant areas needed by newlib.
7772         [_REENT_SMALL](struct _reent): Add _misc pointer.
7773         [_REENT_SMALL](_REENT_INIT_MISC): New macro.
7774         * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
7775         and _REENT_STRTOK_LAST macros.
7776         * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
7777         and _REENT_MBLEN_STATE macros.
7778         * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
7779         and _REENT_MBTOWC_STATE macros.
7780         * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
7781         and _REENT_WCTOMB_STATE macros.
7782
7783 2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>
7784
7785         * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
7786
7787 Wed Mar 27 07:34:44 2002  Jason Tishler <jason@tishler.net>
7788
7789         * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
7790
7791 Tue Mar 26 17:17:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
7792
7793         * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
7794         Store high part of leading bytes too.
7795
7796 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
7797
7798         * libm/math/ef_hypot.c: Increase scale factor to 68.
7799
7800 2002-03-13  Alexandre Oliva  <aoliva@redhat.com>
7801
7802         * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
7803         error.
7804
7805 2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>
7806
7807         * libc/sys/go32/access.c: Change license to relaxed license
7808         used in identical file throughout newlib/libgloss.
7809
7810 2002-03-12  Richard Earnshaw  <rearnsha@arm.com>
7811
7812         * libc/sys/arm/access.c: New file.
7813         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
7814         * libc/sys/arm/Makefile.in: Regenerate.
7815         * libc/sys/arm/syscalls.c (_stat): New function.
7816
7817 2002-03-11  Michael Meissner  <meissner@redhat.com>
7818
7819         * libc/machine/mips/Makefile.am (lib_a_SOURCES): Add Mips specific
7820         variants strlen.c, strcmp.c, strncpy.c, memset.c and memcpy.c.
7821         * libc/machine/mips/Makefile.in: Regenerate.
7822         * libc/machine/mips/memcpy.c: New file, optimized for MIPS.
7823         * libc/machine/mips/memset.c: Dito.
7824         * libc/machine/mips/strcmp.c: Dito.
7825         * libc/machine/mips/strlen.c: Dito.
7826         * libc/machine/mips/strncmp.c: Dito.
7827
7828 2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>
7829
7830         * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
7831         object so it works for shared library or statici library.
7832         * libc/machine/i386/Makefile.in: Regenerated.
7833
7834 Wed Mar  6 10:24:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7835
7836         * libc/machine/sh/Makefile.am (lib_a_SOURCES, SH64 case):
7837         Add memcpy.S, memset.S and strcpy.S.
7838         * libc/machine/sh/Makefile.in: Regenerate.
7839         * libc/machine/sh/asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
7840         (SHHI, SHLO): Define.
7841         * libc/machine/sh/memset.S: Add code for SH5.
7842         * libc/machine/sh/memset.S: Likewise.
7843         * libc/machine/sh/strcpy.S: Likewise.
7844
7845 2002-02-27  Jeff Johnston  <jjohnstn@redhat.com>
7846
7847         * configure.host: Add check for --disable-newlib-io-float
7848         configuration option and add -DNO_FLOATING_POINT to newlib cflags
7849         if appropriate.
7850         * acinclude.m4: Added --disable-newlib-io-float option.
7851         * aclocal.m4: Regenerated.
7852         * configure: Ditto.
7853         * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
7854         * libc/*/aclocal.m4 libc/*/configure 
7855         * libm/*/aclocal.m4 libm/*/configure: Ditto.
7856         * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
7857         if NO_FLOATING_POINT flag is not defined.
7858
7859 2002-02-25  Jeff Johnston  <jjohnstn@redhat.com>
7860
7861         * libc/include/sys/config.h: Add __extension__ in front of
7862         long long references.
7863
7864 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7865
7866         * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
7867         (_stat): Ditto.
7868
7869 2002-02-23  Corinna Vinschen  <corinna@vinschen.de>
7870
7871         * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
7872         of off_t.
7873
7874 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
7875
7876         * libc/machine/xscale/strchr.c (strchr): Add 'r1' to the list of
7877         clobbered registers.
7878
7879 2002-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
7880
7881         * configure.host (newlib_cflags): When host is in m68* add
7882         -DCOMPACT_CTYPE.
7883
7884 2002-02-15  Jeff Johnston  <jjohnstn@redhat.com>
7885
7886         * libc/include/sys/config.h: Add definitions for
7887         __int16_t, __uint16_t, __int64_t, and __uint64_t.
7888
7889 2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>
7890
7891         * libc/sys/mmixware/link.c: New.
7892         * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
7893         volatile.
7894         * libc/sys/mmixware/times.c (_times): Renamed from times.
7895         * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
7896         properly by reading previous contents, not through BinaryReadWrite.
7897         * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
7898         * libc/sys/mmixware/Makefile.in: Regenerate.
7899
7900 2002-02-10  Corinna Vinschen  <corinna@vinschen.de>
7901
7902         * libc/include/grp.h: Don't declare group functions when compiling
7903         Cygwin.
7904
7905 2002-02-09  Corinna Vinschen  <corinna@vinschen.de>
7906
7907         * libc/include/grp.h: Include Cygwin specific header.
7908         * libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
7909         when compiling for Cygwin.
7910         * libc/include/sys/types.h: Don't define off_t, uid_t
7911         and gid_t when compiling for Cygwin.
7912
7913 2002-02-08  matthew green  <mrg@redhat.com>
7914
7915         * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
7916         _REENT_EMERGENCY_SIZE, not sizeof(char *).
7917
7918 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
7919
7920         Contribute sh64-elf.
7921         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
7922         * configure.host (newlib_cflags) [sh*-*-*]: Enable long long
7923         support in printf.
7924         2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
7925         * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
7926         any labels.
7927         2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
7928         * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
7929         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7930         * libc/machine/sh/configure.in: Rework conditionals.
7931         * libc/machine/sh/Makefile.am: Likewise.
7932         * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
7933         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7934         * configure.host: Match `sh*'.
7935         * libc/include/machine/setjmp.h: Define for SH5.
7936         * libc/machine/sh/configure.in: Detect SH5.
7937         * libc/machine/sh/configure: Rebuilt.
7938         * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
7939         * libc/machine/sh/Makefile.in: Rebuilt.
7940         * libc/machine/sh/asm.h: Adjust for SH5.
7941         * libc/machine/sh/setjmp.S: Implement in SHmedia.
7942         * libc/sys/sh/crt0.S: Likewise.
7943         * libc/sys/sh/trap.S: Likewise.
7944
7945 2002-02-07  Jeff Johnston  <jjohnstn@redhat.com>
7946
7947         * libc/machine/i386/Makefile.am: (mach_add_src): Remove.
7948         (mach_add_obj): Conditionally set to setjmp.o or nothing.
7949         (LIB_SOURCES): Remove $(mach_add_src).
7950         (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
7951         (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
7952         * libc/machine/i386/Makefile.in: Regenerate.
7953
7954 2002-02-05  Manik Raina <manik@cisco.com>
7955
7956         * libc/misc/dprintf.c (parse_number): #if 0 unused function.
7957         * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
7958         s, p, k, and outstr.
7959         * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
7960
7961 2002-02-04  Jeff Johnston  <jjohnstn@redhat.com>
7962
7963         * libc/include/sys/reent.h [(!_REENT_SMALL]: Add
7964         _REENT_CHECK_EMERGENCY macro.
7965
7966 2002-02-03  matthew green  <mrg@redhat.com>
7967
7968         * libc/reent/signgam.c (__signgam): Fix error in previous.
7969
7970 2002-02-02  matthew green  <mrg@redhat.com>
7971
7972         * libc/include/sys/config.h (_REENT_SMALL): Define for Xstormy16.
7973
7974         * libc/reent/reent.c (_reclaim_reent): Clean for _REENT_SMALL case.
7975         * libc/reent/reent.tex: Add blurb about _REENT_SMALL.
7976         * libc/include/sys/reent.h (struct _reent): Completely new version
7977         for _REENT_SMALL.
7978         (_REENT_INIT): New defines, different defintion depending on _REENT_SMALL.
7979         (_REENT_CHECK, _REENT_CHECK_TM): Likewise.
7980         (_REENT_CHECK_ASCTIME_BUF, _REENT_INIT_RAND48): Likewise.
7981         (_REENT_CHECK_RAND48, _REENT_INIT_MP, _REENT_CHECK_MP): Likewise.
7982         (_REENT_CHECK_EMERGENCY, _REENT_SIGNGAM, _REENT_RAND_NEXT): Likewise.
7983         (_REENT_RAND48_SEED, _REENT_RAND48_MULT, _REENT_RAND48_ADD): Likewise.
7984         (_REENT_MP_RESULT, _REENT_MP_RESULT_K, _REENT_MP_P5S): Likewise.
7985         (_REENT_MP_FREELIST, _REENT_ASCTIME_BUF, _REENT_TM): Likewise.
7986         (_REENT_EMERGENCY): Likewise.
7987
7988         * libc/include/sys/reent.h (struct __sFILE_fake): New struct, same as
7989         the start of the real __sFILE, used for stdin, stdout and stderr until
7990         they are setup properly.
7991         (struct __sFILE): Move location of _data in _REENT_SMALL case.
7992         * libc/stdio/findfp.c (__sinit): Rearrange for _REENT_SMALL case by
7993         allocated stdin, stdout and stderr.
7994         * libc/stdio/getchar.c (_getchar_r): Call _REENT_SMALL_CHECK_INIT().
7995         * libc/stdio/iprintf.c (iprintf, _iprintf_r): Likewise.
7996         * libc/stdio/perror.c (_perror_r): Likewise.
7997         * libc/stdio/printf.c (printf, _printf_r): Likewise.
7998         * libc/stdio/putchar.c (_putchar_r): Likewise.
7999         * libc/stdio/puts.c (_puts_r): Likewise.
8000         * libc/stdio/scanf.c (scanf, _scanf_r): Likewise.
8001         * libc/stdio/vprintf.c (vprintf): Likewise.
8002         * libc/stdio/vscanf.c (vscanf, _vscanf_r): Likewise.
8003
8004         * libc/stdio/tmpnam.c (_tmpnam_r): Use _REENT_EMERGENCY().
8005
8006         * libc/reent/reent.c (_wrapup_reent): Adjust for _REENT_SMALL atexit.
8007         * libc/include/sys/reent.h (_atexit): Limit atexit() entries to 32
8008         for _REENT_SMALL.
8009         * libc/stdlib/atexit.c (atexit): Rearrange for _REENT_SMALL case.
8010         * libc/stdlib/exit.c (exit): Rearrange for _REENT_SMALL case.
8011
8012         * libc/include/sys/reent.h (struct _rand48): Keep _rand_next if
8013         _REENT_SMALL.
8014         * libc/stdlib/drand48.c (_drand48_r): Call _REENT_CHECK_RAND48().
8015         * libc/stdlib/lcong48.c (_lcong48_r): Likewise.
8016         * libc/stdlib/lrand48.c (_lrand48_r): Likewise.
8017         * libc/stdlib/mrand48.c (_mrand48_r): Likewise.
8018         * libc/stdlib/rand48.c (__dorand48): Likewise.
8019         * libc/stdlib/seed48.c (_seed48_r): Likewise.
8020         * libc/stdlib/srand48.c (_srand48_r): Likewise.
8021         * libc/stdlib/rand48.h (__rand48_seed, __rand48_mult, __rand48_add): Define
8022         as _REENT_RAND48_SEED(), _REENT_RAND48_MULT() and _REENT_RAND48_ADD().
8023         * libc/stdlib/dtoa.c (_dtoa_r): Call _REENT_CHECK_MP().  Use
8024         _REENT_MP_RESULT() and _REENT_MP_RESULT_K().
8025         * libc/stdlib/ldtoa.c (_ldtoa_r): Likewise.
8026         * libc/stdlib/rand.c (srand): Use _REENT_RAND_NEXT().
8027         * libc/stdlib/rand.c (rand): Likewise.
8028
8029         * libc/stdlib/mallocr.c (malloc_stats): Call _REENT_SMALL_CHECK_INIT().
8030         * libc/stdlib/mstats.c (_mstats_r): Call _REENT_SMALL_CHECK_INIT().
8031
8032         * libc/stdlib/mprec.c (Balloc): Call _REENT_CHECK_MP.  Use
8033         _REENT_MP_FREELIST() and _REENT_MP_P5S.
8034         * libc/include/sys/reent.h (struct _mprec): New structure.
8035
8036         * libc/include/sys/reent.h (struct _reent): Rename _strtok_last to
8037         _unused_strtok_last.
8038         * libc/string/strtok.c (strtok): Use a local static variable.
8039
8040         * libc/include/sys/reent.h (_REENT_ASCTIME_SIZE): New define.
8041         (_REENT_EMERGENCY_SIZE): Likewise.
8042         * libc/time/asctime.c (asctime): Call _REENT_CHECK_ASCTIME_BUF().  Use
8043         _REENT_ASCTIME_BUF().
8044         * libc/time/lcltime.c (localtime): Call _REENT_CHECK_TM().  Use
8045         _REENT_TM().
8046
8047         * libc/include/math.h (__singam_r): Use _REENT_SIGNGAM().
8048         * libc/reent/signgam.c (__signgam): Use _REENT_SIGNGAM().
8049         * libm/math/w_gamma.c (gamma): Use _REENT_SIGNGAM().
8050         * libm/math/w_lgamma.c (lgamma): Use _REENT_SIGNGAM().
8051         * libm/math/wf_gamma.c (gammaf): Use _REENT_SIGNGAM().
8052         * libm/math/wf_lgamma.c (lgammaf): Use _REENT_SIGNGAM().
8053
8054 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
8055
8056         * configure.host (xstormy16): Don't use the generic malloc.
8057         * libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
8058         * libc/machine/xstormy16/Makefile.in: Regenerate.
8059         * libc/machine/xstormy16/mallocr.c: New file.
8060         * libc/machine/xstormy16/tiny-malloc.c: New file.
8061
8062 2002-01-28  Thomas Fitzsimmons  <fitzsim@redhat.com>
8063
8064         * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
8065         when _CYGWIN_TYPES_H is not defined.
8066
8067 2002-01-24  Thomas Fitzsimmons  <fitzsim@redhat.com>
8068
8069         * libc/include/sys/signal.h: Revert 2002-01-23 change.
8070
8071 2002-01-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
8072
8073         * libc/include/sys/signal.h: Remove pthread_kill declaration
8074         when __CYGWIN__ is defined.
8075
8076 2002-01-18  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
8077
8078         * libc/include/time.h: Add prototype for strptime for Cygwin.
8079
8080 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
8081
8082         * libc/machine/xscale/memset.c (memset): Fix bug when len == 1 and
8083         dst was not word aligned.
8084
8085         * libc/sys/arm/syscalls.c (_sbrk): Return -1 rather than aborting
8086         if too much memory is requested.
8087
8088 2002-01-11 Jeff Johnston  <jjohnstn@redhat.com>
8089
8090         * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
8091         reads blanks from the input file to break if EOF reached
8092         rather than end processing.
8093
8094 2002-01-07 Jeff Johnston  <jjohnstn@redhat.com>
8095
8096         * MAINTAINERS: Change e-mail addresses to refer to redhat domain.
8097
8098 2002-01-07 Alan Matsuoka <alanm@redhat.com>
8099
8100         * libc/include/machine/ieeefp.h: Configure d10v doubles to
8101         be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
8102         libc/include/sys/config.h: Ditto.
8103
8104 2001-12-28  Corinna Vinschen  <corinna@vinschen.de>
8105
8106         * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE.
8107
8108 2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
8109             Catherine Moore  <clm@redhat.com>
8110             Richard Henderson  <rth@redhat.com>
8111             Corinna Vinschen  <vinschen@redhat.com>
8112
8113         * configure.host: Add support for xstormy16.
8114         * libc/include/machine/ieeefp.h: Add support for xstormy16.
8115         * libc/include/machine/setjmp.h: Add support for xstormy16.
8116         * libc/include/sys/config.h: Add support for xstormy16.
8117         * libc/machine/xstormy16/Makefile.am: New file.
8118         * libc/machine/xstormy16/Makefile.in: New file.
8119         * libc/machine/xstormy16/aclocal.m4: New file.
8120         * libc/machine/xstormy16/configure: New file.
8121         * libc/machine/xstormy16/configure.in: New file.
8122         * libc/machine/xstormy16/setjmp.S: New file.
8123
8124 2001-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
8125
8126         * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
8127         * libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
8128
8129 2001-12-19  Corinna Vinschen  <corinna@vinschen.de>
8130
8131         * libm/machine/Makefile.am: Change rules to create correct lib.a.
8132         * libm/machine/Makefile.in: Regenerated through automake.
8133
8134 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
8135
8136         * Makefile.am (DOCDIR): Force to empty string when doc
8137         directory is not present.
8138
8139 2001-12-18  Thomas Fitzsimmons  <fitzsim@redhat.com>
8140
8141         * libc/machine/i386/f_*: Move to libm/machine/i386.
8142
8143 2001-12-18      Joel Sherrill <joel@OARcorp.com>
8144
8145         * libm/machine/Makefile.am: Add dummy doc stub so
8146         "make info" works.
8147
8148 2001-12-17      Joel Sherrill <joel@OARcorp.com>
8149
8150         * libc/include/sys/types.h (ino_t): RTEMS uses long also.
8151
8152 2001-12-17  Thomas Fitzsimmons  <fitzsim@redhat.com>
8153
8154         * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
8155         $(COMPILE) rather than $(CC).
8156         * libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
8157         (vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
8158         $(LIB_COMPILE) change.
8159         (vfiprintf.$(oext)): Likewise.
8160
8161 2001-12-17  Corinna Vinschen  <vinschen@redhat.de>
8162
8163         * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
8164         conditionalized including of getopt stuff.
8165
8166 2001-12-14  Thomas Fitzsimmons  <fitzsim@redhat.com>
8167
8168         * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
8169         compile line.
8170         (vfiprintf.$(oext)): Likewise.
8171
8172 2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>
8173
8174         * Makefile.shared: New file.
8175         * libc/sys/linux/shared.ld: New file.
8176         * libm/machine/*: New files.
8177         * libm/machine/i386/*: New files.
8178         * Makefile.am: Add libtool support.  Change math and mathfp
8179         references to variables.
8180         * configure.host: Add variables for libtool support.  Add
8181         libm_machine_dir variable.
8182         * configure.in: Add objectlist variables, for libtool
8183         support.  Add CC_FOR_BUILD tests.
8184         * libc/Makefile.am: Add libtool support.  Change crt0.o
8185         reference to be a variable reference.
8186         * libc/configure.in: Add libtool support.  Change sublib
8187         names to be lib${subdir}.la when using libtool.
8188         * libc/ctype/Makefile.am: Add libtool support.
8189         * libc/errno/Makefile.am: Likewise.
8190         * libc/locale/Makefile.am: Likewise.
8191         * libc/machine/Makefile.am: Likewise.
8192         * libc/machine/configure.in: Likewise.
8193         * libc/machine/i386/Makefile.am: Likewise.
8194         * libc/machine/i386/configure.in: Likewise.
8195         * libc/misc/Makefile.am: Likewise.
8196         * libc/posix/Makefile.am: Likewise.
8197         * libc/reent/Makefile.am: Likewise.
8198         * libc/signal/Makefile.am: Likewise.
8199         * libc/stdio/Makefile.am: Likewise.
8200         * libc/stdlib/Makefile.am: Likewise.
8201         * libc/string/Makefile.am: Likewise.
8202         * libc/sys/Makefile.am: Likewise.
8203         * libc/sys/configure.in: Likewise.
8204         * libc/sys/linux/Makefile.am: Add libtool support.  Change
8205         awk reference to a variable reference.  Change signal.h
8206         reference to a variable reference.
8207         * libc/sys/linux/configure.in: Add libtool support.
8208         * libc/syscalls/Makefile.am: Likewise.
8209         * libc/time/Makefile.am: Likewise.
8210         * libc/unix/Makefile.am: Likewise.
8211         * libm/Makefile.am: Add libtool support.  Change math and
8212         mathfp references to variables.
8213         * libm/configure.in: Add libtool support.  Add
8214         LIBM_MACHINE_LIB variable.
8215         * libm/common/Makefile.am: Add libtool support.
8216         * libm/math/Makefile.am: Likewise.
8217         * libm/mathfp/Makefile.am: Likewise.
8218         Regenerate all Makefile.in, aclocal.m4, and configure.
8219
8220 2001-12-13 Anita Kulkarni <anitak@kpit.com>
8221
8222         * libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
8223
8224 2001-12-06  John Peacock <jpeacock@rowman.com>
8225
8226         * libc/include/sys/unistd.h: Correct ualarm declaration.
8227
8228 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
8229
8230         * libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
8231         vector before calling the initialisation functions.
8232
8233 2001-11-29  Christopher Faylor  <cgf@redhat.com>
8234
8235         * libc/include/dirent.h: Protect against multiple inclusion.
8236
8237 2001-11-27  Christopher Faylor  <cgf@redhat.com>
8238
8239         * libc/include/sys/types.h: Define useconds_t.
8240         * libc/include/sys/ulimit.h: Declare ualarm.
8241
8242 2001-11-21  Christopher Faylor  <cgf@redhat.com>
8243
8244         * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element.
8245
8246 2001-11-19  Hans-Peter Nilsson  <hp@bitrange.com>
8247
8248         * libc/sys/mmixware/*: Tweak license header in all source files.
8249
8250 2001-11-12  Corinna Vinschen  <vinschen@redhat.com>
8251
8252         * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
8253         to here.  Rearrange for general inclusion by stdlib.h.
8254         * libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
8255         isn't defined.
8256         * libc/sys/linux/include/alloca.h: Move to libc/include.
8257
8258 2001-11-12  Anthony Green  <green@redhat.com>
8259
8260         * libc/sys/arm/crt0.S (__stack_base__): New symbol.
8261
8262 2001-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
8263
8264         * libc/sys/mmixware/*: Correct spacing in all source files.
8265         * libc/sys/mmixware/syscall.h: Move misplaced file...
8266         * libc/sys/mmixware/sys/syscall.h: ...here.
8267
8268 2001-11-12  Hans-Peter Nilsson  <hp@bitrange.com>
8269
8270         * libc/include/machine/ieeefp.h: Add support for mmix target.
8271         * libc/include/machine/setjmp.h: Ditto.
8272         * configure.host: Ditto.
8273         * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
8274         libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
8275         libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
8276         libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
8277         libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
8278         libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
8279         libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
8280         libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
8281         libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
8282         libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
8283         libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
8284         libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
8285         libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
8286         libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
8287         libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
8288         libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
8289         * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
8290         libc/sys/mmixware/aclocal.m4: Generate.
8291
8292 2001-11-05  Corinna Vinschen  <corinna@vinschen.de>
8293
8294         * libc/include/sys/unistd.h: Add prototypes for endusershell(),
8295         getusershell(), iruserok(), revoke(), ruserok() and setusershell()
8296         when __CYGWIN__ is defined.
8297         * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
8298         logwtmp().
8299
8300 2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
8301
8302         * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
8303         [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
8304         * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
8305         [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
8306
8307 2001-10-24  Christopher Faylor  <cgf@redhat.com>
8308
8309         * libc/stdio/fseek.c: Reset pointer to buffer base
8310         when forced to seek outside of current buffer contents.
8311         This prevents the code from erroneously thinking there is
8312         anything in the current buffer.
8313
8314 2001-10-22  Geoffrey Keating  <geoffk@redhat.com>
8315
8316         * libc/include/math.h: The C++ standard adds the single-precision
8317         versions of the elementary functions.
8318
8319 2001-10-22  Christopher Faylor  <cgf@redhat.com>
8320
8321         * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations
8322         throughout.
8323         * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
8324         * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
8325         * system.c (_system_r): Ditto.
8326
8327 2001-10-17  Corinna Vinschen  <corinna@vinschen.de>
8328
8329         * libc/include/sys/unistd.h: Add prototype for fchdir() when
8330         __CYGWIN__ or __rtems__ is defined.
8331
8332 2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>
8333
8334         * libc/include/stdlib.h: add declarations for
8335         _strtoull_r, _strtoll_r, strtoull, and strtoll.
8336         * libc/stdio/local.h: remove declarations of
8337         __strtoull_r and __strtoll_r.
8338         * libc/stdio/vfscanf.c(__svfscanf_r): call
8339         _strtoull_r instead of __strtoull_r. Ditto
8340         _strtoll_r vs. __strtoll_r.
8341         * libc/stdlib/Makefile.am: add new files to
8342         .c list and .def list
8343         * libc/stdlib/Makefile.in: regenerate
8344         * libc/stdlib/strtoll_r.c: rename __strtoll_r
8345         as _strtoll_r
8346         * libc/stdlib/strtoull_r.c: rename __strtoull_r
8347         as _strtoull_r
8348         * libc/stdlib/strtoull.c: new file
8349         * libc/stdlib/strtoll.c: new file
8350
8351 Mon Sep 17 17:29:47 2001  Christopher Faylor <cgf@cygnus.com>
8352
8353         * libc/include/process.h: Add getpid() declaration.
8354
8355 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8356
8357         * libc/sys/arm/crt0.S: Add calls to _init and _fini (via atexit)
8358         for new style arm/elf ctor/dtor handling.
8359         Minor formatting tidy up.
8360
8361 2001-09-13  Jeff Johnston  <jjohnstn@redhat.com>
8362
8363         * libc/stdlib/Makefile.am: Add support to build strtoll_r.c
8364         and strtoull_r.c.
8365         * libc/stdlib/Makefile.in: Regenerated.
8366         * libc/stdlib/strtoll_r.c: New file.
8367         * libc/stdlib/strtoull_r.c: New file.
8368         * libc/stdio/local.h: Add prototypes for long long string
8369         conversion routines.
8370         * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
8371         tied to %L integer conversion specifier.
8372
8373 Thu Sep 13 08:49:49 2001  Jason Tishler <jason@tishler.net>
8374
8375         * strftime.c (strftime): Fix "%W" implementation to properly handle
8376         Mondays too.
8377
8378 2001-09-07  Jeff Law  <law@redhat.com>
8379
8380         * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
8381         __fini with "mov.l" instead of "mov.w".
8382
8383 2001-09-05  Corinna Vinschen  <corinna@vinschen.de>
8384
8385         * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
8386         and getopt.h.
8387
8388 2001-09-04  Jason Merrill  <jason_merrill@redhat.com>
8389
8390         * libc/sys/h8300hms/crt0.S: Support ELF initialization.
8391
8392 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8393
8394         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
8395         field.
8396         (__DIRENT_VERSION): New define.
8397
8398 2001-09-03  Corinna Vinschen  <corinna@vinschen.de>
8399
8400         * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
8401         Shrink __d_reserved accordingly to keep structure size.
8402         (dirfd): Declare external.
8403
8404 2001-08-29  Joel Sherrill <joel@OARcorp.com>
8405
8406         * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.
8407
8408 2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8409
8410         * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
8411           libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
8412           libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
8413           libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
8414           libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
8415           libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
8416           libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
8417           libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
8418         Add conditional compilation to avoid HW FPU instructions
8419         when compiled for soft-float.
8420
8421 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8422
8423         * Makefile.am: Add check for ln failing when creating libg.a
8424         so that cp gets used as a backup.
8425         * Makefile.in: Regenerated.
8426
8427 2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>
8428
8429         * libc/include/sys/reent.h: Add include of <sys/_types.h>.
8430         No longer include time.h.  Add struct __tm to use for
8431         _localtime_buf in the reentrant structure.  Add a
8432         _NULL definition to use in initializing the reentrant struct.
8433         * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
8434         the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
8435         <sys/_types.h>.
8436         * libc/include/sys/unistd.h: Include <sys/_types.h>.
8437         * libc/time/lcltime.c (localtime): Cast the reentrant struct
8438         _localtime_buf to be struct tm *.
8439
8440 Wed Aug 29 14:17:38 2001  J"orn Rennecke <amylaar@redhat.com>
8441
8442         * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
8443         * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
8444         __ctors_end.
8445         * libc/sys/h8300hms/syscalls.c: Include errno.h.
8446         (_unlink): New stub function.
8447
8448 Sat Aug 25 22:22:25 2001  Christopher Faylor <cgf@cygnus.com>
8449
8450         * libc/include/sys/errno.h: Add a cautionary comment.
8451
8452 2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>
8453
8454         * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
8455         for SIZE_SZ so that alignment ends up a minimum of 8.
8456
8457 Mon Aug 13 22:26:01 2001  Christopher Faylor <cgf@cygnus.com>
8458
8459         * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro
8460         arguments.
8461
8462         * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under
8463         Cygwin.
8464
8465 2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>
8466
8467         * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
8468         macro constants for mallopt options.
8469         (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
8470
8471 2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>
8472
8473         * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
8474         otherwise default.
8475
8476 2001-07-12  Aldy Hernandez  <aldyh@redhat.com>
8477
8478         * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
8479
8480 2001-06-27  Nick Clifton  <nickc@cambridge.redhat.com>
8481
8482         * libc/include/machine/ieeefp.h (__IEEE_BYTES_LITTLE_ENDIAN):
8483         Define for little endian ARMs.
8484
8485         * libc/stdlib/mprec.h (Storeinc): Use little endian version if
8486         __IEEE_BYTES_LITTLE_ENDIAN is defined.
8487
8488 2001-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
8489
8490         * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
8491
8492 2001-06-11  Egor Duda  <deo@logos-m.ru>
8493
8494         * libc/ctype/ctype_.c: When compiled with gcc on platforms
8495         with signed char, make _ctype_[-128] ... _ctype[-1] refer to
8496         initialized memory region. Platform can define COMPACT_CTYPE
8497         to avoid allocation of the additional 128 bytes of data.
8498         Add pointer to _ctype_ array. Always initialize all _ctype_
8499         array elements.
8500
8501 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
8502
8503         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
8504         NULL pointer.
8505
8506 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
8507
8508         * libc/stdio/vfprintf.c (_VFPRINTF_R): Handle printf ("%#.0o",0)
8509
8510 2001-05-25  Nick Clifton  <nickc@cambridge.redhat.com>
8511
8512         * libc/machine/xscale/memcmp.c: Fix bug when both pointers have
8513         matching, non-word alignment, and the length is <= 4 but more than
8514         enough to move them over a word boundary.
8515         Add comments explaining what each instruction does.
8516
8517 Mon May  7 20:39:25 2001  Christopher Faylor <cgf@cygnus.com>
8518
8519         * libc/include/sys/stat.h: Revert March 3, Cygwin change.
8520         * libc/include/sys/unistd.h: Ditto.
8521
8522 2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>
8523
8524         * libc/string/strrchr.c: Use strchr for the speed improvements.
8525
8526 2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>
8527
8528         * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
8529         real file systems, let __smakebuf() determine if line buffering
8530         should be used for stdout.
8531
8532 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8533
8534         * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
8535
8536 2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>
8537
8538         * libc/include/stdlib.h: Add prototype for _strtod_r.
8539
8540 2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu
8541
8542         * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
8543         * libc/stdio/vprintf.c (_vprintf_r): new function
8544         * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
8545         * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
8546         _DEFUN, and call _vfprintf_r, not vfprintf.
8547         * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
8548         * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
8549         _DEFUN, and call _vfprintf_r, not vfprintf.
8550
8551 2001-04-22  Earnie Boyd  <earnie@users.sourceforge.net>
8552   
8553         * libc/include/sys/unistd.h [X_OK]: Use better protection against
8554         Cygwin X_OK definitions in sys/file.h.
8555
8556 Fri Apr 20 23:17:51 2001  Christopher Faylor <cgf@cygnus.com>
8557
8558         * libc/include/sys/time.h: Define timercmp and other macros for
8559         __CYGWIN__, too.
8560
8561 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8562         
8563         * acinclude.m4: Added --enable-malloc-debugging configure flag.
8564         * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
8565         --enable-malloc-debugging selected.
8566         * aclocal.m4 configure: Regenerated.
8567           libm/aclocal.m4 libm/configure: Ditto.
8568         * libc/aclocal.m4 libc/configure: Ditto.
8569         * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
8570         * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
8571         * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
8572         * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
8573         * doc/aclocal.m4 doc/configure: Ditto.
8574
8575 2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>
8576
8577         * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
8578         into one list.
8579         [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
8580         (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
8581         function prototypes.
8582         (_fscanf_r, _sscanf_r): Ditto.
8583         * libc/include/stdlib.h: Added _strtod_r prototype.
8584         * libc/stdio/Makefile.am: Add new v*scanf functions.
8585         * libc/stdio/Makefile.in: Regenerate.
8586         * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
8587         and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.
8588         * libc/stdio/scanf.c: Changed to call __svfscanf_r.
8589         * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
8590         (sscanf): Changed to call __svfscanf_r with _REENT argument.
8591         (_sscanf_r): New routine.
8592         * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
8593         with __svfscanf_r prototype.
8594         * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
8595         routines.
8596         (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
8597         structure as argument as calls reentrant versions of helper functions
8598         (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
8599         to _strtol_r and _strtod_r respectively.
8600         * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
8601         * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
8602         _REENT argument.
8603         * libc/stdio/vscanf.c: New file.
8604         * libc/stdio/vsscanf.c: Ditto.
8605
8606 2001-04-19  Robert Collins  <rbtcollins@hotmail.com>
8607
8608         * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
8609         Define daylight to _daylight if it is not defined
8610         Prepare a variable export of timezone based on timezonevariable. 
8611         (Cannot be used with the timezone() function.)
8612
8613 2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>
8614
8615         * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
8616          Correct the numerical values.
8617
8618 2001-04-13  Robert Collins <rbtcollins@hotmail.com>
8619
8620         * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
8621
8622 Thu Apr 12 23:11:00 2001  Corinna Vinschen <corinna@vinschen.de>
8623
8624         * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
8625         on case insensitve file systems.
8626
8627 2001-04-12  Robert Collins <rbtcollins@hotmail.com>
8628
8629         * libc/include/sys/features.h: Add appropriate defines for Cygwin
8630         pthread support.
8631         * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
8632         * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads
8633         types.  Include <cygwin/types.h> for the cygwin specific typedefs.
8634
8635 2001-04-04  Richard Sandiford  <rsandifo@redhat.com>
8636
8637         * libc/include/machine/ieeefp.h: Comment about new configuration
8638         macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
8639         * libm/common/fdlib.h: Define new macros for testing floats.
8640         * libm/common/sf_*: Use them.
8641         * libm/math/ef_*: Likewise.
8642         * libm/math/sf_*: Likewise.
8643
8644 2001-03-29  Jeff Johnston  <jjohnstn@redhat.com>
8645
8646         * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
8647         prolog to by-pass possible assembler error.
8648
8649 2001-03-21  Egor Duda  <deo@logos-m.ru>
8650
8651         Allow building internal stubs for non-reentrant syscalls
8652         if target provides its own malloc
8653         * libc/reent/reent.c (errno): Move definition here.
8654         * libc/reent/sbrkr.c: From here.
8655
8656 2001-03-20  Danny Smith <dannysmith@users.sourceforge.net>
8657
8658         * libc/include/sys/types.h (BSD int typedefs): Guard with
8659         _BSDTYPES_DEFINED rather than _WINSOCK_H.
8660         (fd_set): Add !defined __USE_W32_SOCKETS to guard; define
8661         _SYS_TYPES_FD_SET.
8662         * libc/include/sys/unistd.h (gethostname): Don't declare if defined
8663         (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
8664
8665 Sat Mar 17 18:30:00 2001  Corinna Vinschen <corinna@vinschen.de>
8666
8667         * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
8668         _PC_POSIX_SECURITY constants for Cygwin.
8669
8670 Wed Mar 14  9:34:00 2001  Corinna Vinschen <corinna@vinschen.de>
8671
8672         * libc/sys/cygwin/crt0.c: Add copyright hint.
8673         * libc/sys/cygwin/sys/dirent.h: Ditto.
8674         * libc/sys/cygwin/sys/param.h: Ditto.
8675         * libc/sys/cygwin/sys/utime.h: Ditto.
8676         * libc/sys/cygwin/sys/utmp.h: Ditto.
8677
8678 2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8679
8680         * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
8681         equivalent to LONGINT.
8682
8683 2001-03-08  Richard Sandiford  <rsandifo@redhat.com>
8684
8685         * (libc/include/machine/setjmp.h): Use 23 long long ints for a
8686         jmpbuf on MIPS64 targets.
8687         * (libc/machine/mips/setjmp.S): Add MIPS64 version.
8688
8689 Wed Mar  7 16:02:07 2001  Christopher Faylor <cgf@cygnus.com>
8690
8691         * libc/include/sys/config.h: Use ssize_t for Cygwin read/write 
8692           declarations.
8693
8694 Mon Mar  5 21:48:54 2001  J"orn Rennecke <amylaar@redhat.com>
8695
8696         * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
8697         For RTEMS, define to be ssize_t.  Default to int if not defined.
8698         * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
8699         * libc/stdio/stdio.c (__sread, __swrite): Likewise.
8700         * libc/stdio/local.h (__sread, __swrite): Likewise.
8701         * libc/include/sys/reent.h (_read, _write): Likewise.
8702         * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
8703         * libc/syscalls/sysread.c (read): Likewise.
8704         * libc/syscalls/syswrite.c (write): Likewise.
8705
8706 2001-03-05  Jeff Johnston  <jjohnstn@redhat.com>
8707
8708         * libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
8709
8710 Sat Mar  3 00:34:14 2001  Christopher Faylor <cgf@cygnus.com>
8711
8712         * libc/include/sys/stat.h: Use special defines for executable stat bits
8713         when compiling for Cygwin.
8714         * libc/include/sys/unistd.h: Use special define for X_OK when compiling
8715         for Cygwin.
8716
8717 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8718
8719         * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
8720         of strtok_r is always defined.
8721
8722 2001-03-02  Jeff Johnston  <jjohnstn@redhat.com>
8723
8724         * libc/include/machine/ansi.h: New dummy header file.
8725
8726 2001-02-22  Jeff Johnston  <jjohnstn@redhat.com>
8727
8728         * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
8729         changed the copyright information to allow free modification of the
8730         file with no reference to "copying.dj".
8731         * libc/include/sys/stat-dj.h: Ditto.
8732         * libc/machine/i386/setjmp.S: Ditto.
8733         * libc/sys/h8300hms/sys/file.h: Ditto.
8734         * libc/sys/sysmec/access.c: Ditto.
8735         * libc/sys/sysnecv850/access.c: Ditto.
8736         * libc/stdio/mktemp.c: Fixed typo for the word copyright.
8737         * libc/stdlib/getenv_r.c: Ditto.
8738         * libc/stdlib/putenv_r.c: Ditto.
8739         * libc/stdlib/setenv_r.c: Ditto.
8740         * libc/stdlib/getenv.c: Removed DJ reference since any possible
8741         modifications will now be in the _r version of this file.
8742         * libc/stdlib/putenv.c: Ditto.
8743         * libc/stdlib/setenv.c: Ditto.
8744         * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
8745         valid.  Added a reference to DJ's web page that contains his address.
8746         * libc/sys/go32/*.s: Removed references to DJ's old address.
8747         * libc/sys/go32/*.c: Ditto.
8748         * libc/sys/go32/*.h: Ditto.
8749         * libc/sys/go32/*.S: Ditto.
8750         * libc/sys/go32/sys/*.h: Ditto.
8751
8752 2001-02-21  Jeff Johnston  <jjohnstn@redhat.com>
8753
8754         * libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
8755         HAVE_FCNTL flag check.
8756         * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
8757         powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
8758
8759 Thu Feb 15 01:39:51 2001  Christopher Faylor <cgf@cygnus.com>
8760
8761         * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.
8762
8763 2001-02-14  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
8764
8765         * libc/include/stdlib.h: Add declarations of rand48 functions and
8766         their reentrant versions.
8767         * libc/include/sys/reent.h: Move macros from rand48.h. Add
8768         struct _rand48 for shared parameters of rand48 functions.
8769         (struct _reent): Add a variable _r48 of struct _rand48.
8770         (_REENT_INIT): Add _r48 initialization.
8771         * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
8772         (CHEWOUT_FILES): Add rand48.def.
8773         * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
8774         * libc/stdlib/Makefile.in: Regenerated.
8775         * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
8776         NetBSD C library.
8777         * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
8778         * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
8779         * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
8780         * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
8781         * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
8782         * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
8783         * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
8784         * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
8785         * libc/stdlib/rand48.c (__dorand48): Ditto.
8786         * libc/stdlib/rand48.h: Ditto, and modify declarations of global
8787         parameters into macros referring them in the reentrant structure.
8788
8789 2001-02-12  Jeff Johnston  <jjohnstn@redhat.com>
8790
8791         * libc/include/sys/stat.h: Add mknod for Cygwin now that
8792         Cygwin definition has correct prototype.
8793
8794 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8795
8796         * libc/include/sys/stat.h: Must revert change for mknod
8797         for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
8798         prototype.
8799
8800 2001-02-08  Jeff Johnston  <jjohnstn@redhat.com>
8801
8802         * libc/include/stdio.h: Revert putw prototype.
8803
8804 2001-02-08  Edward M. Lee  <tailbert@yahoo.com>
8805
8806         * libc/include/grp.h: add prototype for initgroups.
8807         * libc/include/stdio.h: fix prototype for putw.
8808         * libc/include/sys/signal.h: add prototype for killpg.
8809         * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
8810         * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
8811         vhangup and remove duplicate sysconf prototype.
8812
8813 2001-02-07  Jeff Johnston  <jjohnstn@redhat.com>
8814
8815         * libc/sys/rtems/sys/types.h: Removed.
8816
8817 2001-02-05  Charles Wilson  <cwilson@ece.gatech.edu>
8818
8819         * libc/include/locale.h: add LC_MESSAGES definition
8820
8821 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8822
8823         * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
8824         SYS_get_argN):
8825         * libc/sys/sh/syscalls.c (__setup_argv_for_main,
8826         __setup_argv_and_call_main): New.
8827
8828 2001-01-31  Jeff Johnston  <jjohnstn@redhat.com>
8829
8830         * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
8831         if defined.
8832         (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
8833         (L_tmpnam): Changed to use __L_tmpnam__ if defined.
8834         * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
8835         appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
8836
8837 Mon Jan 29 23:03:06 2001  Christopher Faylor <cgf@cygnus.com>
8838
8839         * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
8840         compiling under Cygwin.
8841
8842 2001-01-29  Jeff Johnston  <jjohnstn@redhat.com>
8843
8844         * libc/include/math.h (signgam): Change to errno-like solution
8845         using a function to return the address of the real signgam.
8846         * libc/reent/signgam.c: New file containing __signgam().
8847         * libc/reent/Makefile.am: Added signgam.c to list of files.
8848         * libc/reent/Makefile.in: Regenerated.
8849
8850 2001-01-25  Alexandre Oliva  <aoliva@redhat.com>
8851
8852         * libc/sys/sh/syscalls.c (_times): New.
8853
8854         * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
8855         * libc/sys/sh/syscalls.c (_gettimeofday): New.
8856
8857 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8858
8859         * libc/include/math.h (signgam): Regress previous fix as
8860         it does not handle programs with extern int signgam in them.
8861
8862 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8863
8864         * libc/include/math.h (signgam): Changed to a macro refering to
8865         its location in the reentrant structure.
8866
8867 2001-01-23  Jeff Johnston  <jjohnstn@redhat.com>
8868
8869         * libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
8870         that suppressed . for %.0f, 0.1.  Check now looks if there
8871         are padding zeroes (expt) in addition to any digits (ndig) to
8872         print.
8873
8874 2001-01-18  Jeff Johnston  <jjohnstn@redhat.com>
8875
8876         * libc/sys/arc/Makefile.am: New file.
8877         * libc/sys/arc/Makefile.in: Ditto.
8878         * libc/sys/arc/aclocal.m4: Ditto.
8879         * libc/sys/arc/configure: Ditto.
8880         * libc/sys/arc/configure.in: Ditto.
8881         * libc/sys/arc/crt0.S: Ditto.
8882         * libc/sys/arc/isatty.c: Ditto.
8883         * libc/sys/arc/mem-layout.c: Ditto.
8884         * libc/sys/arc/sbrk.c: Ditto.
8885         * libc/sys/arc/syscalls.c: Ditto.
8886         * libc/sys/arc/sys/syscall.h: Ditto.
8887
8888 Wed Jan 17 23:20:56 2001  Christopher Faylor <cgf@cygnus.com>
8889
8890         * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.
8891
8892 Fri Jan 12 00:34:31 2001  Christopher Faylor <cgf@cygnus.com>
8893
8894         * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.
8895
8896 Thu Jan 11 20:42:06  2001  Earnie Boyd  <earnie_boyd@yahoo.com>
8897
8898         * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__
8899
8900 2001-01-09  Nick Clifton  <nickc@redhat.com>
8901
8902         * configure.host (v859): Remove unsupported compiler options.
8903
8904 Fri Jan  5 19:57:00 EST 2001  Aaron J. Grier  <aaron@frye.com>
8905
8906         * src/newlib/configure.host (*-*-rtems*): add printf long long
8907         support for RTEMS.
8908
8909 2000-12-19  Graham Stott <grahams@redhat.com>
8910
8911         * libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
8912
8913 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8914
8915         * configure.host: Turn on long double I/O for Cygwin.
8916
8917 Wed Dec 14  Jeff Johnston  <jjohnstn@redhat.com>
8918
8919         * MAINTAINERS: Removed Ranjith.
8920         * NEWS: Updated for 1.9.0.
8921         * README: Updated.
8922         * acinclude.m4: Updated to release 1.9.0.
8923         * aclocal.m4 configure
8924           doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
8925           libc/machine/aclocal.m4 libc/machine/configure
8926           libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
8927           libc/machine/arm/aclocal.m4 libc/machine/arm/configure
8928           libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
8929           libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
8930           libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
8931           libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
8932           libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
8933           libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
8934           libc/machine/i386/aclocal.m4 libc/machine/i386/configure
8935           libc/machine/i960/aclocal.m4 libc/machine/i960/configure
8936           libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
8937           libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
8938           libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
8939           libc/machine/mips/aclocal.m4 libc/machine/mips/configure
8940           libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
8941           libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
8942           libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
8943           libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
8944           libc/machine/sh/aclocal.m4 libc/machine/sh/configure
8945           libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
8946           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
8947           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
8948           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
8949           libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
8950           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
8951           libc/sys/aclocal.m4 libc/sys/configure
8952           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
8953           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
8954           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
8955           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
8956           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
8957           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
8958           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
8959           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
8960           libc/sys/linux/aclocal.m4 libc/sys/linux/configure
8961           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
8962           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
8963           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
8964           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
8965           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
8966           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
8967           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
8968           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
8969           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
8970           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
8971           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
8972           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
8973           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
8974           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
8975           libm/aclocal.m4 libm/configure: Regenerated.
8976
8977 Wed Dec 13 11:52:00 2000  Corinna Vinschen <vinschen@cygnus.com>
8978
8979         * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
8980         when __CYGWIN__ is defined.
8981
8982 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8983
8984         * libc/stdlib/ldtoa.c (_ldcheck): New routine
8985         that categorizes a long double as NaN, Infinity, or other.
8986         * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed 
8987         isinfl and isnanl static routines which were i386-specific.  Changed 
8988         calls to the two removed routines to a single _ldcheck call.
8989         * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
8990
8991 2000-12-13  Jeff Johnston  <jjohnstn@redhat.com>
8992
8993         * Makefile.am: Fixed install-data-local target to use
8994         $(mkinstalldirs) for the installed header files to ensure
8995         the directories exist before copying.
8996         * Makefile.in: Regenerated.
8997
8998 2000-12-12  Jeff Johnston  <jjohnstn@redhat.com>
8999
9000         * libc/include/sys/unistd.h: Restored Cygwin _SC
9001         constants and moved new constants appropriately
9002         so Cygwin will build.
9003
9004 2000-12-11  Joel Sherrill <joel@OARcorp.com>
9005
9006         * Merge RTEMS specific .h files into main libc/include.
9007         * libc/sys/rtems/include/signal.h: Removed.
9008         * libc/sys/rtems/include/time.h: Removed.
9009         * libc/sys/rtems/sys/features.h: Removed.
9010         * libc/sys/rtems/sys/sched.h: Removed.
9011         * libc/sys/rtems/sys/siginfo.h: Removed.
9012         * libc/sys/rtems/sys/signal.h: Removed.
9013         * libc/sys/rtems/sys/time.h: Removed.
9014         * libc/sys/rtems/sys/times.h: Removed.
9015         definitions for time_t and clock_t since these are
9016         no longer in time.h.
9017         * libc/include/pthread.h: New file.
9018         * libc/include/sys/sched.h: New file.
9019         * libc/include/sys/features.h: New file.
9020         * libc/include/time.h: Removed duplicate definition of clock_t
9021         and time_t, get them from <sys/types.h> instead.  Add prototypes
9022         for POSIX clock and timer functionality.
9023         * libc/sys/linux/sys/types.h: Changed to include
9024         * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
9025         * libc/include/sys/signal.h: Add more complete set of POSIX
9026         signal functionality including real-time and threaded signals.
9027         * libc/include/sys/types.h: Add clock_t, time_t, struct
9028         timespec, and struct itimerspec.  Centralizing these makes 
9029         things cleaner.  RTEMS uses 64-bit dev_t.
9030         Added numerous primitive definitions
9031         for pthreads including macros, pthread_attr_t,
9032         pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, 
9033         pthread_once_t, and pthread_t.
9034         * libc/include/sys/unistd.h: Added getlogin_r() prototype.
9035         If RTEMS follow POSIX on read(), write() and sbrk() prototype.
9036         Feature flags removed and moved to new file <sys/features.h>.
9037         Full set of POSIX sysconf() constants
9038
9039 2000-12-08  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9040
9041         * configure.host: Added x86 linux target.
9042         * libc/unix/getpass.c (_PATH_PASSWD, _PASSWORD_LEN): Default
9043         definitions provided if not already defined.
9044         * libc/sys/linux/crt0.c: New file.
9045         * libc/sys/linux/Makefile.am: Ditto.
9046         * libc/sys/linux/Makefile.in: Ditto.
9047         * libc/sys/linux/aclocal.m4: Ditto.
9048         * libc/sys/linux/brk.c: Ditto.
9049         * libc/sys/linux/configure: Ditto.
9050         * libc/sys/linux/configure.in: Ditto.
9051         * libc/sys/linux/getoptlong.c: Ditto.
9052         * libc/sys/linux/ids.c: Ditto.
9053         * libc/sys/linux/inode.c: Ditto.
9054         * libc/sys/linux/io.c: Ditto.
9055         * libc/sys/linux/linux.c: Ditto.
9056         * libc/sys/linux/process.c: Ditto.
9057         * libc/sys/linux/realpath.c: Ditto.
9058         * libc/sys/linux/select.c: Ditto.
9059         * libc/sys/linux/signal.c: Ditto.
9060         * libc/sys/linux/systat.c: Ditto.
9061         * libc/sys/linux/termios.c: Ditto.
9062         * libc/sys/linux/time.c: Ditto.
9063         * libc/sys/linux/wait.c: Ditto.
9064         * libc/sys/linux/include/alloca.h: Ditto.
9065         * libc/sys/linux/include/getopt.h: Ditto.
9066         * libc/sys/linux/include/stdint.h: Ditto.
9067         * libc/sys/linux/include/unistd.h: Ditto.
9068         * libc/sys/linux/sys/cdefs.h: Ditto.
9069         * libc/sys/linux/sys/dirent.h: Ditto.
9070         * libc/sys/linux/sys/errno.h: Ditto.
9071         * libc/sys/linux/sys/fcntl.h: Ditto.
9072         * libc/sys/linux/sys/file.h: Ditto.
9073         * libc/sys/linux/sys/ioctl.h: Ditto.
9074         * libc/sys/linux/sys/resource.h: Ditto.
9075         * libc/sys/linux/sys/signal.h: Ditto.
9076         * libc/sys/linux/sys/stat.h: Ditto.
9077         * libc/sys/linux/sys/syscall.h: Ditto.
9078         * libc/sys/linux/sys/termios.h: Ditto.
9079         * libc/sys/linux/sys/time.h: Ditto.
9080         * libc/sys/linux/sys/types.h: Ditto.
9081         * libc/sys/linux/sys/utmp.h: Ditto.
9082         * libc/sys/linux/sys/utsname.h: Ditto.
9083         * libc/sys/linux/sys/wait.h: Ditto.
9084
9085 2000-12-08  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9086
9087         * Makefile.am: $(INSTALL), $(INSTALL_DATA), and $(INSTALL_PROGRAM)  
9088         can be a relative path to $(top_srcdir)/install.sh so ensure the
9089         autoconf detected settings are properly passed recursively.
9090         Similarly, add AM_MAKEFLAGS to FLAGS_TO_PASS so they also get passed
9091         properly to subdirectories.
9092         * Makefile.in: Regenerated.
9093
9094 2000-12-07  Jay Kulpinski <jskulpin@eng01.gdds.com>
9095
9096         * libc/stdio/vfprintf.c: Minor modification to avoid requiring
9097         a floating point register unless really printing a floating
9098         point number.
9099
9100 2000-12-07  Jeff Johnston  <jjohnstn@redhat.com>
9101
9102         * libc/stdlib/ldtoa.c: Removed include of alloca.h.
9103         Also removed \r's.
9104         (asctoeg): Replaced alloca call with stack array and malloc
9105         when storage exceeds reasonable limit.
9106         (e53toe): Fixed einfin calls missing ldp parameter.
9107         (eiisinf): Hide behind check for LDBL_MANT_DIG == 64.
9108
9109 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
9110
9111
9112         * libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
9113
9114 2000-12-06  Jeff Johnston  <jjohnstn@redhat.com>
9115
9116         * libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.
9117         * libc/stdlib/Makefile.in: Regenerated.
9118         * libc/stdio/floatio.h: Added suitable MAXEXP for long double.
9119         * libc/stdio/vfieeefp.h: Added long double bit structures.
9120         * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support.
9121         [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines.
9122         (exponent): Changed expbuf to reasonable maximum instead of MAXEXP.
9123         * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support.
9124         * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and
9125         _strtold routines used for conversions between character
9126         and long double.
9127
9128 Wed Dec  6 12:01:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9129
9130         * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.
9131
9132 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9133
9134         * libc/include/machine/time.h: RTEMS systems can configure clock
9135         tick rate so use sysconf() to ask.
9136
9137 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9138
9139         * libc/include/sys/times.h: Add reference to POSIX standard.
9140
9141 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9142
9143         * libc/include/sys/time.h: Added BSD timer manipulation macros
9144         used by RTEMS code.
9145
9146 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9147
9148         * libc/sys/rtems/crt0.c: Add stubs for functions implicitly
9149         referenced by code generated by gcc 2.8.1.
9150         (a29k): Add stubs for V_SPILL, V_FILL, V_BSD_OS, V_EPI_OS to 
9151         satisfy gcc.
9152
9153 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9154
9155         * libc/stdlib/system.c: Avoid compiling do_system() for RTEMS.
9156
9157 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9158
9159         * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
9160
9161 2000-12-04  Joel Sherrill <joel@OARcorp.com>
9162
9163         * configure.host (or16, or32): New entries for OpenCores
9164         OpenRisc CPUs.
9165         (*-*-rtems*): Add -DNO_EXEC.
9166
9167 2000-12-04  Keith Outwater <vac4050@cae597.rsc.raytheon.com>
9168
9169         * libc/include/sys/errno.h: Added comments on many error numbers.
9170         * libc/string/strerror.c: Added some more strings.
9171
9172 2000-11-30  Jeff Johnston <jjohnstn@redhat.com>
9173
9174         * libc/sys/sh/syscalls.c (_link): New stub.
9175
9176 2000-11-29  Nick Clifton  <nickc@redhat.com>
9177
9178         * configure.host: Add xscale target.
9179         * libc/machine/xscale: New directory.
9180         * libc/machine/xscale/Makefile.am: New file.
9181         * libc/machine/xscale/Makefile.in: New file.
9182         * libc/machine/xscale/aclocal.m4: New file.
9183         * libc/machine/xscale/configure: New file.
9184         * libc/machine/xscale/configure.in: New file.
9185         * libc/machine/xscale/memchr.S: New file.
9186         * libc/machine/xscale/memcmp.S: New file.
9187         * libc/machine/xscale/memcpy.S: New file.
9188         * libc/machine/xscale/memmove.S: New file.
9189         * libc/machine/xscale/memset.S: New file.
9190         * libc/machine/xscale/strchr.S: New file.
9191         * libc/machine/xscale/strcmp.S: New file.
9192         * libc/machine/xscale/strcpy.S: New file.
9193         * libc/machine/xscale/strlen.S: New file.
9194
9195 Sat Nov 25 11:24:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9196
9197         * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro to
9198         avoid compiler warnings.
9199
9200 2000-11-22  Michael Meissner  <meissner@redhat.com>
9201
9202         * libc/posix/execl.c (execl): Don't reference environ directly,
9203         reference it only via a static pointer to avoid problems with some
9204         shared library systems and with different uses of small data where
9205         the user specifies his own version of environ.
9206         * libc/posix/execv.c (execv): Ditto.
9207         * libc/stdlib/getenv_r.c (_findenv_r): Ditto.
9208         * libc/stdlib/setenv_r.c (_setenv_r,_unsetenv_r): Ditto.
9209         * libc/stdlib/system.c (system, !cygwin32 case): Ditto.
9210
9211         * libc/stdlib/getenv.c (environ): Delete unused reference to
9212         environ.
9213
9214         * libc/stdlib/getenv_r.c: Make initial comment friendlier to emacs
9215         colorization.
9216         * libc/stdlib/system.c: Ditto.
9217
9218 Tue Nov 21 20:32:21 2000  Christopher Faylor <cgf@cygnus.com>
9219
9220         * libc/sys/cygwin/sys/dirent.h: Change definition to avoid necessity of
9221         including windows headers.
9222
9223 2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
9224
9225         * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
9226         * libc/include/dirent.h: Added definition of MAXNAMLEN if
9227         not defined by sys/dirent.h.
9228         * libc/posix/execvp.c: Added include of dirent.h to get
9229         MAXNAMLEN value which used to be in unistd.h.
9230
9231 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9232
9233         * libc/include/sys/types.h: Change type of i to `size_t' in
9234         FD_ZERO macro to avoid compiler warnings.
9235
9236 Sun Oct 29 20:06:41 2000  Christopher Faylor <cgf@cygnus.com>
9237
9238         * libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
9239         * libc/include/malloc.h: Ditto.  Also remove obsolete declaration.
9240
9241 Tue Oct 24 20:16:00 2000  Corinna Vinschen <vinschen@cygnus.com>
9242
9243         * libc/include/sys/unistd.h: Add defines for sysconf values
9244         _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
9245         _SC_AVPHYS_PAGES.
9246
9247 Mon Oct  9 20:26:33 2000  Christopher Faylor <cgf@cygnus.com>
9248
9249         * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize
9250         declarations for __CYGWIN__.
9251
9252 2000-09-19  Geoffrey Keating  <geoffk@cygnus.com>
9253
9254         * libc/signal/signal.c (__sigtramp_r): ISO C requires
9255         case labels to be integral constant expressions, so
9256         use an if/else tree instead.
9257         (_raise_r): Likewise.
9258
9259 2000-09-13  Jeff Johnston  <jjohnstn@redhat.com>
9260
9261         * libc/machine/v850/setjmp.S: Fixed tab problems caused by
9262         clipping patch from e-mail reader.
9263
9264 2000-09-13  Will Cohen  <wcohen@redhat.com>
9265
9266         * libc/machine/v850/setjmp.S (_setjmp): Save r1 rather than r0.
9267         Added return value 0.
9268         (_longjmp): Allow longjmp to return value of second argument
9269         passed to it.
9270
9271 2000-09-06  Jeff Johnston <jjohnstn@redhat.com>
9272
9273         * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
9274         inline code to prevent having to include another header file.
9275
9276 Wed Sep  6 15:06:40 2000  Christopher Faylor <cgf@cygnus.com>
9277
9278         * Makefile.am: Fix space vs. tab problem in install-data-local.
9279         * Makefile.in: Regenerate.
9280
9281 Wed Sep  6 13:49:51 2000  Christopher Faylor <cgf@cygnus.com>
9282
9283         * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
9284         (_EXPARM): New macro for defining a function parameter.
9285         * libc/include/stdlib.h: Use _EXPARM.
9286         * libc/stdlib/mallocr.c: Don't build cfree for Cygwin.
9287
9288 2000-09-05  Manfred Hollstein  <manfredh@redhat.com>
9289
9290         * Makefile.am (install-data-local): Use optional $(DESTDIR) where
9291         required, as documented in the gnu coding standards.
9292         * Makefile.in: Regenerate.
9293
9294 2000-09-05  Jeff Johnston <jjohnstn@redhat.com>
9295
9296         * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
9297         make O_NDELAY and O_NONBLOCK have the same value.
9298
9299 2000-08-30  Kazu Hirata  <kazu@hxi.com>
9300
9301         * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
9302
9303 2000-08-30  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9304
9305         * libc/posix/execve.c: included unistd.h for "_execve" prototype.
9306         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
9307         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
9308         everywhere else.
9309
9310 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com>
9311
9312         * libc/string/swab.c: Specify that it's defined in <unistd.h>.
9313         * libc/include/string.h: Don't include <sys/types.h>,
9314         as it causes really bad namespace pollution.  Don't declare
9315         swab(), it is properly declared in unistd.h.
9316
9317 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9318
9319         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed
9320         (broken) support for non-existent /etc/passwd field "comment".
9321
9322 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9323
9324         * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen
9325         only if _DIRENT_HAVE_D_NAMLEN is defined.
9326         (alphasort): aligned prototype with
9327         libc/sys/cygwin/sys/dirent.h and simplified function body.
9328         * libc/posix/telldir.c (telldir): changed "telldir" prototype to
9329         long telldir (DIR *) as mentioned in annex B of POSIX.1
9330
9331 2000-08-27  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9332
9333         * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type
9334         of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined;
9335         Added __CLI and __STI macros (controlled via
9336         _I386MACH_ALLOW_HW_INTERRUPTS macro).
9337         * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S
9338         libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S
9339         libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S
9340         libc/machine/i386/f_log.S libc/machine/i386/f_log10.S
9341         libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S
9342         libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S
9343         libc/machine/i386/memchr.S libc/machine/i386/memcmp.S
9344         libc/machine/i386/memcpy.S libc/machine/i386/memmove.S
9345         libc/machine/i386/memset.S libc/machine/i386/setjmp.S
9346         libc/machine/i386/strchr.S libc/machine/i386/strlen.S:
9347         (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol)
9348         for all global entry points.
9349         * libc/machine/i386/setjmp.S: removed code replicated in
9350         libc/machine/i386/i386mach.h and included i386mach.h instead;
9351         Use __CLI and __STI instead of cli and sti.
9352
9353 2000-08-25  DJ Delorie  <dj@redhat.com>
9354
9355         * libc/include/sys/unistd.h (environ): this one isn't from the
9356         DLL, no __IMPORT
9357
9358 Fri Aug 25 13:37:11 2000  Christopher Faylor <cgf@cygnus.com>
9359
9360         * libc/stdlib/system.c (do_system): Eliminate explicit declaration of
9361         environ when compiling under cygwin since it is already declared in
9362         unistd.h.
9363
9364 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9365
9366         * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
9367         like  x << y-z  to the equivalent  x << (y-z).
9368         (d2b): changed if statements with assignment to perform the
9369         assignment prior to the if check.
9370         * libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
9371         * libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
9372         * libc/unix/ttyname.c: included string.h for "strcpy" prototype.
9373         * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
9374         precedence.
9375         * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
9376         Added "_execve" prototype (for execl.c, execle.c, execv.c, and 
9377         execve.c).
9378         * libc/posix/popen.c (popen): added parentheses to clarify && and ||
9379         precedence.
9380         * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
9381         clarify && and || precendence (and to remove pascalism).
9382         * libm/math/e_sinh.c (__ieee754_sinh): Ditto.
9383         * libm/math/s_infconst.c: added another pair of braces to all
9384         initializers for __infinity (need three: for __infinity[1] array,
9385         for union __dmath, and for i[2]).
9386
9387 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9388
9389         * libc/stdlib/abort.c: changed description: uses "raise" instead of
9390         "getpid" and "kill"; added: uses "write" and "_exit".
9391         Also included unistd.h for "_exit" prototype.
9392         * libc/stdlib/system.c: included unistd.h for "execve" prototype,
9393         reent.h for "_fork_r" and "_wait_r" prototypes.
9394         (do_system): changed  extern char *environ[] to POSIX-friendly 
9395         extern char **environ.
9396         * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp"
9397         prototypes.
9398         * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype.
9399         * libc/reent/execr.c: included sys/wait.h for "wait" prototype.
9400         * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype.
9401         * libc/reent/openr.c: included fcntl.h for "open" prototype.
9402         * libc/reent/signalr.c: included signal.h for "kill" prototype,
9403         unistd.h for "getpid" prototype.
9404         * libc/reent/statr.c: included sys/stat.h for "stat" prototype.
9405         * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype.
9406         * libc/unix/getut.c (utmpname): removed local, incorrect "strdup"
9407         prototype.  Also included stdlib.h for "abort", string.h for
9408         "strdup" and "strncmp" prototypes.
9409         * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and
9410         "strncpy", unistd.h for "read" and "close" prototypes.
9411         * libc/posix/execvp.c: included string.h for "strchr", "strlen", and
9412         "strcat" prototypes.
9413
9414 2000-08-23  Werner Almesberger  <Wernen Almesberger@epfl.ch>
9415
9416         * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's
9417         used later (ifdef __SCLE)
9418         * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's
9419         used later (ifdef MB_CAPABLE)
9420         * libc/string/memset.c (memset): removed unused variables "count"
9421         and "unaligned_addr"
9422         * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and
9423         "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE)
9424         * libc/unix/getpwent.c (getpwnam): removed unused variables "uid"
9425         and "gid"
9426
9427 2000-08-23  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9428
9429         * libc/stdlib/envlock.c: changed documented "__env_lock" and
9430         "__env_unlock" prototype from "void *" or "char *" to
9431         "struct _reent *" to match real function.  Also added include
9432         of envlock.h.
9433         * libc/stdlib/mlock.c: changed documented "__malloc_lock" and
9434         "__malloc_unlock" prototype from "void *" or "char *" to
9435         "struct _reent *" to match real function.
9436         * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
9437         prototypes (for getenv_r.c and setenv_r.c).
9438
9439 2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>
9440
9441         * libc/unix/getut.c (utmpname): added _CONST to reflect common use
9442         and prototype in cygwin's utmp.h
9443
9444 2000-08-16  Eric Fifer  <efifer@sanwaint.com>
9445
9446         * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1
9447
9448 2000-08-09  Nick Clifton  <nickc@cygnus.com>
9449
9450         * libc/sys/arm/setjmp.S: Recode to clean up function prologues and
9451         epilogue and to allow the functions to be used in a Thumb based
9452         toolchain.
9453
9454 2000-08-08  Jeff Johnston <jjohnstn@redhat.com>
9455
9456         * libc/stdio/snprintf.c (snprintf, _snprintf_r): Fixed code
9457         so size of 0 results in nothing being written to string.
9458         Also fixed code so that when size is non-zero, there is only
9459         a maximum of size - 1 characters written to the array and
9460         a nul terminator is appended at the end.
9461         * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
9462
9463 2000-08-01  DJ Delorie  <dj@redhat.com>
9464
9465         * libc/include/sys/config.h: define __IMPORT appropriately
9466         * libc/include/ctype.h (_ctype_): use __IMPORT
9467         * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
9468         * libc/include/math.h (__mb_cur_max): ditto
9469         * libc/include/time.h (_timezone, _daylight, _tzname): ditto
9470         * libc/include/unctrl.h (__unctrl, __unctrllen): ditto
9471         * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
9472         * libc/include/unistd.h (environ): ditto
9473
9474 2000-07-28  Michael Meissner  <meissner@redhat.com>
9475
9476         * libc/include/math.h (__infinity): Declare as an array without
9477         bounds to get around small data support.  Rewrite Cygwin support
9478         to be more general.
9479         * libm/math/s_infconst.c (__infinity): Ditto.
9480         * libm/mathfp/s_infconst.c (__infinity): Ditto.
9481
9482 Thu Jul 27 10:46:01 2000  Christopher Faylor <cgf@cygnus.com>
9483
9484         * libc/include/math.h: Use appropriate dll import linkage for
9485         __infinity under Cygwin.
9486
9487 2000-07-13  DJ Delorie  <dj@cygnus.com>
9488
9489         * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
9490
9491 Wed Jun 28 14:08:00 2000  Keith Walker  <keith.walker@arm.com>
9492
9493         * libc/sys/arm/crt0.S (.LC30): Added missing length parameter
9494         to argument list for AngelSWI_Reason_GetCmdLine.
9495
9496 Tue Jun 27 15:49:00 2000  Marek Michalkiewicz  <marekm@linux.org.pl>
9497
9498         * configure.host: Add support for AVR target.
9499         * libc/include/machine/ieeefp.h: Likewise.
9500         * libc/include/sys/config.h: Likewise.
9501
9502 Thu Jun 22 18:35:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9503
9504         * README: Newlib 1.8.2 must be built in a separate directory
9505         than the sources.
9506
9507 Tue Jun 20 14:30:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9508
9509         * libc/include/sys/reent.h (_rand_next): Added __extension__
9510         qualifier as long long type is not strict ANSI.
9511         * libc/stdlib/rand.c (rand): Added __extension__ qualifier
9512         to long long constant.
9513
9514 Fri Jun 16 23:02:00 2000  Corinna Vinschen <corinna@vinschen.de>
9515
9516         * libc/include/sys/unistd.h: Add prototypes for `seteuid' and
9517         `setegid' provided by Cygwin.
9518
9519 Thu Jun 15  0:21:00 2000  Corinna Vinschen <corinna@vinschen.de>
9520
9521         * libc/stdio/fdopen.c: Take explicit given bin/textmode into
9522         account for Cygwin.
9523
9524 Fri Jun  9 14:28:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9525
9526         * libc/include/sys/reent.h (_rand_next): Changed to
9527         unsigned long long and moved to end of _reent struct in _new union.
9528         (_REENT_INIT): Changed to move _rand_next initialization.
9529         * libc/stdlib/rand.c (rand): Changed to use unsigned long long
9530         linear congruential algorithm that is used by DJGPP.
9531
9532 Thu Jun  8 21:18:00 2000  Ranjith Kumaran  <ranjith@cygnus.com>
9533
9534         * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX.
9535         * libc/include/sys/config.h: Define __RAND_MAX.
9536
9537 Thu Jun  8 17:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9538
9539         * libc/stdlib/rand_r.c: New algorithm that meets minimal
9540         standard.
9541
9542 Fri Jun  2 23:02:11 2000  Christopher Faylor <cgf@cygnus.com>
9543
9544         * libc/include/string.h: Work around problem with strsignal and gdb.
9545
9546 Tue May 30 13:13:01 2000  Christopher Faylor <cgf@cygnus.com>
9547
9548         * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__
9549         * libc/include/malloc.h: Ditto.
9550         * libc/include/process.h: Ditto.
9551         * libc/include/stdio.h: Ditto.
9552         * libc/include/stdlib.h: Ditto.
9553         * libc/include/time.h: Ditto.
9554         * libc/include/machine/setjmp.h: Ditto.
9555         * libc/include/sys/errno.h: Ditto.
9556         * libc/include/sys/signal.h: Ditto.
9557         * libc/include/sys/stat.h: Ditto.
9558         * libc/include/sys/time.h: Ditto.
9559         * libc/include/sys/unistd.h: Ditto.
9560         * libc/include/string.h: Ditto.  strsignal should return a const char *.
9561
9562 2000-05-26  Marek Michalkiewicz  <marekm@linux.org.pl>
9563
9564         * libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
9565         * libm/common/s_log1p.c (log1p): Likewise.
9566         * libm/common/s_scalbn.c (scalbn): Likewise.
9567         * libm/math/e_log.c: Likewise.
9568         * libm/math/e_asin.c: Likewise.
9569         * libm/math/ef_asin.c: Likewise.
9570         * libm/math/e_j0.c (pzero, qzero): Remove redundant test.
9571         * libm/math/e_j1.c (pone, qone): Likewise.
9572         * libm/math/ef_j0.c (pzerof, qzerof): Likewise.
9573         * libm/math/ef_j1.c (ponef, qonef): Likewise.
9574         * libm/mathfp/e_j0.c (pzero, qzero): Likewise.
9575         * libm/mathfp/e_j1.c (pone, qone): Likewise.
9576         * libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
9577         * libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
9578
9579 2000-05-19  DJ Delorie  <dj@cygnus.com>
9580
9581         * libc/stdio/stdio.c (__stextmode): new, see if file is text mode
9582         (__sread): always read in binary mode
9583         (__swrite): always write in binary mode
9584         * libc/include/stdio.h: no getc/putc macros for cygwin; causes
9585         compatibility issues with different dll versions
9586         * libc/stdio/fopen.c: use __stextmode
9587         * libc/stdio/fdopen.c: ditto
9588         * libc/stdio/freopen.c: ditto
9589         * libc/stdio/findfp.c: set up __SCLE for std{in,out,err}
9590         * libc/stdio/local.h: declare __stextmode
9591         
9592 2000-05-18  DJ Delorie  <dj@cygnus.com>
9593
9594         * libc/stdio/fgets.c (fgets): perform CRLF conversions if __SCLE
9595         
9596 Mon May 15 18:54:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9597
9598         * libc/include/ctype.h: Changed tolower and toupper macros
9599         to use __extension__ to prevent pedantic warnings.
9600
9601 Mon May 15 14:26:00 2000  Joel Sherrill  <joel@oarcorp.com>
9602
9603         * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval
9604         structures.
9605
9606 Wed May 10 19:24:53 2000  Jim Wilson  <wilson@cygnus.com>
9607
9608         * libc/include/machine/ieeefp.h: Add ia64 support.
9609         * configure.host: Likewise.
9610
9611 Wed May 10 13:52:24 2000  Egor Duda <deo@logos-m.ru>
9612
9613         * libc/time/asctime_r.c (asctime_r): Change output format. Day of
9614         month is now padded with space, not zero.  This now conforms to
9615         ANSI standard.
9616
9617 Wed May 03 17:57:00 2000  Corinna Vinschen <corinna@vinschen.de>
9618
9619         * libc/include/sys/errno.h: Add define for ENOSHARE ("No such
9620         host or network path") used by cygwin. Add some comments.
9621
9622 Tue May 02 23:45:48 2000  DJ Delorie  <dj@cygnus.com>
9623
9624         * libc/include/stdio.h (FILE): define __SCLE for "convert line
9625         endings" for Cygwin.
9626         (__sgetc): convert line endings if needed
9627         (__sputc): ditto
9628         * libc/stdio/fdopen.c (_fdopen_r): Remember if we opened in text mode
9629         * libc/stdio/fopen.c (_fopen_r): ditto
9630         * libc/stdio/freopen.c (freopen): ditto
9631         * libc/stdio/fread.c (fread): perform CRLF conversions if __SCLE
9632         * libc/stdio/fvwrite.c (__sfvwrite): ditto
9633
9634 Thu Apr 27 07:45:48 2000  Alexandre Oliva  <aoliva@cygnus.com>
9635
9636         * libc/machine/mn10300/setjmp.S (setjmp, longjmp): Use
9637         post-increment when it is worth it, spacewise.
9638
9639 Mon Apr 17 12:46:00 2000  Marek Michalkiewicz <marekm@linux.org.pl>
9640
9641         * libc/signal/signal.c (_signal_r) : Removed unused local variable temp.
9642         * libc/stdio/findfp.c (std): Added declaration of flags and file.
9643         * libc/stdio/mktemp.c (_gettemp, _mkstemp_r, mkstemp): Added int 
9644         return type.
9645         * libc/stdio/putchar.c (putchar): Added return statement.
9646         * libc/stdio/refill.c (lflush): Added correct parentheses.
9647         * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
9648         * libc/stdio/vfscanf.c (__svfscanf): Changed sprintf call which 
9649         prints long value to use l qualifier.
9650         * libc/stdlib/dtoa.c (_dtoa_r): Added parentheses to remove warning
9651         messages and initialized local values: ilim, ilim1, and spec_case.
9652         * libc/stdlib/ecvtbuf.c (print_e): Removed unused variable dp.
9653         * libc/stdlib/mbctype.h (_issjis1, _issjis2): Added parentheses.
9654         * libc/stdlib/mprec.c: Ditto.
9655         * libc/stdlib/setenv_r.c: Ditto.
9656         * libc/stdlib/strtod.c: Ditto.
9657         * libc/stdlib/strtol.c: Ditto.
9658         * libc/stdlib/strtoul.c: Ditto.
9659         * libm/common/sf_expm1.c: Added curly braces to if else clauses.
9660         * libm/common/sf_log1p.c: Ditto.
9661         * libm/common/sf_scalbn.c: Ditto.
9662         * libm/math/ef_log.c: Ditto.
9663
9664 Sun Apr 16 12:45:00 2000  Corinna Vinschen <corinna@vinschen.de>
9665
9666         * libc/posix/execvp.c (execvp): Check path for
9667         trailing slash.
9668
9669 Fri Mar 31 20:39:00 2000  Corinna Vinschen <corinna@vinschen.de>
9670
9671         * libc/include/sys/unistd.h: Add prototypes for
9672         fchmod, fchown, lchown.
9673
9674 Fri Mar 24 15:34:00 2000  Jeff Johnston  <jjohnstn@cygnus.com>
9675
9676         * acinclude.m4: Changed release to 1.8.2.
9677         * aclocal.m4 configure doc/aclocal.m4 doc/configure
9678           libc/aclocal.m4 libc/configure libc/machine/aclocal.m4
9679           libc/machine/configure libc/machine/a29k/aclocal.m4
9680           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9681           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9682           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9683           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9684           libc/machine/fr30/configure libc/machine/h8300/aclocal.m4
9685           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9686           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9687           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9688           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9689           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9690           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9691           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9692           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9693           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9694           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9695           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9696           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9697           libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
9698           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9699           libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
9700           libc/machine/tic80/configure libc/machine/v850/aclocal.m4
9701           libc/machine/v850/configure libc/machine/w65/aclocal.m4
9702           libc/machine/w65/configure libc/machine/z8k/aclocal.m4
9703           libc/machine/z8k/configure libc/sys/aclocal.m4
9704           libc/sys/aclocal.m4 libc/sys/configure
9705           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9706           libc/sys/arm/aclocal.m4 libc/sys/arm/configure
9707           libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
9708           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9709           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9710           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9711           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9712           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9713           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9714           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9715           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9716           libc/sys/sh/aclocal.m4 libc/sys/sh/configure
9717           libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
9718           libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
9719           libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
9720           libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
9721           libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
9722           libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
9723           libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
9724           libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
9725           libc/sys/w65/aclocal.m4 libc/sys/w65/configure
9726           libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
9727           libm/aclocal.m4 libm/configure: Regenerated.
9728
9729 2000-03-24  Nick Clifton  <nickc@cygnus.com>
9730
9731         * libc/sys/arm/syscalls.c: Fix compile time warnings.
9732         (do_AngelSWI): Add "cc" to list o registers clobbered.
9733
9734 Thu Mar 22 14:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9735
9736         * libc/sys/arm/syscalls.c (do_AngelSWI): Prevent registers with valid
9737         information to be clobbered by an Angel C library support syscall. 
9738
9739 Tue Mar 21 19:08:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9740
9741         * libc/stdlib/envlock.c: Fixed comment typo.
9742
9743 Fri Mar 17 15:37:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9744
9745         * libc/stdio/vfscanf.c (__svfscanf): Fixed floating point
9746         code to update nread as each character is processed instead
9747         of using buffer contents which throw away leading zeroes.
9748
9749 Mon Mar 13 15:22:00 2000  Sergei Organov <osv@javad.ru>
9750
9751         * libm/mathfp/sf_sqrt.c: Change _DOUBLE_IS_32BITS sqrt call to sqrtf.
9752
9753 Fri Mar 10 16:09:20 2000  Jeff Johnston <jjohnstn@cygnus.com>
9754
9755         * libc/include/string.h: Include <sys/types.h>.
9756
9757 Fri Mar 10 14:53:50 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9758
9759         * libc/stdio/putw.c (putw): Return 0 on success, to be compliant
9760         with XSH5, not SVID.
9761
9762 Thu Mar  9 17:20:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9763
9764         * libc/include/string.h: Changed last argument back to ssize_t
9765         to make it compatible with XPG4 definition which is 
9766         defined in <unistd.h>.  There is a conflict in the SVID 3
9767         and XPG4 definitions and newlib will settle with XPG4.
9768         * libc/string/swab.c: Ditto.
9769
9770 Wed Mar  8 17:11:41 2000  Jeff Johnston <jjohnstn@cygnus.com>
9771
9772         * libc/include/string.h: Changed last argument to size_t.
9773         * libc/string/swab.c: Changed last argument to size_t.
9774
9775 Wed Mar  8 00:46:41 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9776
9777         * libc/reent/Makefile.am (lib_a_SOURCES): Added unlinkr.c.
9778         (CHEWOUT_FILES): Added unlinkr.def.
9779         * libc/reent/Makefile.in: Rebuilt.
9780         * libc/sys.tex: Include unlinkr.def.
9781         * libc/reent/linkr.c (_unlink_r): Moved to...
9782         * libc/reent/unlinkr.c: ... new file.
9783
9784 Wed Mar  8 00:43:07 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9785
9786         * libc/string/Makefile.am (lib_a_SOURCES): Added swab.c.
9787         (CHEWOUT_FILES): Added swab.def.
9788         * libc/string/Makefile.in: Rebuilt.
9789         * libc/string/string.tex: Include swab.def.
9790         * libc/include/string.h (swab): Declare.
9791         * libc/string/swab.c: New file.
9792
9793 Wed Mar  8 00:38:35 2000  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9794
9795         * libc/stdio/Makefile.am (lib_a_SOURCES): Added getw.c and putw.c.
9796         (CHEWOUT_FILES): Added getw.def and putw.def.
9797         * libc/stdio/Makefile.in: Rebuilt.
9798         * libc/stdio/stdio.tex: Include getw.def and putw.def.
9799         * libc/stdio/getw.c: New file.
9800         * libc/stdio/putw.c: New file.
9801
9802 Fri Feb 25 14:50:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9803
9804         * libc/stdio/flags.c (__sflags): Added check that mode[1]
9805         is non-null before looking at mode[2].
9806
9807 Thu Feb 24 11:43:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9808
9809         * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS.
9810         * libm/mathfp/sf_atan.c: Ditto.
9811
9812 Thu Feb 24 11:39:00 2000  Joel Sherrill <joel@OARcorp.com>
9813
9814         * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
9815
9816 Tue Feb 22 14:37:00 2000  Ran Cabell <rcabell@norfolk.infi.net>
9817
9818         * libm/mathfp/sf_exp.c: Corrected _DOUBLE_IS_32_BITS to be
9819         _DOUBLE_IS_32BITS.
9820
9821 Mon Feb 21 11:43:50 2000  Jeff Johnston <jjohnstn@cygnus.com>
9822
9823         * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT
9824         call prior to calling _VFPRINTF_R so reentrant data area is set.
9825         (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
9826
9827 Thu Feb 17 01:42:50 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9828
9829         * libc/stdio/vfscanf.c (limits.h): #include.
9830         (MAX_LONG_LEN): #define.
9831         (__svfscanf): Handle floating point numbers with arbitrary amounts
9832         of leading zeroes.
9833
9834 2000-02-15  Nick Clifton  <nickc@cygnus.com>
9835
9836         * libc/sys/arm/syscalls.c (_fstat): Initialise all fields to
9837         zero.  Set the blocksize to 1024/
9838
9839 Thu Jan 20 18:57:00 2000  Fernando Nasser <fnasser@redhat.com>
9840
9841         * setvbuf.c (setvbuf):  Set size to BUFSIZ when passed a zero size
9842         with line buffering.
9843
9844 Mon Jan 10 18:43:00 2000  Jeff Johnston <jjohnstn@cygnus.com>
9845
9846         * acinclude.m4: Changed include directory for winsup headers. 
9847         * aclocal.m4 configure libc/aclocal.m4
9848           libc/configure libc/ctype/Makefile.in libc/errno/Makefile.in
9849           libc/locale/Makefile.in libc/machine/aclocal.m4
9850           libc/machine/configure libc/machine/a29k/aclocal.m4
9851           libc/machine/a29k/configure libc/machine/arm/aclocal.m4
9852           libc/machine/arm/configure libc/machine/d10v/aclocal.m4
9853           libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
9854           libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
9855           libc/machine/fr30/configure
9856           libc/machine/h8300/aclocal.m4
9857           libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
9858           libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
9859           libc/machine/hppa/configure libc/machine/i386/aclocal.m4
9860           libc/machine/i386/configure libc/machine/i960/aclocal.m4
9861           libc/machine/i960/configure libc/machine/m32r/aclocal.m4
9862           libc/machine/m32r/configure libc/machine/m68k/aclocal.m4
9863           libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
9864           libc/machine/m88k/configure libc/machine/mips/aclocal.m4
9865           libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
9866           libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
9867           libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
9868           libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
9869           libc/machine/powerpc/configure 
9870           libc/machine/sh/aclocal.m4
9871           libc/machine/sh/configure libc/machine/sparc/aclocal.m4
9872           libc/machine/sparc/configure
9873           libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
9874           libc/machine/v850/aclocal.m4 libc/machine/v850/configure
9875           libc/machine/w65/aclocal.m4 libc/machine/w65/configure
9876           libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
9877           libc/misc/Makefile.in libc/posix/Makefile.in
9878           libc/reent/Makefile.in 
9879           libc/signal/Makefile.in
9880           libc/string/Makefile.in libc/sys/aclocal.m4 libc/sys/configure
9881           libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
9882           libc/sys/arm/Makefile.in libc/sys/arm/aclocal.m4
9883           libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
9884           libc/sys/cygwin/configure libc/sys/d10v/Makefile.in
9885           libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
9886           libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
9887           libc/sys/go32/aclocal.m4 libc/sys/go32/configure
9888           libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
9889           libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
9890           libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
9891           libc/sys/netware/aclocal.m4 libc/sys/netware/configure
9892           libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
9893           libc/sys/sh/Makefile.in libc/sys/sh/aclocal.m4
9894           libc/sys/sh/configure libc/sys/sparc64/aclocal.m4
9895           libc/sys/sparc64/configure libc/sys/sun4/aclocal.m4
9896           libc/sys/sun4/configure libc/sys/sysmec/aclocal.m4
9897           libc/sys/sysmec/configure libc/sys/sysnec810/aclocal.m4
9898           libc/sys/sysnec810/configure libc/sys/sysnecv850/aclocal.m4
9899           libc/sys/sysnecv850/configure libc/sys/sysvi386/aclocal.m4
9900           libc/sys/sysvi386/configure libc/sys/sysvnecv70/aclocal.m4
9901           libc/sys/sysvnecv70/configure libc/sys/tic80/aclocal.m4
9902           libc/sys/tic80/configure libc/sys/w65/aclocal.m4
9903           libc/sys/w65/configure libc/sys/z8ksim/aclocal.m4
9904           libc/sys/z8ksim/configure libc/syscalls/Makefile.in
9905           libc/time/Makefile.in libc/unix/Makefile.in libm/aclocal.m4
9906           libm/configure: Regenerated.
9907
9908 Mon Jan 10 18:43:46 2000  Jeff Johnston <jjohnstn@cygnus.com>
9909
9910         * libc/stdlib/putenv_r.c (_putenv_r): New file.
9911         * libc/stdlib/strdup_r.c (_strdup_r): New file.
9912         * libc/include/string.h: Added _strdup_r.
9913         * libc/stdlib/putenv.c: Added call to reentrant version. 
9914         * libc/stdlib/strdup.c: Ditto.
9915         * libc/stdlib/Makefile.am: Added _putenv_r and _unsetenv_r.
9916         * libc/include/stdlib.h: Ditto.
9917         * libc/stdlib/Makefile.in: Regenerated. 
9918         * libc/string/Makefile.in: Regenerated.
9919         * libc/stdlib/setenv.c: Added reentrant version of unsetenv.
9920         * libc/stdlib/setenv_r.c: Added unsetenv_r and changed memory
9921         management calls to reentrant versions.
9922         * libc/stdlib/wcstombs.c: Added #ifndef _REENT_ONLY wrapper.
9923         * libc/stdlib/wctomb.c: Ditto.
9924         * libc/stdlib/mblen.c: Ditto.
9925         * libc/stdlib/mbstowcs.c: Ditto.
9926         * libc/stdlib/mbtowc.c: Ditto. 
9927         * libc/stdlib/getenv.c: Ditto.
9928         * libc/reent/reent.tex: Added references to _putenv_r, _setenv_r,
9929         and _strdup_r.
9930
9931 Thu Jan  6 15:33:46 2000  Christopher Faylor <cgf@cygnus.com>
9932
9933         patch from Corinna Vinschen <corinna@vinschen.de>
9934         * libc/sys/cygwin/sys/param.h: Define NGROUP_MAX as 16.
9935
9936 Mon Jan 03 14:36:00 2000  Sergei Organov <osv@javad.ru>
9937
9938         * libm/mathfp/s_atangent.c: Fix exponent calculation.
9939         * libm/mathfp/s_ldexp.c: Ditto.
9940         * libm/mathfp/sf_atangent.c: Ditto.
9941         * libm/mathfp/sf_ldexp.c: Ditto.
9942
9943 Tue Dec 14 5:42:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9944
9945         * libc/machine/i960/setjmp.S: fix typo leaving .link_pix uncommented
9946         * libc/include/locale.h: define NULL to be 0.
9947
9948 Tue Dec  7 15:41:45 1999  Jim Wilson  <wilson@cygnus.com>
9949
9950         * libc/sys/sh/syscalls.c (stack_ptr): Move definition before first
9951         function.
9952
9953 Wed Dec  1 17:39:29 1999  Jeffrey A Law  (law@cygnus.com)
9954
9955         * libc/machine/mn10300/setjmp.S: Handle am33.
9956
9957 1999-11-26  Nick Clifton  <nickc@cygnus.com>
9958
9959         * libc/sys/arm/syscalls.c: Add function prototypes.
9960         (stack_ptr): Move declaration before function definitions.
9961
9962 Sat Nov 20 17:13:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
9963
9964         * NEWS: Updated version information.
9965         * README: Ditto.
9966
9967 Tue Nov 09 12:19:21 1999  Jeff Johnston <jjohnstn@cygnus.com>
9968
9969         * libc/machine/i386/strchr.S: Fixed alignment test.
9970
9971 Thu Oct 28 05:30:46 1999  Andrew Cagney  <cagney@makita.cygnus.com>
9972
9973         * libc/sys/d10v/crt0.S (_start): Construct a real stack frame.
9974
9975 Thu Oct 28 15:29:11 1999  Andrew Cagney  <cagney@b1.cygnus.com>
9976
9977         * libc/sys/d10v/crt0.S (_start): Initialize both SPI and SPU
9978         ensuring that there is space between the two.
9979
9980 Thu Oct 14 13:39:21 1999  Christopher Faylor <cgf@cygnus.com>
9981
9982         * libc/stdio/flags.c: Conditionalize check for 't' for cygwin case
9983         only.
9984
9985 1999-10-08  Vadim Egorov  <egorovv@1c.ru>
9986
9987         * libc/include/stdlib.h: add ptsname, grantpt, unlockpt to cygwin
9988         section
9989
9990 Sat Oct  2 02:02:00 MEST 1999  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9991
9992         * libc/machine/sh/asm.h: Added __SH4_SINGLE__ to DELAYED_BRANCHES
9993         * libc/machine/sh/memcpy.S: Fix line wrapping in SL macro
9994
9995 Fri Oct  1 13:17:59 CDT 1999  <joel@OARcorp.com>
9996         * libc/include/grp.h: Added getgrnam_r and getgrgid_r prototypes
9997           per POSIX 1003.1b.
9998         * libc/include/pwd.h: Added getpwnam_r and getpwuid_r prototypes
9999           per POSIX 1003.1b.
10000
10001 1999-09-13  DJ Delorie  <dj@cygnus.com>
10002
10003         * libc/stdio/mktemp.c (_gettemp): on cygwin, check for EACCESS
10004         also.
10005
10006 Thu Sep  9 15:31:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
10007
10008         * setvbuf.c (setvbuf):  When mallocing a buffer of size BUFSIZ,
10009         also note BUFSIZ as its size.
10010
10011 Tue Sep  7 17:15:00 1999  Joel Sherrill <joel@OARcorp.com>
10012
10013         * configure.host: Corrected feature defines for RTEMS.
10014         * libc/include/sys/stat.h: Added protototype for RTEMS mknod.
10015         * libc/include/sys/stat.h: mkfifo() should take const path arg.
10016         * libc/include/sys/unistd.h: pathconf() should take const path arg.
10017           Enabled usleep(), ftruncate(), and truncate() prototypes for RTEMS.
10018           Added defines for _POSIX_JOB_CONTROL, _POSIX_SAVED_IDS, and
10019           _POSIX_VERSION for RTEMS.  Added defines for _PC_ASYNC_IO,
10020           _PC_PRIO_IO, and _PC_SYNC_IO.
10021         * libc/machine/m68k/Makefile.am: Added strcpy.c and strlen.c.
10022         * libc/machine/m68k/Makefile.in: Regenerated.
10023         * libc/machine/m68k/strcpy.c: New file.
10024         * libc/machine/m68k/strlen.c: New file.
10025         * libc/stdio/tmpnam.c: Always make the returned name usable.
10026         * libc/sys/rtems/crt0.c: New version that passes all autoconf tests.
10027         * libc/sys/rtems/sys/dirent.h: New file.
10028         * libc/sys/rtems/sys/types.h: Added dev_t.
10029
10030 Tue Sep  7 17:15:00 1999   Jay Kulpinski <jskulpin@eng01.gdds.com>
10031
10032         * libc/stdlib/mprec.c: Fixed unitialized variable problem.
10033
10034 Fri Sep  3 12:35:20 1999  Jeff Johnston <jjohnstn@cygnus.com>
10035
10036         * libc/stdio/ftell.c (ftell): Backing off Joern's fix and
10037         my patch.
10038
10039 Thu Sep  2 22:05:20 1999  Christopher Faylor <cgf@cygnus.com>
10040
10041         patch from Jeff Johnston <jjohnstn@cygnus.com>
10042         * libc/stdio/ftell.c (ftell): Avoid using buffer position when the
10043         buffer is not in a useful state.
10044
10045 1999-09-01  Nick Clifton  <nickc@cygnus.com>
10046
10047         * libc/sys/arm/syscalls.c (_link): Add stub.
10048
10049 Fri Aug 27 23:09:09 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
10050
10051         * ftell.c (ftell): Use actual position within buffer for text mode.
10052         * findfp.c (std): Initialize ptr->_bf._size.
10053
10054 Wed Aug 18 18:48:02 1999  Christopher Faylor <cgf@cygnus.com>
10055
10056         * libc/include/sys/unistd.h: Add nice() declaration.
10057
10058 1999-08-09  Nick Clifton  <nickc@cygnus.com>
10059
10060         * libc/sys/arm/crt0.S (change_mode): Rename to __change_mode and
10061         declare as a thumb function so that the disassembler will see the
10062         mode change.
10063
10064 Thu Aug  5 17:37:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10065
10066         * libc/reent/reent.tex: Updated list of reentrant functions.
10067
10068 1999-07-09  Michael Meissner  <meissner@cygnus.com>
10069
10070         * libc/include/stdlib.h (_findenv{,_r}): Add prototypes.
10071         
10072 Tue Jul  6 10:46:24 1999  Jeff Johnston <jjohnstn@cygnus.com>
10073
10074         * libc/stdio/sprintf.c: Moved snprintf and _snprintf_r to
10075         separate file.
10076         * libc/stdio/snprintf.c: New file.
10077         * libc/stdio/vsprintf.c: Moved vsnprintf and _vsnprintf_r to
10078         separate file.
10079         * libc/stdio/vsnprintf.c: New file.
10080         * libc/stdio/Makefile.am: Added snprintf.c and vsnprintf.c.
10081         * libc/stdio/Makefile.in: Regenerated.
10082
10083 Mon Jul  5 14:43:24 1999  Christopher Faylor <cgf@cygnus.com>
10084
10085         Patch submitted by Egor Duda <deo@logos-m.ru>:
10086         * libc/include/stdio.h: Add declarations for *nprintf.
10087         * libc/stdio/sprintf.c (snprintf): New function.
10088         (_snprintf_r): New function.
10089         * libc/stdio/vsprintf.c (vsnprintf): New function.
10090         (_vnsprintf_r): New function.
10091
10092 Wed Jun 30 16:36:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10093
10094         * libc/Makefile.am (stmp-targetdep): Remove extraneous blank.
10095         * libm/Makefile.am (stmp-targetdep): Ditto.
10096         * libc/Makefile.in: Regenerated.
10097         * libm/Makefile.in: Ditto.
10098
10099 Fri Jun 25 10:49:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10100
10101         * libc/Makefile.am (stmp-targetdep): Ignore "." in SUBDIRS.
10102         * libm/Makefile.am (stmp-targetdep): Ditto.
10103         * libc/Makefile.in: Regenerated.
10104         * libm/Makefile.in: Ditto.
10105
10106 Thu June 03 16:25:00 1999  Jeff Johnston <jjohnstn@cygnus.com>
10107
10108         * Makefile.am: Removed dependencies on all-recursive and added "."
10109         to the SUBDIRS list to prevent infinite recursion from occurring.
10110         Also removed any references to EXTRA_DATA.
10111         * libc/Makefile.am: Ditto.
10112         * libc/machine/Makefile.am: Ditto.
10113         * libc/machine/i386/Makefile.am: Ditto.
10114         * libm/Makefile.am: Ditto.
10115         * libc/sys/Makefile.am: Ditto.
10116         * Makefile.in: Regenerated.
10117         * aclocal.m4: Ditto.
10118         * configure: Ditto.
10119         * doc/Makefile.in: Ditto.
10120         * doc/aclocal.m4: Ditto.
10121         * doc/configure: Ditto.
10122         * libc/Makefile.in: Ditto.
10123         * libc/aclocal.m4: Ditto.
10124         * libc/configure: Ditto.
10125         * libc/machine/Makefile.in: Ditto.
10126         * libc/machine/aclocal.m4: Ditto.
10127         * libc/machine/configure: Ditto.
10128         * libc/machine/mn10300/Makefile.in: Ditto.
10129         * libc/machine/mn10300/aclocal.m4: Ditto.
10130         * libc/machine/mn10300/configure: Ditto.
10131         * libc/sys/Makefile.in: Ditto.
10132         * libc/sys/aclocal.m4: Ditto.
10133         * libc/sys/configure: Ditto.
10134         * libm/Makefile.in: Ditto.
10135         * libm/aclocal.m4: Ditto.
10136         * libm/configure: Ditto.
10137
10138 Thu June 03 16:20:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10139
10140         * libc/include/stdlib/stdlib.tex: Add link to env_lock.
10141
10142 Fri May 28 17:09:00 1999  Ranjith Kumaran <ranjith@cygnus.com>
10143
10144         * libc/include/stdlib.h: Add reentrant routines.
10145         * libc/stdlib/Makefile.am: Add reentrant routines.
10146         * libc/stdlib/Makefile.in: Ditto.
10147         * libc/stdlib/envlock.c: New file.
10148         * libc/stdlib/envlock.h: New file.
10149         * libc/stdlib/getenv.c: Modify to call reentrant routine.
10150         * libc/stdlib/getenv_r.c: New file.
10151         * libc/stdlib/mblen.c: Modify to call reentrant routine.
10152         * libc/stdlib/mblen_r.c: New file.
10153         * libc/stdlib/setenv.c: Modify to call reentrant routine.
10154         * libc/stdlib/setenv_r.c: New file.
10155         * libc/stdlib/stdlib.tex: Add reentrant routines.
10156
10157 Mon May 17 22:01:38 1999  Christopher Faylor <cgf@cygnus.com>
10158
10159         * libc/include/sys/types.h: Define __MS_types__ whenever
10160         cygwin or win32.
10161
10162 Sun May 16 16:02:41 1999  Christopher Faylor <cgf@cygnus.com>
10163
10164         * libc/include/machine/ieeefp.h: Always default to little
10165         endian if Windows, regardless of architecture.
10166         * libc/include/machine/sethmp.h: Define JBLEN if CYGWIN
10167         regardless of architecture.
10168
10169 Mon May  3 11:49:18 1999  Geoffrey Noer  <noer@cygnus.com>
10170
10171         * libc/include/machine/setjmp.h: Accept CYGWIN define, even if
10172         _WIN32 isn't defined.
10173
10174 Mon May  3 11:41:51 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10175
10176         * libm/common/s_rint.c (rint): Add volatile qualifier for
10177         intermediate value w.
10178         * libm/common/sf_rint.c (rintf): Ditto.
10179
10180 Thu Apr 29 20:34:27 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10181
10182         * libc/sys/arm/syscalls.c (remap_handle): Added check to
10183         ensure that std streams are initialized before being referenced.
10184
10185 1999-04-27  Jason Molenda  (jsm@bugshack.cygnus.com)
10186
10187         * README: Update reference to newlib@cygnus.com new
10188         newlib@sourceware.cygnus.com address.
10189
10190 Mon Apr 26 18:17:33 1999  Geoffrey Noer  <noer@cygnus.com>
10191
10192         * libc/include/sys/types.h: Define MS_types if CYGWIN is defined.
10193         * libc/include/sys/fcntl.h: Define _O_BINARY et al if CYGWIN is
10194         defined, even if _WIN32 isn't defined.
10195
10196 Sat Apr 24 19:59:55 1999  Christopher Faylor <cgf@cygnus.com>
10197
10198         * libc/include/sys/fcntl.h: Correct _O_CREATE to _O_CREAT.
10199
10200 Wed Apr 21 18:01:00 1999  Ranjith Kumaran  <ranjith@cygnus.com>
10201
10202         * libc/include/sys/reent.h: Change Long and ULong to __Long and
10203         __ULong.
10204         * libc/stdlib/dtoa.c: Ditto.
10205         * libc/stdlib/mprec.c: Ditto.
10206         * libc/stdlib/mprec.h: Ditto.
10207         * libc/stdlib/strtod.c: Ditto.
10208
10209 1999-04-21  Nick Clifton  <nickc@cygnus.com>
10210
10211         * configure.host (mcore): Remove mcore machine directory.
10212
10213 1999-04-18  Nick Clifton  <nickc@cygnus.com>
10214
10215         * libc/include/machine/ieeefp.h: Add support for mcore target.
10216         * libc/include/machine/setjmp.h: Add support for mcore target.
10217         * configure.host: Add support for mcore target.
10218
10219 1999-04-13  Mark Salter  <msalter@cygnus.com>
10220
10221         * libc/sys/arm/libcfunc.c: Moved isatty to syscall.c
10222         * libc/sys/arm/syscalls.c: Added isatty.
10223
10224 Wed Apr 07 16:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10225
10226         * libc/stdlib/ecvtbuf.c (fcvtbuf): Fixed code to properly
10227         insert zeroes after significant digits.
10228
10229 Wed Mar 17 22:06:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10230         
10231         * libc/stdio/vfprintf.c (cvt): Changed floating point
10232         cvt routine to use union used by dtoa to properly determine
10233         if the sign bit is on or not.
10234         * libc/stdio/vfieeefp.h: New file
10235         
10236 Wed Mar 17 17:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10237
10238         * aclocal.m4: Regenerated.
10239         * configure: Regenerated.
10240
10241 Wed Mar 17 16:35:04 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10242
10243         * libc/machine/i386/Makefile.am (lib_a_SOURCES): Added missing
10244         f_tanf reference.
10245         * libc/machine/i386/Makefile.in: Regenerated.
10246
10247 Tue Mar 16 14:56:36 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10248
10249         * acinclude.m4: Changed to work with new automake.
10250         * configure: Regenerated.
10251         * libc/machine/i386/aclocal.m4: Regenerated.
10252         * libc/machine/i386/configure: Regenerated.
10253
10254 Tue Mar 16 13:55:36 1999  Corinna Vinschen  <corinna.vinschen@cityweb.de>
10255
10256         * libc/sys/cygwin/sys/dirent.h: Add additional prototypes
10257         for telldir() and seekdir().  Rename unused structure element
10258         for use with these two routines.
10259
10260 Fri Mar 12 19:11:58 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10261
10262         * libc/time/mktime.c (validate_structure): Multiple fixes to
10263         code to handle cases where input fields are outside valid ranges.
10264         * libc/stdlib/div.c (div): Modified invalid rounding check.
10265         * libc/stdlib/ldiv.c (ldiv): Ditto.
10266
10267 Thu Mar 11 21:32:13 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10268
10269         * libc/machine/i386/memcpy.S: Performance rewrite.
10270         * libc/machine/i386/memmove.S: Ditto.
10271         * libc/machine/i386/i386mach.h: Added more register definitions.
10272         * libc/include/math.h: Include <machine/fastmath.h> if -ffast-math
10273         option used.
10274         * libc/include/machine/fastmath.h: Add definitions for x86
10275         fast-math routines.
10276
10277 Wed Mar 10 17:56:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10278
10279         * libc/stdlib/strtod.c: Change from unsigned long to ULong.
10280
10281 Tue Mar  9 14:31:58 1999  Geoffrey Noer  <noer@cygnus.com>
10282
10283         Adjust newlib headers for new Cygwin Win32 API header files:
10284         * libc/include/sys/time.h: Check _WINSOCK_H rather than
10285         _GNU_H_WINDOWS32_SOCKETS.
10286         * libc/include/sys/types.h: Ditto.
10287
10288 Tue Mar 09 15:55:00 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10289
10290         *include/sys/reent.h: Add checks for size of Bigint element Long.
10291         *libc/dtoa.c: Change routines to use generic Long type.
10292         *libc/mprec.c: Change routines to use generic Long type.
10293         *libc/mprec.h: Change routines to use generic Long type.
10294
10295 Tue Mar 02 18:07:49 1999 Ranjith Kumaran  <ranjith@cygnus.com>
10296
10297         * libc/Makefile.am: Add .def files.
10298         * libc/Makefile.in: Regenerate.
10299         * libc/e_acosh.c: Documentation update.
10300         * libc/e_atanh.c: Documentation update.
10301         * libc/e_hypot.c: Documentation update.
10302         * libc/e_remainder.c: Documentation update.
10303         * libc/er_lgamma.c: Documentation update.
10304         * libc/mathfp.tex: Documentation update.
10305         * libc/s_acos.c: Documentation update.
10306         * libc/s_atan.c: Documentation update.
10307         * libc/s_atan2.c: Documentation update.
10308         * libc/s_cosh.c: Documentation update.
10309         * libc/s_fmod.c: Documentation update.
10310         * libc/s_isnan.c: Documentation update.
10311         * libc/s_log10.c: Documentation update.
10312         * libc/s_pow.c: Documentation update.
10313         * libc/w_jn.c: Documentation update.
10314
10315 Sun Feb 28 23:18:49 1999  Geoffrey Noer  <noer@cygnus.com>
10316
10317         * aclocal.m4: Regenerate.
10318         * configure: Regenerate.
10319
10320 Tue Feb 23 13:57:26 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10321
10322         * libc/machine/mn10300/setjmp.S (_longjmp): Fixed longjmp
10323         to return 1 if user specified return code is 0.
10324         * libc/machine/mn10200/setjmp.S (_longjmp): Ditto.
10325
10326 Thu Feb 18 11:13:28 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10327
10328         * libc/machine/mn10200/setjmp.S (_setjmp/_longjmp): Fixed setjmp
10329         to save the return address.  Fixed longjmp to return to the original
10330         calling address of setjmp and to return the user specified return code
10331         rather than default to 1.
10332         * libc/machine/mn10300/setjmp.S (_setjmp/_longjmp): Ditto.
10333
10334 Mon Feb 15 17:48:17 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10335
10336         * libc/stdlib/mprec.h (mult): Define mult to be _multiply instead of _mult.
10337
10338 1999-02-10  Nick Clifton  <nickc@cygnus.com>
10339
10340         * libc/sys/arm/syscalls.c (initialise_monitor_handles): Make block
10341         volatile so that its assignments will not be discarded.
10342
10343 Wed Feb 10 17:19:40 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10344
10345         * libc/include/_ansi.h: Corrected _STRICT_ANSI reference to
10346         be __STRICT_ANSI__ which is generated by compiler.
10347         * libc/include/ctype.h: Ditto.
10348         * libc/include/math.h: Ditto.
10349         * libc/include/stdio.h: Ditto.
10350         * libc/include/stdlib.h: Ditto.
10351         * libc/include/string.h: Ditto.
10352         * libc/include/sys/signal.h: Ditto.
10353
10354 1999-02-08  Nick Clifton  <nickc@cygnus.com>
10355
10356         * configure.host: Add support for StrongARM target.
10357
10358 Fri Feb  5 11:13:14 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10359
10360         * libc/string/strncpy.c (strncpy): Removed redundant code
10361         that was copying bytes if data unaligned.
10362
10363 1999-02-02  Brendan Kehoe  <brendan@cygnus.com>
10364
10365         * libc/stdlib/Makefile.{am,in} (CHEWOUT_FILES): Add mblen.def,
10366         mbstowcs.def, and wcstombs.def.
10367
10368 Sat Jan 30 02:36:33 1999  Christopher Faylor <cgf@cygnus.com>
10369
10370         * libc/include/sys/errno.h: Add Cygwin errno.
10371         * libc/stdio/flags.c: Don't default to O_TEXT if no other flag
10372         is specified.
10373
10374 1999-01-29  Nick Clifton  <nickc@cygnus.com>
10375
10376         * libc/sys/arm/syscalls.c: Move C library functions into seperate
10377         file.
10378         
10379         * libc/sys/arm/libcfunc.c: New file containing C library functions
10380         from syscalls.c
10381
10382         * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add libcfuncs.c
10383         * libc/sys/arm/Makefile.in (lib_a_SOURCES): Regenerate.
10384
10385
10386 1999-01-27  Michael Meissner  <meissner@cygnus.com>
10387
10388         * libc/include/machine/setjmp.h (D30V _JBLEN/_JBTYPE): Use double
10389         type, and cut size in half so that the jmp_buf array is guaranteed
10390         to be aligned on a 64-bit boundary.
10391
10392 Mon Jan 25 12:05:38 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10393
10394         * libc/string/strings.tex: Added information about
10395         strcasecmp and strncasecmp.
10396         * libc/stdlib/stdlib.tex: Added missing information
10397         about mblen, mbstowcs, and wcstombs.
10398         * libc/string/strchr.c: Changed how mask is built to use
10399         shift operators so register will be used instead of storage.
10400
10401 1999-01-22  DJ Delorie  <dj@cygnus.com>
10402
10403         * libc/include/stdlib.h: don't use dllimport if we're building
10404         newlib, since it's inside cygwin.dll
10405
10406 Fri Jan 22 14:57:18 1999  Christopher Faylor <cgf@cygnus.com>
10407
10408         * libc/ctype/ctype_.c: Need to use __declspec(dllexport) for
10409         _ctype_ under cygwin.
10410
10411 Fri Jan 22 09:50:19 1999  Christopher Faylor <cgf@cygnus.com>
10412
10413         * include/stdlib.h: Fix typo from previous checkin.
10414
10415 Thu Jan 21 22:42:21 1999  Christopher Faylor <cgf@cygnus.com>
10416
10417         * include/ctype.h: Use __declspec(dllimport) method for exporting
10418         variable from cygwin DLL.
10419         * include/time.h: Ditto.
10420         * sys/errno.h: Ditto.
10421         * include/stdlib.h: Export __mb_cur_max from cygwin DLL.
10422         * libc/locale/locale.c: Use __declspec(dllexport) method for
10423         exporting variable from cygwin DLL.
10424
10425 Sat Jan 16 13:29:54 1999  Christopher Faylor <cgf@cygnus.com>
10426
10427         * libc/stdio/setvbuf.c: Always clean up when _IONBF or possible
10428         access of bogus pointer will result in SIGSEGV.
10429
10430 1999-01-07  Nick Clifton  <nickc@cygnus.com>
10431
10432         * libc/sys/arm/setjmp.S: Use C macros to cope with the possibility
10433         of an underscore prefix to function names.
10434
10435 Fri Jan  8 19:00:07 1999  Jeff Johnston  <jjohnstn@cygnus.com>
10436
10437         * libc/machine/i386/i386mach.h (__REG_PREFIX__): Create new
10438         define __REG_PREFIX__ instead of using __REGISTER_PREFIX__.
10439
10440 1998-12-31  Michael Meissner  <meissner@cygnus.com>
10441
10442         * libc/machine/i386/i386mach.h (__REGISTER_PREFIX__): Only define
10443         to `%' if not already defined.
10444
10445 1998-12-30  Michael Meissner  <meissner@cygnus.com>
10446
10447         * libc/stdio/tmpnam.c (_tempnam_r): Make directory and prefix
10448         arguments const char *, not char *.
10449         * libc/include/stdio.h (_tempnam_r): Ditto.
10450
10451         * libc/include/sys/reent.h (struct _reent): The _sig_func type
10452         points to a function taking an integer, not void.
10453
10454 Tue Dec 29 14:35:53 1998  Christopher Faylor <cgf@cygnus.com>
10455
10456         * configure.host: Add a define for Cygwin builds.
10457         * libc/include/ctype.h: Don't use dll imported variables in newlib.
10458
10459 Mon Dec 28 09:19:56 1998  Christopher Faylor <cgf@cygnus.com>
10460
10461         * libc/include/ctype.h: Define _ctype_ as dll imported variable
10462         for use with Cygwin.
10463         * libc/include/sys/errno.h: Define _sys_errlist and _sys_nerr as
10464         dll imported variables for use with Cygwin.
10465         * libc/ctype/ctype_.c: Undefine _ctype_ in case it has been defined
10466         as a dll imported variable for Cygwin.
10467
10468 Sat Dec 26 00:13:53 1998  Christopher Faylor <cgf@cygnus.com>
10469
10470         * libc/include/sys/unistd.h: Add proto for getpass.
10471
10472 Fri Dec 18 19:28:19 1998  Geoffrey Noer  <noer@cygnus.com>
10473
10474         * libc/sys/cygwin/sys/dirent.h: add protos for scandir and
10475         alphasort.
10476
10477 Fri Dec 18 16:33:25 1998  Geoffrey Noer  <noer@cygnus.com>
10478
10479         * libc/posix/execvp.c (execvp): call cygwin_posix_path_list_p,
10480         not posix_path_list_p.
10481
10482 1998-12-15  Nick Clifton  <nickc@cygnus.com>
10483
10484         * libc/string/memchr.c: Treat 'c' argument as an unsigned byte not
10485         a signed int.
10486
10487 1998-12-13  Nick Clifton  <nickc@cygnus.com>
10488
10489         * libc/include/machine/setjmp.h (_JBLEN): Set to 10.
10490
10491 1998-12-12  Nick Clifton  <nickc@cygnus.com>
10492
10493         * libc/machine/fr30/setjmp.S: New file, supplied by Mark Slater
10494         <msalter@cygnus.com>
10495         * libc/machine/fr30/Makefile.am: Add build of setjmp.S
10496         * libc/machine/fr30/Makefile.in: Regenerated.
10497
10498 1998-12-11  Nick Clifton  <nickc@cygnus.com>
10499
10500         * configure.host: Remove use of libc/sys for FR30 port.
10501         * libc/sys/fr30: Remove directory (replaced by libgloss).
10502
10503 1998-12-10  Ken Raeburn  <raeburn@cygnus.com>
10504
10505         * libc/string/strcat.c (ALIGNED): Sense of result was reversed.
10506         * libc/string/strncat.c (ALIGNED): Ditto.
10507
10508 Wed Dec  9 14:37:57 1998  Geoffrey Noer  <noer@cygnus.com>
10509
10510         * libc/include/sys/time.h: include sys/types.h
10511
10512 Tue Dec  8 15:53:18 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10513
10514         * libc/machine/i386/memcmp.S (memcmp): Fix for unequal
10515         comparison found when checking word at a time.
10516
10517 1998-12-04  Nick Clifton  <nickc@cygnus.com>
10518
10519         * libc/sys/fr30/crt0.s (_start): Initialise frame pointer.
10520
10521 1998-12-03  Nick Clifton  <nickc@cygnus.com>
10522
10523         * libc/sys/fr30/syscalls.c (_times): New function stub.
10524
10525 Thu Dec  3 15:59:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10526
10527         * configure.host (mach_add_setjmp): Replaced mach_add_objs
10528         with mach_add_setjmp flag which indicates if setjmp should
10529         be added to the machine directory objects.
10530         * acinclude.m4: Removed reference to mach_add_objs.
10531         * aclocal.m4: Regenerated.
10532         * Makefile.in: Regenerated.
10533         * configure: Regenerated.
10534         * libc/aclocal.m4: Regenerated.
10535         * libc/Makefile.in: Regenerated.
10536         * libc/configure: Regenerated.
10537         * libc/machine/aclocal.m4: Regenerated.
10538         * libc/machine/Makefile.in: Regenerated.
10539         * libc/machine/configure: Regenerated.
10540         * libc/machine/i386/aclocal.m4: Regenerated.
10541         * libc/machine/i386/Makefile.am: Altered to selectively add
10542         setjmp.S to the src files list.
10543         * libc/machine/i386/Makefile.in: Regenerated.
10544         * libc/machine/i386/configure.in: Altered to test mach_add_setjmp.
10545         * libc/machine/i386/configure: Regenerated.
10546
10547 1998-12-02  Nick Clifton  <nickc@cygnus.com>
10548
10549         * libc/sys/fr30/crt0.s (_start): Fix function names.
10550
10551         * libc/machine/fr30: New directory
10552         * libc/machine/fr30/Makefile.am: New file.
10553         * libc/machine/fr30/Makefile.in: New generated file.
10554         * libc/machine/fr30/configure.in: New file.
10555         * libc/machine/fr30/configure: New generated file.
10556         * libc/machine/fr30/aclocal.m4: New generated file.
10557         * libc/sys/fr30/Makefile.am: New file.
10558         * libc/sys/fr30/Makefile.in: New generated file.
10559         * libc/sys/fr30/configure.in: New file.
10560         * libc/sys/fr30/configure: New generated file.
10561         * libc/sys/fr30/syscalls.c: New file.
10562
10563 Tue Dec  1 16:28:56 1998  Geoffrey Noer  <noer@cygnus.com>
10564
10565         * libc/sys/cygwin/sys/utmp.h: new file, moved from winsup/include.
10566
10567 1998-12-01  Ken Raeburn  <raeburn@cygnus.com>
10568
10569         * libc/time/strftime.c (strftime): Also handle %y for years before
10570         1900.
10571
10572 Tue Dec  1 13:26:07 1998  Christopher Faylor <cgf@cygnus.com>
10573
10574         * libc/string/strcasecmp.c (strcasecmp): Adhere to standard
10575         UNIX convention.  Perform tolower on characters before comparing
10576         them rather than use toupper.
10577         * libc/string/strncasecmp.c (strncasecmp): Ditto.
10578
10579 Mon Nov 30 16:24:19 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10580         
10581         * configure.host: Added using i386 machine directory
10582         for all x86 cross-compiler and configuring
10583         which added object files to use via new "mach_add_objs" variable.
10584         * configure: Regenerated.
10585         * libc/configure: Regenerated.
10586         * libc/Makefile.in: Regenerated.
10587         * libc/aclocal.m4: Regenerated.
10588         * libc/ctype/Makefile.in: Regenerated.
10589         * libc/errno/Makefile.in: Regenerated.
10590         * libc/locale/Makefile.in: Regenerated.
10591         * libc/machine/Makefile.in: Regenerated.
10592         * libc/machine/aclocal.m4: Regenerated.
10593         * libc/machine/configure: Regenerated.
10594         * libc/posix/Makefile.in: Regenerated.
10595         * libc/reent/Makefile.in: Regenerated.
10596         * libc/signal/Makefile.in: Regenerated.
10597         * libc/stdio/Makefile.in: Regenerated.
10598         * libc/stdlib/Makefile.in: Regenerated.
10599         * libc/string/Makefile.in: Regenerated.
10600         * libc/string/memmove.c: Optimized code to use memcpy
10601         logic when performing a non-destructive copy.
10602         * libc/string/strncmp.c: Altered code to allow building
10603         optimized for size or speed.
10604         * libc/syscalls/Makefile.in: Regenerated.
10605         * libc/time/Makefile.in: Regenerated.
10606         * libc/unix/Makefile.in: Regenerated.
10607         * libc/machine/i386/Makefile.am: Added new files and reference
10608         to "mach_add_objs" to indicate optional object files.
10609         * libc/machine/i386/Makefile.in: Regenerated.
10610         * libc/machine/i386/aclocal.m4: Regenerated.
10611         * libc/machine/i386/configure: Regenerated.
10612         * libc/machine/i386/memchr.S: New file that implements
10613         function in Intel assembler.
10614         * libc/machine/i386/memcmp.S: ditto.
10615         * libc/machine/i386/memcpy.S: ditto.
10616         * libc/machine/i386/memmove.S: ditto.
10617         * libc/machine/i386/memset.S: ditto.
10618         * libc/machine/i386/strchr.S: ditto.
10619         * libc/machine/i386/strlen.S: ditto.
10620         * libc/machine/i386/f_atan2.S: New file that implements
10621         fast version of math function to be used by compiler when
10622         --ffast_math compile option is used.
10623         * libc/machine/i386/f_atan2f.S: ditto.
10624         * libc/machine/i386/f_exp.c: ditto.
10625         * libc/machine/i386/f_expf.c: ditto.
10626         * libc/machine/i386/f_frexp.S: ditto.
10627         * libc/machine/i386/f_frexpf.S: ditto.
10628         * libc/machine/i386/f_ldexp.S: ditto.
10629         * libc/machine/i386/f_ldexpf.S: ditto.
10630         * libc/machine/i386/f_log.S: ditto.
10631         * libc/machine/i386/f_logf.S: ditto.
10632         * libc/machine/i386/f_log10.S: ditto.
10633         * libc/machine/i386/f_log10f.S: ditto.
10634         * libc/machine/i386/f_math.h: New file.
10635         * libc/machine/i386/f_pow.c: ditto.
10636         * libc/machine/i386/f_powf.S: ditto.
10637         * libc/machine/i386/f_tan.S: ditto.
10638         * libc/machine/i386/f_tan.S: ditto.
10639         * libc/machine/i386/i386mach.h: New file.
10640
10641 Mon Nov 30 13:02:17 1998  Christopher Faylor <cgf@cygnus.com>
10642
10643         patch from Mumit Khan <khan@xraylith.wisc.edu>
10644         * libc/include/stdio.h (tempnam): Add prototype.
10645         * libc/stdio/tmpnam.c (_tempnam_r): Handle NULL prefix.
10646         (tempnam): Adhere to prototype.
10647
10648 Thu Nov 26 00:21:32 1998  Christopher Faylor <cgf@cygnus.com>
10649
10650         * Makefile.am: Add default for AR_FLAGS.
10651         * Makefile.in: Regenerate.
10652
10653 Tue Nov 24 18:48:56 1998  Geoffrey Noer  <noer@cygnus.com>
10654
10655         * libc/include/time.h: move __cplusplus wrapper after includes
10656         * libc/include/sys/time.h: ditto.  If Cygwin, include
10657         sys/select.h.
10658         * libc/include/sys/types.h: lose "32" in comment about Cygwin.
10659
10660 1998-11-23  Ken Raeburn  <raeburn@cygnus.com>
10661
10662         * libc/time/strftime.c (strftime): Handle %y after year 2000.
10663
10664 Wed Nov 18 12:22:41 1998  Nick Clifton  <nickc@cygnus.com>
10665
10666         * libc/sys/fr30/crt0.s (_start): Switch over to using int #9 as
10667         abnormnal end-of-crt0 marker.
10668
10669 Tue Nov 17 16:27:58 1998  Nick Clifton  <nickc@cygnus.com>
10670
10671         * libc/sys/fr30/crt0.s: New file/directory.
10672         * libc/include/machine/setjmp.h: Add FR30 target.
10673         * libc/include/machine/ieeefp.h: Add FR30 target.
10674         * configure.host: Add FR30 target.
10675
10676 Mon Nov  16 23:15:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10677
10678         * libm/math: Files that are duplicated in common directory removed.
10679         * libm/math/fdlibm.h: Removed.
10680         * libm/math/s_cbrt.c: Removed.
10681         * libm/math/s_copysign.c: Removed.
10682         * libm/math/s_expm1.c: Removed.
10683         * libm/math/s_finite.c: Removed.
10684         * libm/math/s_ilogb.c: Removed.
10685         * libm/math/s_infinity.c: Removed.
10686         * libm/math/s_lib_ver.c: Removed.
10687         * libm/math/s_log1p.c: Removed.
10688         * libm/math/s_logb.c: Removed.
10689         * libm/math/s_matherr.c: Removed.
10690         * libm/math/s_modf.c: Removed.
10691         * libm/math/s_nan.c: Removed.
10692         * libm/math/s_nextafter.c: Removed.
10693         * libm/math/s_rint.c: Removed.
10694         * libm/math/s_scalbn.c: Removed.
10695         * libm/math/sf_cbrt.c: Removed.
10696         * libm/math/sf_copysign.c: Removed.
10697         * libm/math/sf_expm1.c: Removed.
10698         * libm/math/sf_finite.c: Removed.
10699         * libm/math/sf_ilogb.c: Removed.
10700         * libm/math/sf_infinity.c: Removed.
10701         * libm/math/sf_log1p.c: Removed.
10702         * libm/math/sf_logb.c: Removed.
10703         * libm/math/sf_modf.c: Removed.
10704         * libm/math/sf_nan.c: Removed.
10705         * libm/math/sf_nextafter.c: Removed.
10706         * libm/math/sf_rint.c: Removed.
10707         * libm/math/sf_scalbn.c: Removed.
10708         * libm/math/Makefile.am: Removed references to deleted files (above).
10709         * libm/math/Makefile.in: Regenerated.
10710         * libm/Makefile.am: Added common directory to math.
10711         * libm/Makefile.in: Regenerated.
10712
10713 Mon Nov  2 23:12:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10714
10715         * libm/mathfp: Add non-ANSI functions.
10716         * libm/mathfp/e_acosh.c acosh(): New file.
10717         * libm/mathfp/e_atanh.c atanh(): New file.
10718         * libm/mathfp/e_hypot.c hypot(): New file.
10719         * libm/mathfp/e_j0.c j0(): New file.
10720         * libm/mathfp/e_j1.c j1(): New file.
10721         * libm/mathfp/e_remainder.c remainder(): New file.
10722         * libm/mathfp/e_scalb.c scalb(): New file.
10723         * libm/mathfp/ef_acosh.c acoshf(): New file.
10724         * libm/mathfp/ef_atanh.c atanhf(): New file.
10725         * libm/mathfp/ef_hypot.c hypotf(): New file.
10726         * libm/mathfp/ef_j0.c j0f(): New file.
10727         * libm/mathfp/ef_j1.c j1f(): New file.
10728         * libm/mathfp/ef_remainder.c remainderf(): New file.
10729         * libm/mathfp/ef_scalb.c scalbf(): New file.
10730         * libm/mathfp/er_gamma.c gamma_r: New file.
10731         * libm/mathfp/er_lgamma.c lgamma_r(): New file.
10732         * libm/mathfp/erf_gamma.c gamma_rf(): New file.
10733         * libm/mathfp/erf_lgamma.c lgamma_rf(): New file.
10734         * libm/mathfp/w_cabs.c cabs(): New file.
10735         * libm/mathfp/w_drem.c drem(): New file.
10736         * libm/mathfp/w_jn.c jn(): New file.
10737         * libm/mathfp/wf_cabs.c cabsf(): New file.
10738         * libm/mathfp/wf_drem.c dremf(): New file.
10739         * libm/mathfp/wf_jn.c jnf(): New file.
10740
10741 Mon Nov  2 16:43:18 1998  Geoffrey Noer  <noer@cygnus.com>
10742
10743         * libc/sys/cygwin32: remove directory and contents
10744         * libc/sys/cygwin: and add back, losing the "32".
10745         * configure.host: check for cygwin* instead of cygwin32.
10746         * acinclude.m4: ditto.
10747         * aclocal.m4: regenerate with aclocal
10748         * configure: regenerate with autoconf
10749
10750 Tue Oct 20 17:28:28 1998  Geoffrey Noer  <noer@cygnus.com>
10751
10752         * libc/stdio/tmpnam.c (_tempnam_r): not enough memory allocated
10753         for length
10754
10755 Tue Oct 20 18:49:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10756
10757         * libc/include/sys/reent.h (struct _reent): Added variables _rand_next, _strtok_last,
10758         _asctime_buf, _localtime_buf and _gamma_signgam to struct reent
10759         to make rand/srand, strtok, asctime, localtime, w_gamma,
10760         w_lgamma, wf_gamma, and wf_lgamma reentrant.  Included
10761         time.h to bring in struct tm definition.
10762         * libc/stdlib/rand.c (rand, srand): Don't emit functions 'rand' and 'srand' if
10763         '_REENT_ONLY' is set. Used variable '_rand_next' from struct reent.
10764         * libc/stdlib/strtok.c (strtok): Used variable '_strtok_last' from struct reent
10765         instead of static variable.
10766         * libc/stdlib/asctime.c (asctime): Used variable '_asctime_buf' from
10767         struct reent instead of static variable.
10768         * libc/stdlib/lcltime.c (localtime): Used variable '_localtime_buf' from
10769         struct reent instead of static variable.
10770         * libm/math/Makefile.am: Removed s_signgam.o.
10771         * libm/math/Makefile.in: Regenerated.
10772         * libm/math/w_gamma.c (gamma): Used variable '_gamma_signgam' from
10773         struct reent instead of global variable 'signgam'.
10774         * libm/math/w_lgamma.c (lgamma): Likewise.
10775         * libm/math/wf_gamma.c (gammaf): Likewise.
10776         * libm/math/wf_lgamma.c (lgammaf): Likewise.
10777         * libm/math/s_signgam.c: Removed.
10778         * libc/include/unctrl.h: Defined arrays __unctrl and __unctrllen
10779         to be const.
10780         * libc/misc/unctrl.c: Defined arrays __unctrl and __unctrllen
10781         to be const.
10782         * libc/reent/Makefile.am: Added dependence for impure.o on impure.c and
10783         libc/include/reent.h.
10784         * libc/reent/Makefile.in: Regenerated.
10785         * libc/stdio/vfprintf.c (_vfprintf_r): Defined arrays 'blanks' and 'zeroes'
10786         to be const.
10787         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Defined arrays 'JIS_state_table' and
10788         'JIS_action_table' to be const.
10789         * libm/math/s_lib_ver.c: define variable _LIB_VERSION to be const.
10790
10791 Mon Oct 12 00:26:33 1998  Christopher Faylor <cgf@cygnus.com>
10792
10793         * acinclude.m4:  $with_target_subdir should default to '.'
10794         or confusion results when configuring in same directory as sources.
10795         * Regenerate all aclocal.m4 and configure files.
10796
10797 Fri Oct  9 16:27:36 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10798
10799         * libc/stdlib/mallocr.c: Added 16 byte alignment support which
10800         can be set by defining MALLOC_ALIGNMENT=16.  Also added support
10801         for platforms where sizeof(size_t) < sizeof(long) via
10802         SIZE_T_SMALLER_THAN_LONG macro.
10803         
10804 Wed Oct  7 14:02:40 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10805
10806         * libc/include/time.h (CLOCKS_PER_SEC): Change CLOCKS_PER_SEC
10807         to refer to _CLOCKS_PER_SEC_ and added including <machine/time.h>
10808         which sets _CLOCKS_PER_SEC_ for selected machines.
10809         * libc/include/machine/time.h: New file.
10810
10811 Tue Oct  6 16:08:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10812
10813         * libc/syscalls/sysexecve.c: New file.
10814         * libc/syscalls/sysgettod.c: New file.
10815         * libc/syscalls/systimes.c: New file.
10816         * libc/syscalls/Makefile.am: Added new objects.
10817         * libc/syscalls/Makefile.in: Regenerated.
10818         * libc/include/_syslist.h (_execve): Moved define in file.
10819         * libc/include/reent.h:  Added _execve_r declaration.
10820         * libc/Makefile.in: Regenerated.
10821         * libc/ctype/Makefile.in: Regenerated.
10822         * libc/errno/Makefile.in: Regenerated.
10823         * libc/locale/Makefile.in: Regenerated.
10824         * libc/machine/Makefile.in: Regenerated.
10825         * libc/misc/Makefile.in: Regenerated.
10826         * libc/posix/Makefile.in: Regenerated.
10827         * libc/reent/Makefile.in: Regenerated.
10828         * libc/reent/execr.c (_execve_r): Added _execve_r function.
10829         * libc/signal/Makefile.in: Regenerated.
10830         * libc/stdio/Makefile.in: Regenerated.
10831         * libc/time/Makefile.in: Regenerated.
10832         * libc/unix/Makefile.in: Regenerated.
10833         * libm/mathfp/Makefile.in: Regenerated.
10834
10835 Tue Oct  6 14:14:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10836
10837         * libc/string/Makefile.in: Regenerated.
10838         * libc/string/memchr.c (memchr): Moved code to reduce object size.
10839         * libc/string/memcpy.c (memcpy): Ditto.
10840         * libc/string/memcmp.c (memcmp): Ditto.
10841         * libc/string/memset.c (memset): Ditto.
10842         * libc/string/strchr.c (strchr): Ditto.
10843         * libc/string/strcmp.c (strcmp): Ditto.
10844         * libc/string/strcpy.c (strcpy): Ditto.
10845         * libc/string/strlen.c (strlen): Ditto.
10846
10847 Tue Oct  6 13:58:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10848
10849         * libm/acinclude.m4: Removed since newlib/acinclude.m4 can be used
10850         to generate aclocal.m4.
10851         * libm/Makefile.in: Regenerated.
10852         * libm/aclocal.m4: Regenerated.
10853         * libm/configure: Regenerated.
10854         * libm/math/Makefile.in: Regenerated.
10855         * libm/mathfp/Makefile.in: Regenerated.
10856
10857 1998-09-25  Mark Salter  <msalter@cygnus.com>
10858
10859         * libc/include/machine/setjmp.h: Fixed test for mn10300 and mn10200
10860         by adding leading and trailing underscores to symbol names.
10861
10862 Tue Sep 22 15:33:41 1998  Christopher Faylor <cgf@cygnus.com>
10863
10864         * Makefile.in: Add default for AR_FLAGS.
10865
10866 Tue Sep 22 15:02:49 1998  Christopher Faylor <cgf@cygnus.com>
10867
10868         patch from ian@airs.com (Ian Taylor):
10869         * acinclude.m4: Run AC_CANONICAL_BUILD explicitly before
10870         NEWLIB_CONFIGURE so AC_CANONICAL_HOST will be run before it
10871         is needed for detecting the build machine.  Required for
10872         cygwin native builds.
10873
10874         * Regenerate all aclocal.m4 and configure files.
10875
10876 Mon Sep 21 14:44:16 1998  Nick Clifton  <nickc@cygnus.com>
10877
10878         * libc/sys/arm/crt0.S: Prepend a period to all local labels that
10879         used to start with LC.
10880
10881 Thu Sep 17 18:18:11 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10882
10883         * libc/machine/sh/setjmp.S (setjmp): Handle __SH4* like __SH3E__ .
10884         (longjmp): Likewise.
10885
10886 Thu Sep 17 16:25:33 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10887
10888         * libc/machine/sh/memset.S (memset): Move copy from r4 to r4 before
10889         the test for small number of bytes.
10890
10891 Thu Sep 10 11:40:00 1998  Ranjith Kumaran <ranjith@cygnus.com>
10892
10893         * Makefile.am: Add --enable-newlib-hw-fp check.  This builds the new
10894         math library that uses floating point algorithms instead of the old
10895         libm.
10896         * Makefile.in: Regenerate with automake version 1.3b.
10897         * configure: Rebuild.
10898         * libm/Makefile.in: Regenerate with automake version 1.3b.
10899         * libm/aclocal.m4: Regenerate.
10900         * libm/configure: Rebuild.
10901         * libm/configure.in: Add newlib_hw_fp definition and mathfp directory.
10902         * libm/acinclude.m4: Define macros for configure.in.
10903         * libm/config.h.in: Generate.
10904         * libm/mathfp/Makefile.am: New file.
10905         * libm/mathfp/Makefile.in: Generate.
10906         * libm/mathfp/s_acos.c (acos): New file.
10907         * libm/mathfp/s_asin.c (asin): New file.
10908         * libm/mathfp/s_asine.c (asine): New file.
10909         * libm/mathfp/s_atan.c (atan): New file.
10910         * libm/mathfp/s_atan2.c (atan2): New file.
10911         * libm/mathfp/s_atangent.c (atangent): New file.
10912         * libm/mathfp/s_ceil.c (ceil): New file.
10913         * libm/mathfp/s_copysign.c (copysign): New file.
10914         * libm/mathfp/s_cos.c (cos): New file.
10915         * libm/mathfp/s_cosh.c (cosh): New file.
10916         * libm/mathfp/s_exp.c (exp): New file.
10917         * libm/mathfp/s_fabs.c (fabs): New file.
10918         * libm/mathfp/s_finite.c (finite): New file.
10919         * libm/mathfp/s_floor.c (floor): New file.
10920         * libm/mathfp/s_fmod.c (fmod): New file.
10921         * libm/mathfp/s_frexp.c (frexp): New file.
10922         * libm/mathfp/s_infconst.c: New file.
10923         * libm/mathfp/s_isinf (isinf).c: New file.
10924         * libm/mathfp/s_isnan.c (isnan): New file.
10925         * libm/mathfp/s_ispos.c (ispos): New file.
10926         * libm/mathfp/s_ldexp.c (ldexp): New file.
10927         * libm/mathfp/s_log.c (log): New file.
10928         * libm/mathfp/s_log10.c (log10): New file.
10929         * libm/mathfp/s_logarithm.c (logarithm): New file.
10930         * libm/mathfp/s_mathcnst.c: New file.
10931         * libm/mathfp/s_modf (modf).c: New file.
10932         * libm/mathfp/s_numtest.c (numtest): New file.
10933         * libm/mathfp/s_pow.c (pow): New file.
10934         * libm/mathfp/s_scalbn.c (scalbn): New file.
10935         * libm/mathfp/s_sin (sin).c: New file.
10936         * libm/mathfp/s_sine.c (sine): New file.
10937         * libm/mathfp/s_sineh.c (sineh): New file.
10938         * libm/mathfp/s_sinf.c (sinf): New file.
10939         * libm/mathfp/s_sinh.c (sinh): New file.
10940         * libm/mathfp/s_sqrt.c (sqrt): New file.
10941         * libm/mathfp/s_tan.c (tan): New file.
10942         * libm/mathfp/s_tanh.c (tanh): New file.
10943         * libm/mathfp/sf_acos.c (acosf): New file.
10944         * libm/mathfp/sf_asin.c (asinf): New file.
10945         * libm/mathfp/sf_asine.c (asinef): New file.
10946         * libm/mathfp/sf_atan.c (atanf): New file.
10947         * libm/mathfp/sf_atan2.c (atan2f): New file.
10948         * libm/mathfp/sf_atangent.c (atangent): New file.
10949         * libm/mathfp/sf_ceil.c (ceilf): New file.
10950         * libm/mathfp/sf_copysign.c (copysignf): New file.
10951         * libm/mathfp/sf_cos.c (cosf): New file.
10952         * libm/mathfp/sf_cosh.c (coshf): New file.
10953         * libm/mathfp/sf_exp.c (expf): New file.
10954         * libm/mathfp/sf_fabs.c (fabsf): New file.
10955         * libm/mathfp/sf_finite.c (finitef): New file.
10956         * libm/mathfp/sf_floor.c (floorf): New file.
10957         * libm/mathfp/sf_fmod.c (fmodf): New file.
10958         * libm/mathfp/sf_frexp.c (frexpf): New file.
10959         * libm/mathfp/sf_isinf.c (isinff): New file.
10960         * libm/mathfp/sf_isnan.c (isnanf): New file.
10961         * libm/mathfp/sf_ispos.c (isposf): New file.
10962         * libm/mathfp/sf_ldexp.c (ldexpf): New file.
10963         * libm/mathfp/sf_log.c (logf): New file.
10964         * libm/mathfp/sf_log10.c (log10f): New file.
10965         * libm/mathfp/sf_logarithm.c (logarithmf): New file.
10966         * libm/mathfp/sf_modf.c (modff): New file.
10967         * libm/mathfp/sf_numtest.c (numtestf): New file.
10968         * libm/mathfp/sf_pow.c (powf): New file.
10969         * libm/mathfp/sf_scalbn.c (scalbnf): New file.
10970         * libm/mathfp/sf_sin.c (sinf): New file.
10971         * libm/mathfp/sf_sine.c (sinef): New file.
10972         * libm/mathfp/sf_sineh.c (sinehf): New file.
10973         * libm/mathfp/sf_sinh.c (sinhf): New file.
10974         * libm/mathfp/sf_sqrt.c (sqrtf): New file.
10975         * libm/mathfp/sf_tan.c (tanf): New file.
10976         * libm/mathfp/sf_tanh.c (tanhf): New file.
10977         * libm/mathfp/zmath.h: New file.
10978
10979 Wed Sep  2 02:49:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
10980
10981         * libc/machine/sh/strcmp.S (L_char_loop): Re-load r0 at loop
10982         exit if it has been overwritten by pre-fetching in delay slot.
10983
10984 1998-09-01  Michael Meissner  <meissner@cygnus.com>
10985
10986         * Makefile.am (tooldir): Add in host_alias, so that multilib
10987         libraries are installed in the directory the compiler looks in.
10988         * Makefile.in: Regenerate.
10989
10990         * libc/stdlib/Makefile.in: Regenerate with automake version 1.3b.
10991
10992 Mon Aug 31 11:39:31 1998  Jeff Johnston  <jjohnstn@cygnus.com>
10993
10994         * libc/machine/mn10300/memcpy.S (_memcpy): Move alignment test
10995         ahead of test for number of bytes being moved.
10996
10997 Thu Aug 27 14:07:53 1998  Christopher Faylor <cgf@cygnus.com>
10998
10999         * libc/include/sys/unistd.h: Nothing special needed for
11000         _exit under cygwin.
11001
11002 Wed Aug 26 15:05:21 1998  Nick Clifton  <nickc@cygnus.com>
11003
11004         * libc/sys/arm/syscalls.c (_sbrk): Rename '_end' to 'end' to
11005         conform to user label naming conventions. 
11006
11007 Mon Aug 24 14:46:19 1998  Geoffrey Noer <noer@cygnus.com>
11008
11009         * libc/sys/cygwin32/sys/utime.h: variable names in
11010         protos should start with two leading underscores
11011         * libc/include/string.h: ditto
11012         * libc/include/sys/signal.h: ditto
11013         * libc/include/sys/stat.h: ditto
11014         * libc/include/sys/time.h: ditto
11015         * libc/include/sys/unistd.h: ditto
11016         * libc/include/ctype.h: ditto
11017         * libc/include/stdlib.h: ditto
11018         * libc/include/sys/reent.h: struct _atexit function ptr takes a
11019         void, same with _sig_func.
11020
11021 Fri Aug 21 14:44:14 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11022
11023         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Added preprocessor checks
11024         for MB_CAPABLE to reduce code size when newlib is not configured
11025         with --enable-newlib-mb.
11026         * libc/stdlib/Makefile.am: Specified -fshort-enums when building
11027         mbtowc_r.o to minimize size.
11028         * libc/stdlib/Makefile.in: Rebuild.
11029         
11030 Wed Aug 19 16:20:13 1998  Jim Wilson  <wilson@cygnus.com>
11031
11032         * libc/sys/sparc64/Makefile.am (.S_r.o, .c_r.o): Change -DREENTRANT
11033         to -DREENT.
11034         * libc/sys/sparc64/Makefile.in: Rebuild.
11035         
11036 Tue Aug 18 22:38:29 1998  Ian Lance Taylor  <ian@cygnus.com>
11037
11038         * Makefile.am (MAKEOVERRIDES): Define.
11039         * Makefile.in: Rebuild.
11040
11041 Tue Aug 18 12:38:47 1998  Jim Wilson  <wilson@cygnus.com>
11042
11043         * libc/sys/sparc64/sys/stat.h (stat): Add const.
11044
11045 Mon Aug 17 22:27:06 1998  Ian Lance Taylor  <ian@cygnus.com>
11046
11047         * acinclude.m4 (NEWLIB_CONFIGURE): Use top_builddir in
11048         newlib_cflags when looking for targ-include.
11049         * */aclocal.m4, */configure: Rebuild.
11050
11051 Fri Jul 31 10:57:42 1998  Catherine Moore  <clm@cygnus.com>
11052
11053         * libc/sys/arm/syscalls.c (_sbrk): Change "__end__"
11054         to "_end".
11055
11056 Wed Jul 29 00:02:01 1998  Mark Alexander  <marka@cygnus.com>
11057
11058         * libc/include/sys/config.h: Define __IEEE_LITTLE_ENDIAN
11059         on SPARCs with little-endian data.
11060         * libc/include/machine/ieeefp.h: Ditto.
11061
11062 Wed Jul 22 18:00:10 1998  Ian Lance Taylor  <ian@cygnus.com>
11063
11064         * acinclude.m4: Handle a relative srcdir correctly when setting
11065         newlib_cflags.
11066         * */aclocal.m4, */configure: Rebuild.
11067
11068 Wed Jul 22 17:11:33 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11069
11070         * libm/math/wrf_lgamma.c (lgammaf_r): Initialize exc.err to 0 and
11071         also set exc.arg1, exc.arg2 appropriately in case matherr is supplied.
11072         * libm/math/wrf_gamma.c (gammaf_r): ditto 
11073         * libm/math/wr_lgamma.c (lgamma_r): ditto 
11074         * libm/math/wr_gamma.c (gamma_r): ditto 
11075         * libm/math/wf_sqrt.c (sqrtf): ditto 
11076         * libm/math/wf_sinh.c (sinhf): ditto 
11077         * libm/math/wf_scalb.c (scalbf): ditto 
11078         * libm/math/wf_remainder.c (remainderf): ditto 
11079         * libm/math/wf_pow.c (powf): ditto 
11080         * libm/math/wf_log10.c (log10f): ditto 
11081         * libm/math/wf_log.c (logf): ditto 
11082         * libm/math/wf_lgamma.c (lgammaf): ditto 
11083         * libm/math/wf_jn.c (jnf, ynf): ditto 
11084         * libm/math/wf_j1.c (j1f, y1f): ditto 
11085         * libm/math/wf_j0.c (j0f, y0f): ditto 
11086         * libm/math/wf_hypot.c (hypotf): ditto 
11087         * libm/math/wf_gamma.c (gammaf): ditto 
11088         * libm/math/wf_fmod.c (fmodf): ditto 
11089         * libm/math/wf_exp.c (expf): ditto 
11090         * libm/math/wf_cosh.c (coshf): ditto 
11091         * libm/math/wf_atanh.c (atanhf): ditto 
11092         * libm/math/wf_atan2f.c (atan2f): ditto 
11093         * libm/math/wf_asin.c (asinf): ditto 
11094         * libm/math/wf_acosh.c (acoshf): ditto 
11095         * libm/math/wf_acos.c (acosf): ditto 
11096         * libm/math/w_sqrt.c (sqrt): ditto 
11097         * libm/math/w_sinh.c (sinh): ditto 
11098         * libm/math/w_scalb.c (scalb): ditto 
11099         * libm/math/w_remainder.c (remainder): ditto 
11100         * libm/math/w_pow.c (pow): ditto 
11101         * libm/math/w_log10.c (log10): ditto 
11102         * libm/math/w_log.c (log): ditto 
11103         * libm/math/w_lgamma.c (lgamma): ditto 
11104         * libm/math/w_jn.c (jn, yn): ditto 
11105         * libm/math/w_j1.c (j1, y1): ditto 
11106         * libm/math/w_j0.c (j0, y0): ditto 
11107         * libm/math/w_hypot.c (hypot): ditto 
11108         * libm/math/w_gamma.c (gamma): ditto 
11109         * libm/math/w_fmod.c (fmod): ditto 
11110         * libm/math/w_exp.c (exp): ditto 
11111         * libm/math/w_cosh.c (cosh): ditto 
11112         * libm/math/w_atanh.c (atanh): ditto 
11113         * libm/math/w_atan2f.c (atan2): ditto 
11114         * libm/math/w_asin.c (asin): ditto 
11115         * libm/math/w_acosh.c (acosh): ditto 
11116         * libm/math/w_acos.c (acos): ditto 
11117
11118 Tue Jul 21 12:34:54 1998  Ian Lance Taylor  <ian@cygnus.com>
11119
11120         * libm/math/Makefile.am (src): Add w_cabs.c and w_drem.c.
11121         (fsrc): Add wf_cabs.c and wf_drem.c.
11122         * libm/math/Makefile.in: Rebuild.
11123
11124         * Makefile.am (AM_MAKEFLAGS): Add CFLAGS_FOR_BUILD.  Remove some
11125         unused directory variables.  Remove duplicate CFLAGS.
11126         * Makefile.in: Rebuild.
11127
11128         * doc/Makefile.am ($(MKDOC)): Don't use $(CFLAGS) when building
11129         with $(CC_FOR_BUILD).
11130         (makedoc.o): Likewise.
11131         * doc/Makefile.in: Rebuild.
11132
11133         * libc/sys/cygwin32/Makefile.am (EXTRA_LIBRARIES): Define, to
11134         force a definition of COMPILE.
11135         (libfoo_a_SOURCES): Define.
11136         * libc/sys/cygwin32/Makefile.in: Rebuild.
11137         * libc/sys/tic80/Makefile.am (EXTRA_LIBRARIES): Define, to
11138         force a definition of COMPILE.
11139         (libfoo_a_SOURCES): Define.
11140         * libc/sys/tic80/Makefile.in: Rebuild.
11141
11142 Mon Jul 20 20:49:24 1998  Christopher Faylor <cgf@cygnus.com>
11143
11144         * libc/include/sys/fcntl.h: Add O_NOINHERIT, Win32-specific
11145         flag.
11146
11147 Fri Jul 17 16:13:16 1998  Ian Lance Taylor  <ian@cygnus.com>
11148
11149         * Build using autoconf and automake.  Added many Makefile.am and
11150         configure.in files, plus generated files.  Old configure.in files
11151         and all old Makefile.in files completely replaced.  Removed
11152         host/any.  Added acinclude.m4 and configure.host.
11153
11154 Sat Jul 11 18:14:49 1998  Felix Lee  <flee@cygnus.com>
11155
11156         * libc/stdio/vfprintf.c: enable long long support, sometimes.
11157         * configure.in (*-*-cygwin32): add -DWANT_PRINTF_LONG_LONG.
11158
11159 Tue Jul  7 01:51:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11160
11161         * libc/machine/sh/strcmp.S, libc/machine/sh/strcpy.S: New files.
11162         * libc/machine/sh/Makefile.in: Add rules for new files.
11163
11164 Tue Jul  7 01:40:55 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11165
11166         * libc/machine/sh/asm.h (SL, DELAYED_BRANCHES): Define.
11167         * libc/machine/sh/memset.S (memset): Remove uses of dt; shorten code.
11168         * libc/machine/sh/memcpy.S (SL, DELAYED_BRANCHES): Don't define.
11169
11170 Thu Jul  2 10:33:16 1998  Nick Clifton  <nickc@cygnus.com>
11171
11172         * libc/sys/arm/syscalls.c (_exit): Add comment, noting that exit
11173         code is ignored.
11174
11175 Wed Jun 24 13:56:54 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11176
11177         * libc/stdio/tmpnam.c (_tmpnam_r): Changed routine to use
11178         internal static buffer when s is NULL, as prescribed by ANSI.
11179
11180 1998-06-22  Vladimir N. Makarov  <vmakarov@cygnus.com>
11181
11182         * libc/sys/h8300hms/Makefile.in (OFILES): malloc.o has been
11183         removed.
11184         * libc/sys/h8300hms/malloc.c: has been removed.  Now malloc.c from
11185         libc/stdlib will be used for h8300hms.
11186         
11187 Thu Jun 18 16:56:05 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11188
11189         * libc/machine/mn10300/strlen.S (_strlen): New optimized assembler
11190         version that can be built either for speed or size.
11191         * libc/machine/mn10300/memset.S (_memset): ditto
11192         * libc/machine/mn10300/memchr.S (_memchr): ditto
11193         * libc/machine/mn10300/memcpy.S (_memcpy): ditto
11194         * libc/machine/mn10300/memcmp.S (_memcmp): ditto
11195         * libc/machine/mn10300/strchr.S (_strchr): ditto
11196         * libc/machine/mn10300/strcmp.S (_strcmp): ditto
11197         * libc/machine/mn10300/strcpy.S (_strcpy): ditto
11198         * libc/machine/mn10300/Makefile.in: Added entries for
11199         memchr.o, memcmp.o, memcpy.o, memset.o, strchr.o, 
11200         strcmp.o, strcpy.o, and strlen.o.
11201
11202 Wed Jun 17 12:50:26 1998  Mark Alexander  <marka@cygnus.com>
11203
11204         * configure.in: Don't use libc/sys/sysmec for MN10200; it's
11205         been replaced with libgloss/mn10200.
11206
11207 Fri Jun 12 14:34:39 1998  Michael Meissner  <meissner@cygnus.com>
11208
11209         * libc/string/strchr.c (strchr): Make s a constant pointer to
11210         avoid warning.
11211
11212 Tue Jun  9 16:29:30 1998  Jason Molenda  (crash@bugshack.cygnus.com)
11213
11214         * configure.in (target == arm* or thumb*): Define ARM_RDI_MONITOR
11215         instead of ARM_RDP_MONITOR (sys/libc/arm/crt0.S to assume Angel
11216         board SWIs instead of Demon board SWIs).
11217
11218 Thu Jun  4 12:16:46 1998  Michael Meissner  <meissner@cygnus.com>
11219
11220         * libc/string/strncat.c (strncat):  Make -Os act the same as
11221         PREFER_SIZE_OVER_SPEED being defined.
11222
11223 Wed Jun  3 17:52:33 1998  Michael Meissner  <meissner@cygnus.com>
11224
11225         * libc/string/memchr.c (memchr): Make -Os act the same as
11226         PREFER_SIZE_OVER_SPEED being defined.
11227         * libc/string/memcmp.c (memcmp): Ditto.
11228         * libc/string/memcpy.c (memcpy): Ditto.
11229         * libc/string/memset.c (memset): Ditto.
11230         * libc/string/strcat.c (strcat): Ditto.
11231         * libc/string/strchr.c (strchr): Ditto.
11232         * libc/string/strcmp.c (strcmp): Ditto.
11233         * libc/string/strcpy.c (strcpy): Ditto.
11234         * libc/string/strlen.c (strlen): Ditto.
11235         * libc/string/strncat.c (strncat): Ditto.
11236         * libc/string/strncmp.c (strncmp): Ditto.
11237         * libc/string/strncpy.c (strncpy): Ditto.
11238
11239 Mon Jun  1 15:25:07 1998  Geoffrey Noer  <noer@cygnus.com>
11240
11241         * libc/include/sys/itimer.h: remove
11242         * libc/include/sys/time.h: itimer stuff should be here
11243
11244 Mon Jun  1 16:31:29 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11245
11246         * libc/stdio/vfprintf.c (cvt): Changed code to look at sign
11247         bit instead of comparing to 0 so -0.0 can be printed correctly.
11248
11249 Sat May 30 09:33:51 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11250
11251         * libc/stdlib/mprec.c (b2d): Inilialize d in non-VAX case too.
11252
11253 Fri May 29 22:25:10 1998  Geoffrey Noer  <noer@cygnus.com>
11254
11255         * libc/include/sys/unistd.h: fix sync() proto
11256         * libc/include/sys/fcntl.h: remove _close which is already
11257         defined in unistd.h.
11258         * libc/include/sys/time.h: add getitimer proto
11259
11260 Fri May 29 16:10:28 1998  Geoffrey Noer  <noer@cygnus.com>
11261
11262         * libc/string/strchr.c: convert arg to unsigned char
11263         * libc/include/stdlib.h: add protos for random, srandom
11264         * libc/include/sys/stat.h: add lstat proto
11265         * libc/include/sys/time.h: add setitimer proto
11266         * libc/include/sys/unistd.h: add readlink, symlink protos
11267         * libc/include/process.h: instead of including windows.h and using
11268         HANDLEs in sexec protos, just use void *s.  Need to include
11269         sys/types.h.
11270
11271 Fri May 29 03:04:29 1998  Geoffrey Noer  <noer@cygnus.com>
11272
11273         * libc/include/sys/fcntl.h: add _close proto for Cygwin32
11274
11275 Thu May 28 16:34:21 1998  Geoffrey Noer  <noer@cygnus.com>
11276
11277         * libc/include/process.h: add secure exec protos
11278
11279 Wed May 27 13:54:51 1998  Jeffrey A Law  (law@cygnus.com)
11280
11281         * libc/stdlib/dtoa.c (_dtoa_r): Use "double_union" for variables
11282         which are accessed as both doubles and integers.
11283         * libc/stdlib/mprec.c (ulp, b2d, ratio): Likewise.
11284         * libc/stdlib/strtod.c (_strtod_r): Likewise.
11285         * libc/stdlib/mprec.h: Add "union double_union" and change
11286         word0/word1 macros to use it.
11287
11288 Tue May 26 18:04:21 1998  Geoffrey Noer  <noer@cygnus.com>
11289
11290         * libc/include/sys/signal.h: add __cplusplus wrapper
11291
11292 Tue May 26 15:10:22 1998  Geoffrey Noer  <noer@cygnus.com>
11293
11294         * libc/include/sys/utime.h: new generic file that gets replaced by
11295         libc/sys/SYSDIR/sys/utime.h on systems that support the utime
11296         function.
11297         * sys/cygwin32/sys/utime.h: use _EXFUN in utime proto
11298         * libc/include/time.h: remove duplicate utime proto
11299         * libc/include/utime.h: add comment
11300
11301 Sun May 24 23:56:20 1998  Christopher Faylor <cgf@cygnus.com>
11302
11303         * libc/include/sys/time.h: Add missing include to
11304         allow use of _EXFUN.  Remove times function that is
11305         already defined in times.h.
11306
11307 Sun May 24 01:32:14 1998  Christopher Faylor <cgf@cygnus.com>
11308
11309         * libc/include/time.h: Fix typo in tzset.
11310
11311 Fri May 22 17:00:48 1998  Geoffrey Noer  <noer@cygnus.com>
11312
11313         * libc/include/sys/time.h: add missing Cygwin32 function protos
11314         * libc/include/sys/unistd.h: ditto
11315         * libc/include/time.h: ditto
11316
11317 Wed May 20 20:35:11 1998  Geoffrey Noer  <noer@cygnus.com>
11318
11319         * libc/sys/cygwin32/sys/param.h: add protected NULL def, remove
11320         FIXME.
11321         * libc/include/sys/types.h: add a new __MS_types__ section
11322         to define vm_offset_t, vm_size_t, int32_t et al, register_t,
11323         __BIT_TYPES_DEFINED__.
11324
11325 Wed May 20 18:49:21 1998  Geoffrey Noer  <noer@cygnus.com>
11326
11327         * libc/sys/cygwin32/sys/param.h: move here from winsup/include/sys
11328         since it overrides the one in libc/include/sys.  Also, start
11329         including types.h.
11330
11331 Wed May 20 14:45:40 1998  Geoffrey Noer  <noer@cygnus.com>
11332
11333         * libm/math/Makefile.in: add s_signgam.o to obj list
11334
11335 Tue May 19 11:57:11 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11336
11337         * libc/include/sys/reent.h (_REENT_INIT): Initialize current locale to "C".
11338
11339 Mon May 18 22:36:12 1998  Christopher Faylor <cgf@cygnus.com>
11340
11341         * libc/include/sys/signal.h: cygwin32 exports sig{empty,add}set,
11342         so don't use defines.
11343
11344 Mon May 18 19:01:02 1998  Michael Meissner  <meissner@cygnus.com>
11345
11346         * libc/sys/d10v/crt0.S: Use correct stab for 16-bit ints.
11347
11348 Sun May 17 18:40:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
11349
11350         * libc/stdlib/mbtowc_r.c (_mbtowc_r): Accept a NULL
11351         _current_locale as default locale.
11352
11353 Sat May 16 21:59:59 1998  Bob Manson  <manson@charmed.cygnus.com>
11354
11355         * libc/stdlib/mallocr.c (mALLOc): Add explicit tests for
11356         insufficient space in a chunk.
11357
11358 Tue May 12 14:41:01 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11359
11360         * configure.in (links): Added check for --enable-newlib-mb configure
11361         option which defines the MB_CAPABLE macro.
11362         * libc/locale/locale.c (_setlocale_r): Added support for setting
11363         LC_CTYPE to "C-JIS", "C-SJIS" or "C-EUCJP", when MB_CAPABLE is
11364         defined.
11365         * libc/stdlib/mbtowc_r.c (_mbtowc_r): New function _mbtowc_r that
11366         implements mbtowc() with multibyte support for JIS, SJIS, and EUC-JP.
11367         * libc/stdlib/wctomb_r.c (_wctomb_r): New function _wctomb_r that
11368         implements wctomb() with multibyte support for JIS, SJIS, and EUC-JP.
11369         * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): New function _mbstowcs_r that
11370         implements mbstowcs() with multibyte support for JIS, SJIS, and EUC-JP.
11371         * libc/stdlib/wcstombs_r.c (_wcstombs_r): New function _wcstomb_r that implements
11372         wcstombs() with multibyte support for JIS, SJIS, and EUC-JP.
11373         * libc/stdlib/Makefile.in: Added new multibyte
11374         routines: _mbtowc_r(), _wctomb_r(), _mbstowcs_r(), and _wcstombs_r().
11375         * libc/include/stdlib.h: Added declarations of _mbtowc_r(), _wctomb_r(),
11376         _mbstowcs_r(), and _wcstombs_r().
11377         * libc/stdlib/mbctype.h: New internal header file that contains macros to test
11378         for JIS, SJIS, and EUC-JP characters.
11379         * libc/stdlib/mblen.c (mblen): Added code to call _mbtowc_r() if
11380         MB_CAPABLE defined.
11381         * libc/stdlib/mbtowc.c (mbtowc): Added code to call _mbtowc_r() if
11382         MB_CAPABLE defined.
11383         * libc/stdlib/wctomb.c (wctomb): Added code to call _wctomb_r() if
11384         MB_CAPABLE defined.
11385         * libc/stdlib/mbstowcs.c (mbstowcs): Added code to call _mbstowcs_r()
11386         if MB_CAPABLE defined.
11387         * libc/stdlib/wcstombs.c (wcstombs): Added code to call _wcstombs_r()
11388         if MB_CAPABLE defined.
11389         * libc/stdio/vfscanf.c (__svfscanf): Added multibyte tolerance
11390         to the format string processing when MB_CAPABLE.
11391         * libc/stdio/vfprintf.c (_VFPRINTF_R): Changed mbtowc() call to
11392         call _mbtowc_r().
11393
11394 Tue May  5 16:07:23 1998  Nick Clifton  <nickc@cygnus.com>
11395
11396         The following modifications are courtesy of Anthony Thompson,
11397         athompson@cambridge.arm.com:
11398         * libc/sys/arm/syscalls.c: Initialise and track stdin/out/err for
11399         boith RDI and RDP monitors.
11400         * libc/sys/arm/crt0.S: Call initialise_monitor_handles() for both
11401         RDI and RDP monitors.
11402
11403 Wed Apr 29 15:22:15 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11404
11405         * configure.in (links): Added -DHAVE_GETTIMEOFDAY for arm and thumb.
11406         * libc/sys/arm/syscalls.c (_gettimeofday _times): Added functions.
11407         (_swiopen): Fixed open flags to treat write with append as just append.
11408         (_swilseek): Fixed lseek support to properly handle offsets from SEEK_END.
11409         * libc/sys/arm/sys/param.h: New file to override param.h for ARM.
11410
11411 Fri Apr 24 18:00:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11412
11413         * libc/machine/sh/memcpy.S (L_odddst, big endian version):
11414         When needing to transfer an initial 2-byte-word, store as
11415         two single bytes.
11416
11417 Wed Apr 22 17:56:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11418
11419         * libc/sys/sh/crt0.S (start): Handle __SH4_SINGLE_ONLY__ like
11420         __SH3E__ .
11421         * libc/machine/sh/memcpy.S (DELAYED_BRANCHES, SL): Likewise.
11422         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Likewise.
11423
11424 Wed Apr 22 12:28:03 1998  Michael Meissner  <meissner@cygnus.com>
11425
11426         * configure.in (target_cflags): If --enable-target-optspace, use
11427         -Os to compile newlib rather than -O2.  Default to using -Os for
11428         d10v, d30v and m32r if --{enable,disable}-target-optspace is not
11429         used.
11430
11431 Tue Apr 21 23:13:34 1998  Geoffrey Noer  <noer@cygnus.com>
11432
11433         * libc/include/machine/setjmp.h: change sigsetjmp and
11434         siglongjmp definitions to use an array instead of a struct
11435         for __CYGWIN32__
11436
11437 Tue Apr 14 11:47:47 1998  Doug Evans  <devans@canuck.cygnus.com>
11438
11439         * libc/reent/impure.c (__ATTRIBUTE_IMPURE_DATA__): Fix spelling.
11440
11441 Mon Apr  6 15:05:08 1998  Jonathan Larmour  <jlarmour@cygnus.co.uk>
11442
11443         * libc/string/strxfrm.c: fix to get correct return value
11444
11445 Wed Apr  1 16:09:05 1998  Nick Clifton  <nickc@cygnus.com>
11446
11447         * libc/sys/arm/crt0.S: Set top of RAM to be 0x800000 for PE
11448         builds.  Make mode change labels global so that they will be seen
11449         by the debugger.
11450
11451 Wed Mar 18 09:45:10 1998  Nick Clifton  <nickc@cygnus.com>
11452
11453         * configure.in (links): Do not use ARM debiugging protocols for PE
11454         builds.
11455
11456         * libc/sys/arm/syscalls.c (_sbrk): Add "_sbrk: " to error
11457         message. 
11458
11459 Fri Mar 13 11:24:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11460
11461         * libc/stdio/findfp.c (__sinit): Made stdout default to
11462         line buffered mode as defined by ANSI.
11463
11464 Tue Mar 10 11:41:26 1997  Bob Manson  <manson@charmed.cygnus.com>
11465
11466         * libc/include/sys/itimer.h: New file.
11467
11468         * libc/signal/signal.c (__sigtramp_r,__sigtramp): New functions.
11469
11470 Mon Mar  9 14:19:26 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
11471
11472         * libc/machine/sh/memcpy.S: (_memcpy): Fix for execute/memcpy-1.c
11473         failure.
11474
11475 Fri Feb 27 13:56:10 1998  Michael Meissner  <meissner@cygnus.com>
11476
11477         * libc/machine/d30v/setjmp.S (longjmp): Fix order of parallel
11478         insns.
11479
11480 Wed Feb 25 09:29:54 1998  Nick Clifton  <nickc@cygnus.com>
11481
11482         * libc/sys/arm/syscalls.c (_open): Add varags to conform to prototype.
11483
11484 Tue Feb 24 18:00:13 1998  Michael Meissner  <meissner@cygnus.com>
11485
11486         * libc/machine/d30v/{setjmp.S,Makefile.in}: New files for D30V
11487         support.
11488
11489         * libc/include/machine/setjmp.h: Add D30V support.
11490
11491         * configure.in (d30v-*): Add d30v machine directory.
11492
11493 Mon Feb 23 09:32:58 1998  Mark Alexander  <marka@cygnus.com>
11494
11495         * configure.in: Don't use libc/sys/sysmec for MN10300; it's
11496         been replaced with libgloss/mn10300.
11497
11498 Sat Feb 21 17:44:43 1998  Geoffrey Noer  <noer@cygnus.com>
11499
11500         * libc/stdlib/mallocr.c: remove __malloc_copy routine now that
11501         it is no longer needed.
11502
11503 Thu Feb 19 16:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11504
11505         * libc/include/sys/signal.h: add sigpause proto for Cygwin32
11506
11507 Wed Feb 18 23:51:08 1998  Geoffrey Noer  <noer@cygnus.com>
11508
11509         * libc/stdio/fdopen.c (fdopen): Make all writes go to the end of
11510         the file when O_APPEND is set, wherever the EOF happens to be at
11511         that time. 
11512
11513 Wed Feb 18 23:25:02 1998  Geoffrey Noer  <noer@cygnus.com>
11514         
11515         patch from cgf@bbc.com (Christopher Faylor):
11516         * libc/stdio/freopen.c (freopen): Conform to standard UNIX
11517         convention of closing fp prior to attempting to open the file
11518         argument.  This allows correct operation when reopening
11519         stdin/stdout/stderr.  Replaces last freopen.c patch.
11520
11521 Wed Feb 18 16:27:40 1998  Geoffrey Noer  <noer@cygnus.com>
11522
11523         patch from cgf@bbc.com (Christopher Faylor):
11524         * libc/stdio/freopen.c: freopen was not preserving the fd
11525         of the stream being operated on.  This confuses programs that
11526         expect that the handles for stdout and stderr will be 1 and 2.
11527
11528 Mon Feb 16 23:34:07 1998  Andrew Cagney  <cagney@b1.cygnus.com>
11529
11530         * libc/sys/d10v/crt0.S (_start): Set PSW{SW} - select SPU.
11531
11532 Thu Feb 12 15:09:20 1998  Ranjith Kumaran <ranjith@cygnus.com>
11533
11534         * libc/sys/go32/longjmp.S: Fix longjmp to not return 0.
11535
11536 Wed Feb 11 17:50:45 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11537
11538         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Alignment code
11539         altered to not use a branch.  Also added hint that last
11540         bclr in longjmp will likely result in branch.
11541         
11542
11543 Mon Feb  9 03:44:02 1998  Geoffrey Noer  <noer@cygnus.com>
11544
11545         * libc/sys/cygwin32/crt0.c: add missing args to main() extern
11546
11547 Fri Feb  6 16:32:32 1998  Nick Clifton  <nickc@cygnus.com>
11548
11549         * libc/sys/sysnecv850/crt0.S (_start): Initialise _ctbp even for
11550         v850 builds.
11551
11552         * configure.in: Add -msmall-sld to target_cflags for v850 builds. 
11553
11554 Wed Feb  4 16:56:20 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11555
11556         * libc/machine/powerpc/setjmp.S (longjmp): Fixed code
11557         that loads FR14 to specify offset of 8 rather than 4
11558         so it loads from offset 96 (where setjmp stored it).
11559
11560 Tue Feb  3 18:08:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11561
11562         * libc/machine/sh/memcpy.S: (_memcpy): Update to
11563         latest version supplied by customer.
11564         * libc/machine/sh/memset.S (_memset): Ditto.
11565
11566 Mon Feb  2 16:20:39 1998  Nick Clifton  <nickc@cygnus.com>
11567
11568         * libc/sys/sysnecv850/Makefile.in (OFILES): Add link.o (for
11569         PR14730). 
11570
11571 Mon Feb  2 15:13:26 1998  Geoffrey Noer  <noer@cygnus.com>
11572
11573         * libc/include/string.h: remove redefinition of ffs
11574
11575 Wed Jan 28 13:30:14 1998  Geoffrey Noer  <noer@cygnus.com>
11576
11577         * libc/include/sys/signal.h: include _ansi.h so _EXFUN is
11578         defined
11579
11580 Wed Jan 28 10:38:34 1998  Jeff Johnston  <jjohnstn@cygnus.com>
11581
11582         * libc/machine/tic80/setjmp.S: Adding _setjmp to allow
11583         TI Libraries to link to libc.a
11584         
11585 Sat Jan 24 10:15:56 1998  Michael Meissner  <meissner@cygnus.com>
11586
11587         * libc/include/sys/fcntl.h (_open,_fcntl): Add prototypes.
11588         * libc/include/sys/stat.h (_{,f}stat): Ditto.
11589         * libc/include/sys/wait.h (_wait): Ditto.
11590         * libc/include/sys/unistd.h (_close,_fork,_getpid): Ditto.
11591         (_link,_lseek,_read,_sbrk,_unlink,_write): Ditto.
11592
11593 Fri Jan 23 11:32:10 1998  Michael Meissner  <meissner@cygnus.com>
11594
11595         * libc/machine/d10v/setjmp.S: Change to new ABI.  Add simple
11596         minded stabs so function name shows up when running the simulator
11597         with -t.
11598         * libc/sys/d10v/{crt0,trap}.S: Ditto.
11599
11600 Thu Jan 22 15:57:14 1998  Fred Fish  <fnf@cygnus.com>
11601
11602         * libc/sys/d10v/trap.S: Change syscalls to use trap 15. 
11603         * libc/sys/d10v/crt0.S: Use R6 where we used to use R2.
11604         Use R5 where we used to use R3.
11605         
11606 Wed Jan 21 14:22:23 1998  Bill Moyer <billm@cygnus.com>
11607
11608         * libc/stdlib/getopt.c (getopt): replaced __progname
11609         with nargv[0] to improve portability to imbedded systems.
11610
11611 Thu Jan 15 12:32:38 1998  Nick Clifton  <nickc@cygnus.com>
11612
11613         * libc/sys/arm/syscalls.c (initialise_angel_handles): Applied
11614         patch supplied by Tont.Thompson@arm.com to fix the creation of the
11615         stdout file.
11616
11617 Wed Jan 14 13:00:19 1998  Ian Lance Taylor  <ian@cygnus.com>
11618
11619         * libc/stdio/tmpnam.c (worker): Generate a different file name
11620         each time.
11621
11622         * libc/posix/popen.c (popen): If __CYGWIN32__, and execing /bin/sh
11623         fails, try an execlp for sh.
11624
11625         * host/any (INCLUDES): If target_os is cygwin32, then add a -I
11626         option for the winsup include directory.
11627
11628 Wed Jan  7 17:02:58 1998  Nick Clifton  <nickc@cygnus.com>
11629
11630         * libc/sys/arm/syscalls.c: Applied patches for Angel based remote
11631         debugging interface from Tony.Thompson@arm.com.
11632         
11633         * libc/sys/arm/crt0.S (_mainCRTStartup): ditto.
11634         * libc/sys/arm/swi.h: ditto.
11635
11636 Tue Jan  6 14:15:10 1998  Geoffrey Noer  <noer@cygnus.com>
11637
11638         * libc/sys/cygwin32/sys/dirent.h: add __d_dirhash field to
11639         DIR struct used for readdir hashes.
11640
11641 Thu Jan  1 11:22:22 1998  Jeffrey A Law  (law@cygnus.com)
11642
11643         * libc/string/strchr.c: Use "unsigned chars" as necessary.
11644
11645 Wed Dec 31 04:25:30 1997  Jeffrey A Law  (law@cygnus.com)
11646
11647         * libc/stdlib/mallocr.c (idx2binblock): Don't lose on 16bit
11648         integer targets.
11649
11650 Sat Dec 13 15:11:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11651
11652         * libc/stdlib/mallocr.c (__malloc_copy): New function, compiled if
11653         INTERNAL_NEWLIB and __CYGWIN32__ and DEFINE_MALLOC.
11654         * libc/include/malloc.h: Add extern "C" if __cplusplus.
11655         (__malloc_copy): Declare.
11656
11657 Wed Dec 10 12:15:54 1997  Ian Lance Taylor  <ian@cygnus.com>
11658
11659         * libc/stdlib/mallocr.c: If INTERNAL_NEWLIB, include
11660         <sys/config.h>.
11661         (POINTER_UINT): Define.
11662         (DEFAULT_TRIM_THRESHOLD): Mark constants as long.
11663         (MALLOC_ALIGNMENT): Don't define if already defined.
11664         (malloc_extend_top): Cast pointers to POINTER_UINT, not unsigned
11665         long.
11666
11667 Tue Dec  9 19:23:42 1997  Michael Meissner  <meissner@cygnus.com>
11668
11669         * libc/string/memset.c (memset): Fiddle with code so that the long
11670         value being stored is not a stack value.  Unroll storing longs 4
11671         times.
11672
11673 Tue Dec  9 14:13:18 1997  Jeff Johnston  <jjohnstn@cygnus.com>
11674
11675         * Reduce code size for libm modules.
11676         * libm/math/w_sqrt.c (sqrt): Remove call to kernel_standard
11677         and simply move code into sqrt.
11678         * libm/math/wrf_lgamma.c (lgammaf_r): Likewise.
11679         * libm/math/wr_lgamma.c (lgamma_r): Likewise.
11680         * libm/math/wrf_gamma.c (gammaf_r): Likewise.
11681         * libm/math/wr_gamma.c (gamma_r): Likewise.
11682         * libm/math/wf_sinh.c (sinfh): Likewise.
11683         * libm/math/w_sinh.c (sinh): Likewise.
11684         * libm/math/wf_scalb.c (scalbf): Likewise.
11685         * libm/math/w_scalb.c (scalb): Likewise.
11686         * libm/math/wf_remainder.c (remainderf): Likewise.
11687         * libm/math/w_remainder.c (remainder): Likewise.
11688         * libm/math/wf_pow.c (powf): Likewise.
11689         * libm/math/w_pow.c (pow): Likewise.
11690         * libm/math/wf_log10.c (log10f): Likewise.
11691         * libm/math/w_log10.c (log10): Likewise.
11692         * libm/math/wf_log.c (logf): Likewise.
11693         * libm/math/w_log.c (log): Likewise.
11694         * libm/math/w_lgamma.c (lgamma): Likewise.
11695         * libm/math/wf_lgamma.c (lgammaf): Likewise.
11696         * libm/math/wf_jn.c (jnf): Likewise.
11697         * libm/math/w_jn.c (jn): Likewise.
11698         * libm/math/wf_j1.c (j1f): Likewise.
11699         * libm/math/w_j1.c (j1): Likewise.
11700         * libm/math/wf_j0.c (j0f): Likewise.
11701         * libm/math/w_j0.c (j0): Likewise.
11702         * libm/math/wf_hypot.c (hypotf): Likewise.
11703         * libm/math/w_hypot.c (hypot): Likewise.
11704         * libm/math/wf_gamma.c (gammaf): Likewise.
11705         * libm/math/w_gamma.c (gamma): Likewise.
11706         * libm/math/wf_fmod.c (fmodf): Likewise.
11707         * libm/math/w_fmod.c (fmod): Likewise.
11708         * libm/math/wf_exp.c (expf): Likewise.
11709         * libm/math/w_exp.c (exp): Likewise.
11710         * libm/math/wf_cosh.c (coshf): Likewise.
11711         * libm/math/w_cosh.c (cosh): Likewise.
11712         * libm/math/wf_atanh.c (atanhf): Likewise.
11713         * libm/math/w_atanh.c (atanh): Likewise.
11714         * libm/math/wf_atan2.c (atan2f): Likewise.
11715         * libm/math/w_atan2.c (atan2): Likewise.
11716         * libm/math/wf_asin.c (asinf): Likewise.
11717         * libm/math/w_asin.c (asin): Likewise.
11718         * libm/math/wf_acosh.c (acoshf): Likewise.
11719         * libm/math/w_acosh.c (acosh): Likewise.
11720         * libm/math/wf_acos.c (asocf): Likewise.
11721         * libm/math/w_acos.c (acos): Likewise.
11722         * libm/math/wf_sqrt.c (sqrtf): Likewise.
11723         * libm/math/k_standard.c (_k_standard): Don't require SVID behavior
11724         for embedded systems.
11725
11726 Mon Dec  8 12:12:58 1997  Ian Lance Taylor  <ian@cygnus.com>
11727
11728         * libc/stdlib/mallocr.c (malloc_extend_top): Add patch from Doug
11729         Lea in case of a foreign sbrk.
11730
11731 Fri Dec  5 23:27:28 1997  Ian Lance Taylor  <ian@cygnus.com>
11732
11733         Incorporate Doug Lea's malloc:
11734         * libc/stdlib/mallocr.c: Completely replaced.
11735         * libc/stdlib/malloc.c: Document malloc_usable_size and memalign.
11736         (realloc): Remove.
11737         * libc/stdlib/calloc.c (calloc): Just call _calloc_r.
11738         * libc/stdlib/mstats.c: Document mallinfo, malloc_stats, and
11739         mallopt.
11740         (mallinfo, malloc_stats, mallopt): New functions.
11741         (_mstats_r): Just call _malloc_stats_r.
11742         * libc/stdlib/malign.c: New file.
11743         * libc/stdlib/mlock.c: New file.
11744         * libc/stdlib/msize.c: New file.
11745         * libc/stdlib/mtrim.c: New file.
11746         * libc/stdlib/realloc.c: New file.
11747         * libc/stdlib/valloc.c: New file.
11748         * libc/stdlib/malloc.h: Remove.
11749         * libc/stdlib/callocr.c: Remove.
11750         * libc/stdlib/Makefile.in (OFILES): Add cfreer.o, freer.o,
11751         malign.o, malignr.o, mallinfor.o, malloptr.o, mallstatsr.o,
11752         mlock.o, msize.o, msizer.o, mtrim.o, pvallocr.o, realloc.o,
11753         reallocr.o, valloc.o, vallocr.o.
11754         (CHEWOUT_FILES): Add mlock.def, mstats.def.
11755         (MALLOC_CFLAGS): New variable.
11756         (mallocr.o): New target, build from mallocr.c.
11757         (freer.o, reallocr.o, callocr.o, cfreer.o, malignr.o): Likewise.
11758         (vallocr.o, pvallocr.o, mallinfor.o, mallstatsr.o): Likewise.
11759         (msizer.o, malloptr.o): Likewise.
11760         (malign.o, mlock.o, msize.o, mtrim.o, realloc.o): New targets.
11761         (valloc.o): New target.
11762         * libc/stdlib/stdlib.tex: Include mlock.def and mstats.def.
11763         * libc/include/malloc.h: Declare struct mallinfo, and new
11764         routines.
11765         * libc/include/stdlib.h (cfree): Correct declaration.
11766
11767 Tue Dec  2 10:12:16 1997  Nick Clifton  <nickc@cygnus.com>
11768
11769         * libc/include/machine/setjmp.h: Add support for Thumb target.
11770
11771         * libc/include/machine/ieeefp.h: Add support for Thumb target.
11772
11773         * configure.in (links): Add support for Thumb target.
11774
11775 Wed Nov 26 09:56:17 1997  Nick Clifton  <nickc@cygnus.com>
11776
11777         * libc/sys/arm/setjmp.S: Updated with version from branch.
11778
11779 Thu Nov 20 01:21:43 1997  Geoffrey Noer  <noer@cygnus.com>
11780
11781         * libc/include/stdio.h: add POSIX-required define L_ctermid
11782         for ctermid
11783
11784 Wed Nov 19 16:11:40 1997  Michael Meissner  <meissner@cygnus.com>
11785
11786         * configure.in (d30v-*-*): Define ABORT_MESSAGE, SMALL_MEMORY, in
11787         addition to MISSING_SYSCALL_NAMES.
11788
11789 Mon Nov 17 20:05:05 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11790
11791         * libc/include/sys/config.h: (UINT_MAX, for D10V):  Make unsigned.
11792
11793 Mon Nov 10 22:26:55 1997  Geoffrey Noer  <noer@cygnus.com>
11794
11795         * libc/include/string.h: change strsignal proto to return
11796         a char *.  This eliminates compile problems in gdb resulting
11797         from gdb's definition of strsignal in defs.h.
11798
11799 Mon Nov 10 17:11:08 1997  Geoffrey Noer  <noer@cygnus.com>
11800
11801         * libc/sys/cygwin32/sys/utime.h: new (moved here from
11802         winsup/include) so as not to conflict with the one in
11803         libc/include.
11804         * libc/include/string.h: add protos for strsignal, strtosigno
11805
11806 Mon Nov 10 13:49:54 1997  Michael Meissner  <meissner@cygnus.com>
11807
11808         * libc/include/sys/config.h: Define __IEEE_BIG_ENDIAN if d30v.
11809
11810         * configure.in (d30v-*-*): Add configuration.
11811
11812 Thu Oct 30 14:01:23 1997  Nick Clifton  <nickc@cygnus.com>
11813
11814         * configure.in (links): Add -DARM_RD[P|I]_MONITOR to target_cflags
11815         to select which kind of debug monitor is in use for an ARM target.
11816
11817         * libc/sys/arm/crt0.S: New version: Supports Thumb startups and
11818         Angel and Demon debug monitors.  Part of this code was supplied by
11819         Tony Thompson at ARM: athompso@arm.com.
11820
11821 Fri Oct 24 18:57:05 1997  Jeffrey A Law  (law@cygnus.com)
11822
11823         * strncat.c (strncat): Don't call strncpy; strncay has the wrong
11824         semantics when the count is greater than the length of the second
11825         source string.
11826
11827 Thu Oct 23 01:37:41 1997  Geoffrey Noer  <noer@cygnus.com>
11828
11829         * libc/include/sys/signal.h: reorder CYGWIN32 signal numbers
11830         * libc/include/sys/unistd.h: add protos for usleep, truncate,
11831         truncate and ftruncate take off_t, not size_t
11832
11833 Tue Oct 21 18:42:00 1997  Jim Wilson  <wilson@cygnus.com>
11834
11835         * libc/string/strcat.c (strcat): Add missing comment end.
11836         * libc/string/strncat.c (strncat): Likewise.
11837
11838 Tue Oct 21 17:23:34 1997  Nick Clifton  <nickc@cygnus.com>
11839
11840         * configure.in (links): Define PREFER_SIZE_OVER_SPEED for v850
11841         targets. 
11842         * libc/string/{memchr.c, memcmp.c, memcpy.c}:   Add space
11843         optimised version which is selected if PREFER_SIZE_OVER_SPEED is
11844         defined.  
11845         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11846         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11847         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11848
11849 Mon Oct 13 15:12:35 1997  Ian Lance Taylor  <ian@cygnus.com>
11850
11851         * libc/include/sys/param.h (BIG_ENDIAN): Define if __i386__.
11852         (LITTLE_ENDIAN, BYTE_ORDER): Likewise.
11853
11854 Thu Oct  9 13:54:44 1997  Doug Evans  <dje@canuck.cygnus.com>
11855
11856         * libc/machine/i386/setjmp.S: New file.
11857         * libc/machine/i386/Makefile.in: Delete COPYOFILES.
11858         (OFILES): Add setjmp.o.
11859         (setjmp.o): Add rule for.
11860         * configure.in: Don't set machine_dir for *-*-{go32,sco*,cygwin32}.
11861
11862 Tue Oct  7 14:01:29 1997 Bill Moyer     (billm@cygnus.com)
11863                          Jeffrey A Law  (law@cygnus.com)
11864
11865         * libc/string/{memchr.c, memcmp.c, memcpy.c}: Reimplement to run faster.
11866         * libc/string/{memset.c, strcat.c, strchr.c}: Likewise.
11867         * libc/string/{strcmp.c, strcpy.c, strlen.c}: Likewise.
11868         * libc/string/{strncat.c, strncmp.c, strncpy.c}: Likewise.
11869
11870 Mon Oct  6 14:07:59 1997  Nick Clifton  <nickc@cygnus.com>
11871
11872         * libc/sys/sysnecv850/Makefile.in (crt0.o trap.o): Explicit
11873         rules. 
11874
11875         * libc/include/sys/config.h: Use __v850 to select v850
11876         endianness. 
11877
11878         * libc/include/machine/setjmp.h: Use __v850 to select v850 jump
11879         buffer size.
11880
11881         * libc/include/machine/ieeefp.h: Use __v850 to select v850
11882         endianness. 
11883
11884 Thu Sep 25 14:11:37 1997  Geoffrey Noer  <noer@cygnus.com>
11885
11886         * libc/stdlib/setenv.c: change unsetenv definition to match
11887         style of setenv (with _DEFUN).  The string should be a const.
11888         * libc/include/stdlib.h: unsetenv proto should return void.
11889
11890 Tue Sep 23 18:17:20 1997  Geoffrey Noer  <noer@cygnus.com>
11891
11892         * libc/include/stdlib.h: define unsetenv proto for __CYGWIN32__
11893
11894 Thu Sep 18 12:50:15 1997  Angela Marie Thomas (angela@cygnus.com)
11895
11896         * libc/stdio/glue.h: remove.
11897         * libc/stdio/findfp.c, libc/stdio/fwalk.c: remove #include "glue.h"
11898         * libc/stdio/Makefile.in: remove glue.h dependencies
11899
11900 Wed Sep 17 17:42:27 1997  Nick Clifton  <nickc@cygnus.com>
11901
11902         * libc/sys/sysnecv850/crt0.S: Created V850e version.
11903         
11904 Tue Sep  9 10:40:57 1997  Doug Evans  <dje@canuck.cygnus.com>
11905
11906         * configure.in (target_cpu): Add `arc'.
11907
11908 Tue Sep  9 10:40:42 1997  Joel Sherrill  <joel@OARcorp.com>
11909
11910         * newlib/configure.in (*-*-rtems*): Add -DSIGNAL_PROVIDED and 
11911           -DREENTRANT_SYSCALLS_PROVIDED to the target_cflags.
11912         * newlib/libc/include/sys/errno.h: Add ENOTSUP.
11913         * newlib/libc/reent/reent.c: Add _wrapup_reent.
11914         * newlib/libc/sys/rtems/sys/types.h: Avoid redefinitions for go32.
11915
11916 Sun Sep  7 16:41:41 1997  Gavin Koch  <gavin@cygnus.com>
11917
11918         * libc/machine/mips/setjmp.S: Handle mips16 builds.
11919
11920 Thu Aug 21 20:05:38 1997  Ian Lance Taylor  <ian@cygnus.com>
11921
11922         * libc/include/stdio.h (siprintf): Declare.
11923
11924 Mon Aug 18 11:19:13 1997  Nick Clifton  <nickc@cygnus.com>
11925
11926         * libc/sys/sysnecv850/Makefile.in (.c.o): Add rule that includes
11927         TARGET_CFLAGS and NEWLIB_FLAGS.
11928
11929 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11930
11931         * configure.in (links): Add support for v850ea target.
11932
11933 Mon Aug 18 11:15:43 1997  Nick Clifton  <nickc@cygnus.com>
11934
11935         * configure.in (links): Add support for v850e target.
11936
11937 Wed Aug 13 19:16:54 1997  Nick Clifton  <nickc@cygnus.com>
11938
11939         * libc/sys/sysnecv850/crt0.S: Remove initial setting of r0 to 0.
11940
11941 Mon Aug 11 15:49:54 1997  Doug Evans  <dje@canuck.cygnus.com>
11942
11943         * configure.in (arc-*-*): Add support for.
11944         * libc/include/machine/ieeefp.h (__arc__): Add support for the ARC.
11945
11946 Fri Jul 25 17:37:41 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
11947
11948         * libc/sys/sh/crt0.S (start): Add fpscr initialization for SH4.
11949
11950 Thu Jul 24 18:32:17 1997  Geoffrey Noer  <noer@cygnus.com>
11951
11952         * libc/stdlib/bsearch.c (bsearch): remove last unneeded
11953         comparison which accesses invalid memory when the key is
11954         larger than the last member of the array.
11955         * libc/include/machine/setjmp.h: add sigsetjmp, siglongjmp
11956         for CYGWIN32
11957         * libc/include/sys/unistd.h: add _POSIX defines for CYGWIN32
11958
11959 Tue Jul 22 16:03:06 1997  Ian Lance Taylor  <ian@cygnus.com>
11960
11961         * libc/include/stdlib.h (realpath): Declare if __CYGWIN32__ and
11962         not _STRICT_ANSI.
11963
11964 Thu Jul 10 15:11:52 1997  Doug Evans  <dje@canuck.cygnus.com>
11965
11966         * libm/math/k_standard.c (__kernel_standard): Call fflush(stdout)
11967         ifndef _USE_WRITE, instead of ifdef _USE_WRITE.
11968
11969 Thu Jul 10 16:00:09 1997  Mike Meissner  <meissner@cygnus.com>
11970
11971         * libc/machine/tic80/setjmp.S (setjmp,longjmp): Use ld.d and st.d
11972         to load/store memory.
11973
11974 Mon Jul  7 17:38:17 1997  Ian Lance Taylor  <ian@cygnus.com>
11975
11976         * libc/include/sys/fcntl.h: Define _O_* symbols with leading
11977         underscores if _WIN32.
11978
11979 Wed Jul  2 10:07:20 1997  Doug Evans  <dje@canuck.cygnus.com>
11980
11981         * libm/math/k_standard.c (__kernel_standard): Delete reentrancy
11982         support ifdef _USE_WRITE missed in last change.
11983         From Anders Blomdell <anders.blomdell@control.lth.se>.
11984
11985 Wed Jun 25 10:18:49 1997  Doug Evans  <dje@canuck.cygnus.com>
11986
11987         * libc/stdio/tmpnam.c (worker): Handle _open_r being stubbed out.
11988         (_tmpnam_r, _tempnam_r): Update.
11989
11990 Wed Jun 25 00:16:55 1997  Mark Alexander  <marka@cygnus.com>
11991
11992         * libc/machine/sparc/setjmp.S: New file.
11993         * libc/machine/sparc/Makefile.in: Add setjmp.
11994         * libc/include/machine/setjmp.h: Increase jmpbuf size for sparc.
11995
11996 Tue Jun 24 23:27:38 1997  Mark Alexander  <marka@cygnus.com>
11997
11998         * libc/include/machine/setjmp.h: Use __TIC80__ instead of __tic80__.
11999
12000 Tue Jun 24 14:53:40 1997  Doug Evans  <dje@canuck.cygnus.com>
12001
12002         From Joel Sherrill <joel@oarcorp.com>.
12003         * libc/stdlib/getenv.c (_findenv): Avoid dereferencing null `environ'.
12004
12005         Add rtems support.  From Joel Sherrill <joel@oarcorp.com>.
12006         * configure.in: Recognize *-*-rtems*.
12007         * libc/sys/rtems/{Makefile.in,crt0.c,dummysys.c}: New files.
12008         * libc/sys/rtems/sys/{features.h,sched.h,siginfo.h,signal.h,
12009         time.h,times.h,types.h}: New files.
12010         * libc/sys/rtems/include/{limits.h,signal.h,time.h}. New files.
12011
12012 Fri Jun 20 11:13:16 1997  Geoffrey Noer  <noer@cygnus.com>
12013
12014         patch from sos@prospect.com.ru (Sergey Okhapkin):
12015         * include/sys/wait.h: correct operator precidence bug
12016         in WIFSIGNALED
12017
12018 Wed Jun 18 22:08:27 1997  Geoffrey Noer  <noer@cygnus.com>
12019
12020         * libc/include/stdlib.h: remove unsetenv proto since it conflicts
12021         with newlib's unsetenv function
12022         * libc/sys/cygwin32/sys: new directory for includes
12023         * libc/sys/cygwin32/sys/dirent.h: move cygwin32's dirent.h
12024         here from winsup/include/sys
12025
12026 Mon Jun 16 21:02:22 1997  Geoffrey Noer  <noer@cygnus.com>
12027
12028         * libc/include/sys/unistd.h: _exit should only be
12029         labelled noreturn when not __CYGWIN32__
12030         * libc/include/stdlib.h: for __CYGWIN32__, add proto for unsetenv
12031         * libc/include/sys/signal.h: add SIGIO to _WIN32 list and
12032         increment NSIG
12033
12034 Thu Jun 12 18:52:41 1997  Ian Lance Taylor  <ian@cygnus.com>
12035
12036         * libc/include/sys/time.h: Only define timeval and timezone if
12037         _GNU_H_WINDOWS32_SOCKETS is not defined.
12038         * libc/include/sys/stat.h: If _WIN32, define _S_IFMT, etc.
12039
12040 Wed Jun 11 09:46:26 1997  Jeffrey A Law  (law@cygnus.com)
12041
12042         * libc/machine/mn10200/setjmp.S: Implement setjmp/longjmp
12043         * libc/machine/mn10300/setjmp.S: Likewise.
12044
12045         * libc/sys/sysmec/crt0.S: Use "call" instead of "calls" for
12046         the mn10300 (more relaxing opportunities).
12047
12048 Tue Jun 10 17:24:45 1997  Mike Meissner  <meissner@cygnus.com>
12049
12050         * configure.in (powerpc*-*-{eabi,elf,linux,rtems,sysv,solaris}):
12051         Build libraries with -mstrict-align.
12052
12053 Fri Jun  6 14:07:59 1997  Ian Lance Taylor  <ian@cygnus.com>
12054
12055         * libc/string/strlwr.c: New file.
12056         * libc/string/strupr.c: New file.
12057         * libc/include/string.h: Declare strlwr and strupr.
12058         * libc/string/Makefile.in (OFILES): Add strlwr.o and strupr.o.
12059         (CHEWOUT_FILES): Add strlwr.def and strupr.def.
12060         (strlwr.o, strupr.o): New targets.
12061         * libc/string/strings.tex: Include strlwr and strupr docs.
12062
12063         * libc/include/sys/types.h: Don't define u_char, et. al., if
12064         _GNU_H_WINDOWS32_SOCKETS is defined.  Likewise for fd_set,
12065         et. al.  Make FD_SETSIZE default 64 rather than 60.  Define
12066         _types_fd_set rather than fd_set, and define fd_set as a macro.
12067
12068         * libc/include/malloc.h: New file.
12069
12070         * libc/include/string.h: Define strcmpi, stricmp, strncmpi, and
12071         strnicmp if they are not already defined.
12072
12073         * libc/include/time.h: If __CYGWIN32__, declare tzset and define
12074         _timezone, _daylight, and _tzname.
12075
12076 Wed Jun  4 12:51:16 1997  Doug Evans  <dje@canuck.cygnus.com>
12077
12078         * configure.in: Sort all configuration tables.
12079
12080         From Joel Sherrill <joel@oarcorp.com>
12081         * Makefile.in (stmp-targ-include): Copy $(sys_dir)/include/*.h.
12082
12083 Tue Jun  3 14:47:46 1997  Ian Lance Taylor  <ian@cygnus.com>
12084
12085         * libc/include/sys/signal.h: Don't include <sys/types.h>.  Just
12086         use int when declaring kill.
12087
12088         * libc/include/sys/timeb.h: New file.
12089
12090 Mon Jun  2 12:06:58 1997  Geoffrey Noer  <noer@cirdan.cygnus.com>
12091
12092         * libc/include/sys/time.h: add itimer support for Cygwin32
12093
12094 Mon May 19 11:56:46 1997  Mike Meissner  <meissner@cygnus.com>
12095
12096         * libc/stdlib/abort.c (abort): If ABORT_MESSAGE is defined, write
12097         out a message that abort was called to stderr.
12098
12099 Fri May 16 15:02:59 1997  Bob Manson  <manson@charmed.cygnus.com>
12100
12101         * libc/sys/sysmec/fstat.c (_fstat): Set st_blksize to 4096
12102         so that libio doesn't freak.
12103
12104         * libc/sys/sysmec/sbrk.c (_sbrk): The argument is a size_t, not
12105         int.
12106
12107         * libc/stdlib/mallocr.c (_morecore_r): Use size_t for
12108         memory sizes, not int.
12109
12110 Wed May 14 21:16:58 1997  Bob Manson  <manson@charmed.cygnus.com>
12111
12112         * libm/math/ef_hypot.c: Use long constants where
12113         appropriate.
12114         * libm/math/ef_sqrt.c: Ditto.
12115
12116         * libc/sys/sysmec/times.c(_times): Change to times.
12117
12118         * libc/sys/sysmec/read.c(_read): The third argument is
12119         size_t.
12120         * libc/sys/sysmec/write.c (_write): Ditto.
12121
12122         * libc/sys/sysmec/lseek.c: Include unistd.h for off_t.
12123         (_lseek): It's off_t for the second argument.
12124
12125 Wed May 14 15:23:36 1997  Mike Meissner  <meissner@cygnus.com>
12126
12127         * libc/include/sys/config.h (__IEEE_LITTLE_ENDIAN): Define here,
12128         as well as machine/ieeefp.h.
12129
12130 Thu May  8 15:47:25 1997  Geoffrey Noer  <noer@cygnus.com>
12131
12132         * libc/include/sys/signal.h: add signal protos for winsup
12133         functions (when __CYGWIN32__), include types.h
12134         * libc/include/sys/types.h: Change __go32_types__ internal
12135         define to __MS_types__ since it's used for more than just
12136         GO32 configs.  Define this if GO32, __MSDOS__, or _WIN32 are
12137         defined.
12138         * libc/include/sys/unistd.h: add ftruncate proto for
12139         winsup functions (when __CYGWIN32__)
12140
12141 Fri Apr 25 10:10:16 1997  Doug Evans  <dje@canuck.cygnus.com>
12142
12143         * libc/sys/h8300hms/sbrk.c (stack_ptr): Add definition.
12144
12145 Thu Apr 24 15:46:51 1997  Mike Stump  <mrs@cygnus.com>
12146
12147         * libc/include/machine/setjmp.h: Add tic80 support.
12148         * libc/machine/tic80/setjmp.S: Likewise.
12149
12150 Tue Apr 22 16:54:40 1997  Geoffrey Noer  <noer@pizza.cygnus.com>
12151
12152         * libc/sys/cygwin32/crt0.c: Add reference to main() so we can
12153         link programs from libraries only (such as in the X11
12154         distribution)
12155
12156 Mon Apr 21 15:02:12 1997  Fred Fish  <fnf@cygnus.com>
12157
12158         * libc/sys/arm/syscalls.c (signal): Remove stub, signal()
12159         supplied elsewhere in newlib.
12160
12161 Mon Apr 14 16:25:55 1997  Ian Lance Taylor  <ian@cygnus.com>
12162
12163         * Makefile.in (INSTALL): Change install.sh to install-sh.
12164
12165 Fri Apr 11 17:04:02 1997  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12166
12167         * README: update WWW address for on-line documentation.
12168
12169 Wed Apr  9 00:38:13 1997  Geoffrey Noer  <noer@cygnus.com>
12170
12171         * libc/include/sys/signal.h: for _WIN32, define SIGCONT and
12172         increment NSIG
12173
12174 Mon Apr  7 23:54:00 1997  Jeffrey A Law  (law@cygnus.com)
12175
12176         * libc/sys/sysmec/crt0.S: Update for new calling conventions on the
12177         mn10300.
12178         * libc/sys/sysmec/trap.S: Don't compare a register to itself.
12179
12180 Tue Mar 25 08:47:43 1997  Jeffrey A Law  (law@cygnus.com)
12181
12182         * libc/sys/arm/syscalls.c: Fix/add stack/heap collision detection.
12183         * libc/sys/d10v/syscalls.c: Likewise.
12184         * libc/sys/h8300hms/sbrk.c: Likewise.
12185         * libc/sys/h8500hms/syscalls.c: Likewise.
12186         * libc/sys/m88kbug/syscalls.c: Likewise.
12187         * libc/sys/sh/syscalls.c: Likewise.
12188         * libc/sys/sysmec/sbrk.c: Likewise.
12189         * libc/sys/sysnecv850/sbrk.c: Likewise.
12190         * libc/sys/w65/syscalls.c: Likewise.
12191         * libc/sys.tex: Update sbrk sample code to include stack/heap collision.
12192
12193 Tue Mar 18 14:14:34 1997  Jeffrey A Law  (law@cygnus.com)
12194
12195         * libc/sys/sysmec/trap.S: Use "syscall" to trigger an
12196         emulated syscall instead of "trap".
12197
12198 Fri Mar 14 11:26:13 1997  Michael Meissner  <meissner@cygnus.com>
12199
12200         * libc/sys/d10v/trap.S (__trap0): Use trap 15 for system calls,
12201         not trap 0.
12202
12203 Sun Mar  9 23:27:04 1997  Doug Evans  <dje@seba.cygnus.com>
12204
12205         * configure.in (m32r-*-*): Add -msdata=sdata to target_cflags.
12206
12207 Sat Mar  8 09:05:01 1997  Fred Fish  <fnf@cygnus.com>
12208
12209         * libc/machine/arm/Makefile.in: Fix comment, is for "arm"
12210         not "sh".
12211         * libc/machine/m32r/Makefile.in: Fix comment, is for "m32r"
12212         not "d10v".
12213         * libc/sys/tic80/crt0.c: New file for TIc80.
12214         * libc/sys/tic80/Makefile.in: New file for TIc80.
12215         * libc/machine/tic80/Makefile.in: New file for TIc80.
12216
12217 Wed Mar  5 11:32:12 1997  J.T. Conklin  <jtc@cygnus.com>
12218
12219         * libc/machine/sh/memcpy.S: New file.
12220         * libc/machine/sh/memset.S: New file.
12221         * libc/machine/sh/Makefile.in (OFILES): Add memcpy.o and memset.o
12222
12223 Thu Feb 27 16:27:55 1997  Fred Fish  <fnf@cygnus.com>
12224
12225         * libc/include/machine/ieeefp.h (_IEEE_LITTLE_ENDIAN): Define
12226         for TIc80.
12227
12228 Wed Feb 26 13:43:39 1997  Jeffrey A Law  (law@cygnus.com)
12229
12230         * libc/sys/sysmec/crt0.S: Handle new calling conventions for
12231         the mn10200.
12232
12233 Wed Feb 26 07:11:03 1997  Michael Meissner  <meissner@cygnus.com>
12234
12235         * libc/machine/powerpc/setjmp.S (longjmp): Correct return status
12236         (patch from andrew@pogo.WV.TEK.COM).
12237
12238 Fri Feb 14 11:49:28 1997  Doug Evans  <dje@canuck.cygnus.com>
12239
12240         * libc/machine/m32r/setjmp.S (setjmp): Save r12.
12241         (longjmp): Restore r12. Fix code that handles returning 1 if passed 0.
12242
12243 Mon Feb 10 10:02:34 1997  Fred Fish  <fnf@cygnus.com>
12244
12245         * configure.in:  Add cases for "tic80" to set machine_dir,
12246         sys_dir, and syscall_dir.
12247
12248 Sun Feb  2 17:57:15 1997  Geoffrey Noer  <noer@cygnus.com>
12249
12250         * libc/sys/cygwin32/crt0.c: initialize floating pt registers
12251
12252 Wed Jan 29 15:57:38 1997  Geoffrey Noer  <noer@cygnus.com>
12253
12254         * libc/include/math.h: avoid conflicts with ANSI C++ <exception>
12255
12256 Mon Jan 27 12:50:01 1997  Doug Evans  <dje@seba.cygnus.com>
12257
12258         * libc/machine/m32r/setjmp.S: Use proper comment delimiter.
12259         Use proper constant prefix.
12260
12261 Fri Jan 24 10:59:04 1997  Jeffrey A Law  (law@cygnus.com)
12262
12263         * libc/sys/sysmec/*.c: Don't cast args to syscall to integers,
12264         that loses on the mn10200 where ints and pointers are different
12265         sizes.
12266
12267 Tue Jan 14 13:29:55 PST 1997  Jeremy Allison <jra@cygnus.com>
12268
12269         * configure.in: Added -DSIGNAL_PROVIDED to cygwin32
12270         target as signal is provided in winsup.
12271
12272 Tue Jan 14 11:10:13 1997  Jeremy Allison <jra@cygnus.com>
12273
12274         * libc/include/sys/process.h: Corrected const definitions
12275         in spawn functions. Added cwait.
12276
12277 Thu Jan  2 12:22:41 1997  Jeffrey A Law  (law@cygnus.com)
12278
12279         * libc/include/machine/ieeefp.h: mn10200 uses 16bit ints and 32bit
12280         doubles.
12281         * libc/include/sys/config.h: Similarly.
12282
12283 Tue Dec 31 18:36:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12284
12285         * configure.in (sparc-sun-sunos*): Add -DSIGNAL_PROVIDED to the
12286         target_cflags.
12287         (i[3456]86-*-sco*): Ditto.
12288
12289         * libc/signal/Makefile.in (OFILES): Add signal.o.
12290         (CFILES): Add signal.c.
12291
12292         * libc/signal/raise.c (_raise_r): Only compile code if
12293         SIGNAL_PROVIDED is defined.
12294
12295         * libc/signal/signal.c: Redo whole file so that it works with
12296         current newlib.  Use _kill_r if no signal handler provided.
12297
12298         * libc/sys/{go32,sparc64,sysmec}/Makefile.in: Delete raise and
12299         signal stubs.
12300         * libc/sys/sysvnecv70/Makefile.in: Ditto.
12301         * libc/sys/sysnecv850/Makefile.in: Ditto.
12302
12303         * libc/sys/{go32,sparc64}/signal.c: Delete, stub no longer used.
12304         * libc/sys/sysmec/{raise,signal}.c: Ditto.
12305         * libc/sys/sysvnecv70/signal.s: Ditto.
12306         * libc/sys/sysnecv850/raise.c: Ditto.
12307
12308         * libc/sys/sysnecv850/kill.c (_kill): Encode signal # so that
12309         simulator and debugger can tell the difference between a signal
12310         being raised and an exit system call.
12311
12312         * NEWS: Document software signals being provided.
12313
12314 Mon Dec 23 11:54:19 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12315
12316         * libc/reent/impure.c (_REENT_ATTR): Delete in favor of
12317         __ATTRIBUTE_IMPURE_PTR__.  Move PowerPC definition to
12318         include/sys/config.h.
12319         (impure_data): Use __ATTRIBUTE_IMPURE_DATA__ for attributes.
12320         Change from 'inpure_data'.
12321         (_impure_ptr): Use __ATTRIBUTE_IMPURE_PTR__ for attributes.  Use
12322         &impure_data, not &inpure_data.
12323
12324         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): If PowerPC
12325         and and System V ABI, define so that _impure_ptr lives in the
12326         .sdata section.
12327
12328 Sun Dec 22 23:33:05 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12329
12330         * libc/include/sys/reent.h (__ATTRIBUTE_IMPURE_PTR__): Define as
12331         nothing if not defined.
12332         (_impure_ptr): Use __ATTRIBUTRE_IMPURE_PTR__, so a machine can set
12333         its attributes.
12334
12335         * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): 
12336
12337 Wed Dec 18 10:12:04 1996  Jeffrey A Law  (law@cygnus.com)
12338
12339         * libc/sys/sysmec/crt0.S: Fix mn10200 stuff.
12340         * libc/sys/sysmec/trap.s: Handle mn10200 too.
12341         * libc/machine/mn10200/setjmp.S: Fix mn10200 stuff.
12342
12343 Mon Dec 16 10:05:36 1996  Jeffrey A Law  (law@cygnus.com)
12344
12345         * libc/sys/sysmec/crt0.S: Handle mn10200 too.
12346
12347 Fri Dec 13 11:05:20 1996  Jeremy Allison <jra@cygnus.com>
12348
12349         * libc/include/sys/errno.h: Added net errno's.
12350
12351 Wed Dec 11 16:24:25 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12352
12353         * libc/misc/ffs.c: New file to support ffs function for GCC test
12354         gcc.c-torture/execute/960909-1.c.
12355
12356         * libc/misc/Makefile.in ({O,CHEWOUT_}FILES): Add ffs.
12357
12358 Sat Dec  7 10:12:37 1996  Jeffrey A Law  (law@cygnus.com)
12359
12360         * libc/sys/sysmec/crt0.S: Handle underscore prefix.
12361         * libc/sys/sysmec/trap.S: Likewise.
12362
12363 Fri Dec  6 15:08:49 1996  Jim Wilson  <wilson@cygnus.com>
12364
12365         * configure.in (mips*vr4300*-*-*): Delete use of sys/vr4300.
12366         * libc/sys/vr4300/{Makefile.in,crt0.S,syscalls.c}: Delete.
12367
12368 Wed Dec  4 16:25:27 1996  Jeffrey A Law  (law@cygnus.com)
12369
12370         * libc/sys/sysmec/signal.c: Dummy file.
12371         * libc/sys/sysmec/Makefile.in: Build it.
12372
12373 Wed Nov 27 13:10:18 1996  Ian Lance Taylor  <ian@cygnus.com>
12374
12375         * libc/machine/mips/machine/regdef.h: Define pc as $pc for
12376         mips16.
12377
12378 Mon Nov 25 09:58:28 1996  Jeffrey A Law  (law@cygnus.com)
12379
12380         * libc/sys/sysmec/{crt0.S,trap0.S}: Actually try to implement
12381         c-startup and simulator traps.
12382
12383
12384         * libc/sys/sysmec/crt0.S: Remove bogus '_' symbol prefixing
12385         * libc/sys/sysmec/trap0.S: Likewise.
12386
12387 Sat Nov 23 09:01:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12388
12389         * libc/stdlib/mallocr.c (ROUND_TO): If SMALL_MEMORY, set to 0x7 to
12390         round to double word alignment.
12391         (_morecore_r): Combine rounding up pointers to both ROUND_TO and 8
12392         byte alignment.
12393
12394         * libc/include/sys/config.h (__IEEE_BIG_ENDIAN): Define if d10v.
12395
12396         * libc/sys/d10v/syscalls.c (_sbrk): Add better checks for running
12397         out of memory.
12398
12399 Mon Nov 18 13:08:26 1996  Jeffrey A Law  (law@cygnus.com)
12400
12401         * configure.in: Handle mn10200 and mn10300.
12402         * libc/include/machine/{ieeefp.h,setjmp.h}: Likewise.
12403         * libc/include/sys/config.h: Likewise.
12404         * libc/sys/sysmec: New directory for mec stuff.
12405         * libc/machine/mn10300: New directory for mn10300 stuff.
12406         * libc/machine/mn10200: Similarly for mn10200 stuff.
12407
12408 Fri Nov 15 16:41:41 1996  Doug Evans  <dje@canuck.cygnus.com>
12409
12410         * libc/sys/arm/crt0.S: Use .text, not .section .text.
12411         * libc/sys/arm/syscalls.c: Rewrite to set errno properly.
12412
12413         * libc/include/sys/types.h (_ST_INT32): New macro, local to file.
12414         (nlink_t): Change type from unsigned int to unsigned short.
12415         (mode_t): Ensure size is 32 bits even if int is 16.
12416         * libc/include/sys/stat.h (st_nlink): Change type to nlink_t.
12417         (st_spare[123]): Change type from int to long.
12418
12419 Fri Nov 15 11:41:50 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12420
12421         * libc/sys/d10v/syscalls.c (_sbrk): Align initial heap_end to 8
12422         byte boundary.
12423
12424         * configure.in (d10v*): Define SMALL_MEMORY.
12425
12426 Mon Nov 11 10:30:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12427
12428         * configure.in (powerpc*-{eabi,elf,linux,rtem,sysv,solaris}*): Add
12429         -mrelocatable-lib and -mno-eabi flags.
12430
12431 Mon Nov 11 09:01:39 1996  Jeffrey A Law  (law@cygnus.com)
12432
12433         * libc/machine/h8300/memcpy.S: Fix comments to reflect reality.
12434         Fix handling of mis-aligned source operand when both the
12435         destination & length are properly aligned.
12436         
12437 Wed Oct 30 09:41:11 1996  Jeffrey A Law  (law@cygnus.com)
12438
12439         * libc/sys/sysnecv850/Makefile.in (OFILES): Add
12440         times.o, time.o and gettime.o
12441         * libc/sys/sysnecv850/{time.c, times.c, gettime.c}: New files.
12442         * libc/sys/sysnecv850/sys/syscall.h: Add SYS_times and
12443         SYS_gettimeofday.
12444
12445 Tue Oct 29 13:40:09 1996  Jeffrey A Law  (law@cygnus.com)
12446
12447         * libc/sys/sysnecv850/Makefile.in (OFILES): Add access.o
12448         * libc/sys/sysnecv850/access.c: New file.
12449
12450 Mon Oct 21 19:47:02 1996  Ian Lance Taylor  <ian@cygnus.com>
12451
12452         * libc/sys/vr4300/Makefile.in (clean): Remove $(OFILES).
12453
12454         * libc/stdlib/mprec.h (word0, word1): Use __uint32_t, not unsigned
12455         long.
12456
12457 Mon Oct 21 14:43:07 1996  Jeffrey A Law  (law@cygnus.com)
12458
12459         * libc/sys/sysnecv850/crt0.S: Initialize ep and gp registers.
12460
12461 Thu Oct 17 11:47:16 1996  Doug Evans  <dje@seba.cygnus.com>
12462
12463         * libc/include/machine/{ieeefp.h,setjmp.h}: Add m32r support.
12464         * libc/include/sys/config.h: Add m32r support.
12465
12466 Wed Oct 16 23:08:05 1996  Jeffrey A Law  (law@cygnus.com)
12467
12468         * libc/sys/sysnecv850/v850.ld: Remove.  It doesn't belong
12469         here.
12470
12471 Wed Oct 16 21:18:07 1996  Mark Alexander  <marka@cygnus.com>
12472
12473         * libc/include/machine/setjmp.h: Add D10v support.
12474
12475 Tue Oct 15 22:28:26 1996  Jeffrey A Law  (law@cygnus.com)
12476
12477         * configure.in: Configure the "libc/syscalls" directory for
12478         the v850.
12479
12480         * libc/sys/sysnecv850/{close.c, execve.c, fork.c}: Add missing '_'.
12481         * libc/sys/sysnecv850/{fstat.c, getpid.c, kill.c}: Likewise.
12482         * libc/sys/sysnecv850/{lseek.c, open.c, read.c}: Likewise.
12483         * libc/sys/sysnecv850/{sbrk.c, stat.c, unlink.c}: Likewise.
12484         * libc/sys/sysnecv850/{wait.c, write.c}: Likewise.
12485
12486 Tue Oct 15 16:24:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
12487
12488         * libc/sys/sysnecv850/crt0.S (start):  Allocate spill space on
12489         stack for args for main and other routines.  Zero out args for
12490         main.
12491
12492         * libc/sys/sysnecv850/v850.ld:  New.  Linker script to layout memory
12493         correctly.
12494
12495 Tue Oct 15 11:51:42 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12496
12497         * libc/stdio/findfp.c (std): Remove extraneous ';' after
12498         function.
12499
12500         * libc/sys/d10v/sys/syscall.h (SYS_kill): Add.
12501
12502         * libc/sys/d10v/{syscalls.c,trap.S} (_kill,_getpid): Make these
12503         real system calls now.
12504
12505         * libc/stdio/setvbuf (setvbuf): Cast pointers to _POINTER_INT
12506         before casting them to int.
12507         * libc/stdio/tmpnam.c (_tempnam_r): Ditto.
12508
12509         * libc/stdlib/mallocr.c (_morecore_r): Use _POINTER_INT when
12510         aligning pointer.
12511         * libc/string/memset.c (memset): Ditto.
12512         
12513         * libc/stdio/vfscanf.c (__svfscanf): When converting to pointer,
12514         first convert ints to _POINTER_INT to eliminate GCC warning.
12515
12516         * libc/stdio/vfprintf.c (_vfprintf_r): Use _POINTER_INT when
12517         processing %p.
12518
12519         * libm/math/ef_scalb.c (__ieee754_scalbf): Cut down range to 32000
12520         from 65000 if ints are only 16 bits.
12521
12522         * libm/math/sf_scalbn.c (scalbnf): Cut down overflow test to 30000
12523         from 50000 if ints are only 16 bits.
12524
12525         * libc/include/sys/config.h (_POINTER_INT): New macro, to give an
12526         int type that is the same size as a pointer.
12527
12528         * libc/misc/dprintf.c (__dprintf): Use _POINTER_INT when
12529         processing %p.
12530         (get_number): Explicitly cast number to long before shifting by 16
12531         or 24, in case ints are short.
12532
12533         * libc/include/sys/config.h (_POINTER_INT): Define as short.
12534
12535 Wed Oct  9 16:54:32 1996  Jeremy Allison <jra@cygnus.com>
12536
12537         * libc/string.h: Added ffs, removed swab.
12538         * libc/sys/errno.h: Added EOPNOTSUPP.
12539         * libc/sys/unistd.h: Added swab.
12540
12541 Thu Oct  3 17:08:50 1996  Jeremy Allison <jra@cygnus.com>
12542
12543         * libc/include/sys/stat.h: Added fchmod.
12544         * libc/include/sys/unistd.h: Added fsync.
12545
12546 Tue Oct  1 17:34:08 1996  Jeremy Allison <jra@cygnus.com>
12547
12548         * libc/include/sys/errno.h: Added defines for EPFNOSUPPORT (96)
12549         and ECONNRESET (104) for cygwin32.
12550
12551 Tue Oct  1 16:24:05 1996  Gavin Koch  <gavin@cygnus.com>
12552
12553         * libc/sys/sysnecv850/_exit.c: added _do_dtors to
12554         do the static destructors.
12555         
12556 Mon Sep 30 15:59:05 1996  Stu Grossman  (grossman@critters.cygnus.com)
12557
12558         * libc/sys/sysnecv850/trap.S:  Change I/O to use trap 31.
12559
12560 Mon Sep 30 12:02:50 1996  Doug Evans  <dje@canuck.cygnus.com>
12561
12562         * libc/machine/m32r/{Makefile.in,setjmp.S}: New files.
12563         * configure.in: Recognize m32r-*-*.
12564
12565 Mon Sep 30 00:34:41 1996  James G. Smith  <jsmith@cygnus.co.uk>
12566
12567         * libc/sys/arm/trap.S (__rt_stkovf_split_big,
12568         __rt_stkovf_split_small): Added default software stack overflow
12569         handlers, which just call SWI_Exit.
12570         * libc/sys/arm/crt0.S (_mainCRTStartup): Simple software stack
12571         limit initialisation.
12572
12573 Fri Sep 27 13:08:03 1996  Mark Alexander  <marka@cygnus.com>
12574
12575         * libc/sys/d10v/{trap.S,sys/syscall.h}: Add time() function.
12576
12577 Fri Sep 27 12:32:00 1996  Jeremy Allison <jra@cygnus.com>
12578
12579         * libc/include/sys/types.h: Added ssize_t definition.
12580         
12581 Wed Sep 25 14:52:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12582
12583         * libc/machine/d10v/setjmp.S: Use ';' for comments.
12584         * libc/sys/d10v/{crt0.S,trap.S}: Ditto.
12585
12586         * libc/machine/d10v/setjmp.S (longjmp): Use exef0t || instead of
12587         branch around a single ldi instruction.
12588
12589         * libc/sys/d10v/crt0.S (_start): Use auto-increment to zero bss.
12590         Call exit, instead of just issuing a stop instruction.
12591
12592 Sun Sep 22 17:26:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12593
12594         * libc/sys/d10v/{trap.S,syscalls.c}: Add -mint32 support.
12595
12596 Fri Sep 20 13:23:12 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12597
12598         * libc/stdlib/mprec.h: Explicitly declare all large constants as
12599         longs, and then cast them to __uint32_t.
12600
12601         * libc/include/sys/config.h: Protect against multiple inclusions.
12602
12603 Tue Sep 17 13:10:33 1996  Mark Alexander  <marka@cygnus.com>
12604
12605         * configure.in (d10v*): Set syscall_dir.
12606
12607 Sun Sep 15 10:41:59 1996  Mark Alexander  <marka@cygnus.com>
12608
12609         * libc/sys/d10v/crt0.S: Set stack pointer.
12610
12611 Thu Sep 12 13:02:38 1996  Mark Alexander  <marka@cygnus.com>
12612
12613         * libc/sys/d10v/{trap.S, syscalls.c}: Rewrite most system calls
12614         in assembly for efficiency.  Change calling convention to allow
12615         long ints to be returned.
12616
12617 Wed Sep 11 10:28:18 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12618
12619         * libc/machine/v850/Makefile.in (setjmp.o): Fix dependency.
12620
12621 Thu Sep  5 19:23:06 1996  Doug Evans  <dje@canuck.cygnus.com>
12622
12623         * libc/posix/execvp.c (execvp): Don't search PATH if file has '/'.
12624         Handle empty entries in $PATH.
12625
12626 Tue Sep 03 18:15:02 1996  Mark Alexander  <marka@cygnus.com>
12627
12628         * libc/machine/d10v/setjmp.S: Make it really work.
12629
12630 Tue Sep  3 12:16:26 1996  Ian Lance Taylor  <ian@cygnus.com>
12631
12632         * libc/sys/sh/crt0.S: If __ELF__, use ELF section attributes for
12633         the .stack section.
12634
12635 Tue Sep  3 10:08:45 1996  Jeffrey A Law  (law@cygnus.com)
12636
12637         * sys/sysnecv850/sys/file.h: Remove.
12638         * sys/sysnecv850/sys/syscall.h: New file.
12639         * sys/sysnecv850/{misc.c,syscalls.c,malloc.c}: Deleted.
12640         * sys/sysnecv850/{chmod.c, chown.c, close.c, creat.c} New files.
12641         * sys/sysnecv850/{execv.c, execve.c, fork.c, fstat.c} New files.
12642         * sys/sysnecv850/{getpid.c, isatty.c, kill.c, lseek.c} New files.
12643         * sys/sysnecv850/{open.c, pipe.c, raise.c, read.c} New files.
12644         * sys/sysnecv850/{stat.c, unlink.c, utime.c, wait.c} New files.
12645         * sys/sysnec850/trap.S: New file.
12646         * sys/sysnecv850/{_exit.c, write.c}: Use new TRAP0 mechanism for
12647         syscalls.
12648         * sys/sysnecv850/crt0.S: Use cmp/bl, not tst/bz.
12649         * sys/sysnec850/sbrk.c: New version.
12650
12651 Sun Sep  1 20:08:27 1996  Jeffrey A Law  (law@cygnus.com)
12652
12653         * sys/sysnecv850/crt0.S: Fix order of comparison args.  Loop
12654         as long as r6 is less than r7.
12655
12656 Sun Sep  1 13:54:19 1996  Ian Lance Taylor  <ian@cygnus.com>
12657
12658         * Makefile.in (mostlyclean): Separate from clean target.  Don't
12659         remove *.a or targ-include.
12660         * libc/machine/sparc/Makefile.in (mostlyclean): New target.
12661
12662 Sun Sep  1 11:35:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12663
12664         * libc/include/machine/ieeefp.h (_DOUBLE_IS_32BITS): Define for
12665         d10v.
12666         (__SMALL_BITFIELDS): Ditto.
12667
12668         * libc/include/sys/config.h (_DOUBLE_IS_32BITS): Define for d10v.
12669
12670 Sat Aug 31 16:42:36 1996  Jeffrey A Law  (law@cygnus.com)
12671
12672         * libc/sys/sysnecv850/misc.c (raise, getpid, kill): Remove '_'
12673         prefix.
12674
12675         * libc/sys/sysnecv850/sbrk.c (sbrk): Remove '_' prefix.
12676         * libc/sys/sysnecv850/syscalls.c (read, lseek, close): Likewise.
12677         * libc/sys/sysnecv850/syscalls.c (fstat, open, close): Likewise.
12678         * libc/sys/sysnecv850/write.c (write): Likewise.
12679
12680         * libc/sys/sysnecv850/crt0.S: Don't try to zero out an empty
12681         .bss.
12682
12683 Fri Aug 30 11:18:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12684
12685         * libc/include/sys/config.h: Define INT_MAX, UINT_MAX
12686         appropriately for D10V, depending on -mint16/-mint32.
12687
12688 Thu Aug 29 16:09:37 1996  Mark Alexander  <marka@cygnus.com>
12689
12690         * configure.in: Add cases for D10V.
12691
12692 Thu Aug 29 17:03:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12693
12694         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
12695
12696 Wed Aug 28 21:05:52 1996  Jeffrey A Law  (law@cygnus.com)
12697
12698         * libc/include/machine/ieeefp.h: Fix typo.
12699
12700 Wed Aug 28 19:47:55 1996  Mark Alexander  <marka@cygnus.com>
12701
12702         * libc/sys/d10v: New directory for D10V stuff.
12703         * libc/include/machine/ieeefp.h: Add D10V defines.
12704
12705 Mon Aug 26 13:34:58 1996  Doug Evans  <dje@canuck.cygnus.com>
12706
12707         * libc/include/sys/errno.h: Add winsup/include/sys/errno.h values:
12708         ELOOP, ENOBUFS, EAFNOSUPPORT, EPROTOTYPE, ENOTSOCK, ENOPROTOOPT,
12709         ESHUTDOWN, ECONNREFUSED, EADDRINUSE, ECONNABORTED, EWOULDBLOCK.
12710         * libc/string/strerror.c (strerror): Add them.
12711
12712 Thu Aug 22 16:38:19 1996  Jeffrey A Law  (law@cygnus.com)
12713
12714         * libc/sys/sysnecv850: New directory for v850 stuff.
12715
12716         * libc/machine/v850: New directory for v850 stuff.
12717         * libc/machine/v850/setjmp.S: setjmp/longjmp support.
12718
12719         * configure.in: Add support for the v850.
12720
12721         * libc/include/machine/ieeefp.h: Add v850 defines.
12722         * libc/include/machine/setjmp.h: Likewise.
12723         * libc/include/sys/config.h: Add v850 defines.
12724
12725 Sat Aug 17 04:06:36 1996  Geoffrey Noer  <noer@cygnus.com>
12726
12727         * libc/include/machine/ieeefp.h
12728         * libc/include/machine/setjmp.h
12729         * libc/include/sys/fcntl.h
12730         * libc/include/sys/signal.h
12731         * libc/include/sys/types.h
12732         * libc/stdlib/system.c:
12733         Fix preprocessor defines to match new scheme (_WIN32 for WIN32
12734         API availability, __CYGWIN32__ for cygwin32 environment specific).
12735
12736 Thu Aug 15 17:09:21 1996  Geoffrey Noer  <noer@cygnus.com>
12737
12738         * libc/include/stdlib.h: add multibyte character functions.  Add
12739         __eprintf for assert.
12740
12741 Thu Aug 15 11:15:40 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12742
12743         * libc/stdlib/malloc.h (MALLOC_ALIGNMENT): Use either pointer
12744         arithmetic or __alignof__ to properly get the alignment, instead
12745         of hardwiring it to 4.
12746
12747 Wed Aug 14 23:43:28 1996  Geoffrey Noer  <noer@cygnus.com>
12748
12749         * libc/stdio/fseek.c: add fflush call to adjust seek offset
12750         on append stream (fix from NetBSD sources), adjust curoff offset
12751         for ungetc's benefit.
12752         * libc/stdio/ftell.c: adjust curoff offset for ungetc's benefit.
12753         * libc/stdio/rewind.c: replace code with up to date NetBSD
12754         code to undo hacks made to work around above problem of not
12755         having fflush call mentioned above
12756
12757 Fri Aug  2 18:28:07 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12758
12759         * libc/reent/{closer.c, execr.c, fstatr.c, linkr.c, lseekr.c,
12760         openr.c, readr.c, sbrkr.c, signalr.c, statr.c, timer.c, writer.c}:
12761         Partially revert last changes.  The thread specific errno is set
12762         iff if the underlying syscall fails and the global errno is not
12763         zero.
12764
12765 Fri Jul 19 11:41:52 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12766
12767         * libc/reent/filer.c: Removed files, all functions have split out
12768         into their own files.
12769         * libc/reent/{closer.c, lseekr.c, openr.c, readr.c, writer.c}: 
12770         New files containing functions formally in filer.c
12771         * libc/reent/Makefile.in: Updated for above change.
12772
12773         * libc/reent/execr.c (_fork_r, _wait_r): Set errno if underlying
12774         syscall fails, not if errno is changed.
12775         * libc/reent/filer.c (_open_r, _close_r, _lseek_r, _read_r, 
12776         _write_r): Likewise.
12777         * libc/reent/fstatr.c (_fstat_r): Likewise.
12778         * libc/reent/linkr.c (_link_r, _unlink_r): Likewise.
12779         * libc/reent/sbrkr.c (_sbrk_r): Likewise.
12780         * libc/reent/signalr.c (_kill_r): Likewise.
12781         * libc/reent/statr.c (_stat_r): Likewise.
12782         * libc/reent/timer.c (_gettimeofday_r): Likewise.
12783
12784         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, sbrkr.c,
12785         signalr.c, statr.c, timer.c} (errno): declare extern rather
12786         than as a common.
12787
12788         * libc/stdio/vfprintf.c (__sbprintf): Use the VFPRINTF macro
12789         instead of calling vfprintf so that i*printf will not require
12790         floating point support code.
12791         
12792 Mon Jul 15 16:50:59 1996  Doug Evans  <dje@canuck.cygnus.com>
12793
12794         * libc/posix/execvp.c (execvp): Use posix_path_list_p to determine
12795         path delimiter.
12796         * libc/include/sys/unistd.h (_SC_PATH_RULES): Delete.
12797         (_PATH_RULES_{UNKNOWN,WIN32,POSIX}): Delete.
12798
12799 Thu Jul 11 14:34:14 1996  Geoffrey Noer  <noer@cygnus.com>
12800
12801         * libc/include/signal.h: _sig_func_ptr function takes an int
12802         * libc/include/sys/signal.h: sa_handler function takes an int
12803
12804 Tue Jul  9 21:22:32 1996  Jeffrey A Law  (law@cygnus.com)
12805
12806         * libc/include/machine/ieeefp.h: Simplify H8/S support.
12807         * libc/include/sys/config.h: Add missing H8/S conditional.
12808
12809 Sun Jun 30 12:05:46 1996  Doug Evans  <dje@canuck.cygnus.com>
12810
12811         * libc/include/sys/unistd.h (MAXPATHLEN): Add cygwin32 value.
12812
12813 Wed Jun 26 09:57:54 1996  Jeffrey A Law  (law@cygnus.com)
12814
12815         * libc/include/machine/setjmp.h: Handle H8/S.
12816         * libc/include/machine/ieeefp.h: Likewise.
12817         * libc/include/sys/config.h: Likewise.
12818         * libc/machine/h8300/{defines.h, memcpy.S, memset.S}: Likewise.
12819         * libc/machine/h8300/{reg_memcpy.S, reg_memset.S}: Likewise.
12820         * libc/machine/h8300/{strcmp.S, setjmp.S}: Likewise.
12821         * libc/sys/h8300hms/crt0.S: Likewise.
12822
12823 Tue Jun 25 23:15:45 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
12824
12825         * Makefile.in (datadir): Set to $(prefix)/share.
12826         (oldincludedir, docdir): Removed.
12827         * doc/Makefile.in (datadir): Set to $(prefix)/share.
12828         (oldincludedir, docdir): Removed.
12829         * libc/Makefile.in (datadir): Set to $(prefix)/share.
12830         (oldincludedir, docdir): Removed.
12831         * libm/Makefile.in (datadir): Set to $(prefix)/share.
12832         (oldincludedir, docdir): Removed.
12833
12834 Fri Jun 21 19:24:41 1996  Ian Lance Taylor  <ian@cygnus.com>
12835
12836         * libc/include/sys/reent.h (_REENT_INIT): Update for change to
12837         _reent struct.
12838
12839 Wed Jun 19 14:00:09 1996  Doug Evans  <dje@canuck.cygnus.com>
12840
12841         * libc/posix/execvp.c: Delete _WIN32 support.  For __CYGWIN32__
12842         fetch current path rules with sysconf and handler posix/win32
12843         appropriately.
12844
12845         * libc/include/sys/unistd.h (_PATH_RULES{,_POSIX,_WIN32}): Define.
12846
12847         * libc/include/process.h: Prepend '_' to P_{WAIT,NOWAIT,OVERLAY}.
12848         (WAIT_CHILD): Always define.
12849
12850 Sat Jun 15 17:50:42 1996  Ian Lance Taylor  <ian@cygnus.com>
12851
12852         * libc/stdlib/eprintf.c: New file.
12853         * libc/stdlib/Makefile.in (OFILES): Add eprintf.o.
12854         (eprintf.o): New target.
12855
12856 Thu Jun 13 16:44:32 1996  Doug Evans  <dje@canuck.cygnus.com>
12857
12858         * libc/sys/cygwin32/crt0.c (__cygwin_crt0_bp): New global.
12859         (mainCRTStartup): Do int3 if __cygwin_crt0_bp non-zero.
12860
12861 Thu Jun 13 17:45:17 1996  Mike Meissner  <meissner@rtl.cygnus.com>
12862
12863         * libc/include/machine/ieeefp.h: Add support for AIX and Windows
12864         NT in PowerPC endianess cases.
12865
12866 Tue Jun 11 12:26:28 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12867
12868         * libc/include/machine/ieeefp.h: Clean up PowerPC endianess.
12869
12870 Thu Jun  6 11:34:20 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12871
12872         * libc/string/strtok.c: Fix doc typo.
12873
12874 Mon Jun  3 11:30:00 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12875
12876         * libc/include/sys/reent.h (struct _reent): Removed _asctime,
12877         _next, _scanpoint, _signgam fields.
12878
12879         * libc/include/stdlib.h (rand_r): Added new declaration.
12880         (_rand_r, _srand_r): Removed declarations.
12881         * libc/stdlib/rand.c (_rand_r, _srand_r): Removed, these functions
12882         have been made obsolete by rand_r.
12883         * libc/stdlib/rand_r.c: New file, rand_r function as specified
12884         by POSIX.1c.
12885         
12886         * libc/string/strtok.c: Update documentation to describe
12887         strtok_r().
12888
12889 Sat Jun  1 23:50:39 1996  Michael Meissner  <meissner@cygnus.com>
12890
12891         * libc/include/sys/stat.h (stat structure): Use the expanded stat
12892         structure on Solaris, and PowerPC systems even though __svr4__ is
12893         defined.
12894
12895 Tue May 28 13:02:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12896
12897         * libc/sys/go32/sys/errno.h (ENOSYS,ESPIPE): Keep values <= 255.
12898
12899 Fri May 17 10:34:44 1996  Ian Lance Taylor  <ian@cygnus.com>
12900
12901         * host/any: Use ../.. rather than .. to get to the main build
12902         directory.  This matches the current layout of the build
12903         directory.
12904
12905 Wed May 15 15:52:27 1996  Jeffrey A Law  (law@cygnus.com)
12906
12907         * libc/machine/h8300/__main.S: Delete.  No longer needed.
12908         * libc/machine/h8300/Makefile.in: Corresponding changes.
12909         * libc/sys/h8300hms/crt1.c: New file.
12910         * libc/sys/h8300hms/Makefile.in: Corresponding changes.
12911         * libc/sys/h8300hms/crt0.s: Call __main.
12912
12913         * libc/sys/h8300hms/crt0.S: Use temporary label names
12914         for branch targets.
12915
12916 Mon May 13 14:26:30 1996  Doug Evans  <dje@canuck.cygnus.com>
12917
12918         * libc/stdio/fopen.c (_fopen_r): Fix arguments to fseek.
12919
12920 Fri May  3 16:38:23 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
12921
12922         * libc/reent/impure.c (_impure_ptr): Force the impure pointer into
12923         .sdata on the PowerPC so that we can link newlib with code
12924         compiled with -msdata.
12925
12926 Mon Apr 29 21:38:02 1996  Doug Evans  <dje@canuck.cygnus.com>
12927
12928         * libc/sys/arm/syscalls.c (_sbrk): Rename end to __end__.
12929
12930 Thu Apr 25 06:38:59 1996  Michael Meissner  <meissner@cygnus.com>
12931
12932         * libc/sys/cygwin32/crt0.c (mainCRTStartup): On PowerPC, set the
12933         exception handler to __cygwin_exception_handler.
12934
12935 Tue Apr 23 15:14:20 1996  Ian Lance Taylor  <ian@cygnus.com>
12936
12937         * libc/include/machine/setjmp.h: Check _AM29K, not ___AM29K__.
12938
12939 Sun Apr 21 12:11:51 1996  Doug Evans  <dje@blues.cygnus.com>
12940
12941         * libm/math/Makefile.in ({w,wf}_cabs.o,{w,wf}_drem.o): Add rule for
12942         SunOS VPATH.
12943         * libc/stdlib/Makefile.in (atoff.o,atol.o,mblen.o,mbstowcs.o,
12944         wcstombs.o): Likewise.
12945
12946 Thu Apr 18 12:37:01 1996  Doug Evans  <dje@canuck.cygnus.com>
12947
12948         * libc/stdlib/environ.c (initial_env): New static local.
12949         (environ): Point to `initial_env'.
12950
12951         * libc/include/machine/setjmp.h: Clean up.
12952         (__H8300H__,__PPC__): Define _JBTYPE.
12953         (__arm__): Provide entry for.
12954         (sigjmp_buf): Delete.
12955         (jmp_buf): Use _JBTYPE if defined, otherwise int.
12956
12957 Thu Apr 18 12:10:52 1996  Jeffrey A Law  (law@cygnus.com)
12958
12959         * libc/machine/h8300/strcmp.S: Sign extend the result to
12960         32bits so we don't lose with -mint32.
12961
12962 Sun Apr 14 19:59:52 1996  Doug Evans  <dje@canuck.cygnus.com>
12963
12964         * libc/sys/go32/sys/errno.h: New file.
12965         * libc/sys/go32/Makefile.in (stat.o): Depend on stat.c.
12966         * libc/sys/go32/gerrno.s (syscall_error): Call __errno to get
12967         errno's address (make compatible with rest of newlib).
12968         * libc/sys/go32/stat.c (fixinode): Set errno upon failure.
12969         * libc/string/strerror.c (strerror): Surround each case with #ifdef.
12970
12971 Thu Mar 28 13:44:42 1996  Doug Evans  <dje@canuck.cygnus.com>
12972
12973         * libc/machine/sparc/{scan.c,shuffle.c}: New files.
12974         * libc/machine/sparc/Makefile.in: Build them.
12975         * libc/machine/sparc/machine/sparclet.h: New file.
12976
12977 Mon Mar 25 15:29:14 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
12978
12979         * libc/machine/sh/asm.h: New file.
12980         * libc/machine/sh/setjmp.S: Only save clobbered registers.  Added
12981         support for SH3e's FP registers.  Use asm.h.
12982
12983 Mon Mar 25 11:59:23 1996  Jeffrey A Law  (law@cygnus.com)
12984
12985         * libc/stdio/vfprintf.c (cvt): Accept a reent structure
12986         as first argument.  Call _dtoa_r and pass the reent structure
12987         instead of calling __dtoa.
12988
12989 Fri Mar 22 13:59:37 1996  Jeffrey A Law  (law@cygnus.com)
12990
12991         * libc/include/sys/config.h: Define DOUBLE_IS_32BITS for
12992         the h8300, h8500, and others.  Add comments for some rather
12993         dubious code.
12994
12995 Thu Mar 14 18:04:43 1996  Ian Lance Taylor  <ian@cygnus.com>
12996
12997         * Makefile.in (check): Check that testsuite exists before cd.
12998
12999 Tue Mar 12 11:46:47 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13000
13001         * libc/include/string.h (strsep): Correct prototype.
13002
13003 Mon Mar 11 09:55:19 1996  Doug Evans  <dje@charmed.cygnus.com>
13004
13005         * libc/sys/h8300/_exit.c (_exit,__exit): Set r0 to 0 before `sleep'.
13006         * libc/sys/h8300/misc.c (_kill): Set r0 to indicate abort and `sleep'.
13007         * libc/sys/h8300/crt0.S (_start): Call exit instead of `sleep'.
13008
13009 Wed Mar  6 11:51:55 1996  Doug Evans  <dje@charmed.cygnus.com>
13010
13011         * libc/posix/{creat.c,isatty.c}: New files.
13012         * libc/posix/Makefile.in (OFILES): Add creat.o, isatty.o.
13013
13014         * libc/sys/sparc64/crt0.S (environ): Delete.
13015         (.LHaveBias): Renamed from HaveBias.
13016
13017 Thu Feb 15 10:48:37 1996  Doug Evans  <dje@charmed.cygnus.com>
13018
13019         * libc/stdlib/mallocr.c (etext): Move decl inside ifdef WARN_VLIMIT.
13020         (_morecore_r): Delete SBRK_IS_ALLOC support.
13021
13022 Tue Feb 13 09:44:09 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13023
13024         * libc/sys/cygwin32/Makefile.in (lib.a): Make lib.a with a dummy
13025         module rather than touch, so we don't get warning messages when
13026         all of the libraries are combined into libc.a.
13027
13028 Tue Feb 13 06:32:07 1996  Doug Evans  <dje@charmed.cygnus.com>
13029
13030         * libc/sys/sparclite/{Makefile.in,crt0.s}: Deleted.
13031         crt0.s replaced by version in libgloss.
13032
13033 Mon Feb  5 15:17:51 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
13034
13035         * libc/reent/Makefile.in (OFILES): Add impure.o.
13036         * libc/reent/impure.o: New file, define initial reentrancy struct.
13037         * libc/reent/reent.c: Remove above definition.
13038
13039         * libm/math/sf_asinh.c: Fix typo.
13040
13041         * Makefile.in (MATHOBJS_IN_LIBC): Removed sr_ldexp.o and
13042         srf_ldexp.o.
13043         
13044         * libm/libm.texinfo: Change documentation to reflect changes
13045         in reentrancy model.
13046         * libm/math/w_gamma.c: Likewise.
13047
13048 Wed Jan 31 18:49:45 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13049
13050         * configure.in (*-*-cygwin32): New.
13051         (*-*-win32): Deleted.
13052         * libc/sys/win32 renamed libc/sys/cygwin32.
13053
13054 Tue Jan 30 22:09:03 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13055
13056         * libc/include/sys/file.h: New include file.
13057
13058 Fri Jan 26 15:52:54 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13059
13060         * libc/include/machine/setjmp.h: Increase size of PPC jmp_buf.
13061
13062 Tue Jan 23 17:49:16 1996  Steve Chamberlain  <sac@slash.cygnus.com>
13063
13064         * libc/include/sys/wait.h (WIFSIGNALED): Fix.
13065
13066 Tue Jan 16 09:28:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
13067
13068         * doc/makedoc.c (realloc): Declare at file scope.
13069         (catchar): Not here.
13070
13071 Wed Dec 27 15:45:23 1995  Doug Evans  <dje@canuck.cygnus.com>
13072
13073         * Makefile.in (VERSION): Update to 1.7.0.
13074         * {libc,libm}/Makefile.in (VERSION): Likewise.
13075         * configure.in: Minor clean up of multilib stuff.
13076
13077         From David Johnson <davidj@ICSI.Berkeley.EDU>
13078         * {libc,libm}/Makefile.in (lib[cm].a): Delete library first.
13079
13080         * libc/stdlib/environ.c: New file.
13081         * libc/stdlib/Makefile.in (OFILES): Build it.
13082         * libc/sys/h8500hms/crt0.c (environ): Deleted.
13083         * libc/sys/m88kbug/crt0.c (environ): Deleted.
13084         * libc/sys/z8ksim/crt0.c (environ): Deleted.
13085         * libc/sys/netware/environ.c: Deleted.
13086
13087 Tue Dec 19 15:24:46 1995  Kim Knuttila  <krk@cygnus.com>
13088
13089         * configure.in (links): set sys_dir, posix_dir, syscall_dir
13090
13091 Wed Dec 13 04:16:25 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13092
13093         * doc/makedoc.c (init_string_with_size,nextword): Move malloc
13094         declaration out to external scope and declare it PTR, not char *.
13095
13096 Mon Dec 11 17:35:12 1995  steve chamberlain  <sac@slash.cygnus.com>
13097
13098         * libc/include/sys/unistd.h (getpagesize): New declaration.
13099         (_SC_PAGESIZE): New definition.
13100         * libc/include/time.h (CLK_TCK): Defined as CLOCKS_PER_SEC.
13101         * libc/configure.in (i[345]86-*-win32): Remove -DNO_FORK.
13102
13103 Fri Dec  1 16:48:46 1995  James G. Smith  <jsmith@cygnus.co.uk>
13104
13105         * libc/sys/vr4300/syscalls.c (sbrk): Fixed memory
13106         addressing. System call returns size, not (last address + 1).
13107
13108 Thu Nov 30 15:05:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13109
13110         * libm/math/*.c: Removed _foo_r() reentrancy API.
13111         * libc/include/math.h: Removed _foo_r prototypes and macros.
13112
13113         * libm/math/*.c: On systems with IEEE single precision "doubles" 
13114         move foo() -> foof() wrapper code from the files that implement
13115         the standard IEEE double precision functions to the files that 
13116         implement IEEE single precision functions. (ie. On those systems
13117         sin is moved from s_sin.c to sf_sin.c).  There should eventually
13118         be use of a C extension (like gcc's alias attribute) so that the
13119         wrappers are not needed at all.
13120
13121         * libc/sys/sysnec810/sbrk.c: Cast &end to char * to get around
13122         strict NEC V810 compiler.
13123         * libc/misc/dprintf.c (getnumber): Cast char * to unsigned char *
13124         for same reason.
13125
13126 Wed Nov 29 14:25:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13127
13128         * libc/stdlib/strtol.c (_strtol_r): Replaced with implementation
13129         from NetBSD C library.
13130         * libc/stdlib/strtoul.c (_strtoul_r): Likewise.
13131
13132         * libc/stdlib/assert.c (__assert): Renamed from __assertfail 
13133         and adapted from implementation I wrote for NetBSD C library.
13134         The difference is __assert doesn't take a format argument,
13135         so that there won't be multiple copies of the same string
13136         constant in the executable if assertions are enabled in
13137         more than one source module.
13138         * libc/include/assert.h (assert): Changed to call __assert.
13139
13140 Tue Nov 28 16:54:26 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13141
13142         * libc/stdlib/strtod.c (_strtod_r): Changed to not assign to
13143         word1 on systems with 32 bit doubles.
13144         * libc/stdlib/qsort.c (qsort): Cast some void *'s to char *'s
13145         so that we can do arithmetic on them.
13146         * libc/misc/dprintf.c: Changed to support stdarg.h for ANSI
13147         compilers.
13148         
13149 Tue Nov 28 16:03:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13150
13151         * libc/sys/arm/crt0.S: Zero bss.
13152
13153 Fri Nov 24 16:09:23 1995  Doug Evans  <dje@deneb.cygnus.com>
13154
13155         * libc/include/unctrl.h: New file.
13156         * libc/misc/{Makefile.in,dprintf.c,unctrl.c,misc.tex}: New files.
13157         * configure.in (subdirs): Add libc/misc.
13158         * libc/Makefile.in (SUBDIRS): Add misc.
13159         (SUBLIBS): Add misc/lib.a.
13160
13161         * libc/include/sys/reent.h (struct _reent): Make __sf last member.
13162
13163 Wed Nov 22 19:49:47 1995  Doug Evans  <dje@deneb.cygnus.com>
13164
13165         * libc/stdio/vfprintf.c (__sbprintf): Init fake._data.
13166         (_vfprintf_r): Call CHECK_INIT.
13167
13168 Tue Nov 14 02:52:12 1995  Doug Evans  <dje@canuck.cygnus.com>
13169
13170         * Makefile.in (MULTITOP): Delete.
13171         (MULTISRCTOP, MULTIBUILDTOP): Add.
13172         * configure.in: Delete call to cfg-ml-com.in.  Call config-ml.in
13173         instead of cfg-ml-pos.in.
13174
13175 Wed Nov  8 01:24:08 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13176
13177         * libc/sys/vr4300/syscalls.c: Added clean version of sbrk().
13178         * libc/sys/vr4300/crt0.S: Cleaned up. Added check for FPU
13179         presence.
13180
13181 Thu Nov  2 22:25:06 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
13182
13183         * libc/string/strtok.c: Include string.h to pick up strtok_r
13184         prototype.
13185
13186 Wed Nov  1 18:54:11 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13187
13188         * libc/string/strtok.c: include <_ansi.h>.
13189         * libc/time/asctime_r.c: `reresult' -> `result'.
13190
13191 Wed Nov  1 14:35:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13192
13193         * libc/time/{ctime.c, gmtime.c, lcltime.c}: Wrap functions
13194         in #ifndef _REENT_ONLY ... #endif conditional.
13195
13196         * libc/include/string.h (_strtok_r): Remove declaration.
13197         * libc/include/time.h (_asctime_r): Remove declaration.
13198         * libc/string/strtok.c (_strtok_r): Removed.
13199         * libc/time/asctime.c (_asctime_r): Removed.
13200
13201         * libc/string/Makefile.in (OFILES): Add new object.
13202         * libc/string/strtok_r.c: New file.  strtok_r function as
13203         specified by POSIX.1c, adapted from strtok implementation 
13204         from NetBSD C library.
13205         * libc/string/strtok.c (strtok): Reimplemented in terms of 
13206         strtok_r.
13207
13208         * libc/time/Makefile.in (OFILES): Add new objects.
13209         * libc/time/{asctime_r.c, ctime_r.c, gmtime_r.c, lcltime_r.c}:
13210         New files, reentrant time functions specified by POSIX.1c.
13211         * libc/time/{asctime.c, ctime.c, gmtime.c, lcltime.c}: Non-
13212         reentrant time functions re-written in terms of reentrant 
13213         functions.
13214         * libc/time/lcltime.c: Renamed from localtime.c
13215
13216         * libc/include/time.h: Add prototypes for asctime_r, ctime_r,
13217         gmtime_r, and localtime_r.
13218
13219 Sat Oct 28 14:34:31 1995  steve chamberlain  <sac@slash.cygnus.com>
13220
13221         * libc/sys/win32/crt0.c (mainCRTStartup): Call cygwin_crt0.
13222         * libc/include/sys/unistd.h (getlogin): Revert change of
13223         Oct 19.
13224         * libc/include/sys/signal.h (sigprocmask): Change prototype
13225         so it compiles with c++.
13226
13227 Wed Oct 25 15:43:18 1995  Michael Meissner  <meissner@cygnus.com>
13228
13229         * libc/include/machine/setjmp.h (PowerPC _JBLEN): Consider it a
13230         PowerPC if __PPC__ is defined.  Bump jump_buf length to 62 ints,
13231         to give some room in case we need to align the jmp_buf.
13232         
13233         * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Rewrite to use
13234         the new ppc-asm.h include file the compiler provides to specify
13235         function prologue/epilogue.  Eliminate saves of the xer and ctr
13236         registers, which are volatile.  Before starting to save registers,
13237         align to 8 byte boundary.
13238
13239 Mon Oct 23 11:20:51 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
13240
13241         * libc/sys/vr4300/syscalls.c: Added empty kill() function,
13242         referenced by standard libraries.
13243
13244 Thu Oct 19 21:39:47 1995  Fred Fish  <fnf@cygnus.com>
13245         
13246         * libc/unix/Makefile.in, libc/string/Makefile.in,
13247         libc/stdio/Makefile.in, libc/reent/Makefile.in,
13248         libc/posix/Makefile.in:
13249         Remove tabs from otherwise empty line.  Confuses some
13250         older non-GNU versions of "make".
13251
13252 Thu Oct 19 16:32:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13253
13254         * libc/sys/unistd.h (getlogin): Returns const char *.
13255
13256 Wed Oct 18 12:57:50 1995  steve chamberlain  <sac@slash.cygnus.com>
13257
13258         * libc/include/fcntl.h (O_BINARY, O_TEXT): New.
13259         * libc/include/errno.h: Moved into and include...
13260         * libc/include/sys/errno.h: New file.
13261         * libc/include/sys/wait.h: New file.
13262         * libc/stdio/rename.c (_rename_r): Use _rename system call if available.
13263         * libc/sys/win32/*: Moved out.
13264         * libc/sys/win32/crt0.c: Rewritten to cope with shared library.
13265         * configure.in (i[345]86-*-win32): HAVE_RENAME
13266
13267 Wed Oct 18 09:58:27 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
13268
13269         * libc/unix/sigset.c (sigemptyset, sigaddset): Prefix #undef to
13270         avoid macro expansion for these two names.
13271
13272 Tue Oct 17 08:45:33 1995  Doug Evans  <dje@canuck.cygnus.com>
13273
13274         * libc/machine/h8500/psi.S: r6 renamed to fp.
13275
13276 Sun Oct 15 12:58:10 1995  Michael Meissner  <meissner@wogglebug.tiac.net>
13277
13278         * configure.in (powerpc*): No longer need to define
13279         NO_LONGLONG_POINTERS to supress warnings.
13280
13281 Sat Oct 14 12:55:08 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13282
13283         * libc/reent/reent.c (_reclaim_reent): Call cleanup indirectly
13284         through PTR instead of directly.
13285
13286         * libc/sys/sh/crt0.S: Clean up formatting.  Delete unused
13287         non-standard constructor support.
13288
13289 Thu Oct 12 11:39:42 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13290
13291         * libc/stdlib/dtoa.c (_dtoa_r): Set result pointer to the
13292         address of the Bigint instead of the address of its _x field,
13293         as the size the result buffer was calculated accordingly.  
13294         Fix from Jim Wilson <wilson@chestnut@cygnus.com>.
13295
13296         * libc/stdlib/{div.c, ldiv.c}: Replaced with implementation
13297         from NetBSD C library.  No longer special cases division by 
13298         zero (which needs to be done by the application anyway), but
13299         it doesn't need to call abs() (or labs()) four times either.
13300         
13301         * libc/stdlib/qsort.c: Replaced with implementation from 
13302         NetBSD C library.
13303
13304 Tue Oct 10 14:01:10 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13305
13306         * libc/stdio/vfprintf.c: Replaced with implementation from
13307         NetBSD C library (which is derived from the 4.4BSD C library).
13308         * libc/stdio/cvt.c: Removed.
13309         * libc/stdio/Makefile: Updated.
13310         
13311 Tue Oct 10 12:15:23 1995  steve chamberlain  <sac@slash.cygnus.com>
13312
13313         * libc/sys/win32/syscalls.c (rename): New.
13314         * libc/sys/win32/include/winkernel.h (MoveFileExA): New.
13315
13316 Fri Oct  6 12:18:43 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
13317
13318         * libc/machine/sh/Makefile.in (setjmp.o): Depend on setjmp.S.
13319         * libc/machine/sh/setjmp.S: Rename from setjmp.s.
13320
13321         * libc/sys/sh/Makefile.in (OFILES, all): Delete setjmp.o.
13322         (setjmp.o): Delete rule to build setjmp.o.
13323         * libc/sys/sh/setjmp.S: Delete file.
13324
13325 Fri Oct  6 11:19:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13326
13327         * libc/stdlib/mprec.c (d2b): Added support for _DOUBLE_IS_32BITS.
13328         * libc/stdlib/mprec.h: Fixed constants used for IEEE single float
13329         format.  Added #defines to map d2b, i2b, low0bits, lshift, mult,
13330         pow5mult and s2b to identifiers with leading underscores.
13331         * libc/stdlib/Makefile.in: Add mprec.h as a dependency to dtoa.o,
13332         ecvtbuf.o, mprec.o and strtod.o.  Sort dependencies.
13333
13334 Thu Oct  5 17:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
13335
13336         * libc/sys/posix/popen.c (sys/types.h): Include.
13337
13338 Thu Oct  5 16:33:01 1995  Doug Evans  <dje@canuck.cygnus.com>
13339
13340         * libc/sys/win32/syscalls.h (fhandler): New struct.
13341         (__lookup_fhandler, __lookup_fhandler_hook): Declare.
13342         (__fhandler_normal): Declare.
13343         (hinfo): New member op_handlers.
13344         * libc/sys/win32/syscalls.c (__read): Don't validate fd.
13345         (__write): Likewise.
13346         (_read, _write, _open, _close, _lseek): Validate fd here.
13347         Move file type specific stuff to foo_normal.
13348         (read_normal, write_normal, open_normal, close_normal, lseek_normal):
13349         New functions.
13350         (__lookup_fhandler): New function.
13351         (__lookup_fhandler_hook, __fhandler_normal): New variables.
13352
13353         From anders.blomdell@control.lth.se (Anders Blomdell)
13354         * libc/sys/win32/crt0.c (vfork_init): Unset __FD_TABLE__.
13355         Don't touch standard handles.
13356         * libc/sys/win32/spawn.c (_spawn): Use STARTF_USESTDHANDLES.
13357         (_execve): Only create __FD_TABLE__ if necessary.
13358         * libc/sys/win32/include/winkernel.h (STARTF_*): Define.
13359
13360 Thu Oct  5 14:25:14 1995  steve chamberlain  <sac@slash.cygnus.com>
13361
13362         * libc/sys/win32/sys/termios.h (FLUSHO): New.
13363         * libc/sys/win32/include/win*.h: Moved a load of prototypes around.
13364         * libc/sys/win32/pipe.c (_fctnl): Ignore F_SETFL without errors.
13365         * libc/sys/win32/exception.c (ehandler3): set strace when a signal
13366         without a handler is received.
13367         * libc/sys/win32/Makefile.in: Remove --nodelete.
13368         * libc/sys/win32/resouce.c (gettimeofday): New.
13369         * libc/sys/win32/syscalls.c (path_to_real_path): New.
13370         * libc/sys/win32/syscalls.h (include/wincon.h): Don't include.
13371
13372 Wed Oct  4 13:10:35 1995  Doug Evans  <dje@canuck.cygnus.com>
13373
13374         * libc/sys/win32/dirsearch.c (opendir): stat real path name.
13375         Don't append "/*" to search pattern if trailing '/' already there,
13376         append "*".
13377         * libc/sys/win32/spawn.c (_spawn): CreateProcess doesn't seem to
13378         like /'s, convert them to \'s.  Handle //<drive>/ path names.
13379         Add space for quoted \'s in arg string.  Print translated prog name
13380         and original prog name.
13381         (_execve): Handle parent doing exec a teensy bit better.
13382         * libc/sys/win32/syscalls.h (__path_to_real_path): Update prototype.
13383         * libc/sys/win32/syscalls.c (__path_to_real_path): Don't assume
13384         path needs conversion, handle both cases.  Delete `const' from result.
13385         (hash_path_name): New function.
13386         (_open): Call it.
13387         (_stat): Likewise.  Fill in more fields for directories.
13388         * libc/sys/win32/wait.c (_wait): Explicitly pass -1 to waitpid.
13389         (wait_for_any): Fix trace message.
13390         (waitpid): Explicitly test for intpid == 0.
13391
13392         From anders.blomdell@control.lth.se (Anders Blomdell)
13393         * libc/sys/win32/spawn.c (__vfork_get_empty_entry): zero fill result
13394         so `next' is valid.
13395
13396 Sat Sep 30 15:00:15 1995  Jason Molenda  (crash@phyeaux.cygnus.com)
13397
13398         * libc/sys/win32/spawn.c (_spawn): Make quoting rules more
13399         complicated.
13400
13401 Sat Sep 30 10:25:57 1995  Jason Molenda    (crash@phydeaux.cygnus.com)
13402
13403         * libc/include/_ansi.h: set _HAVE_STDC if __STDC__ is defined
13404         at all, not just == 1.
13405         * libm/math/wf_acos.c (acosf): check for _HAVE_STDC, not __STDC__.
13406
13407 Sat Sep 30 04:30:09 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13408
13409         * libc/sys/win32/include/winbase.h: include <wintypes.h> and <winnt.h>
13410         * libc/sys/win32/include/wintypes.h: include <winnt.h>
13411         * libc/sys/win32/include/winnt.h: avoid multiple inclusion of this
13412         file.
13413
13414 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13415
13416         * libc/sys/syscalls.c (getcwd): Fix off by one error.
13417
13418         * libc/sys/signal.c (sleep): Fill it in.
13419         * libc/sys/termios.c (tcflush): Use PurgeComm
13420         (tcsetattr): Set some more of the bits.
13421         * libc/sys/include/winkernel.h: Add PurgeComm and Sleep.
13422
13423 Fri Sep 29 04:33:53 1995  Doug Evans  <dje@deneb.cygnus.com>
13424
13425         * libc/sys/arm/crt0.S (fp): Initialize to 0.
13426         Conditionally include .idata$3 stuff ifdef __pe__.
13427
13428 Fri Sep 29 01:49:17 1995  steve chamberlain  <sac@slash.cygnus.com>
13429
13430         * libc/sys/win32/crt0.c (hmap_init): Call __init_hinfo.
13431         * libc/sys/win32/pipe.c (pipe): Ditto.
13432         * libc/sys/win32/syscalls.c (__read):  Use new vtime and vmin fields.
13433         * libc/sys/win32/syscalls.h (hinfo): vtime, vmin are new.
13434         * libc/sys/win32/termios.c (tcsetattr): Init new fields.
13435         (tcgetattr): Contents are new.
13436         * libc/sys/win32/include/winkernel.h (DCB): New.
13437         (GetCommState, SetCommState): New.
13438
13439 Thu Sep 28 16:29:09 1995  Doug Evans  <dje@deneb.cygnus.com>
13440
13441         * libc/sys/arm/crt0.S (_start): Define.
13442
13443 Thu Sep 28 12:26:45 1995  steve chamberlain  <sac@slash.cygnus.com>
13444
13445         * libc/sys/arm/crt0.S: Move stack to top of RAM on PIE board.
13446         * libc/sys/arm/syscalls.c (_read, _write): Use the SWI properly.
13447
13448         * libc/sys/win32/sysconf.c: New
13449         * libc/sys/win32/sys/winadvapi.h: New
13450         * libc/sys/win32/syscalls.h (hinfo): Added timeout_len, w_binary, r_binary.
13451         * libc/sys/win32/crt0.c (hmap_init): Initialize new fields.
13452         * libc/sys/win32/pipe.c (pipe): Ditto.
13453         * libc/sys/win32/signal.c (_raise): New.
13454         (_kill): Moved from spawn.c
13455         * libc/sys/win32/spawn.c (kill): Moved to signal.c
13456         * libc/sys/win32/syscalls.c (__read): Use new fields.
13457         (_open): Ditto.
13458         * libc/sys/win32/termios.c (tcflush, tcsetattr, tcgetattr): Fill in.
13459         * libc/sys/win32/exceptions.c (__stack_trace): Keep going for longer.
13460         * libc/include/sys/unistd.h (rmdir): Takes const path.
13461         * libc/include/sys/stat.h (mkdir): Takes const path.
13462         * libc/include/sys/signal.h (SIGTTOU, SIGTTIN): New for win32.
13463
13464 Thu Sep 28 10:11:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13465
13466         * libc/sys/win32/spawn.c (_spawn): Fix quoting.
13467
13468         Add support for specifying paths as //<drive>/foo/bar.
13469         * libc/sys/win32/syscalls.h (__path_needs_conversion_p): Declare.
13470         (__path_to_real_path): Declare.
13471         (PATH_TO_REAL_PATH): New macro.
13472         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): Minor cleanup.
13473         (__path_needs_conversion_p, __path_to_real_path): New functions.
13474         (_open): Fix test for error return from CreateFileA.
13475         Handle new path syntax.
13476         (_link, mkdir, rmdir, getcwd, chdir, stat): Handle new path syntax.
13477         * libc/sys/win32/dirsearch.c (opendir): Likewise.
13478
13479 Wed Sep 27 16:36:46 1995  steve chamberlain  <sac@slash.cygnus.com>
13480
13481         * libc/sys/win32/include/*.h: Reorganized
13482         * libc/sys/win32/include/WINREADME: New.
13483         * libc/sys/win32/Makefile.in (DLLS): Build version.a.
13484         * libc/sys/win32/*.c: Fix for new include scheme.
13485         * libc/sys/win32/crt0.c (__this_uinfo_buf, __this_uinfo): New.
13486         * libc/sys/win32/getlogin.c (getlogin): Use uinfo.
13487         * libc/sys/win32/passwd.c (*): Fix.
13488         * libc/sys/win32/syscalls.c (get[e|][g|u]id): Use passwd info.
13489         (_stat): Get directory owner and permissions right.
13490         * libc/sys/win32/syscalls.h (uinfo): New.
13491         * libc/sys/win32/version.def: Remove leading underscores.
13492
13493 Tue Sep 26 18:18:47 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13494
13495         * libc/sys/win32/key.c: include "include/wincon.h".
13496
13497 Tue Sep 26 07:21:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13498
13499         * libc/sys/win32/{key, stubs}.c: New.
13500         * libc/sys/win32/Makefile: Adjust to cope.
13501         * libc/sys/win32/crt0.c (vfork_init_first): Cope with -ve pids.
13502         (environ_init): Change env names to upper case.
13503         * libc/sys/win32/dirsearch.c (readdir): Don't fill in inode number.
13504         * libc/sys/win32/passwd.c (*): Fill in the functions.
13505         * libc/sys/win32/pipe.c (_fcntl): F_GETFL returns O_RDWR.
13506         * libc/sys/win32/spawn.c (_spawn): Cope with -ve pids.
13507         * libc/sys/win32/syscalls.c (__win32_pid_to_posix_pid): New function.
13508         (_open): Initialze hmap->execable_p too.
13509         * libc/sys/win32/syscalls.c (getuid, getgid, geteuid, getegid): Return from macros.
13510         (_fstat): Fill in permissions.
13511         * libc/sys/win32/syscalls.h (hinfo): Add execable_p.
13512
13513 Fri Sep 22 13:47:27 1995  Doug Evans  <dje@canuck.cygnus.com>
13514
13515         * configure.in (cfg-ml-com.in invocation): Use ${with_multilib_top}
13516         if defined.
13517         (cfg-ml-pos.in invocation): Likewise.
13518
13519 Fri Sep 22 11:43:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13520
13521         * Makefile.in (MATHOBJS_IN_LIBC): Added s_isinf.o, sf_isinf.o,
13522         s_isnan.o and sf_isnan.o.
13523
13524 Wed Sep 20 14:50:19 1995  Ian Lance Taylor  <ian@cygnus.com>
13525
13526         * All Makefile.in files: added maintainer-clean target as a
13527         synonym for realclean.
13528
13529 Wed Sep 20 11:02:50 1995  Jeff Law  (law@snake.cs.utah.edu)
13530
13531         * libc/include/machine/setjmp.h: Add hppa support.
13532         * libc/machine/hppa/setjmp.S: New file with setjmp/longjmp
13533         support.
13534         * libc/machine/hppa/Makefile.in: Related changes.
13535
13536 Tue Sep 19 12:09:01 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13537
13538         * configure.in (machine_dir): Don't set for v810-*-*.
13539
13540 Fri Sep 15 20:22:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13541
13542         * libc/sys/win32/crt0.c (passover): Change to handle MKS quoting
13543         conventions correctly.
13544
13545 Thu Sep 14 13:37:22 1995  J.T. Conklin  <jtc@blues.cygnus.com>
13546
13547         * libc/stdio/puts.c: Update documentation of return value to match
13548         ANSI standard.
13549
13550 Thu Sep 14 01:52:37 1995  Doug Evans  <dje@canuck.cygnus.com>
13551
13552         Fix file descriptor inheritance.
13553         * libc/sys/win32/syscalls.h (CHILD_P): Define again.
13554         (NOT_OPEN_FD): Fix.
13555         * libc/sys/win32/spawn.c (vfork0): Only create inheritable handle if
13556         close-on-exec flag not set.  Initialize child's entire fd table.
13557         * libc/sys/win32/syscalls.c (_open): Only create inheritable handle if
13558         CHILD_P.
13559         * libc/sys/win32/pipe.c (pipe): Only create new handle as inheritable
13560         if CHILD_P.  Initialize entire hmap entry.
13561         (dup): Only create new handle as inheritable if CHILD_P.
13562         (dup2): Likewise.  Properly initialize hmap entry.
13563
13564         * libc/sys/win32/spawn.c (_execve): Don't pass _P_SEARCH_PATH to
13565         _spawn.
13566         (_exit): Use CHILD_P.
13567         * libc/sys/win32/syscalls.c (_fstat): Fix call to memset.
13568         (_stat): Likewise.
13569
13570 Mon Sep 11 23:09:39 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13571
13572         * libc/sys/win32/crt0.c (passover): fix up the state table.
13573         * libc/posix/popen.c: Added.
13574         * libc/posix/Makefile.in: compile popen.c.
13575         
13576 Mon Sep 11 11:43:38 1995  J.T. Conklin  <jtc@cygnus.com>
13577
13578         * libc/include/machine/ieeefp.h: On the h8/300, h8/300h and
13579         h8/500 define _DOUBLE_IS_32BITS.
13580
13581 Sat Sep  9 17:55:54 1995  Doug Evans  <dje@canuck.cygnus.com>
13582
13583         Get vfork/exec/spawn/cwait/wait working again.
13584         * libc/sys/win32/syscalls.h (VFORK_NEWBORN_PSEUDO_PID): Define.
13585         (procinfo): New member vfork_level.
13586         * libc/sys/win32/crt0.c (__vfork_next_pid): Delete.
13587         (vfork_init_first): Use GetCurrentProcessId to get pid.
13588         Initialize vfork_level.
13589         (vfork_init): Delete __PID__.
13590         (environ_init): New function.  Undo patch of Aug 19, Posix says
13591         environment variables are case sensitive.
13592         (mainCRTStartup): Call it.
13593         * libc/sys/win32/spawn.c (__vfork_next_pid): Delete.
13594         (my_longjump: Make static.
13595         (_spawn): New argument `h'.  Delete setting of __PID__.
13596         Delete local `idx'.  Look for chars that need quotes, rather than
13597         ones that don't.  Set handle of created process in `h'.
13598         Result is process id if created task.
13599         (allocate_spawn_entry): New function.
13600         (spawnvp, spawnv): Call it.  Store handle and pid in procinfo entry.
13601         (_execve): Set __FD_TABLE__ before spawning child.
13602         Scan our fd table when passing fds, not our parent's.
13603         Store handle and pid in procinfo entry.
13604         (vfork0): Ensure strace message always printed.
13605         Set child pid to VFORK_NEWBORN_PSEUDO_PID.
13606         (vfork): Don't clobber result of vfork0.
13607         * libc/sys/win32/wait.c (cwait): Fix non-error result (is pid).
13608         (wait_for_any): Ignore processes in state FORK_STATE_VFORK_0.
13609
13610         * libc/sys/win32/syscalls.h (procinfo): New members `handle_valid_p'
13611         and `exit_code'.
13612         * libc/sys/win32/spawn.c (allocate_spawn_entry): Initialize them.
13613         (vfork0): Likewise.  Distinguish children, grandchildren, etc. by
13614         adding vfork level to pseudo-pid.  
13615         (vfork1): If not root, set state back to FORK_STATE_VFORK_0.
13616         (spawnvp, spawnv, _execve): Set handle_valid_p if success.
13617         (_exit): If child, set exit code.
13618         (__vfork_record_death): Only close process handle if valid.
13619         * libc/sys/win32/wait.c (wait_for_single): Watch for children that
13620         didn't exec.
13621         (wait_for_any): Likewise.  Start scan after root entry.
13622
13623 Fri Sep  8 18:48:02 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13624
13625         * libc/include/sys/types.h (off_t): off_t back to 32 bits.
13626         * libc/include/sys/_types.h (_off_t): _off_t back to 32 bits.
13627         * libc/sys/win32/syscalls.c (_fstat): st_size is lower 32-bits
13628         of actual file length.
13629
13630         * libc/sys/win32/sys/wait.h: include <sys/types.h>.
13631         * libc/include/paths.h: _PATH_BSHELL added.
13632         * libc/include/sys/unistd.h: define STDIN_FILENO, STDOUT_FILENO,
13633         and STDERR_FILENO.
13634
13635 Thu Sep  7 21:02:22 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13636
13637         * libc/include/ar.h: Added.
13638         * libc/include/sys/types.h: ino_t goes back to 32-bits.
13639         * libc/sys/win32/syscalls.h (hinfo): added .namehash field.
13640         * libc/sys/win32/syscalls.c (_open): compute .namehash based
13641         on filename.
13642         (_fstat): use .namehash for inode number of the fd.
13643
13644 Thu Sep  7 12:57:19 1995  steve chamberlain  <sac@slash.cygnus.com>
13645
13646         * libc/sys/win32/{console,ioctl,pipe,spawn,syscalls,wait}.? (*):
13647          Change hinfo to __this_procinfo.
13648         * libc/sys/win32/crt0.c: Remove procinfo_list.
13649
13650 Wed Sep  6 18:38:26 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13651
13652         * libc/include/sys/types.h (ino_t): Define ino_t correctly for
13653         win32 environment.
13654
13655 Wed Sep  6 18:09:29 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13656
13657         * libc/sys/win32/include/grp.h: Removed.
13658         * libc/sys/include/grp.h: Added.
13659         * libc/sys/win32/grp.c: Include <grp.h>.
13660
13661 Wed Sep  6 16:52:48 1995  steve chamberlain  <sac@slash.cygnus.com>
13662
13663         * libc/include/sys/signal.h (__need_MAX_SIGNALS): Removed.
13664         (sigset_t, sigaction, SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK):
13665         Defined for all but strict ANSI.
13666         * libc/include/sys/reent.h (__need_MAX_SIGNALS): Removed.
13667         * libc/include/machine/setjmp.h: Get win32 _JBLEN right.
13668         * libc/signal/signal.c (_signal_r): Changed from using
13669         _MAX_SIGNALS to NSIG.  
13670         * libc/sys/win32/crt0.c (__current_pid, __parent_hmap, __child_hmap,
13671          __hmap): Deleted.
13672         (__strace, __vfork_next_pid): New.
13673         (__exe_suffix): Default to 1.
13674         (passover, table): Understand quoted arguments.
13675         (vfork_init_first): New.
13676         (vfork_init): Initialize new process structure.
13677         (mainCRTStartup): Pass environ to main.
13678         * exceptions.c (__sig_mask): New
13679         (ehandler3): Ignore signals in mask.
13680         (really_exit): Remove CHILD_P test.
13681         * pipe.c (pipe, dup, dup2): Use new process and file structure.
13682         * resource.c (getrusage): Ditto.
13683         * signal.c (sigprocmask): New.
13684         * spawn.c (*): Rewritten.
13685         * syscalls.c (*): Use new process and file structure.
13686         (find_unused_handle): New.
13687         * syscalls.h (MAX_HANDLES): Deleted.
13688         (hinfo): Removed child_created_p.
13689         (MAX_CHILDREN): Deleted.
13690         (vfork_jmp_info, procinfo): New.
13691         * wait.c (*): Mostly new.
13692         * sys/strace.h (_STRACE_PARANOID): New.
13693         * sys/param.h: New file.
13694
13695 Wed Sep  6 17:03:53 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13696
13697         * libc/include/sys/stat.h: add S_BLKSIZE.
13698         * libc/include/sys/_types.h: _off_t is a 64-bit type under win32.
13699         * libc/include/sys/types.h: define off_t and ino_t to be 64 bit
13700         types under win32.
13701         (mode_t): add a #else to avoid multiple definitons.
13702
13703         * libc/sys/win32/Makefile.in: add grp.c.
13704         * libc/sys/win32/grp.c: include grp.h correctly.
13705         * libc/sys/win32/syscalls.c (_fstat): set almost all of the fields
13706         of the st structure with real information.
13707         * libc/sys/win32 (dirent): d_ino is of type ino_t.
13708
13709 Wed Sep  6 10:41:34 1995  Doug Evans  <dje@canuck.cygnus.com>
13710
13711         * libc/include/sys/types.h (mode_t): Correct for svr4 sparc's
13712         and (maybe) sparc64.
13713         (nlink_t): Provide typedef.
13714
13715 Tue Sep  5 18:46:05 1995  Jason Molenda   (crash@phydeaux.cygnus.com)
13716
13717         * libc/sys/win32/grp.c: New file.
13718         * libc/sys/win32/include/grp.h: New file.
13719
13720 Tue Sep  5 13:47:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13721
13722         * libc/include/machine/ieeefp.h: Added whitespace to make this
13723         file easier to maintain.
13724         On the sh, define either __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN
13725         depending on the value of __LITTLE_ENDIAN__.
13726         On the sh3e, define _DOUBLE_IS_32BITS.
13727         
13728 Fri Sep  1 15:35:18 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13729
13730         * libc/sys/vr4300/syscalls.c: Added missing support
13731         routines. _raise() and getpid().
13732
13733 Fri Sep  1 14:12:48 1995  James G. Smith  <jsmith@rtl.cygnus.com>
13734
13735         * configure.in (mips*vr4300*-*-elf): Fixed silly mistake
13736
13737 Fri Sep  1 08:42:11 1995  James G. Smith  <jsmith@beauty.cygnus.com>
13738
13739         * configure.in (mips*vr4300*-idt-*) Add support for RISQ monitor
13740         and VR4300 processor.
13741         * libc/sys/vr4300: Add directory.
13742         * libc/sys/vr4300/{Makefile.in, crt0.S, syscalls.c}: Add SIM
13743         monitor run-time support.
13744
13745 Thu Aug 31 09:16:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13746
13747         * libc/stdlib/Makefile.in (CHEWOUT_FILES): Removed atol.def.
13748         * libc/stdlib/stdlib.tex: Don't include atol.def.
13749
13750 Wed Aug 30 20:38:28 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13751
13752         * libc/sys/win32/uname.c (uname): hardcode processor as `i386'.
13753
13754 Wed Aug 30 10:48:08 1995  steve chamberlain  <sac@slash.cygnus.com>
13755
13756         * libc/ctype/Makefile.in: Fill in _to* dependencies.
13757
13758 Tue Aug 29 17:14:29 1995  steve chamberlain  <sac@slash.cygnus.com>
13759
13760         * libc/sys/win32/{dirsearch.c,sys/dirent.h}: Fix namespace problems.
13761         * libc/sys/win32/sys/dirent.h (struct dirent): Added d_ino.
13762         * libc/sys/win32/strace.c (__sys_printf): Increase size of buffer.
13763         * libc/sys/win32/smallprint.c (__small_vsprintf): Remove debug.
13764         * libc/sys/win32/dirsearch.c (readdir): Set d_ino.
13765
13766 Tue Aug 29 19:00:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13767
13768         * libc/stdlib/atol.c (atol): DEFUN -> _DEFUN.
13769
13770 Tue Aug 29 16:08:09 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13771
13772         * libc/stdlib/Makefile.in (OFILES): Added atoff.o and atol.o.
13773         * libc/stdlib/atoff.c: New file.
13774         * libc/stdlib/atof.c (atoff): Moved to atoff.c.
13775         * libc/stdlib/atoi.c (atol): Removed.
13776         * libc/stdlib/atol.c: Removed duplicate documentation.
13777
13778         * libc/include/ctype.h (_tolower, _toupper): Moved inside
13779         #ifndef _STRICT_ANSI conditional.
13780         * libc/ctype/Makefile.in (OFILES): Added _tolower.o and _toupper.o
13781         * libc/ctype/_tolower.c: New file.
13782         * libc/ctype/_toupper.c: New file.
13783         * libc/ctype/tolower.c (_tolower): Moved to _tolower.c.
13784         * libc/ctype/toupper.c (_toupper): Moved to _toupper.c.
13785         * libc/ctype/toascii.c (_toascii): Removed.
13786
13787 Tue Aug 29 12:17:32 1995  Doug Evans  <dje@canuck.cygnus.com>
13788
13789         * libc/sys/sparc64/sys/types.h: Deleted.
13790
13791 Mon Aug 28 22:06:08 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13792
13793         * libc/sys/win32/uname.c (uname): change `Windows/NT' to `Windows_NT'
13794         and recognize Windows_95 systems.
13795
13796 Mon Aug 28 19:50:54 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13797
13798         * libc/sys/win32/crt0.c (vfork_init, hmap_init): standard I/O fds
13799         and passed fds should be opened in text mode.
13800
13801 Mon Aug 28 18:51:22 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
13802
13803         * libc/sys/win32/crt0.c (vfork_init): mark passed fds as used
13804         in __hmap, set to binary mode by default.
13805
13806 Tue Aug 22 14:12:37 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13807
13808         * libc/sys/sh/syscalls.c: Updated all functions to call __trap34.
13809         * libc/sys/sh/trap.S (__trap34): Renamed from __trap3.  Use trap
13810         vector 34.
13811
13812 Sat Aug 19 18:25:37 1995  steve chamberlain  <sac@slash.cygnus.com>
13813
13814         * Makefile.in (install): Install all libraries found in the
13815         top level.  If there's a sys/<type>/include directory,
13816         install those headers into include.
13817
13818         * libc/sys/win32/kernel.def351: Delete
13819         * libc/sys/win32/{comctl32.def, comdlg32.def, ctl3d32.def,
13820         glaux.def, glu32.def, largeint.def, libc.def, libcmt.def,
13821         lz32.def, mgmtapi.def, mpr.def, msacm32.def, msvcrt.def,
13822         nddeapi.def, netapi32.def, odbc32.def, odbccp32.def, oldnames.def,
13823         ole32.def, oleaut32.def, opengl32.def, rasapi32.def, rpcndr.def,
13824         rpcns4.def, rpcrt4.def, scrnsave.def, shell32.def, snmp.def,
13825         uuid.def, vdmdbg.def, version.def, vfw32.def, win32spl.def,
13826         winmm.def, winspool.def, winstrm.def, wsock32.def}: New.
13827
13828         * libc/sys/win32/Makefile.in: Update for new files and new dlltool options.
13829         * libc/sys/win32/crt0.c: Force all env names to upper case.
13830         * libc/sys/win32/sys/win*.h -> libc/sys/win32/include
13831         * libc/sys/win32/*.c: Headers have moved.
13832         * libs/sys/win32/*.[ch]: Test for open_p rather than BAD_HANDLE,
13833         __vfork_child_idx is now __vfork_child_ptr.
13834
13835         * posix/execvp (execvp): Don't crash if no PATH envname.
13836
13837 Fri Aug 18 12:22:59 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13838
13839         * libc/include/sys/reent.h (_Bigint): Removed _reclaim field.
13840         * libc/reent/reent.c (_reclaim_reent): Free Bigint's by going
13841         through the _freelist instead of through the _reclaim list.
13842         * libc/stdlib/mprec.c (_Balloc): Don't put new node on _reclaim list.
13843         * libc/stdlib/mprec.c (_Bcopy): Make like version in master dtoa.c
13844         sources.
13845
13846 Thu Aug 17 11:03:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13847
13848         * libc/machine/h8500/setjmp.S: New file.
13849         * libc/include/machine/setjmp.h: Updated for H8/500.
13850
13851 Wed Aug 16 16:19:11 1995  steve chamberlain  <sac@slash.cygnus.com>
13852
13853         * libc/sys/win32/syscalls.c (_open): More stracing.
13854         (_stat): Open the file in O_BINARY.
13855
13856 Wed Aug 16 15:49:01 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
13857
13858         * libc/machine/h8300/setjmp.S: New file.
13859         * libc/include/machine/setjmp.h: Updated for H8/300 and H8/300H.
13860
13861 Tue Aug 15 10:31:09 1995  Doug Evans  <dje@canuck.cygnus.com>
13862
13863         * libc/sys/win32/crt0.c (__exe_suffix): New global.
13864         (mainCRTStartup): Set __exe_suffix from LIBC_EXE_SUFFIX.
13865         * libc/sys/win32/spawn.c (_spawn): Add .exe suffix based on
13866         __exe_suffix.  Free fd_tab after setting env variable.
13867         (spawnv,_execve): Update.
13868         * libc/sys/win32/syscalls.h (__exe_suffix): Declare.
13869         * libc/sys/win32/smallprint.c (puts,putn): New (static) functions.
13870         (__small_vfprintf): New function.
13871         * libc/sys/win32/strace.c (__sys_printf): Call __small_vfprintf.
13872         * libc/sys/win32/wait.c (cwait): Validate argument.
13873
13874         * libc/sys/win32/syscalls.c (queue_file_deletion): Add trace message.
13875         (process_deletion_queue): Likewise.
13876
13877         * libc/sys/win32/Makefile.in (lib.a): Don't call $(RANLIB).
13878
13879 Mon Aug 14 10:14:10 1995  steve chamberlain  <sac@slash.cygnus.com>
13880
13881         * libc/sys/win32: Copyrights and gratuitous indenting.
13882
13883 Mon Aug 14 01:32:58 1995  Doug Evans  <dje@canuck.cygnus.com>
13884
13885         * libc/sys/win32/syscalls.c (queue_file_deletion): Finish.
13886         (process_deletion_queue): Likewise.
13887         (__close_all_files): New function.
13888         (_close): Only queue file deletion if really a file.
13889         * libc/sys/win32/spawn.c (_spawn): Only ensure .exe suffix if
13890         _P_APPEND_EXE.
13891         (_exit): Call __close_all_files.
13892
13893         * libc/stdlib/system.c: #include <errno.h>.
13894         (_system_r): Fix results in -DNO_EXEC case.
13895
13896         * libc/sys/win32/sys/dirent.h (DIR): New member __d_dirname.
13897         Reorganize structure.
13898         * libc/sys/win32/dirsearch.c (opendir): Use stat to determine
13899         if argument is valid.  Save directory name in DIR.  malloc space
13900         for dirent struct separately.
13901         * libc/sys/win32/syscalls.c (stat): Fix test for directory.
13902
13903         * libc/include/errno.h (ENAMETOOLONG): Define.
13904         * libc/string/strerror.c (strerror): Reword ENFILE.
13905         Add ENOSYS, ENMFILE, ENOTEMPTY, ENAMETOOLONG.
13906
13907 Sun Aug 13 22:42:25 1995  Doug Evans  <dje@canuck.cygnus.com>
13908
13909         * libc/sys/win32/crt0.c (__progname): New global.
13910         (mainCRTStartup): Support strace=bitmask,filename.
13911         * libc/sys/win32/dirsearch.c (all fns): Add trace messages.
13912         * libc/sys/win32/syscalls.c (_write): Print parent trace message
13913         if error.
13914         (getcwd): Handle len too small.  Convert '\\' to '/'.
13915         * libc/sys/win32/sys/fcntl.h (O_RDWR): = O_RDONLY|O_WRONLY.
13916         Add prototypes for open, creat, fcntl.
13917         (O_APPEND): Change value to conform to Microsoft's value.
13918         * libc/sys/win32/sys/strace.h (_STRACE): Protect in do/while.
13919
13920         * libc/stdlib/getopt.c: New file.
13921         * libc/stdlib/Makefile.in: Build it.
13922
13923 Sat Aug 12 12:17:14 1995  Doug Evans  <dje@canuck.cygnus.com>
13924
13925         * libc/posix/execvp.c (execvp): Watch for DOS drives ifdef _WIN32.
13926         Fix scanning of $PATH.
13927         * libc/posix/exec*.c: Call _execve, not execve.
13928         * libc/posix/execve.c: New file.
13929         * libc/posix/Makefile.in (OFILES): Add execve.o.
13930
13931         * libc/sys/win32/sys/strace.h (_STRACE_ALL, _STRACE_UHOH,
13932         _STRACE_STARTUP, _STRACE_SYSCALL): More bit masks of things to trace.
13933         (_STRACE): If level==0, always print.  Handle new bit mask scheme.
13934         * libc/sys/win32/crt0.c: Update _STRACE calls.
13935         * libc/sys/win32/{pipe.c,resource.c,spawn.c,syscalls.c,wait.c}: Ditto.
13936
13937         * libc/sys/win32/smallprint.c (rn): Fix digit list.
13938
13939         * libc/sys/win32/syscalls.c (__really_exit): Move from here,
13940         * libc/sys/win32/exceptions.c (really_exit): to here. Avoid recursion.
13941         * libc/sys/win32/spawn.c (spawnvp): Pass `prog' as image name.
13942         Print __seterrno trace message first.
13943         (_execve): Renamed from execve.
13944         (vfork): Update __strace usage.
13945         (__vfork_child_pid): Deleted.
13946         (__vfork_children, __vfork_child_idx): New globals.
13947         (_spawnvp): New function.
13948         (spawnvp, spawnv, _execve): Call _spawnvp.
13949         (init_child): Record child in __vfork_children.
13950         (__vfork_get_entry, __vfork_record_death): New functions.
13951         * libc/sys/win32/crt0.c (mainCRTStartup): Initialize __vfork_children.
13952         * libc/sys/win32/kernel32.def (WaitForMultipleObjects): Define.
13953         * libc/sys/win32/syscalls.h (CHILD_P): New macro.  All files updated.
13954         (MAX_CHILDREN, CHILD_INTERIM_PID): Define.
13955         (children): New typedef.
13956         (__vfork_children,__vfork_child_idx): Declare.
13957         (__vfork_get_entry,__vfork_record_death): Declare.
13958         * libc/sys/win32/wait.c (wait_for_single,wait_for_any): New functions.
13959         (waitpid): Handle pid == -1.
13960         * libc/sys/win32/sys/wintypes.h (WaitForMultipleObjects): Declare.
13961         * configure.in (i386-win32): Add -DNO_FORK.
13962         * libc/syscalls/sysfork.c (fork): Don't define for NO_FORK.
13963         * libc/reent/execr.c (_fork_r): Likewise.
13964         * libc/stdlib/system.c (do_system): New function.
13965         If WIN32, try to get shell path from $SH_PATH, use vfork.
13966         (_system_r): Return 1 for (s == NULL) if WIN32 or unix,
13967         otherwise return 0.
13968
13969 Sat Aug 12 11:08:00 1995  steve chamberlain  <sac@slash.cygnus.com>
13970
13971         * libc/stdlib/{mallocr.c, mstats.c}: Move mstats from mallocr to mstats.c.
13972         * libc/sys/win32/fcntl.h: Don't include self.
13973         * libc/sys/win32/sys/strace.h (_STRACE_WM, _strace_wm): New.
13974         * libc/sys/win32/sys/winbase.h: (GetUserName) New.
13975         * libc/sys/win32/sys/wincon.h (HANDLER_ROUTINE): Define correctly.
13976         * libc/sys/win32/sys/wintypes.h (GetFileType, GetCurrentProcess, CloseHandle,
13977         SetFilePointer, CreateFileA, GetFileInformationByHandle, GetStdHandle):
13978         Correct prototypes.
13979         * libc/sys/win32/strace.c: New file.
13980         * libc/sys/win32/smallprint.c: New file.
13981         * libc/sys/win32/crt0.c (func): Delete.
13982         (mainCRTStartup): Fix alloca usage.  Set handles explictly.
13983         * libc/sys/win32/dirsearch.c: Clean up handle usage, fix calls to __seterrno.
13984         * libc/sys/win32/exceptions.c: Lint.
13985         * libc/sys/win32/{ioctl.c, pipe.c, resource.c, spawn.c, cwait.c, syscalls.c}:
13986         Clean up handle usage.
13987         * libc/sys/win32/syscalls.c (__sys_printf): Moved into strace.c
13988         (open.c): Default file type is text.
13989         * libc/sys/win32/uname.c (uname): Use __small_sprintf.
13990         * libc/sys/win32/advapi32.def: New      
13991
13992 Fri Aug 11 17:11:52 1995  Doug Evans  <dje@canuck.cygnus.com>
13993
13994         * configure.in (posix_dir, libc_posix_lib): New variables.
13995         Define LIBC_POSIX_LIB in makefile to be $libc_posix_lib.
13996         (i[345]86-*-win32): Define posix_dir.
13997         Delete -DNO_EXEC.  Define -DHAVE_OPENDIR.
13998         (if unix_dir): Fix typo.
13999         * libc/posix/{Makefile.in,closedir,opendir,readdir,rewinddir,
14000         scandir,seekdir,telldir}: New files.
14001         * libc/posix/{execl.c,execle.c,execlp.c,execv.c,execvp.c}: Move here
14002         from libc/unix.
14003         * libc/Makefile.in (LIBC_POSIX_LIB): Define.
14004         (SUBDIRS): Add posix.
14005         (SUBLIBS): Add $(LIBC_POSIX_LIB).
14006
14007         * libc/include/sys/signal.h (SIGCHLD): Add for _WIN32.
14008         (NSIG): Increase to 21.
14009         * libc/include/sys/unistd.h (pid_t): Move from here,
14010         * libc/include/sys/types.h (pid_t): to here.
14011
14012         * libc/sys/win32/syscalls.h: #include "sys/strace.h".
14013         (__ptrace): Delete.
14014         (hinfo): New members close_exec_p, child_created_p.
14015         (struct exception_list): Define.
14016         (__hmap): Redefine as pointer to table.
14017         (__parent_hmap, __child_hmap): New globals.
14018         (__set_errno, __really_exit): Declare.
14019         (__vfork_child_pid): Declare.
14020         * libc/sys/win32/crt0.c (__strace, __trace_file): New global.
14021         (__orig_stdin, __orig_stdout, __orig_stderr): New globals.
14022         (__parent_hmap, __child_hmap): New globals.
14023         (__hmap): Redefine as pointer to active map.
14024         (__get_console): New function.
14025         (mainCRTStartup): Change leading '=' in environ vars to '!'.
14026         (env __FD_TABLE__): Watch for this and initialize our fd/handle
14027         mapping table from it if defined.
14028         (argv, envp): Dump if __strace >= 4.
14029         (main): Call here.
14030         * libc/sys/win32/exceptions.c (myp): Redefine.
14031         (__syscalls_b): Delete.
14032         (__stack_trace): New function.
14033         (ehandler3): Update to use _STRACE.  Print stack trace.
14034         Call __really_exit instead of exit.
14035         (init_exceptions): Delete args argc,argv.  New arg mine.
14036         * libc/sys/win32/kernel32.def (CreatePipe, DuplicateHandle, FindClose,
14037         FindFirstFileA, FindNextFileA, GetComputerNameA,
14038         GetEnvironmentVariableA, ReadFile, SetEnvironmentVariableA): Define.
14039         * libc/sys/win32/signal.c (signal): Validate arg.
14040         (alarm, sleep): Define as stubs for now.
14041         * libc/sys/win32/syscalls.c (all fns): Update to use _STRACE.
14042         (__syscalls_b, errno): Delete.
14043         (__vfork_child_pid, __vfork_jmp_buf): New globals.
14044         (__seterrno): Handle more errors.
14045         (__sys_printf): Renamed from _ptrace.
14046         (__really_exit): New function.
14047         (queue_file_deletion, process_deletion_queue): New functions.
14048         (__resume_parent): New function.
14049         (_unlink): Handle trying to delete open file.
14050         (__totime_t): Renamed from totime_t.
14051         (setsid, __read, __write): New functions.
14052         (cwait, spawnvp, R, D, getrusage, _execve, _fork, _wait): Delete.
14053         * libc/sys/win32/{dirsearch.c,getlogin.c,misc.c,resource.c,passwd.c,
14054         times.c,spawn.c,pipe.c,wait.c,termios.c,ioctl.c,uname.c}: New files.
14055         * libc/sys/win32/console.c: Update to new definition of __hmap.
14056         * libc/sys/win32/Makefile.in: Build new files.
14057         * libc/sys/win32/sys/{dirent.h,winerror.h,wait.h,termios.h}: New files.
14058         * libc/sys/win32/sys/{ioctl.h,utsname.h}: New files.
14059         * libc/sys/win32/sys/strace.h: Renamed from ptrace.h.
14060         * libc/sys/win32/sys/wintypes.h (GetCurrentDirectoryA): Fix prototype.
14061
14062 Thu Aug 10 16:32:52 1995  Doug Evans  <dje@canuck.cygnus.com>
14063
14064         * libc/sys/h8500hms/misc.c (kill): Handle SIGABRT.
14065
14066 Thu Aug 10 12:07:38 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14067
14068         * libc/stdlib/{dtoa.c, strtod.c}: Merged assorted changes that
14069         have been made to the master dtoa.c sources (from netlib.att.com)
14070         since they were integrated into newlib in early 1992.  Fixes
14071         problems with storage leaks and handling of numbers with very
14072         negative exponents.
14073         
14074 Wed Aug  9 14:18:39 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14075
14076         * Makefile.in (all): set rootpre and srcrootpre before calling
14077         sub-makes.
14078
14079 Tue Aug  8 17:20:45 1995  steve chamberlain  <sac@slash.cygnus.com>
14080
14081         * libc/sys/win32/crt0.c: Change __hmap usage.
14082         * libc/sys/win32/exceptions.c: Use _ptrace call.
14083         * libc/sys/win32/syscalls.c: Use _ptrace call.
14084         (read, write): Cope with DOS style CRLF when in TEXT mode.
14085         * libc/sys/win32/syscalls.h: Declare hinfo struct.
14086         * libc/sys/win32/user32.def: Get DefWindowProc arg list right.
14087         * libc/sys/win32/sys/fcntl.h, ptrace.h: New.
14088         * libc/sys/win32/sys/windows.h: Fill in rest of messages.
14089         * libc/sys/win32/sys/wintypes.h: Fix attribute syntax.
14090
14091 Mon Aug  7 13:04:54 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14092
14093         * libc/include/math.h (cabs, cabsf, drem, dremf): New declarations.
14094
14095         * libm/math/{w_cabs.c, wf_cabs.c, w_drem.c, wf_drem.c}: New files,
14096         wrappers for hypot() and remainder() for BSD libm compatibility.
14097         These are public domain implementations written by me for the
14098         NetBSD libm some time ago.  Note cabs() is required by ucbtest.
14099         * libm/math/Makefile.in (obj): Added w_cabs.o and w_drem.o.
14100         (fobj): Added wf_cabs.o and wf_drem.o.
14101
14102 Thu Aug  3 08:13:05 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14103
14104         * libc/sys/h8500hms/misc.c: New file.
14105         * libc/sys/h8500hms/Makefile.in (OFILES): Add misc.o.
14106
14107 Wed Aug  2 16:46:27 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14108
14109         * libc/time/localtime.c (localtime): Fix problem with leap year
14110         handling.  Stole algorithm from Arthur David Olson's tz code.
14111         
14112 Mon Jul 31 10:21:54 1995  steve chamberlain  <sac@slash.cygnus.com>
14113
14114         * configure.in: (z8k-*sim): Renamed z8k-*-coff.
14115
14116         * libc/sys/z8ksim/glue.c (_getpid, _kill): New
14117         (_exit): Use argument.
14118
14119 Fri Jul 28 15:17:04 1995  Doug Evans  <dje@canuck.cygnus.com>
14120
14121         * libc/sys/win32/sys/winbase.h (_WINBASE_H): Define.
14122
14123 Wed Jul 26 16:24:19 1995  steve chamberlain  <sac@slash.cygnus.com>
14124
14125         * libc/sys/sh/trap.S (perrno): Align correctly. (pr 7532)
14126
14127 Mon Jul 24 13:42:52 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14128
14129         * configure.in (sparc*): Add -DMALLOC_ALIGNMENT=8 to
14130         target_cflags.
14131
14132 Mon Jul 24 11:42:07 1995  steve chamberlain  <sac@slash.cygnus.com>
14133
14134         * libc/sys/win32/crt0.c (mainCRTStartup):  Look for
14135         ptrace with case insensitivity
14136         * libc/sys/win32/{user32.def, gdi32.def, exceptions.c, screen.c,
14137         sys/winbase.h,  sys/windows.h, sys/wintypes.h, sys/winuser.h}:
14138         New files.
14139
14140 Fri Jul 21 11:22:26 1995  Doug Evans  <dje@canuck.cygnus.com>
14141
14142         * Makefile.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
14143         (MULTITOP, MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): New variables.
14144         (all, install, *clean): Use new multilib support.
14145         * configure.in: Multilib support moved to ../cfg-ml-{com,pos}.in.
14146
14147 Fri Jul 21 07:11:42 1995  steve chamberlain  <sac@slash.cygnus.com>
14148
14149         * libc/include/sys/signal.h (__WIN32__): New.
14150
14151         * configure.in (i386-*-win32): Remobe SBRK_IS_ALLOC.
14152
14153         * libc/stdlib/mprec.c (Balloc): Fix trampling problem.
14154         (ulp, b2d): Handle 32 bit doubles.
14155         * libc/stdlib/mprec.h:  Handle 32 bit doubles.
14156         * libc/stdlib/strtod.c (_strtod_r): Ditto.
14157
14158 Fri Jul 14 08:24:58 1995  steve chamberlain  <sac@slash.cygnus.com>
14159
14160         from medp@primag.co.uk:
14161         * libc/stdio/setvbuf.c (setvbuf): Fix line buffering on
14162         dynamically allocated buffers.
14163
14164 Thu Jul 20 10:11:03 1995  Fred Fish  <fnf@fishbowl>
14165
14166         * libc/include/sys/unistd.h (_exit):  Add _ATTRIBUTE ((noreturn)).
14167         * libc/stdlib/exit.c (unistd.h):  Include to pick up _exit() declaration.
14168
14169 Thu Jul 20 10:16:25 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14170
14171         * configure.in (powerpc): Fix previous fix.
14172
14173 Wed Jul 19 14:08:55 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14174
14175         * configure.in (powerpc-*eabiaix*): Update PowerPC multilib
14176         directories for this target.
14177
14178 Wed Jul 19 00:34:30 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
14179
14180         * configure.in (hppa): Add machine_dir definition.
14181         * libc/machine/hppa: New directory with PA specific implementations
14182         of the basic memory/string functions.
14183
14184 Tue Jul 18 21:16:00 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
14185
14186         * configure.in: Update current PowerPC multilib directories.
14187         Split big and little endian configurations.
14188
14189 Tue Jul 18 11:55:33 1995  Ian Lance Taylor  <ian@cygnus.com>
14190
14191         * configure.in: Add --enable-single-float option to configure to
14192         control use of MIPS single-float directories.  Default to yes.
14193
14194         * Makefile.in (all): Don't recurse into multilib directory if it
14195         does not exist.
14196
14197 Mon Jul 17 15:51:30 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14198
14199         * libc/sys/sh/syscalls.c: Fix typo.
14200
14201 Mon Jul  3 14:38:52 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14202
14203         * Makefile.in, libc/Makefile.in, libc/sys/Makefile.in:
14204         Pass down DLLTOOL.
14205         * libc/include/process.h: Define WAIT_CHILD.
14206         * libc/include/types.h: Get sizes right for win32.
14207         * configure.in (i386-*-pe): Becomes i386-win32.
14208         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14209         wintypes.h,sys/file.h,sys/resource.h}: Second pass.
14210         * libc/stdlib/mallocr.c: Don't round up memory block if SBRK_IS_ALLOC
14211         is defined.
14212
14213 Wed Jun 28 18:34:54 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14214
14215         * configure.in (i[345]86-*-pe):  New target (NT).
14216         * host/any: DLLTOOL new.
14217         * libc/sys/win32/{crt0.c, kernel32.def, longjmp.c, setjmp.c, syscalls.c
14218         wintypes.h,sys/file.h,sys/resource.h}: Preliminary support for
14219         WIN32 (just enough to cross host the comp-tools).
14220
14221 Thu Jun 22 11:45:18 1995  Doug Evans  <dje@canuck.cygnus.com>
14222
14223         * libc/machine/h8300/{cmpsi.S,ucmpsi.S,divhi3.S,mulhi3.S,mulsi3.S}:
14224         Deleted.  These files live in gcc/config/h8300/lib1funcs.asm now.
14225
14226 Mon Jun 19 11:40:40 1995  Doug Evans  <dje@canuck.cygnus.com>
14227
14228         * libc/include/machine/ieeefp.h (arm): Change to always be
14229         __IEEE_BIG_ENDIAN (even on little endian ARM's).
14230
14231 Thu Jun  8 14:22:28 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14232
14233         * libc/sys/crt0.S: Initialze sp, and call exit after main.
14234         * libc/sys/syscalls.c (abort): New.
14235         * configure.in (arm): Define ABORT_PROVIDED.
14236
14237 Wed Jun  7 14:04:35 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14238
14239         * configure.in (powerpc): Define multidirs.
14240
14241 Mon Jun  5 16:10:13 1995  Doug Evans  <dje@canuck.cygnus.com>
14242
14243         * libc/sys/arm/crt0.S: Add __USER_LABEL_PREFIX__ support.
14244
14245 Thu Jun  1 10:51:47 1995  Sean Eric Fagan <sef@cygnus.com>
14246
14247         * configure.in (sparclite): Delete target_cflags.  Define multidirs.
14248
14249 Wed May 24 14:23:25 1995  Steve Chamberlain  <sac@slash.cygnus.com>
14250
14251         * configure.in, libc/include/machine/ieeefp.h: Modified
14252         for arm:
14253         libc/machine/arm/*, libc/sys/arm/*: New
14254
14255 Tue May 23 13:53:07 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14256
14257         * libc/include/machine/ieeefp.h: Use __PPC__ instead of
14258           __powerpc__ when determining endianness.
14259
14260 Wed May 10 07:55:56 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14261
14262         * configure.in (m68*): Add multidir for the m68332.
14263
14264         * host/any (CC): Fix typo in last change.
14265
14266 Fri Apr 14 22:20:31 1995  Ken Raeburn  <raeburn@cujo.cygnus.com>
14267
14268         * libc/include/sys/config.h: Test __m68k__ instead of __m68000__
14269         when determining endianness.
14270         * libc/include/machine/ieeefp.h: Ditto.
14271         * libc/machine/m68k/setjmp.S: Use '&' instead of '#' for immediate
14272         operands.
14273
14274 Fri Apr 14 14:14:29 1995  Doug Evans  <dje@chestnut.cygnus.com>
14275
14276         * libc/include/errno.h (ENOTEMPTY): Define.
14277
14278 Thu Apr  6 12:21:20 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14279
14280         * configure.in (sparc-sun-sunos*): Add -DMALLOC_ALIGNMENT=8 to
14281           target_cflags.
14282
14283         * libc/sys/sun4/Makefile.in (COPYOFILES): Added rem.o, multiply.o,
14284           and umultiply.o.
14285
14286         * libc/stdio/tmpnam.c (worker): Unconditionally increment count
14287           instead of only when open succeeds.  ANSI requires that multiple
14288           calls to tmpnam() result in different files.
14289
14290         * libc/sys/sun4/Makefile.in (COPYRENAMEOFILES): New macro, list of
14291           objects pulled in from /lib/libc.a that must be renamed before
14292           being pulled into newlib.  /lib/libc.a's div.o conflicted with
14293           newlib's file with the same name.
14294
14295         * libc/stdlib/ldiv.c (ldiv): Call labs() instead of abs().
14296
14297         * host/any (CC, AS, AR, RANLIB): Changed so that executables in
14298           the build tree will only be used if the executables are present
14299           (instead of just the Makefiles).
14300
14301         * libc/include/stdlib.h (mblen, mbtowc, wctomb, mbstowcs,
14302           wcstombs): Define.
14303         * libc/stdlib/{mblen.c, mbstowcs.c, wcstombs.c}: New files, null
14304           versions of these functions that I orignally wrote for the
14305           NetBSD C library.
14306         * libc/stdlib/{mbtowc.c, wctomb.c}: Replaced functions with
14307           versions I wrote for NetBSD.
14308
14309 Wed Mar 29 12:42:42 1995  Kung Hsu  <kung@mexican.cygnus.com>
14310
14311         * libc/sys/sparclite/Makefile.in: add crt0.s and make info.
14312         * libc/sys/sparclite/crt0.s: ditto.
14313
14314 Tue Mar 28 20:28:03 1995  Rob Savoye  <rob@rtl.cygnus.com>
14315
14316         * configure.in: Add soft-float for proelf.
14317
14318 Mon Mar 27 12:07:56 1995  Steve Chamberlain  <sac@bang.hack.com>
14319
14320         * libc/stdlib/mprec.h (Bcopy): Copy the right number
14321         of bytes.
14322
14323 Mon Mar 27 11:24:22 1995  Doug Evans  <dje@chestnut.cygnus.com>
14324
14325         * Makefile.in (all): Depend on `force'.
14326         * configure.in (syscall_dir): Renamed from fake_sys_dir.
14327         (libc_syscall_lib): Renamed from libc_fake_sys_lib.
14328         (LIBC_SYSCALL_LIB): Renamed from LIBC_FAKE_SYS_LIB.
14329         * libc/Makefile.in: Likewise.
14330         * libc/include/reent.h: Update syscall references.
14331         (_fcntl_r): Add prototype.
14332         * libc/syscalls/*.c #include <reent.h>.
14333         (*) Call reentrant version if REENTRANT_SYSCALLS_PROVIDED.
14334
14335 Mon Mar 20 16:57:39 1995  Doug Evans  <dje@deneb.cygnus.com>
14336
14337         * libc/include/sys/stat-dj.h (S_ISBLK): Define.
14338         (S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG): Define.
14339         * libc/include/sys/stat.h (stat-dj.h): Include ifdef MSDOS.
14340         (time.h, sys/types.h): Always include (even if MSDOS).
14341         (stat): Fix prototype.
14342
14343 Fri Mar 10 11:30:38 1995  Ian Lance Taylor  <ian@cygnus.com>
14344
14345         * configure.in (i[345]86-*-go32): Compile with -DNO_EXEC.
14346
14347 Mon Feb 27 18:00:39 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
14348
14349         * libc/machine/h8500/psi.S (EXTPSIHI_RN_SN): Ifdef out.
14350
14351 Mon Feb 13 16:10:03 1995  Ian Lance Taylor  <ian@cygnus.com>
14352
14353         * libc/include/regdef.h: New file.
14354         * libc/machine/mips/machine/regdef.h: New file.
14355
14356 Mon Feb  6 15:24:29 1995  Doug Evans  <dje@canuck.cygnus.com>
14357
14358         * libc/sys/sparc64/sys/fcntl.h (open): Add ellipsis.
14359
14360 Fri Jan 27 13:52:10 1995  Steve Chamberlain  <sac@splat>
14361
14362         * libc/sys/sh/crt0.S: Pass main's return to exit.
14363         * libc/sys/sh/trap.S: Put errno in the right place.
14364
14365 Tue Jan 24 18:57:56 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14366
14367         * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Integrate change
14368         from fdlibm 5.2: handle |x| < 3pi/4 more efficiently.
14369         * libm/math/ef_rem_pio2.c: Likewise.
14370         * libm/math/e_log10.c: Remove unused static one.
14371         * libm/math/ef_log10.c: Likewise.
14372         * libm/math/s_frexp.c: Likewise.
14373         * libm/math/sf_frexp.c: Likewise.
14374
14375 Sun Jan 22 21:26:14 1995  Steve Chamberlain  <sac@splat>
14376
14377         * libc/sys/go32/Makefile.in, clock.S, dir.c, setjmp.S, stat.c,
14378         longjmp.S: Upgraded.
14379         * libc/sys/go32/sys/setjmp.h: Upgraded.
14380         * libc/sys/go32/sys/go32.h, dpmi.h: New files.
14381
14382 Fri Jan 20 18:33:18 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14383
14384         * configure.in: Add many entries to multidirs for mips targets.
14385
14386 Wed Jan 18 10:19:25 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
14387
14388         * libm/math/e_jn.c (__ieee754_yn): Integrate change from fdlibm
14389           5.2 which fixes bug where jn(-1,x) is three times larger than
14390           the actual answer.
14391         * libm/math/ef_jn.c (__ieee754_ynf): Likewise.
14392
14393 Sun Jan 15 21:48:58 1995  Steve Chamberlain  <sac@splat>
14394
14395         * libc/sys/w65/sys/syscalls.h: New file
14396         * libc/include/machine/ieeefp.h: W65 support.
14397         * libc/include/sys/config.h: Ditto.
14398         * libc/machine/w65/Makefile.in, cmpsi, divsi3, lshrhi.s, mulsi3.c,
14399         sdivhi3.s, smulhi3.s, udivhi3.s, umodhi3.s: New files.
14400         * libc/sys/w65/Makefile.in, crt0.c, syscalls.c, trap.c: New files.
14401
14402 Wed Jan 11 15:59:01 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14403
14404         * libc/sys/Makefile.in (lib.a, crt0.o): Depend upon subs.
14405
14406 Tue Jan  3 15:57:03 1995  Rob Savoye  <rob@darkstar.cygnus.com>
14407
14408         * Makefile.in, configure.in: Remove any references to the old
14409         "stub" dir.
14410
14411 Thu Dec 22 10:42:08 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14412
14413         * libc/syscalls/sysopen.c: Write _HAVE_STDC version of open, which
14414         uses ... in prototype.
14415
14416
14417 Wed Nov 30 08:39:42 1994  Ian Lance Taylor  <ian@rtl.cygnus.com>
14418
14419         * libc/sys/a29khif/sys/libconfig.h: Remove.
14420         * libc/sys/go32/sys/libconfig.h: Remove.
14421         * libc/sys/sun4/sys/libconfig.h: Remove.
14422         * libc/sys/sysvi386/sys/libconfig.h: Remove.
14423         * libc/sys/sysvnecv70/sys/libconfig.h: Remove.
14424         * libc/sys/sparc64/sys/libconfig.h: Remove.
14425
14426         * libc/include/_ansi.h (_FLOAT_ARG, _FLOAT_RET): Don't define.
14427         * libc/include/sys/config.h (_FLOAT_ARG, _FLOAT_RET): Likewise.
14428         * libc/include/math.h: Change all uses of _FLOAT_RET and
14429         _FLOAT_ARG to float.
14430         * libm/test/math.c: Likewise.
14431         * testsuite/libm.sac/math.c: Likewise.
14432         * testsuite/libm.sac/working/math.c: Likewise.
14433
14434 Wed Nov 23 22:39:28 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14435
14436         * libc/sys/sh/trap.s,crt0.s,setjmp.s: Renamed with .S so that
14437         gcc calls gas with endian option.
14438         * configure.in (sh): Build little endian version too.
14439
14440 Wed Nov 16 18:21:45 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14441
14442         * configure.in: Configure big and little endian versions for MIPS
14443         targets.
14444
14445 Sat Nov 12 21:12:51 1994  Doug Evans  <dje@canuck.cygnus.com>
14446
14447         * libc/include/limits.h: Deleted.
14448         * libc/include/machine/limits.h: Deleted.
14449
14450 Thu Nov 10 15:32:44 1994  Rob Savoye  <rob@rtl.cygnus.com>
14451
14452         * ChangeLog: Remove stub directory. This has all been rewritten
14453         and moved to devo/libgloss.
14454
14455 Thu Sep 29 18:31:04 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
14456
14457         * Makefile.in (dvi): Add to info target, use $@ in sub make.
14458         (docs): Merge into info target.
14459         * libm/Makefile.in (dvi): Add $(srcdir).
14460         * libm/math/Makefile.in (chobjs): Remove underscores from file
14461         names.  Texinfo doesn't like them.
14462         (wacos.def, ...): Add explicit targets for all .def files.
14463         * libm/math/math.tex: Remove underscores from @include file names.
14464         * doc/Makefile.in (dvi): Add dummy target.
14465         * testsuite/Makefile.in (dvi): Add dummy target.
14466
14467 Mon Sep 26 21:17:46 1994  Doug Evans  (dje@canuck.cygnus.com)
14468
14469         * Makefile.in (VERSION): Define.  For net newlib releases.
14470
14471 Thu Sep 22 19:01:26 1994  Doug Evans  (dje@canuck.cygnus.com)
14472
14473         * README: New file.
14474
14475 Mon Sep 19 16:35:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14476
14477         * libc/stdlib/ecvtbuf.c (_gcvt): Undo last change.
14478
14479 Mon Sep 19 11:44:23 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14480
14481         * libc/stdlib/setenv.c (_findenv): Declare.
14482
14483         * libc/include/sys/fcntl.h: Fix declarations of open, creat, and
14484         fcntl to not use _EXFUN, and change string parameters to open and
14485         creat to be ``const char *''.
14486         * libc/sys/sparc64/sys/fcntl.h: Likewise.
14487         * libc/sys/sparc64/creat.c (creat): Make PATH const.
14488         * libc/syscalls/sysopen.c: Include <fcntl.h>.
14489         (open) Make _FILE const.
14490         * libc/sys/z8ksim/glue.c (_open): Make BUF const.
14491         (_creat): Make PATH const.
14492         * libc/sys/h8300hms/syscalls.c (_open): Make PATH const.
14493         * libc/sys/h8500hms/syscalls.c (_open): Likewise.
14494         * libc/sys/m88kbug/syscalls.c (open): Likewise.
14495         * libc/sys/sh/syscalls.c (_open): Likewise.
14496         * stub/shared/glue.c (open): Make BUF const.
14497         * stub/ex93x/syscalls.c (open): Make FILENAME const.
14498
14499 Thu Sep  8 16:39:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
14500
14501         * libc/include/errno.h: Add ENMFILE
14502         * libc/include/sys/config.h: Support Z8000.
14503         * libc/include/sys/signal.h: New signals for go32.
14504         * libc/machine/h8500/psi.S (__addpsir0r0): New function
14505         * libc/machine/h8500/cmpsi.S (__ucmppsi2): New function
14506         * libc/machine/sh/sdivsi3.s (__sdivsi3): Rewritten.
14507         * libc/stdlib/mallocr.c (_morecore_r): Minimum chunk
14508         size is variable, depending upon CHUNK_POWER.
14509         * libc/sys/go32/*.c: Upgrade to new go32 stuff.
14510
14511 Sun Sep  4 17:42:43 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
14512
14513         * libc/stdlib/ecvtbuf.c (_gcvt): Output '-' for negative numbers.
14514
14515 Fri Sep  2 10:56:01 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14516
14517         * libc/include/_ansi.h (_PARAMS): Don't define if already defined.
14518
14519 Wed Aug 24 11:11:03 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14520
14521         * configure.in: Change i[34]86 to i[345]86.
14522
14523         * libc/include/math.h: Don't define HUGE_VAL if it is already
14524         defined.
14525
14526 Wed Aug 17 15:18:02 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14527
14528         * testsuite/libm.sac/test_erfc.c: Correct some result values.
14529         * testsuite/libm.sac/test_gammaf.c: Likewise.
14530         * testsuite/libm.sac/test_sin.c: Likewise.
14531         * testsuite/libm.sac/test_tanh.c: Likewise.
14532
14533 Tue Aug 16 16:12:53 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14534
14535         * libc/include/machine/ieeefp.h: Don't try set endianness if it is
14536         already set.  Define typedefs __int32_t and __uint32_t.
14537         * libc/include/math.h: Include <machine/ieeefp.h>.
14538         (union __dmath): Use __uint32_t.
14539         * libm/math/fdlibm.h, libm/math/*.c: Use __int32_t and __uint32_t
14540         instead of int and unsigned int.
14541
14542 Thu Aug 11 15:16:09 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14543
14544         Replace the math library with the SunPRO fdlibm package.
14545         * libm/math: Completely changed all files.
14546         * libm/ieeefp: Remove contents and directory.
14547         * libm/Makefile.in (LIBM_FP_LIB): Remove.
14548         (SUBDIRS): Just set to math/lib.a.
14549         * libm/libm.texinfo: Updated for new library.
14550         * libc/include/math.h: Extensive changes for new math library.
14551         * libc/include/ieeefp.h (isnanf, isinff, finitef): Change argument
14552         from _FLOAT_ARG to float.
14553         (maxpowtwo, maxpowtwof): Don't declare.
14554         * configure.in (fp_dir): Removed; was always ieeefp anyhow.
14555         (libm_fp_lib): Removed.
14556         * Makefile.in (MATHOBJS_IN_LIBC): Updated with new file names.
14557         * testsuite/libm.paranoia/Makefile.in (check): Correct --srcdir
14558         argument to ${RUNTEST}.
14559         * testsuite/libm.sac/Makefile.in (LOCAL_CFLAGS): Define.
14560         (.c.o): New rule.
14561         (RUNTESTFLAGS): Set CC and CFLAGS.
14562         (TESTS): Remove test_log2 and test_log2f.
14563         (${TESTS}): Pass ${LOCAL_CFLAGS}, not ${CFLAGS}.
14564         * testsuite/libm.sac/math.c (run_vector_1): Use float, not
14565         _FLOAT_ARG, for single precision argument type.
14566         * testsuite/libm.sac/sac.exp: Treat an error in bit 63 as an
14567         expected failure.  Close the input pipe.
14568         * testsuite/libm.sac/test.c (test_sok, test_iok, test_scok):
14569         Correct misspelling of inaccurate.
14570         (test_mok): Use ``inaccurate'', not ``wrong''.
14571         * testsuite/libm.sac/{test_acos.c, test_acosh.c, test_asin.c,
14572         test_asinh.c, test_atan.c, test_atanh.c, test_ceil.c,
14573         test_ceilf.c, test_cos.c, test_cosh.c, test_erf.c, test_erf.c,
14574         test_fabs.c, test_floor.c, test_floorf.c, test_fmod.c,
14575         test_fmodf.c, test_gamma.c, test_log1p.c, test_log1pf.c,
14576         test_yn.c): Correct many result values.  Many are still wrong.
14577
14578         * libc/stdlib/ecvtbuf.c (print_e): If _dtoa_r sets decpt to 9999,
14579         just copy the string.
14580         (_gcvt): Always return the buffer.
14581
14582 Tue Aug  9 13:43:23 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14583
14584         * bcopy.c: fixed documentation, bcopy was not specified by ANSI.
14585
14586 Wed Aug  3 05:39:41 1994  D. V. Henkel-Wallace  (gumby@cygnus.com)
14587
14588         * libc/include/sys/reent.h: (struct _Bigint): add _reclaim
14589         structure.
14590         (struct _reent): add _p5s, _cvtlen, _cvtbuf.
14591         (_reclaim_reent): declare new entry point.
14592         * libc/reent/reent.c (cleanup_glue, _reclaim_reent): new
14593         functions.
14594
14595         * libc/stdlib/mprec.c (Balloc): Keep track of every struct bigint
14596         ever allocated, so that we can later reclaim them all.
14597         (pow5mult): make reentrant.
14598
14599         * libc/stdlib/ecvtbuf.c (fcvtbuf, ecvtbuf): extend these functions
14600         so that when given NULL as a buffer, return a pointer to static
14601         space in the rent structure.  This is not documented behaviour;
14602         it's only to support ecvt and fcvt, which aren't ANSI anyway.
14603         * libc/stdlib/efgcvt.c (fcvt, ecvt) Use new functionality (and
14604         therefore become reentrant).
14605         
14606         * libc/stdlib/dtoastub.c: remove spurious inclusion of mprec.h.
14607
14608 Mon Aug  1 16:52:24 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14609
14610         * libc/include/machine/ieeefp.h: Check _AM29K, not ___AM29K__.
14611
14612 Thu Jul 28 15:40:21 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
14613
14614         * Makefile.in: Make link to libg.a after libc.a; this is needed
14615           for the testsuites to build executables when everything comes
14616           from the tree.
14617
14618 Mon Jun 27 17:14:29 1994  Bill Cox  (bill@rtl.cygnus.com)
14619
14620         * libc/Makefile.in: Add a VERSION variable so we can keep track.
14621         * libm/Makefile.in: Add a VERSION variable so we can keep track.
14622
14623 Wed Jun 22 10:26:00 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
14624
14625         * libc/include/stdio.h: Use __VALIST, not va_list.
14626
14627 Tue May 17 15:43:28 1994  Bill Cox  (bill@rtl.cygnus.com)
14628
14629         * testsuite/config/unix-libm.exp, testsuite/lib/libm.exp,
14630         testsuite/libm.sac/execute.exp:
14631           Replace error proc calls with perror calls.
14632
14633 Wed May 11 09:25:28 1994  Doug Evans  (dje@canuck.cygnus.com)
14634
14635         * libc/include/*.h: #include "_ansi.h" instead of <_ansi.h>.
14636         * libc/include/time.h: #define NULL as 0L.
14637
14638 Mon May  9 18:41:20 1994  Doug Evans  (dje@canuck.cygnus.com)
14639
14640         * host/any (INCLUDES): Delete -I of gcc/include, gcc -B takes
14641         care of it.
14642
14643 Mon May  9 18:39:39 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14644
14645         * libc/include/sys/signal.h: Check for __GO32__, not __i386__ and
14646         not __unix__.
14647
14648 Sat May  7 17:07:36 1994  Steve Chamberlain  (sac@cygnus.com)
14649
14650         * configure.in (TARGET_CFLAGS): Set -O2 as default.
14651         (z8k-*-*): Use syscalls fake sys dir.
14652         * libc/sys/z8k/glue.c: Rename syscalls.
14653         * libc/sys/go32/Makefile.in: Use new routines.
14654         * libc/machine/Makefile.in: Fix typo in ln stuff.
14655
14656 Thu May  5 13:47:48 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14657
14658         * Makefile.in (libm.a, crt0.o): Use cp if ln fails.
14659         * libc/Makefile.in (crt0.o): Likewise.
14660         * libc/machine/Makefile.in (lib.a): Likewise.
14661         * libc/sys/Makefile.in (lib.a, crt0.o): Likewise.
14662
14663         All Makefile.in files: Added mostlyclean, realclean and distclean
14664         targets.
14665
14666         * Makefile.in: Don't bother to unexport XTRAFLAGS or
14667         XTRAFLAGS_FOR_TARGET, since they are no longer passed down from
14668         the top level Makefile.
14669
14670 Tue Apr 26 15:10:34 1994  Doug Evans  (dje@canuck.cygnus.com)
14671
14672         * libc/sys/sparc64/sys/stat.h: New file.
14673         * libc/sys/sparc64/sys/time.h: New file.
14674         * libc/sys/sparc64/sys/types.h: New file.
14675
14676 Fri Apr 22 12:58:24 1994  Stan Shebs  (shebs@andros.cygnus.com)
14677
14678         * stub/ex93x/crt0.s (start): Add code to clear bss.
14679
14680 Wed Apr 13 10:34:58 1994  Doug Evans  (dje@canuck.cygnus.com)
14681
14682         * libc/include/sys/types.h (time_t): Properly protect inside
14683         #ifndef __time_t_defined.
14684
14685         * libc/stdio/fileno.c: New file.
14686         * libc/stdio/Makefile.in (OFILES, CHEWOUT_FILES): Add fileno.
14687         (fileno.o): Add dependency.
14688         * libc/include/stdio.h (__sgetc): Rename never to _never.
14689         (fileno macro): Disable, needs to do CHECK_INIT first.
14690
14691 Mon Apr 11 17:37:09 1994  Bill Cox  (bill@rtl.cygnus.com)
14692
14693         * testsuite/Makefile.in (EXPECT, RUNTEST): Set these for the check
14694         goal.
14695
14696         * testsuite/Makefile.in (check): Set TCL_LIBRARY for runtest.
14697         * testsuite/libm.paranoia/Makefile.in (check): Set TCL_LIBRARY for
14698         runtest.
14699         * testsuite/libm.sac/Makefile.in (check): Set TCL_LIBRARY for
14700         runtest.
14701
14702 Sat Apr  9 16:18:09 1994  Doug Evans  (dje@cygnus.com)
14703
14704         * libc/sys/sparc64/sys/fcntl.h: New file, define solaris versions
14705         of the various constants.
14706
14707 Thu Apr  7 21:19:07 1994  Mark Eichin  (eichin@cygnus.com)
14708
14709         * libc/include/math.h: #ifndef __math_68881 around things which
14710         conflict with the (gcc-provided) inline functions in
14711         gcc/ginclude/math-68881.h.
14712
14713 Thu Apr  7 02:50:43 1994  Doug Evans  (dje@cygnus.com)
14714
14715         * libc/include/_syslist.h (_gettimeofday): Define.
14716         (_times): Ditto.
14717         * libc/include/reent.h: #include <machine/types.h> to get _CLOCK_T_.
14718         (struct tms, timeval, timezone): Declare.
14719         (_gettimeofday_r, _times_r): Declare.
14720         * libc/include/time.h (_CLOCK_T_): Don't #undef.  Remove
14721         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14722         (time_t): Add multiple definition protection, __time_t_defined.
14723         * libc/include/sys/time.h: Don't #include <time.h>.
14724         Always define struct timezone (remove #ifndef _TIME_H_).
14725         * libc/include/sys/times.h (_CLOCK_T_): Don't #undef.  Remove
14726         #ifdef _CLOCK_T_ surrounding definition of clock_t.
14727         * libc/reent/Makefile.in (OFILES): Add timer.o.
14728         (CHEWOUT_FILES): Add timer.def.  Add timer.o/timer.c dependence.
14729         * libc/reent/timer.c: New file.
14730         * libc/time/clock.c: #include <reent.h>.
14731         (clock): Call _times_r instead of times.
14732         * libc/time/time.c (HAVE_GETTIMEOFDAY): Renamed from
14733         HAVE_GET_TIME_OF_DAY.
14734         Add comment regarding supporting OS routine(s) required (for docs).
14735         #include <reent.h>.
14736         (time): Call _gettimeofday_r instead of gettimeofday.
14737         * libc/time/asctime.c: Fix comment regarding supporting OS routines.
14738         * libc/time/ctime.c: Ditto.
14739         * libc/time/strftime.c: Ditto.
14740         * libc/sys/sparc64/Makefile.in (TEMPLATE_SFILES): Remove gettimeofday.
14741         (TEMPLATE_SFILES_R): Define here.  Also define times.
14742         Add times_r.o/times.S dependence.
14743         (time2.c, junk.c): Deleted.
14744         * libc/sys/sparc64/time2.c: Deleted.
14745         * configure.in (sparc64-*-*): Define HAVE_GETTIMEOFDAY.
14746
14747         * libc/stdio/mktemp.c (_getpid_r): Renamed from _getpid.
14748         * libc/stdio/tmpnam.c (_getpid_r): Ditto.
14749         * libc/sys/sparc64/junk.c: Deleted.
14750
14751 Mon Mar 21 16:51:03 1994  Doug Evans  (dje@canuck.cygnus.com)
14752
14753         * libc/sys/sparc64/Makefile.in: Add times syscall.
14754         * libc/sys/sparc64/crt0.S: Handle stack bias at run time so we can
14755         be used with and without it.  Add comment clarifying Medium/Anywhere
14756         model requirements.
14757         * libc/sys/sparc64/sigsetjmp.S (setjmp, longjmp): Add svr4 support.
14758         * libc/sys/sparc64/sys/syscall.h (SYS_times): Define for sunos4
14759         even if obsolete.
14760
14761 Sun Mar 20 15:51:47 1994  Doug Evans  (dje@cygnus.com)
14762
14763         * configure.in (target_cflags): Move init.
14764         (sparc64-*-*): Define HAVE_BLKSIZE.
14765
14766 Wed Mar  9 10:44:52 1994  Doug Evans  (dje@canuck.cygnus.com)
14767
14768         * libc/include/sys/_types.h: New file.
14769         * libc/include/reent.h: #include it.
14770         Add comment describing REENTRANT_SYSCALLS_PROVIDED and
14771         MISSING_SYSCALL_NAMES.
14772         Sort syscalls.
14773         * libc/include/_syslist.h: Remove _raise.
14774         * libc/reent/signalr.c: New file.
14775         * libc/reent/Makefile.in: Compile it.
14776         * libc/signal/signal.c: Only use ifdef SIMULATED_SIGNALS.
14777         Add doc for raise and _raise_r.
14778         * libc/signal/raise.c: Only use ifndef SIMULATED_SIGNALS.
14779         (raise): Call _raise_r.
14780         (_raise_r): Call _getpid_r and _kill_r.
14781         * libc/stdlib/abort.c: Remove inclusion of stdio.h and _syslist.h.
14782         (abort): Loop forever calling raise and _exit.
14783
14784 Mon Mar  7 14:40:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14785
14786         * configure.in: Remove extraneous echo.
14787
14788 Thu Mar  3 12:14:22 1994  Doug Evans  (dje@canuck.cygnus.com)
14789
14790         * libc/sys/sparc64/sys/dirent.h (MAXNAMLEN): #undef to avoid
14791         collision with unistd.h, and fix for svr4.
14792
14793 Wed Mar  2 13:55:25 1994  Doug Evans  (dje@canuck.cygnus.com)
14794
14795         * libc/stdio/local.h (_llicvt): Declare.
14796         (CVT_BUF_SIZE): Define (and buffer size from 512 to 128).
14797         * libc/stdio/cvt.c: Include "local.h" to get CVT_BUF_SIZE.
14798         (_llicvt): Define.
14799         (_sicvt): Fix function header (`value' is short).
14800         * libc/stdio/vfprintf.c (_vfprintf_r): Use CVT_BUF_SIZE.
14801         Add printing of long long's support.
14802         Add printing of 8 byte pointer support.
14803
14804 Fri Feb 11 21:52:11 1994  Steve Chamberlain  (sac@sphagnum.cygnus.com)
14805
14806         * libc/sys/sh/syscalls.c (pipe, execv, wait, fork, utime, chown,
14807         stat, chmod): New hooks. 
14808         (sbrk): Abort if stack and heap collide.
14809         * libc/machine/sh/udivsi3, libc/machine/sh/sdivsi3 Modified to
14810         shortcut when given small args.
14811         * libc/machine/sh/setjmp.s: Rewritten.
14812         * libc/machine/sh/strcmp.s (strcmp): New function takes advantage
14813         of cmp/str instruction.
14814
14815 Wed Feb  9 15:12:35 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14816
14817         * configure.in: Accept powerpc* as a CPU type, using fp_dir ieeefp
14818         and machine_dir powerpc.
14819         * libc/include/machine/setjmp.h, libc/include/machine/ieeefp.h:
14820         Add cases for __powerpc__.
14821         * libc/machine/powerpc/Makefile.in, libc/machine/powerpc/setjmp.S:
14822         New files.
14823
14824         * libc/include/stdio.h (_iprintf_r): Declare correctly.
14825
14826 Thu Jan 27 10:36:27 1994  Steve Chamberlain  (sac@cygnus.com)
14827
14828         * libc/stdlib/callocr.c: New file with _calloc_r in it.
14829         * libc/stdlib/calloc.c (calloc_r): Now in callocr.c
14830
14831 Thu Jan 20 15:14:37 1994  Doug Evans  (dje@canuck.cygnus.com)
14832
14833         * libc/stdlib/ecvtbuf.c (print_f): Remove local "done".
14834         (print_e): More comments to describe args, etc.
14835         "type" arg may now be 'g' or 'G' for %g/G format --> remove
14836         trailing blanks.
14837         (_gcvt): Remove locals decpt, sign, end, p, done.
14838         More comments for print_e invocation.
14839         Pass "type" to print_e as is (g/G).
14840
14841 Wed Jan 19 16:34:18 1994  Rob Savoye  (rob@darkstar.cygnus.com)
14842
14843         * stub/shared/m68k-crt0.S: Changed so it compiles (and runs) on a
14844         stock m68000. 
14845
14846 Mon Jan 17 15:41:53 1994  Doug Evans  (dje@canuck.cygnus.com)
14847
14848         * libc/stdlib/mallocr.c (_morecore_r): Fix aligning of pointer so it
14849         works with any sized pointer, including ones bigger than ints and
14850         longs.
14851
14852 Thu Jan  6 14:53:21 1994  Doug Evans  (dje@canuck.cygnus.com)
14853
14854         * libc/sys/sparc64/{time2.c,utime.S,utime2.c}: New files.
14855
14856 Sat Dec 11 16:17:20 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
14857
14858         * libc/include/stdlib.h (_calloc_r): Add prototype.
14859         * libc/machine/h8500/negsi2.c: New file.
14860         * libc/machine/h8500/divsi3.c: Prevent overflow when dividing v
14861         large unsigned numbers.
14862         * libc/machine/h8500/cmpsi.c: Add cmppsi.
14863         * libc/stdlib/mallocr.c (morecore_r): Fix aligning pointers so it
14864         works when sizeof(size_t) != sizeof(char *).
14865         * libc/stdlib/mprec.c (Balloc): Call calloc rather than malloc to
14866         get play area
14867         * libc/stdlib/mprec.h: Define Just_16 if generating for z8000.
14868
14869 Mon Dec  6 15:59:53 1993  Doug Evans  (dje@rtl.cygnus.com)
14870
14871         * libc/include/assert.h (assert): Handle -traditional.
14872
14873 Tue Nov 16 15:49:24 1993  Mark Eichin  (eichin@cygnus.com)
14874
14875         * Makefile.in: added ; after every "fi" and "done" that wasn't at
14876         the end of a line (ie. anything before a backslash continuation)
14877         so that bash handles them.
14878
14879 Tue Nov 16 12:31:57 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14880
14881         * libc/sys/go32/lstat.s: new file, copied from stat.s and renamed
14882         stat to lstat
14883
14884 Mon Nov 15 15:50:43 1993  Steve Chamberlain  (sac@jonny.cygnus.com)
14885
14886         * libc/sys/sh/crt0.s, libc/sys/sh/trap.s,
14887         libc/machine/sh/sdivsi3.s, libc/machine/sh/setjmp.s,
14888         libc/machine/sh/udivsi3.s: Use new calling convention.
14889
14890 Mon Nov 15 15:25:38 1993  Mark Eichin  (eichin@cygnus.com)
14891
14892         * libc/include/sys/unistd.h, libc/include/sys/stat.h: ANSI-fy
14893         chmod, access, chdir, chown by making _path const. Also fix _amode
14894         param of access.
14895
14896 Fri Nov 12 20:25:28 1993  Mark Eichin  (eichin@cygnus.com)
14897
14898         * libc/sys/a29khif/_tmpnam.s (_tmpnam): renamed function to
14899         _khif_tmpnam, because it doesn't comply with ANSI but may be
14900         useful anyway. Real tmpnam was already in libc/stdio, and was
14901         colliding with this one (pr 2176.) 
14902         * libc/sys/a29khif/stubs.s (tmpnam): removed tmpnam. This file is
14903         the wrong idea anyhow.
14904
14905 Mon Nov  8 07:50:16 1993  Doug Evans  (dje@canuck.cygnus.com)
14906
14907         * configure.in: Remove h8300h, we have multilib now.
14908
14909 Fri Nov  5 12:37:27 1993  Mark Eichin  (eichin@cygnus.com)
14910
14911         * libc/string/strcasecmp.c, libc/string/strncasecmp.c: new
14912         functions, to get preference over the ones in libiberty (since we
14913         provide correct declarations in <string.h>.
14914         * libc/string/Makefile.in: add support for strncasecmp,
14915         strcasecmp.
14916
14917 Fri Nov  5 09:05:45 1993  D. V. Henkel-Wallace  (gumby@blues.cygnus.com)
14918
14919         * Change netware config not to look for cpu explicitly.
14920
14921 Thu Nov  4 14:21:25 1993  Doug Evans  (dje@canuck.cygnus.com)
14922
14923         * libc/sys/sparc64/{creat.c,junk.c}: New files.
14924         * libc/sys/sparc64/Makefile.in: Add dependencies.
14925
14926 Wed Nov  3 10:42:49 1993  Doug Evans  (dje@canuck.cygnus.com)
14927
14928         * configure.in: Clean up v9 a bit, new "os" aoutv8.
14929
14930 Tue Nov  2 10:00:44 1993  D. V. Henkel-Wallace  (gumby@cygnus.com)
14931
14932         * libc/include/sys/reent.h: make structure smaller by allocating
14933         some stuff when needed.
14934         * libc/signal/signal.c: allocate as needed
14935         * libc/stdio/findfp.c,stdio/local.h: ditto
14936         * libc/stdlib/mprec.c: ditto
14937
14938         * libc/time/localtime.c: don't return a dangling stack ptr.
14939
14940 Wed Sep 29 20:42:34 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14941
14942         * stub/mvme135/crt0.S, stub/mvme135/glue.c: Moved to stub/generic.
14943
14944 Wed Sep 29 16:27:49 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14945
14946         * libc/include/stdio.h (__sputc): comment out static inline which
14947           confuses coff toolchains.
14948
14949 Thu Sep  2 16:31:36 1993  Mark Eichin  (eichin@cygnus.com)
14950
14951         * libc/sys/a29khif/{_close.s, _fstat.s, _lseek.s, _sbrk.s,
14952         _write.s, getpid.c, kill.c, read.s}:
14953         * libc/sys/a29khif/stubs.s: eliminated stubs that already go
14954         through the syscalls directory.
14955
14956 Fri Oct 29 13:59:58 1993  Jeffrey Wheat  (cassidy@cygnus.com)
14957
14958         * configure.in: fixed double quote gotcha.
14959
14960 Wed Oct 27 15:27:09 1993  Rob Savoye  (rob@darkstar.cygnus.com)
14961
14962         * stub/ex931: stub library for sparclite board.
14963         * stub/idp: Renamed from mc68ec. Added contructor table
14964         stuff to linker script.
14965         * stub/mvme135: Renamed from m68kmvme. Added contructor table
14966         stuff to linker script.
14967
14968 Tue Oct 26 17:01:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
14969
14970         * configure.in: Configure testsuites only if they exist.
14971
14972 Tue Oct 26 12:37:11 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
14973
14974         * configure.in: Don't set machine_dir for i386 until there is
14975         something in libc/machine/i386 to compile.  For i[34]86-*-netware*
14976         use sys/netware, don't use signal, define NO_EXEC, ABORT_PROVIDED,
14977         CLOCK_PROVIDED and MALLOC_PROVIDED.
14978
14979         * libc/sys/netware: New directory.  Contains simplistic and
14980         probably incorrect stubs for NetWare.  Should be enough to load
14981         the library.
14982         * libc/sys/netware/crt0.c, libc/sys/netware/environ.c,
14983         libc/sys/netware/getpid.c, libc/sys/netware/link.c: New NetWare
14984         stub files.
14985
14986         * libc/reent/execr.c: Don't use if NO_EXEC is defined.
14987         * libc/reent/sbrkr.c: Don't use if MALLOC_PROVIDED is defined.
14988         * libc/stdlib/abort.c: Don't use if ABORT_PROVIDED is defined.
14989         * libc/time/clock.c: Don't use if CLOCK_PROVIDED is defined.
14990
14991 Mon Oct 25 16:48:08 1993  Roland H. Pesch  (pesch@cygnus.com)
14992
14993         * testsuite/Makefile.in: add "docs" dummy target for consistency
14994         with rest of newlib; turn "info" and "install-info" into dummy
14995         targets, since they wouldn't have worked.  (Depended on
14996         nonexistent "doc" subdir.)
14997
14998 Fri Oct 22 20:37:32 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
14999
15000         * configure.in: handle mips* instead of mips
15001
15002 Thu Oct 21 08:57:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15003
15004         * libc/include/sys/dirent.h: New file.  If it is not overridden by
15005         a version of libc/sys/*/sys/dirent.h, it includes the next
15006         <dirent.h> file in case there is one lurking somewhere.
15007
15008 Fri Oct 15 14:17:40 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15009
15010         * libc/stdlib/strtoul.c (_strtoul_r): Several changes for ANSI
15011         compliance, namely: Accept a minus sign.  Consider a single 0 with
15012         a radix of 0 as being a conversion.  Determine overflow correctly.
15013         If an overflow occurs, set *ptr to the end of the number, not the
15014         middle.
15015         * lib/stdlib/strtol.c (_strtol_r): Determine overflow correctly.
15016
15017 Thu Oct 14 21:49:52 1993  Doug Evans  (dje@canuck.cygnus.com)
15018
15019         * libc/machine/h8300/divsi3.S (divmodsi4): Fix h8300h case.
15020
15021 Fri Oct  1 17:17:34 1993  Doug Evans  (dje@canuck.cygnus.com)
15022
15023         * Makefile.in (INSTALL): Use $srcrootpre.
15024         (crt0.o): Replace $< with $(CRT0_DIR)/$(CRT0), Sun make
15025         can't handle it.
15026         * libc/Makefile.in (crt0.o): Spell out $<, Sun make can't handle
15027         it.
15028         * libc/sys/Makefile.in (crt0.o, lib.a): Ditto.
15029         * stub/Makefile.in (crt0.o, TARGETLIB): Ditto.
15030         * libc/sys/sparc64/Makefile.in (isatty.o): Sun VPATH lossage.
15031         * libm/math/Makefile.in (matherr.o): Ditto.
15032
15033 Thu Sep 30 11:09:17 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15034
15035         * configure.in: Build multidirs for z8k.
15036         * libc/include/stdlib.h (_strtoul_r): add prototype.
15037         * libc/include/machine/limits.h: Get INT_MIN right for all the z8k family.
15038         * libc/include/machine/setjmp.h: Add for z8k.
15039         * libc/machine/z8k/{mulsi.o, udivsi3.o, umodsi3.o, modsi3.o} obsolete.
15040         * libc/sys/z8ksim/glue.c: tidy up.
15041
15042 Mon Sep 20 14:04:46 1993  Doug Evans  (dje@canuck.cygnus.com)
15043
15044         * libc/unix/{execl.c execle.c execlp.c execv.c execvp.c}:
15045         New files.  Requires execve system call.
15046         * libc/unix/Makefile.in: Use them.
15047         * libc/sys/sparc64/{execl.c execle.c execlp.c execv.c execvp.c}:
15048         Deleted, moved to libc/unix.
15049         * libc/sys/sparc64/Makefile.in: Remove them.
15050
15051 Mon Sep 20 10:38:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15052
15053         * libc/sys/sparc64/{template.S template_r.S}: New files.
15054         * libc/sys/sparc64/Makefile.in: Build source for trivial syscalls
15055         from templates.
15056         * libc/sys/sparc64/{chdir.S chmod.S close.S dup.S fcntl.S
15057         fork.S fstat.S lseek.S link.S mkdir.S open.S pipe.S read.S rmdir.S
15058         umask.S unlink.S wait4.S write.S}: Removed, now built from
15059         templates.
15060
15061 Sun Sep 19 14:52:57 1993  Doug Evans  (dje@canuck.cygnus.com)
15062
15063         * libc/time/time.c: #include <_ansi.h>.
15064
15065 Sun Sep 19 13:43:25 1993  Doug Evans  (dje@canuck.cygnus.com)
15066
15067         * configure.in (sparc64-*-*): Remove -D__SIZE_TYPE__.
15068
15069 Mon Sep 13 13:52:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15070
15071         * configure.in: match m8* rather than m88k so that m88110 is
15072           recognized as well.
15073
15074 Tue Sep  7 12:19:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15075
15076         * libc/sys/h8300hms/{Makefile.in, _exit.c, misc.c}:
15077         Renamed exit.c to _exit.c to avoid collision with stdlib/exit.c.
15078         misc.c: New file.
15079
15080         * configure.in: Add multilib support to h8300.
15081
15082 Mon Sep  6 14:07:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15083
15084         * libc/stdlib/abort.c (abort): Remove _VOLATILE from return type.
15085         * libc/include/_ansi.h (_ATTRIBUTE): New macro for __attribute__.
15086         * libc/include/stdlib.h (exit, abort): Add noreturn attribute.
15087
15088 Mon Sep  6 14:24:18 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15089
15090         * configure.in: Corrected multidirs for sparc target.
15091
15092 Mon Aug 30 15:56:44 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
15093
15094         Support for building newlib multiple times with different
15095         compilation flags.
15096         * configure.in: Only configure doc at top level.  Set multidirs
15097         when appropriate for target, unless not at top level.  If
15098         multidirs is set, independently configure each subdirectory.
15099         Adjust TOP, MULTIDIRS and MULTISUBDIR appropriately in Makefile.
15100         * Makefile.in (MULTIDIRS, MULTISUBDIR): New variables,
15101         automagically set by configure.in.
15102         (all): If MULTIDIRS is set, build multiple copies of libraries.
15103         (install): If MULTIDIRS is set, install multiple copies of
15104         libraries.  Install in $(tooldir)/lib/$(MULTISUBDIR).  If
15105         MULTISUBDIR is set, don't bother to install header files.
15106         * host/any (INCLUDES, CHEW): Use $(SRCTOP) rather than $(TOP) from
15107         ${srcrootpre}.
15108         * stub/configure.in: Set MULTISUBDIR appropriately.
15109         * stub/Makefile.in (install): Install in
15110         $(tooldir)/lib/$(MULTISUBDIR).
15111         * All Makefile.in files: Define SRCTOP as well as TOP.
15112
15113 Mon Aug 30 10:34:24 1993  Doug Evans  (dje@canuck.cygnus.com)
15114
15115         * libc/machine/h8300/{mulhi3.S, divhi3.S}: Comment out if h8300h.
15116         * libc/machine/h8300/{mulsi3.S, divsi3.S}: Add h8300h support.
15117
15118 Thu Aug 26 19:38:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15119
15120         * libc/sys/h8300hms/exit.c (_exit): New function.
15121
15122 Wed Aug 25 16:31:48 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15123
15124         * configure.in: recognize m88110.
15125
15126 Fri Aug 20 16:46:23 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15127
15128         * libc/sys/m88kbug/crt0.c: pretty up, remove extraneous comments,
15129           prototype main and call with args.
15130
15131 Fri Jul 30 16:52:47 1993  K. Richard Pixley  (rich@cygnus.com)
15132
15133         First real try at system traps for m88k-bug.
15134         * libc/sys/m88kbug/syscalls.c: many changes.  Convert from stubs
15135           to real trap calls.
15136         * libc/sys/m88kbug/sys/systraps.h: new file.
15137
15138 Tue Jul 27 16:31:16 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15139
15140         Patches to fix info building when target does not use sys
15141         directory.
15142         * libc/Makefile.in (targetdep.tex): add sys.tex separately.
15143         * libc/sys.tex, libc/sys/sys.tex: moved from libc/sys/sys.tex to
15144           libc/sys.tex.
15145         * libc/sys/Makefile.in (doc): do nothing.
15146
15147 Mon Jul 26 17:08:11 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15148
15149         * libc/Makefile.in (CRT0): new macro.
15150           (all): depend on $(CRT0) rather than crt0.o.
15151
15152         * configure.in: fix libc_sys_dir -> libc_sys_lib thinko.
15153           do not default crt0, instead, set crt0 and crt0_dir based on
15154           sys_dir and stub_dir.
15155
15156         * Makefile.in (CRT0_DIR): new macro.
15157           (all): depend on $(CRT0) rather than crt0.o which may not exist.
15158           (crt0.o): depend on $(CRT0_DIR)/$(CRT0) rather than simply
15159           $(CRT0).
15160           ($(CRT0)): recur by cd'ing into $(CRT0_DIR).
15161
15162 Sun Jul 25 17:51:51 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15163
15164         * testsuite/lib/libm.exp: 
15165                 added code to support compiling and linking of tests for 
15166                 libm.sac (paranoia to be added next) and processing the 
15167                 pass or failure of the tests.
15168
15169         * testsuite/config/unix-libm.exp:
15170                 platform specific proc's for dealing with compiler, linker
15171                 and the way we execute and process the test results.
15172
15173         * testsuite/libm.sac/execute.exp:
15174                 generic framework for the sac tests. the config and lib 
15175                 expect code for specific platforms tie it all together.
15176
15177         * testsuite/libm.sac/test_is.c:
15178                 changed the output of the test to be consistant with the
15179                 other tests. parsing of pass nad fail messages is now fixed.
15180
15181 Fri Jul 23 19:20:07 1993  Per Bothner  (bothner@kalessin)
15182
15183         * libc/include/{assert.h, ctype.h, dirent.h, errno.h, fastmath.h,
15184         locale.h, math.h, pwd.h, reent.h, setjmp.h, signal.h, stdio.h,
15185         stdlib.h, string.h, termios.h, time.h, utime.h, utmp.h}: For C++:
15186         #ifdef __cplusplus, surround by extern ""C { ... }.
15187         * libc/include/assert.h:  Do *not* protect assert.h against
15188         multiple inclusion!  Also, #undef it before #define, to allow
15189         redefinition.
15190         * libc/include/stdio.h (getlogin, cuserid):  Removed.  These
15191         should be only in unistd.h.
15192
15193         * libc/include/sys/{fcntl.h, reent.h, stat.h, time.h, times.h,
15194         unistd.h}: For C++: #ifdef __cplusplus, surround by extern ""C {
15195         ... }.
15196
15197 Fri Jul 23 10:15:33 1993  Doug Evans  (dje@canuck.cygnus.com)
15198
15199         * libc/machine/sparc/Makefile.in: Must create a library, even
15200         if empty.
15201
15202 Wed Jul 21 16:00:37 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15203
15204         * configure.in: set machine_dir for m88k.  edit crt0 definition
15205           into makefiles.
15206
15207         * Makefile.in, libc/Makefile.in (crt0): pull up from lower directories.
15208
15209         * libc/Makefile.in (all): also build crt0.o.
15210
15211         * libc/machine/i386/Makefile.in, libc/machine/sparc/Makefile.in,
15212           libc/machine/z8k/Makefile.in, libm/Makefile.in (clean): no need
15213           to remove CRT0.
15214
15215         * libc/machine/m88k/Makefile.in (TOP, TARGETLIB): removed.
15216           (all): reworked to build in place.
15217           (clean): remove lib.a
15218           (Makefile): remove redundant ./, call $(SHELL) rather than sh.
15219
15220         * libc/sys/m88kbug/crt0.c (start): renamed to _start.
15221           (_start): key off edata rather than _start_bss.
15222
15223 Wed Jul 21 14:29:47 1993  david d `zoo' zuhn  (zoo@cygnus.com)
15224
15225         * libc/include/sys/unistd.h, libc/include/reent.h,
15226         libc/reent/sbrkr.c: change sbrk to return void* instead of char*.
15227
15228 Tue Jul 20 13:19:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15229
15230         * libm/Makefile.in, libc/Makefile.in ($(SUBDIRS)): dollar escape a dollar sign.
15231
15232         * Makefile.in (libc.a): break into two rules, one for libc.a and
15233           one for libc/libc.a.  Force subdirs current before rebuilding
15234           library.
15235           (libm.a): break into two rules, one for libm.a and one for
15236           libm/libm.a.  Force subdirs current before rebuilding library.
15237
15238         * libc/Makefile.in (SUBLIBS): fix typo.
15239
15240         * libc/sys/Makefile.in (all): force descent into subdirs, then
15241           rebuild library iff out of of date.
15242
15243 Fri Jul 16 17:47:57 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
15244
15245         Rework so that library is built and then finished rather than
15246         being built on each invocation of make.
15247
15248         * host/any (machine_dir, sys_dir, signal_dir): these are not
15249           shared and have been moved to their associated Makefile.in's.
15250           (AR_FLAGS): switch to qc which is faster.
15251         * configure.in: no longer assign machine_dir for m88k.  set
15252           stub_dir, stub_lib, & crt0 for m68k*-unknown-{aout,coff}.  If
15253           stub_dir set, then add to configdirs.  add comment about silly
15254           configuration.
15255           (configdirs): drop stub.  It will be added only
15256           when needed.
15257           (libm_fp_lib, libc_unix_lib, libc_signal_lib, libc_machine_lib,
15258           libc_sys_dir, fake_sys_dir, libc_fake_sys_lib, stub_dir,
15259           stub_lib, crt0): new variables for tailoring lower level
15260           makefiles.  Assign accordingly and edit into makefiles.
15261         * libm/Makefile.in: updated copyright.
15262           (TARGETLIB): removed.
15263           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir.
15264           (SUBDIRS): removed TARGETDEP_DIRS.
15265           (LIBM_FP_LIB, SUBLIBS): new macros.
15266           (all): reworked.
15267           (force): new target to force rebuilds.
15268           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15269         * libc/sys/a29khif/Makefile.in, libc/sys/decstation/Makefile.in,
15270           libc/sys/go32/Makefile.in, libc/sys/h8300hms/Makefile.in,
15271           libc/sys/h8500hms/Makefile.in, libc/sys/m88kbug/Makefile.in,
15272           libc/sys/sh/Makefile.in, libc/sys/sparc64/Makefile.in,
15273           libc/sys/sun4/Makefile.in, libc/sys/sysvi386/Makefile.in,
15274           libc/sys/sysvnecv70/Makefile.in, libc/sys/z8ksim/Makefile.in,
15275           stub/m68kmvme/Makefile.in: updated copyright.
15276           (TARGETLIB, TARGETCRT0, CRT0): macros removed.
15277           (all): reworked.  made this the default rule.
15278           (clean): also remove lib.a.
15279           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15280         * stub/Makefile.in: updated copyright.
15281           (TARGETLIB, TARGETCRT0, CRT0, TOP): removed.
15282           (stub_lib): new macro.
15283           (FLAGS_TO_PASS): removed TARGETLIB, stub_dir, TARGETCRT0.  Added
15284           RANLIB.
15285           (all): reworked.
15286           (clean, install): assume stub_dir exists.
15287           (Makefile): depend on configure.in.  call $(SHELL) rather than
15288           sh.  drop redundant ./
15289         * stub/configure.in (stublib): new macro, assign it, edit it into
15290           makefiles.
15291         * Makefile, libc/Makefile.in, doc/Makefile.in, libc/sys/Makefile.in:
15292           updated copyright.
15293           (all): reworked.
15294           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15295         * libc/Makefile.in (TARGETCRT0): removed.
15296           (FLAGS_TO_PASS): dropped TARGETLIB, machine_dir, sys_dir,
15297           TARGETCRT0.
15298           (SUBDIRS): drop TARGETDEP_DIRS.
15299           (LIBC_SIGNAL_LIB, LIBC_SYS_LIB, LIBC_MACHINE_LIB, LIBC_UNIX_LIB,
15300           LIBC_FAKE_SYS_LIB, SUBLIBS): new macros for configuration.
15301           (force): new target to force rebuilds.
15302         * libc/sys/Makefile.in (TARGETCRT0, sys_dir): removed.
15303           (FLAGS_TO_PASS): TARGETLIB, machine_dir, sys_dir, TARGETCRT0
15304           removed.
15305           (clean): assume sys_dir always exists.
15306         * libm/test/Makefile.in (Makefile): call $(SHELL) rather than sh.
15307           drop redundant ./
15308         * libc/ctype/Makefile.in, libc/errno/Makefile.in,
15309           libc/locale/Makefile.in, libc/machine/Makefile.in,
15310           libc/machine/a29k/Makefile.in, libc/machine/h8300/Makefile.in,
15311           libc/machine/h8500/Makefile.in, libc/machine/i386/Makefile.in,
15312           libc/machine/i960/Makefile.in, libc/machine/m68k/Makefile.in,
15313           libc/machine/mips/Makefile.in, libc/machine/necv70/Makefile.in,
15314           libc/machine/sh/Makefile.in, libc/machine/sparc/Makefile.in,
15315           libc/machine/z8k/Makefile.in, libc/reent/Makefile.in,
15316           libc/signal/Makefile.in, libc/stdio/Makefile.in,
15317           libc/stdlib/Makefile.in, libc/string/Makefile.in,
15318           libc/sys/Makefile.in, libc/syscalls/Makefile.in,
15319           libc/time/Makefile.in, libc/unix/Makefile.in,
15320           libm/ieeefp/Makefile.in, libm/math/Makefile.in: updated copyright.
15321           (TARGETLIB): removed.
15322           (all): reworked.
15323           (clean): also remove lib.a.
15324           (Makefile): call $(SHELL) rather than sh.  drop redundant ./
15325         * Makefile.in: (machine_dir, sys_dir, stub_dir, stub_lib, CRT0):
15326           new macros.
15327           (SUBDIRS): moved to follow frag inclusion, change stub to
15328           stub_dir.
15329           (FLAGS_TO_PASS): removed machine_dir, sys_dir, signal_dir which
15330           are now set in the libc Makefile.
15331         * libc/machine/Makefile.in (TARGETCRT0, machine_dir): removed.
15332           (FLAGS_TO_PASS): removed TARGETLIB, machine_dir, sys_dir,
15333           TARGETCRT0.
15334           (force): new target to force rebuilds.
15335         * stub/configure.in: determine and set stub_lib for for Makefile.
15336
15337 Thu Jul 15 12:01:27 1993  Doug Evans  (dje@canuck.cygnus.com)
15338
15339         * libc/sys/h8300hms/Makefile.in: Make `all' the default target.
15340         crt0.s renamed to crt0.S.
15341         * libc/sys/h8300hms/crt0.S: Add h8/300h support.
15342
15343         * libc/machine/h8300/Makefile.in: Make `all' the default target.
15344         * libc/machine/h8300/{cmpsi.S,ucmpsi.S}: #ifdef out entire file if
15345         h8300h.
15346         * libc/machine/h8300/defines.h: Add macros to handle pointers for
15347         h8300 (16 bits) and h8300h (32 bits).
15348         * libc/machine/h8300/{divsi3.S,mulsi3.S,memcpy.S,memset.S,
15349         reg_memcpy.S,reg_memset.S,strcmp.S}: Add h8300h support.
15350
15351 Thu Jul 15 10:13:29 1993  Ian Lance Taylor  (ian@cygnus.com)
15352
15353         * libc/machine/m88k/setjmp.S, Makefile.in: New files; a simple
15354         implementation of setjmp and longjmp for the m88k.
15355         * libc/include/machine/setjmp.h: Added __m88000__ case.
15356
15357 Wed Jul 14 10:10:30 1993  Doug Evans  (dje@canuck.cygnus.com)
15358
15359         * configure.in: Recognize h8300h as variant of h8300.
15360
15361 Tue Jul 13 12:24:11 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15362
15363         * libc/include/sys/unistd.h (read, write): get prototypes right.
15364         (sbrk): New prototype.
15365         * libc/reent/sbrkr.c (sbrkr): Use correct sbrk prototype.
15366         * libc/stdio/local.h: Include unistd.h.
15367         * libc/machine/h8300/syscalls.c: Names have changed.
15368
15369 Mon Jul 12 18:08:42 1993  K. Richard Pixley  (rich@cygnus.com)
15370
15371         * configure.in: add sys_dir assignment for m88k-bug.
15372
15373 Thu Jul  8 09:16:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15374
15375         * libc/sys/sparc64/sys/syscallasm.h: New macros to handle either
15376         a.out or elf.
15377         * libc/sys/sparc64: all *.S files: Use new macros.
15378         * libc/sys/sparc64/isatty.c: New file.
15379         * libc/sys/sparc64/Makefile.in: Stop using /lib/libc.a for
15380         functions beyond what newlib provides.
15381
15382 Thu Jul  8 09:11:28 1993  Doug Evans  (dje@canuck.cygnus.com)
15383
15384         * libc/include/sys/stat.h: Move st_atime so not doubly defined for
15385         svr4.
15386
15387 Thu Jul  8 09:09:16 1993  Doug Evans  (dje@canuck.cygnus.com)
15388
15389         * libc/include/machine/ieeefp.h: Add support for h8/300h.
15390
15391 Fri Jul  2 10:11:20 1993  K. Richard Pixley  (rich@cygnus.com)
15392
15393         * configure.in: add m88k.
15394         * libc/include/machine/ieeefp.h: add case for m88k.  Also add
15395         sanity check so no one else need ever chase what I did to find
15396         this.
15397
15398         * libm/math/Makefile.in (FAKEC): added atanf.c log1pf.c scalbnf.c.
15399
15400 Fri Jul  2 09:15:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15401
15402         * doc/makedoc.c: Include <ctype.h>.
15403
15404 Wed Jun 30 09:35:06 1993  Doug Evans  (dje@canuck.cygnus.com)
15405
15406         * libc/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15407         * libc/sys/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15408         * libc/machine/Makefile.in (FLAGS_TO_PASS): Add TARGET_ASFLAGS.
15409
15410         * libm/test/Makefile.in (all): Link with ../../lib[cm].a.
15411
15412 Sun Jun 27 17:05:20 1993  Doug Evans  (dje@sphagnum.cygnus.com)
15413
15414         * libc/include/errno.h (ENOSYS): Added.
15415
15416         * libc/unix/getpwd.c (getcwd): Fix typo (_up -> up).
15417
15418 Mon Jun 21 09:03:32 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
15419
15420         * libc/stdio/fflush.c (fflush): Check for reent struct
15421         initialization.
15422         * libc/stdio/fdopen.c (fdopen): Avoid namespace conflict.
15423
15424 Fri Jun 18 16:06:05 1993  Mark Eichin  (eichin@rtl.cygnus.com)
15425
15426         * libc/stdlib/dtoastub.c: new file -- move user callable "dtoa"
15427         out of dtoa.c so it doesn't pollute the namespace.
15428         * libc/include/_syslist.h: new file -- mappings from _function to
15429         function, for systems where we can't win (by default, all of them,
15430         until we start updating system calls.)
15431         * libc/syscalls: new directory -- stubs for exporting _function
15432         names as unmodified function names.
15433         * libc/configure.in: add MISSING_SYSCALL_NAMES to enable
15434         _syslist.h on all platforms by default, but put hooks in for
15435         fake_sys_dir so we can include it when we've renamed the system
15436         calls.
15437         * libc/reent/execr.c libc/reent/filer.c libc/reent/fstatr.c
15438         libc/reent/linkr.c libc/reent/sbrkr.c libc/reent/statr.c
15439         libc/signal/raise.c libc/signal/signal.c libc/stdio/fdopen.c
15440         libc/stdio/mktemp.c libc/stdio/tmpnam.c libc/stdlib/abort.c
15441         libc/stdlib/system.c libc/unix/getcwd.c libc/unix/getlogin.c
15442         libc/unix/getpass.c libc/unix/getut.c libc/unix/ttyname.c: change
15443         non ANSI functions to call _function.
15444
15445 Wed Jun  9 09:48:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15446
15447         * libc/stdlib/strtoul.c (_strtoul_r): Handle leading 0 correctly
15448         when base 16 is specified.  Don't accept non-digits if radix > 10.
15449
15450 Thu Jun  3 10:01:15 1993  Doug Evans  (dje@canuck.cygnus.com)
15451
15452         * libc/include/math.h: Rename xxx_r fns to _xxx_r.
15453
15454 Wed Jun  2 16:54:16 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15455
15456         * libc/include/sys/stat.h: Surround text after #endif with
15457         comments.
15458
15459 Wed Jun  2 12:47:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15460
15461         * libc/stdlib/mallocr.c: If MALLOC_PROVIDED is defined, just make
15462         _malloc_r, _realloc_r, and free_r call the corresponding
15463         non-reentrant functions.
15464
15465         * libm/math/modf.c (modf): We now take the address of ipart, so
15466         don't make it a register variable.
15467
15468 Tue Jun  1 18:25:54 1993  Doug Evans  (dje@canuck.cygnus.com)
15469
15470         * libm/math/*: Rename all xxx_r fns to _xxx_r.
15471
15472 Wed May 26 22:06:35 1993  Roland H. Pesch  (pesch@cygnus.com)
15473
15474         * libc/libc.texinfo and embedded docn throughout: formatting
15475         improvements, minor rephrasing for clarity, and improved
15476         reentrancy docn.
15477
15478 Sun May 23 17:29:49 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15479
15480         * libm/ieeefp/infinity.c (maxpowtwof): Fix initialzation bug.
15481
15482         * libc/stdio/cvt.c (_licvt): Print the right value on machines
15483         where sizeof(int) != sizeof(long).
15484
15485 Fri May 21 22:09:32 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15486
15487         * libc/reent/execr.c, libc/reent/filer.c, libc/reent/linkr.c,
15488         libc/reent/sbrkr.c, libc/reent/statr.c, libc/stdio/tmpnam.c,
15489         libc/stdlib/atol.c, libc/stdlib/rand.c, libc/string/strpbrk.c,
15490         libc/string/strspn.c, libm/ieeefp/isnan.c, libm/math/bessel.c,
15491         libm/math/matherr.c: changes for better docn formatting (info).
15492
15493         * libc/libc.texinfo, libc/ctype/ctype.tex, libc/locale/locale/tex,
15494         libc/reent/reent.tex, libc/signal/signal.tex,
15495         libc/stdio/stdio.tex, libc/stdlib/stdlib.tex,
15496         libc/string/strings.tex, libc/sys/sys.tex, libc/time/time.tex,
15497         libm/libm.texinfo, libm/ieeefp/ieeefp.tex, libm/math/math.tex: use
15498         makeinfo node defaulting to get better Info file node structure.
15499         (Requires recent sac change to doc/makedoc.c and doc/doc.str.)
15500         Also include a few formerly missing sections (subroutines).
15501
15502         * doc/doc.str: delete fossil expansion for "func"
15503
15504         * default.menu, no-signal.menu: delete.
15505
15506         * Makefile.in, libc/Makefile.in, configure.in, host/any: simplify
15507         method used to adjust doc for missing "signals" chapter when 
15508         signal_dir is empty.
15509
15510 Thu May 20 21:38:37 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15511
15512         * configure.in: added testsuite/libm.sac
15513
15514 Wed May 19 14:52:34 1993  Doug Evans  (dje@thepub.cygnus.com)
15515
15516         * libc/sys/sparc64/crt0.S: Set %g4 to 0 (to test Medium/Anywhere
15517         code model).
15518
15519 Tue May 18 13:17:21 1993  Ian Lance Taylor  (ian@cygnus.com)
15520
15521         * libm/Makefile.in: Use $(MAKE) rather than make, and define
15522         MAKEOVERRIDES to be empty.
15523
15524 Mon May 17 08:42:44 1993  Ian Lance Taylor  (ian@cygnus.com)
15525
15526         * configure.in: Don't build mips-*-* with -msoft-float, since that
15527         makes it incompatible with hard floating point.
15528
15529 Mon May 17 00:03:35 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15530
15531         * Makefile.in: added recursive 'make check'
15532
15533 Thu May 13 16:24:18 MDT 1993  Jeffrey Wheat  (cassidy@cygnus.com)
15534
15535         * configure.in: added ./testsuite ./testsuite/libm.paranoia
15536         * ./testsuite/Makefile.in: created
15537         * ./testsuite/libm.paranoia: paranoia tests added
15538
15539 Thu May 13 10:30:24 1993  Ian Lance Taylor  (ian@cygnus.com)
15540
15541         * configure.in: For mips-*-* set machine_dir to mips.
15542
15543         * libc/machine/mips: New directory.
15544         * libc/machine/mips/Makefile.in: New file.
15545         * libc/machine/mips/setjmp.S: New file; simplistic MIPS version of
15546         setjmp and longjmp.
15547         * libc/include/machine/setjmp.h: Added __mips__ case.
15548
15549         * libc/machine/lmips: Removed unused and useless directory.
15550
15551 Mon May  3 10:22:31 1993  Ian Lance Taylor  (ian@cygnus.com)
15552
15553         * configure.in: Accept i486-*-sco* as well as i386-*-sco*.
15554
15555 Thu Apr 15 15:16:44 1993  Doug Evans  (dje@canuck.cygnus.com)
15556
15557         * libc/sys/sparc64/crt0.S: Add comment (%g1 contains atexit arg at
15558         start up).
15559
15560 Fri Apr  9 13:32:26 1993  Ian Lance Taylor  (ian@cygnus.com)
15561
15562         * libc/include/machine/setjmp-dj.h: Use _SETJMP_DJ_H rather than
15563         SETJMP_H.
15564
15565 Thu Apr  8 10:07:18 1993  Doug Evans  (dje@canuck.cygnus.com)
15566
15567         * libm/test/convert.c: structure member errno -> errno_val.
15568         Must include <errno.h> to use errno, it's a macro now.
15569         * libm/test/math.c: Ditto.
15570         * libm/test/math2.c: Include errno.h.
15571         * libm/test/string.c: Ditto.
15572         * libm/test/test.h: structure member errno -> errno_val.
15573         Remove extern int errno decl.
15574
15575 Thu Apr  8 07:56:33 1993  Ian Lance Taylor  (ian@cygnus.com)
15576
15577         * libc/stdio/Makefile.in: Added dependencies on local header
15578         files.
15579         * libc/stdio/std.h, libc/stdio/vfprintf.h: Removed unused header
15580         files.
15581
15582 Wed Apr  7 16:19:32 1993  Ian Lance Taylor  (ian@cygnus.com)
15583
15584         * libc/include/machine/ieeefp.h: Added __MIPSEB__ case.
15585
15586 Wed Apr  7 10:55:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15587
15588         * libc/stdio/siprintf.c libc/stdio/sscanf.c libc/stdio/vsprintf.c:
15589         Initialize _data.
15590
15591         * libc/stdio/vfprintf.c: No need to declare _icvt, _licvt, _sicvt.
15592         * libc/stdio/local.h: Add prototype for _licvt.
15593
15594         * libc/stdio/ungetc.c (__submore): Use _malloc_r,_realloc_r
15595         instead of malloc,reealloc.
15596
15597         * libc/stdlib/local.h: New file.
15598         * libc/stdlib/efgcvt.c: #include local.h.
15599         (gcvt): Fix call to _gcvt.
15600         * libc/stdlib/ecvtbuf.c: #include local.h.
15601
15602         * libc/stdlib/Makefile.in: new files mallocr.c mstats.c.
15603         * libc/stdlib/mallocr.c mstats.c malloc.h: New files.
15604         * libc/stdlib/malloc.c: main routines moved to mallocr.c.
15605
15606         * libc/stdlib/atexit.c: moved global data to struct _reent.
15607         * libc/stdlib/exit.c: use struct _atexit in struct _reent.
15608
15609         * libc/reent/reent.c (inpure_data): _REENT_INIT macro modified.
15610
15611 Wed Apr  7 09:41:50 1993  Doug Evans  (dje@canuck.cygnus.com)
15612
15613         * libc/include/sys/reent.h: Stuff required by ANSI headers moved
15614         here from ../reent.h.
15615
15616 Tue Apr  6 12:56:01 1993  Ian Lance Taylor  (ian@cygnus.com)
15617
15618         * Makefile.in (MATHOBJS_IN_LIBC): List of object files which
15619         should be provided in both libc.a and libm.a.
15620         (libc.a): Depend on targ-include and libm.a.  Copy
15621         $(MATHOBJS_IN_LIBC) from libm.a to libc.a.
15622         (libm.a): Depend on targ-include.
15623         * configure.in (subdirs): Removed libc/math.
15624
15625 Mon Apr  5 10:18:16 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15626
15627         * libm/ieeefp/infinity.c (maxpowtwo): Fix initialization bug.
15628
15629 Sat Apr  3 11:06:07 1993  Doug Evans  (dje@canuck.cygnus.com)
15630
15631         * libc/include/{errno.h, math.h, stdio.h, stdlib.h}: Use
15632         sys/reent.h instead of reent.h.
15633         * libc/include/reent.h: Split into two parts: stuff needed by ANSI
15634         headers moved to sys/reent.h.  
15635         * libc/include/signal.h: _MAX_SIGNALS moved to sys/signal.h.
15636         * libc/include/sys/signal.h: Define _MAX_SIGNALS if
15637         __need__MAX_SIGNALS defined.
15638         * libc/include/stdio.h: struct __sFILE moved to sys/reent.h.
15639         std{in,out,err} refer to new _std{in,out,err} members.
15640
15641 Fri Apr  2 11:27:12 1993  Doug Evans  (dje@canuck.cygnus.com)
15642
15643         * libc/include/sys/signal.h: #define _SYS_SIGNAL_H for general
15644         case.
15645
15646 Fri Apr  2 09:41:10 1993  Doug Evans  (dje@canuck.cygnus.com)
15647
15648         * libc/sys/sparc64/execve.S (execve): Insert nop in delay slot,
15649         rather than whatever macro seterrno() has.
15650
15651 Thu Apr  1 16:47:08 1993  Doug Evans  (dje@canuck.cygnus.com)
15652
15653         * libc/locale/locale.c: Reentrant routines _r_xxx renamed to
15654         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15655
15656         * libc/include/machine/fastmath.h: Use _HAVE_STDC instead of
15657         __STDC__.
15658
15659         * libc/reent/{execr.c, filer.c, fstatr.c, linkr.c, reent.c,
15660         reent.tex, sbrkr.c, statr.c}: _r_xxx reentrant routines renamed to
15661         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15662
15663         * libc/signal/signal.c: Reentrant routines _r_xxx renamed to
15664         _xxx_r.  struct reent_struct renamed to struct _reent for ANSI.
15665
15666         * libc/stdio/{fclose.c, fdopen.c, findfp.c, fiprintf.c, flags.c,
15667         fopen.c, fprintf.c, freopen.c, fscanf.c, fseek.c, ftell.c,
15668         fwalk.c, getchar.c, gets.c, iprintf.c, local.h, makebuf.c,
15669         mktemp.c, perror.c, printf.c, putchar.c, puts.c, refill.c,
15670         remove.c, rename.c, scanf.c, setvbuf.c, siprintf.c, sprintf.c,
15671         sscanf.c, stdio.c, tmpfile.c, tmpnam.c, vfprintf.c, vfprintf.h,
15672         vfscanf.c, vprintf.c, vsprintf.c}: Reentrant routines _r_xxx
15673         renamed to _xxx_r.  struct reent_struct renamed to struct _reent
15674         for ANSI.  structure members given leading "_" for ANSI.  Use
15675         _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15676
15677         * libc/stdlib/{__adjust.c, calloc.c, dtoa.c, ecvtbuf.c, malloc.c,
15678         mprec.c, mprec.h, rand.c, std.h, strtod.c, strtol.c, strtoul.c,
15679         system.c}: Reentrant routines _r_xxx renamed to _xxx_r.  struct
15680         reent_struct renamed to struct _reent for ANSI.
15681         Structure members given leading "_" for ANSI.
15682         _CONST --> const in prototypes.
15683         Use _HAVE_STDC instead of __STDC__.
15684
15685         * libc/string/strtok.c: Reentrant routines _r_xxx renamed to
15686         _xxx_r.
15687         struct reent_struct renamed to struct _reent for ANSI.
15688         Structure members given leading "_" for ANSI.
15689
15690         * libc/time/asctime.c: Reentrant routines _r_xxx renamed to
15691         _xxx_r.
15692         struct reent_struct renamed to struct _reent for ANSI.
15693
15694         * libm/math/{acos.h, acosh.h, asin.c, asinh.h, atanh.h, bessel.h,
15695         cbrt.h, cosh.h, erf.c, erf.h, error.c, exp.c, fmod.c, frexp.h,
15696         gamma.h, hypot.h, ldexp.c, log.h, log10.c, log1p.c log2.c,
15697         mathimpl.h, pow.c, remainder.c, sincos.c, sinh.h, sqrt.h, tan.c,
15698         tanh.h}: struct reent_struct renamed to struct _reent for ANSI.
15699
15700         * libc/include/{_ansi.h, ctype.h, math.h, reent.h, locale.h,
15701         signal.h, stdio.h, stdlib.h, string.h, time.h}:
15702         Use _HAVE_STDC instead of __STDC__ and _HAVE_STDARG.
15703         #ifndef _STRICT_ANSI non-ANSI routines.
15704         Reentrant routines renamed from _r_xxx to _xxx_r.
15705         No need to use _STRICT_ANSI on _xxx_r reentrant routines.
15706         Use _STRICT_ANSI instead of __STRICT_ANSI, _ANSI_SOURCE, etc.
15707         Clean up namespace (structure members have leading "_").
15708         struct reent_struct renamed to struct _reent for ANSI compliance.
15709         _CONST --> const in function prototypes.
15710
15711         * libc/include/string.h: Add NULL and size_t.
15712
15713         * libc/sys/sparc64/Makefile.in: New syscall routines for link,
15714         unlink, wait, wait4. Reentrant syscall routines close, fork,
15715         fstat, link, lseek, open, read, sbrk, stat, unlink, wait, wait4,
15716         write.
15717         * libc/sys/sparc64/cerror.S (cerror_r): New routine.
15718         * libc/sys/sparc64/{close.S, fork.S, fstat.S, link.S, lseek.S,
15719         open.S, read.S, sbrk.S, stat.S, unlink.S, wait.S, wait4.S,
15720         write.S}: Define reentrant versions.
15721         * libc/sys/sparc64/sys/syscallasm.h (defsyscall_r): New macro for
15722         reentrant syscalls.
15723
15724         * libc/sys/sparc64/crt0.S (start): Fix initialization of environ.
15725
15726         * libc/include/stdlib.h (RAND_MAX): Fix value.
15727
15728 Thu Apr  1 12:28:30 1993  Ian Lance Taylor  (ian@cygnus.com)
15729
15730         * libc/sys/a29khif/_main.c: Removed unnecessary file.
15731         * libc/sys/a29khif/Makefile.in (OFILES): Removed _main.c, moved
15732         VPATH support targets after all: target.
15733
15734         * stub/mvme135/mvme.S: Renamed exceptionhandler to
15735         exceptionHandler, which is what mvme135-stub.c expects.
15736
15737 Wed Mar 31 17:42:03 1993  Doug Evans  (dje@cygnus.com)
15738
15739         * libc/stdio/tmpnam.c (worker): Fix test for _r_open() failure.
15740
15741         * libc/unix/getpass.c (getpass): Use stdin,stderr instead of
15742         def_stdin/def_stderr (latter removed from stdio.h to make it ANSI
15743         compliant).
15744
15745 Tue Mar 30 09:58:21 1993  Doug Evans  (dje@canuck.cygnus.com)
15746
15747         * libc/reent/execr.c (_r_wait): Re-order args to make reent_struct
15748         first.
15749         libc/reent/filer.c (_r_open, _r_close, _r_lseek, _r_read,
15750         _r_write): Ditto.
15751         libc/reent/fstatr.c (_r_fstat): Ditto.
15752         libc/reent/linkr.c (_r_link, _r_unlink): Ditto.
15753         libc/reent/sbrkr.c (_r_sbrk): Ditto.
15754         libc/reent/statr.c (_r_stat): Ditto.
15755
15756         * libc/stdio/fopen.c (_r_fopen): Re-order args to _r_open.
15757         * libc/stdio/freopen.c (freopen): Ditto for _r_open, _r_free.
15758         * libc/stdio/fseek.c (fseek): Ditto for _r_fseek.
15759         * libc/stdio/makebuf.c (__smakebuf): Ditto for _r_fstat.
15760         * libc/stdio/mktemp.c (_gettemp): Ditto for _r_stat, _r_open.
15761         * libc/stdio/remove.c (_r_remove): Ditto for _r_unlink.
15762         * libc/stdio/rename.c (_r_rename): Ditto for _r_link, _r_unlink.
15763         * libc/stdio/stdio.c (__sread): Ditto for _r_read.
15764         (__swrite): Ditto for _r_lseek, _r_write.
15765         (__sseek): Ditto for _r_lseek.
15766         (__close): Ditto for _r_close.
15767         * libc/stdio/tmpnam.c (worker): Ditto for _r_open, _r_close.
15768
15769         * libc/stdlib/malloc.c (_r_morecore): Re-order args to _r_sbrk.
15770         * libc/stdlib/system.c (_r_system): Ditto for _r_wait.
15771
15772         * libc/include/reent.h: Re-order arguments to _r_xxx syscall fns
15773         to make reent_struct the first argument (and thus consistent with
15774         the rest of newlib).
15775
15776         * stub/mvme135/mvme135-stub.c (initializeRemcomErrorFrame): Remove
15777         reference to __STDC__.
15778
15779 Mon Mar 29 12:34:32 1993  Doug Evans  (dje@canuck.cygnus.com)
15780
15781         * libc/stdlib/exit.c (exit): Use _REENT->__cleanup instead of
15782         global __cleanup.
15783
15784 Wed Mar 24 11:54:35 1993  Doug Evans  (dje@canuck.cygnus.com)
15785
15786         * libc/stdio/freopen.c (freopen): Ensure stdio is initialized
15787         first.
15788         libc/stdio/fclose.c (fclose): Ditto.
15789
15790 Tue Mar 23 01:26:52 1993  Doug Evans  (dje@rtl.cygnus.com)
15791
15792         * Run through indent and rename reentrant routines for ANSI.
15793         libc/stdio/{clearerr.c cvt.c fclose.c fdopen.c feof.c ferror.c
15794         fflush.c fgetc.c fgetpos.c fgets.c findfp.c fiprintf.c flags.c
15795         fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c
15796         fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c
15797         getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c
15798         putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c
15799         scanf.c setbuf.c setvbuf.c siprintf.c sprintf.c sscanf.c stdio.c
15800         tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c
15801         vsprintf.c wbuf.c wsetup.c local.h}
15802
15803         * libc/locale/locale.c: Reformat and rename for ANSI, GNU style.
15804
15805         * Run through indent and rename xxx_r fns to _r_xxx for ANSI.
15806         libc/stdlib/{__adjust.c __exp10.c __ten_mu.c abort.c abs.c
15807         assert.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c
15808         dtoa.c ecvtbuf.c efgcvt.c exit.c getenv.c labs.c ldiv.c malloc.c
15809         mbtowc.c mprec.c putenv.c qsort.c rand.c setenv.c strdup.c
15810         strtod.c strtol.c strtoul.c system.c wctomb.c mprec.h}
15811
15812         * Run through indent.
15813         libc/string/{bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c
15814         memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c
15815         strcoll.c strcpy.c strcspn.c strerror.c strlen.c strncat.c
15816         strncmp.c strncpy.c strpbrk.c strrchr.c strspn.c strstr.c strtok.c
15817         strxfrm.c}
15818
15819         * libc/time/{asctime.c clock.c ctime.c difftime.c gmtime.c
15820         localtime.c mktime.c strftime.c time.c}:
15821         Run through indent and rename xxx_r (reentrant) fns to _r_xxx for ANSI.
15822
15823         * Reformatting + renaming (for ANSI, GNU style, consistency).
15824         libc/include/{_ansi.h, assert.h, ctype.h, errno.h, fastmath.h,
15825         ieeefp.h, locale.h, math.h, paths.h, pwd.h, reent.h, setjmp.h,
15826         signal.h, stdio.h, stdlib.h, string.h, time.h, unistd.h}
15827
15828 Fri Mar 19 11:28:01 1993  Doug Evans  (dje@cygnus.com)
15829
15830         * libc/include/stdio.h (stdin_r): Fix.
15831
15832 Fri Mar 19 09:43:48 1993  Ian Lance Taylor  (ian@cygnus.com)
15833
15834         * Makefile.in: Unexport some variables to keep GNU make from
15835         putting them in the environment and using up needed ARG_MAX space
15836         (a hack is used to let this work with older makes as well).
15837
15838 Tue Mar 16 15:11:08 1993  Ian Lance Taylor  (ian@cygnus.com)
15839
15840         * Makefile.in: Use $(MAKE) rather than make.
15841         (MAKEOVERRIDES): Define to be empty.
15842         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15843         (libc.a, libm.a): Depend on targ-include.
15844         * host/any (LD): Don't define.
15845         (INCLUDES): Use targ-include.   
15846         * stub/Makefile.in (MAKEOVERRIDES): Define to be empty.
15847         (FLAGS_TO_PASS): Don't pass down LD (it's not used).
15848         * libc/Makefile.in: Use $(MAKE) rather than make.
15849         (MAKEOVERRIDES): Define to be empty.
15850         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15851         (all): Rewrote to be slightly smaller.
15852         * libc/machine/Makefile.in, libc/sys/Makefile.in (MAKEOVERRIDES):
15853         Define to be empty.
15854         (FLAGS_TO_PASS): Don't pass LD (it's not used).
15855         * libm/Makefile.in (FLAGS_TO_PASS): Don't pass LD (it's not used).
15856
15857 Mon Mar 15 08:45:41 1993  Ian Lance Taylor  (ian@cygnus.com)
15858
15859         * libc/sys/go32/gerrno.s: Renamed from errno.s to avoid conflict
15860         with errno/errno.c.
15861
15862 Fri Mar 12 09:46:54 1993  Ian Lance Taylor  (ian@cygnus.com)
15863
15864         * Changes for reentrancy.
15865         libc/stdio/fdopen.c, libc/stdio/freopen.c, libc/stdio/perror.c:
15866         Use ptr->_errno, not errno.
15867         libc/stdio/mktemp.c (mkstemp_r, mktemp_r): New functions.
15868         libc/stdio/remove.c (remove_r): New function.
15869         libc/stdio/rename.c (rename_r): New function.
15870         libc/stdio/fopen.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15871         libc/stdio/makebuf.c, libc/stdio/mktemp.c, libc/stdio/remove.c,
15872         libc/stdio/rename.c, libc/stdio/stdio.c, libc/stdio/tmpnam.c: Use
15873         reentrant versions of system calls.
15874         libc/stdio/gets.c: Call getchar_f, not nonexistent getchar_r.
15875         libc/stdio/scanf.c: Use stdin_r, not nonexistent stdin_n.
15876         libc/stdio/tmpfile.c: Use tmpnam_f, not nonexistent tmpnam_r.
15877         libc/stdio/findfp.c: Include <string.h>.
15878         libc/stdio/fread.c, libc/stdio/rget.c, libc/stdio/scanf.c: Include
15879         "local.h".
15880         libc/stdio/wbuf.c: Include "fvwrite.h"
15881
15882         * libc/stdlib/{dtoa.c, ecvtbuf.c, mprec.c, strtod.c}: Include
15883         <string.h>.
15884         libc/stdlib/malloc.c: Call sbrk_r rather than sbrk.
15885         (NULL): Don't define if already defined.
15886         libc/stdlib/system.c: Call reentrant versions of system calls.
15887         (system_r): New function.
15888
15889         * Changes for reentrancy.
15890         libc/include/_ansi.h (_PARAMS): New macro.
15891         libc/include/errno.h: Define errno as a macro that calls __errno.
15892         (__errno_r): New macro for reentrant code.
15893         libc/include/math.h: Include reent.h.  Declare many reentrant
15894         functions.
15895         (signgam): Now a macro, not a variable.
15896         (struct exception): Added err field.
15897         libc/include/reent.h: Don't declare __sglue.  Added function
15898         declarations.
15899         (struct reent_struct): Moved errno to beginning.  Added _signgam.
15900         libc/include/stdio.h, libc/include/stdlib.h: Added function
15901         declarations.
15902
15903         * More reentrancy hacking.
15904         libc/errno/errno.c (__errno): New function.
15905         libc/reent/execr.c, libc/reent/filer.c, libc/reent/fstatr.c,
15906         libc/reent/linkr.c, libc/reent/sbrkr.c, libc/reent/statr.c: New
15907         files.
15908         
15909         * Added many new reentrant functions to libm/math/*.
15910         libm/math/error.c (__matherror): Added reent_struct pointer
15911         argument. Changed all callers.
15912         libm/math/gamma.c (signgam): Removed. Set ptr->_signgam, instead.
15913         libm/math/exp.h, libm/math/pow.h, libm/math/sincos.h,
15914         libm/math/tan.h: Removed obsolete unused header files.
15915
15916         * libc/sys/a29khif/stubs.s: Use register lr0, not v0.
15917
15918         * libc/sys/sun/Makefile.in (COPYOFILES): Don't pull in errno.o.
15919
15920 Mon Mar  8 16:43:43 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15921
15922         * libc/sys/a29khif/stubs.s: clobber safe register, and fill all
15923         delay slots.
15924
15925 Tue Mar  2 14:47:00 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15926
15927         * libc/libc.texinfo:  comment out reentrancy chapter (duh)
15928
15929 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15930
15931         * libc/reent/reent.tex:  New file.  (text from
15932         newlib/libc/libc.texinfo)
15933         * libc/stdio/tmpnam.c:  fixed doc typo
15934         * libc/stdlib/rand.c:   fixed doc typo
15935
15936 Tue Mar  2 14:34:16 1993  Jeffrey Osier      (jeffrey@fowanton.cygnus.com)
15937
15938         * libc/reent/reent.tex:  New file.  (text from
15939         newlib/libc/libc.texinfo)
15940
15941 Fri Feb 26 12:20:54 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
15942
15943         support for reentrancy
15944         * libc/reent/reent.c, libc/reent/Makefile.in, libc/reent/reent.c:
15945         new files
15946         * libc/errno/errno.c, libc/include/ieeefp.h,
15947         libc/include/locale.h, libc/include/reent.h,
15948         libc/include/signal.h, libc/include/stdio.h,
15949         libc/include/stdlib.h, libc/include/string.h, libc/include/time.h,
15950         libc/signal/signal.c libc/stdio/cvt.c, libc/stdio/fclose.c,
15951         libc/stdio/fdopen.c, libc/stdio/fflush.c, libc/stdio/fgets.c,
15952         libc/stdio/findfp.c, libc/stdio/flags.c, libc/stdio/fopen.c,
15953         libc/stdio/fputc.c, libc/stdio/freopen.c, libc/stdio/fseek.c,
15954         libc/stdio/ftell.c, libc/stdio/fwalk.c, libc/stdio/getchar.c,
15955         libc/stdio/gets.c, libc/stdio/glue.h, libc/stdio/iprintf.c,
15956         libc/stdio/local.h, libc/stdio/makebuf.c, libc/stdio/perror.c,
15957         libc/stdio/printf.c, libc/stdio/putchar.c, libc/stdio/puts.c,
15958         libc/stdio/refill.c, libc/stdio/scanf.c, libc/stdio/setvbuf.c,
15959         libc/stdio/sprintf.c, libc/stdio/tmpfile.c, libc/stdio/tmpnam.c,
15960         libc/stdio/ungetc.c, libc/stdio/vfprintf.c, libc/stdio/vfprintf.h,
15961         libc/stdio/vfscanf.c, libc/stdio/vprintf.c, libc/stdio/wsetup.c,
15962         libc/stdlib/__adjust.c, libc/stdlib/__exp10.c,
15963         libc/stdlib/assert.c, libc/stdlib/atexit.c, libc/stdlib/atol.c,
15964         libc/stdlib/dtoa.c, libc/stdlib/ecvtbuf.c, libc/stdlib/malloc.c,
15965         libc/stdlib/mprec.c, libc/stdlib/mprec.h, libc/stdlib/rand.c,
15966         libc/stdlib/setenv.c, libc/stdlib/std.h, libc/stdlib/strtod.c,
15967         libc/stdlib/strtol.c, libc/stdlib/strtoul.c, libc/string/strtok.c,
15968         libc/time/asctime.c, libc/time/localtime.c, libc/time/mktime.c,
15969         libc/time/strftime.c: modify to provide reentracy.
15970
15971         new routines:
15972         strtok_r, asctime_r, fdopen_r, _cleanup_r, fopen_r, iprintf_r,
15973         perror_r, printf_r, putchar_r, puts_r, scanf_r, sprintf_r,
15974         tmpfile_r, vfiprintf_r, vfprintf_r, strtod_r, dtoa_r, rand_r,
15975         srand_r, strtoul_r,strtol_r, free_r, malloc_r, morecore_r,
15976         mstats_r, realloc_r, localeconv_r, setlocale_r
15977
15978 Wed Feb 17 20:17:15 1993  Mark Eichin  (eichin@cygnus.com)
15979
15980         * libc/include/machine/ieeefp.h, libc/include/machine/setjmp.h,
15981         libc/include/sys/config.h, libc/include/sys/signal.h,
15982         libc/include/sys/stat.h, libc/include/sys/types.h: For compiler
15983         provided macros (such as m68000), use the ansi version
15984         (__m68000__) so that the library can be used with code compiled
15985         -ansi. In particular, m68000, mc68000, _AM29K, i386, MIPSEL, unix,
15986         and sparc.
15987
15988 Wed Feb 17 13:01:34 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
15989
15990         * configure.in (sparc*): Don't set -fsoft-float for sparc
15991         configurations.  Do set -fsoft-float for sparclite configurations.
15992
15993 Fri Feb 12 16:25:52 1993  Roland H. Pesch  (pesch@fowanton.cygnus.com)
15994
15995         * default.menu, no-signal.menu: alternate forms of libc main menu
15996           (in newlib rather than newlib/libc due to configuration restrictions)
15997
15998         * configure.in: select one of the two menus above, link to
15999         libc.menu
16000
16001         * libc/libc.texinfo: include menu from separate file
16002
16003 Fri Feb 12 12:50:06 1993  Ian Lance Taylor  (ian@cygnus.com)
16004
16005         * Makefile.in (FLAGS_TO_PASS): Put INSTALL back in.
16006         (info): Split long shell command in half.
16007         * libc/Makefile.in (info, targetdep.tex): Don't pass everything to
16008         sub-makes, just CHEW and TARGETDOC. 
16009         (targetdep.tex): Removed now special handling of sys and machine
16010         subdirectories, made obsolete some time ago.
16011         * libc/machine/Makefile.in (doc): Don't pass everything to
16012         sub-make, just CHEW and TARGETDOC.
16013         (Makefile): New target.
16014         * libc/sys/Makefile.in (Makefile): New target.
16015
16016 Thu Feb 11 15:25:15 1993  Ian Lance Taylor  (ian@cygnus.com)
16017
16018         * Makefile.in (here and most subdirectories): Only pass down CHEW
16019         and TARGETDOC when making info, not for other targets.
16020
16021         * Makefile.in (here and most subdirectories), host/any: Use $(AR)
16022         $(AR_FLAGS) rather than $(ARUPDATE).
16023
16024 Wed Feb 10 11:57:52 1993  Ian Lance Taylor  (ian@cygnus.com)
16025
16026         * Try to reduce command line length:
16027         * Makefile.in (FLAGS_TO_PASS): don't pass down exec_prefix,
16028         CC_FOR_BUILD, CFLAGS_FOR_BUILD, INSTALL or CHEW.
16029         (info, docs): pass CC_FOR_BUILD and CFLAGS_FOR_BUILD to doc.
16030         (info): Pass CHEW to other subdirs.
16031
16032 Tue Feb  9 14:01:42 1993  Mark Eichin  (eichin@cygnus.com)
16033
16034         * configure.in: add signal_dir, like unix_dir, but by default it
16035         is set to "signal" so that a29khif can turn it off (since a29khif
16036         has raise() as part of machine-specific signal.s.)
16037
16038 Fri Jan 15 12:09:50 1993  Steve Chamberlain  (sac@thepub.cygnus.com)
16039
16040         * libc/sys/config.h, libc/machine/ieeefp.h: add Z8000 support
16041         * libc/stdio/Makefile.in: pass CFLAGS so vfiprintf.c gets built
16042         correctly.
16043         * libc/stdio/fdopen.c, libc/stdio/fgets.c, libc/stdio/fscanf.c,
16044         libc/stdio/vfprintf: type lint.
16045         * libc/sys/z8ksim/crt0.c (start): Z8001/Z8002 independent
16046         initialzation code.
16047         * libc/sys/z8ksim/glue.c: Z8001/Z8002 clean system calls.
16048
16049 Tue Dec 29 10:15:33 1992  Ian Lance Taylor  (ian@cygnus.com)
16050
16051         * stub/mvme135/mvme135-asm.S: new file.
16052         stub/mvme135mvme135-stub.c: moved all assembler routines into
16053         mvme135-asm.S.
16054         stub/mvme135/Makefile.in: build mvme135-stub.o.
16055
16056 Mon Dec 28 12:40:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16057
16058         * Makefile.in: don't pass down $(CPP); use $(CC) -E in
16059         sub-Makefiles instead, to try to avoid line length limitations.
16060
16061 Mon Dec 21 18:36:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
16062
16063         * libc/include/unistd.h (read, write):  Use void* instead of
16064         char*.
16065
16066 Thu Dec 17 13:49:46 1992  Mark Eichin  (eichin@cygnus.com)
16067
16068         * stub/go32/resetpc: sample script to send a reset packet to the
16069         stub
16070
16071         * stub/go32/I386STUB.C: new file, gdb/i386stub.c modified for the
16072         DOS environment, which compiles with Turbo C.
16073
16074         * stub/go32/DSER32.LNK: new file, linker commands for serial
16075         remote stub.
16076
16077         * stub/go32/CONTROL.C: turn off debug_mode, add CYGNUS tag line to
16078         start up message to identify version; call set_debug_traps.
16079
16080         * stub/go32/DEBUG.C: turn off debug_mode (so stub doesn't need any
16081         keyboard interaction); call handle_exception() in go_til_stop,
16082         rather than return, so that the remote stub gets control.
16083
16084         * stub/go32/MAKEFILE: fixed to actually use DOS commands (del and
16085         rename, rather than mv), set flags that work with current Turbo C,
16086         including using the /3 flag; also, add commands to build dser32.
16087
16088         * stub/go32/DEBUG32.LNK, stub/go32/GO32.LNK: fix paths to match
16089         default Turbo C installation (\tc rather than \usr)
16090
16091         * stub/go32/MONO.C (printf): current Turbo C uses "..." instead of
16092         "&..."
16093
16094 Mon Dec 14 09:37:33 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16095
16096         * libc/include/math.h: added _DOUBLE_IS_32BITS checks
16097
16098 Thu Nov 12 22:31:04 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16099
16100         * libc/stdio/cvt.c (licvt): new function to convert ints when
16101         sizeof(int) != sizeof(long).
16102
16103         * libc/include/stdio.h: added prototype for iprintf.
16104         * libc/include/machine/limits.h machine/ieeefp.h: z8k stuff
16105
16106 Tue Nov 10 12:18:12 1992  Ian Lance Taylor  (ian@cygnus.com)
16107
16108         * libc/machine/m68k/setjmp.S: use __USER_LABEL_PREFIX__ and
16109         __REGISTER_PREFIX__.
16110
16111 Mon Nov  2 13:50:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16112
16113         * libc/sys/m68kbare: moved into stub directory.
16114
16115 Mon Nov  2 13:40:42 1992  Ian Lance Taylor  (ian@cygnus.com)
16116
16117         * configure.in, Makefile.in: created new directory stub, to hold
16118         sample code for specific targets.
16119
16120 Wed Oct 28 02:19:55 1992  Mark Eichin  (eichin@cygnus.com)
16121
16122         * restored libc/sys/go32/sys/fcntl.h, to override incorrect values
16123         in the unified libc/include/sys/fcntl.h.
16124
16125 Wed Oct 21 13:55:58 1992  Doug Evans  (dje@rtl.cygnus.com)
16126
16127         * libc/stdlib/ecvtbuf.c: (print_f,_gcvt): printf("%f", 0.01)
16128         printed .01, not 0.01.
16129
16130 Mon Oct 19 11:05:55 1992  Ian Lance Taylor  (ian@cygnus.com)
16131
16132         * configure.in: compile with -m68000 for m68* targets.
16133
16134 Sun Oct 18 05:29:05 1992  Mark Eichin  (eichin@cygnus.com)
16135
16136         * libm/math/remainder.c (remainder): document the svr4 and sunos
16137         references used to construct the function.
16138
16139 Sat Oct 17 21:46:16 1992  Mark Eichin  (eichin@cygnus.com)
16140
16141         * libm/math/remainder.c (rint, remainder): fix old typos.
16142         * libm/math/Makefile.in: actually build remainder.c (functions
16143         rint and remainder, from SysVr4 Programmer's Guide floor(3m) man
16144         page.)
16145
16146 Thu Oct 15 07:48:05 1992  Ian Lance Taylor  (ian@cygnus.com)
16147
16148         * libc/string/bcopy.c: BSD version works on overlapping strings,
16149         so ours should too.
16150
16151         * libc/stdlib/system.c: always invoke /bin/sh, not getenv
16152         ("SHELL").
16153
16154 Wed Oct 14 11:07:11 1992  Ian Lance Taylor  (ian@cygnus.com)
16155
16156         * Makefile.in (docs): new target.
16157
16158 Wed Oct 14 07:44:25 1992  Ian Lance Taylor  (ian@cygnus.com)
16159
16160         * libc/include/sys/times.h: define clock_t as required by POSIX.
16161         libc/include/time.h: protect clock_t from multiple definitions.
16162
16163 Wed Oct  7 11:02:21 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16164
16165         * libm/math/sqrt.h (sqrt): actually, the final version of fp-bit
16166         does not need more than the original three iterations to get
16167         within 1 ulp. (Paranoia tests for rounding to better than that,
16168         but further iterations *don't* help, only more subtle changes
16169         can.)
16170
16171 Tue Oct  6 09:22:12 1992  Ian Lance Taylor  (ian@cygnus.com)
16172
16173         * libc/sys/vxworks68, libc/sys/vxworks960: removed, since they
16174         were doing nothing useful.
16175
16176 Tue Oct  6 08:48:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16177
16178         * configure.in: define MALLOC_PROVIDED for vxworks targets;
16179         removed sys_dir settings of vxworks68 and vxworks960.
16180         host/any: don't pass -nostdinc to gcc, since newlib no longer
16181         provides all required header files.
16182
16183         * libc/stdlib/malloc.c: only compile this file if MALLOC_PROVIDED
16184         is not defined; this provides a hook for VxWorks.
16185
16186 Mon Oct  5 03:44:57 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16187
16188         * libc/stdio/setvbuf.c (setvbuf): while ANSI does say to malloc a
16189         buffer if buf is NULL, don't do it here -- it is already being
16190         done by makebuf elsewhere in stdio.
16191
16192 Fri Oct  2 13:12:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16193
16194         * libc/sys/a29khif/Makefile.in: assemble Steve's list of stubs so
16195         that C programs can call functions without using initial
16196         underscores.
16197
16198 Thu Oct  1 09:37:47 1992  Ian Lance Taylor  (ian@cygnus.com)
16199
16200         * libc/stdlib/abort.c (abort): call exit, in case kill returns.
16201
16202 Wed Sep 30 08:22:18 1992  Ian Lance Taylor  (ian@cygnus.com)
16203
16204         * configure.in: set TARGET_CFLAGS for certain CPU types to
16205         -msoft-float.
16206
16207 Tue Sep 29 21:09:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16208
16209         * libc/sys/m68kbare/glue.c: use <_ansi.h> instead of <ansidecl.h>
16210
16211 Mon Sep 28 14:58:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16212
16213         * configure.in: added sys_dir m68kbare for m68k*-unknown-aout and
16214         m68k*-unknown-coff.
16215
16216 Fri Sep 25 08:33:21 1992  Ian Lance Taylor  (ian@cygnus.com)
16217
16218         * libc/include/stdio.h: define __need___va_list before including
16219         <stdarg.h>, to avoid defining va_arg, et. al.
16220
16221 Tue Sep 22 13:47:00 1992  Ian Lance Taylor  (ian@cygnus.com)
16222
16223         * libc/sys/Makefile.in: handle the case of an empty $(sys_dir)
16224         (don't cd to the user's home directory).
16225
16226         * libc/Makefile.in: replaced all instances of $(MAKE) with make.
16227         In general this is the wrong thing to do, but I can't get around
16228         GNU make's insistence on passing command line arguments any other
16229         way.
16230
16231 Tue Sep 22 10:12:44 1992  Ian Lance Taylor  (ian@cygnus.com)
16232
16233         * configure.in: always configure the libc/sys directory, since it
16234         now provides a required documentation file.
16235
16236         * Makefile.in: replaced all instances of $(MAKE) with make.  In
16237         general this is the wrong thing to do, but I can't get around GNU
16238         make's insistence on passing command line arguments any other way.
16239
16240 Mon Sep 21 22:42:26 1992  Ian Lance Taylor  (ian@tweedledumbest.cygnus.com)
16241
16242         * libc/stdlib/ecvtbuf.c (_gcvt): string for 0 was not null
16243         terminated.
16244
16245         * libc/stdio/local.h: include <stdarg.h> to define va_list.
16246         libc/stdio/vsprintf.c: include <stdarg.h> rather than <varargs.h>.
16247
16248         * libc/include/float.h, libc/include/stdarg.h,
16249         libc/include/stddef.h, libc/include/varargs.h: removed; use gcc
16250         versions instead.
16251         libc/include/stdio.h: get size_t from <stddef.h>, and va_list from
16252         <stdarg.h>, not from <machine/types.h>.  Protect definition of
16253         NULL.
16254         libc/include/time.h: get size_t from stddef.h.  Protect definition
16255         of NULL.
16256         libc/include/machine/limits.h: override gcc <limits.h> by defining
16257         _LIMITS_H___.  Don't define CLK_TCK.  Copied in gcc <limits.h> to
16258         get correct INT_MIN and LONG_LONG values.
16259         libc/include/machine/types.h: don't define ptrdiff_t, wchar_t,
16260         size_t or va_list at all; they're now gotten from stddef.h
16261         instead.
16262         libc/include/machine/varargs.h: removed; use gcc version instead.
16263         libc/include/sys/types.h: explicitly include <machine/types.h>.
16264
16265         * libm/math/sqrt.h: using the fp-bit routines appears to require
16266         more iterations.
16267
16268         * Makefile.in, host/any: let system include files override machine
16269         include files.
16270
16271 Sat Sep 19 21:10:06 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16272
16273         * libc/include/machine/types.h: allow __*_TYPE__ from cpp to
16274         override _*_T_ definitions defaulted here.
16275
16276 Tue Sep 15 11:14:46 1992  Ian Lance Taylor  (ian@cygnus.com)
16277
16278         * Makefile.in (install): install the include files in
16279         $(tooldir)/include, not $(exec_prefix)/include.
16280
16281 Fri Sep 11 15:48:43 1992  Ian Lance Taylor  (ian@cygnus.com)
16282
16283         * Makefile.in (install): fixed typo, and changed install to not
16284         force rebuild of libc.a and libm.a.
16285
16286 Thu Sep 10 10:46:09 1992  Ian Lance Taylor  (ian@cygnus.com)
16287
16288         * libc/sys/a29khif/*: Changed all .include's to include
16289         sys/sysmac.h, not plain sysmac.h.  The header files live in sys so
16290         that they will be installed for the user.
16291
16292         * Makefile.in (all): create targ-include, a directory holding the
16293         machine and system specific header files during the build.
16294         (install): fixed installation of machine and system specific
16295         header files.
16296
16297         * Makefile.in: fixed comment.
16298         host/any: change .s.o rule to use $(AS) rather than $(CC), so that
16299         we can pass $(INCLUDES) to it.
16300
16301 Thu Sep 10 10:13:13 1992  Ian Lance Taylor  (ian@cygnus.com)
16302
16303         * libc/include/sys/param.h: new generic file, which may be
16304         overridden for specific systems.
16305
16306         * libc/include/sys/signal.h: define all ANSI signal names, and
16307         NSIG (which is not ANSI) for a29k.
16308
16309 Tue Sep  8 09:04:30 1992  Ian Lance Taylor  (ian@cygnus.com)
16310
16311         * Makefile.in: don't pass down arguments the lower level makes
16312         will not need.
16313         * libc/Makefile.in: recurse directly, rather than using subdir_do,
16314         in hopes of avoiding argument length limits.
16315         * libm/Makefile.in: recurse directly, rather using subdir_do, in
16316         hopes of avoiding argument length limits.
16317
16318 Tue Sep  8 08:27:22 1992  Ian Lance Taylor  (ian@cygnus.com)
16319
16320         * libc/include/sys/fcntl.h: include <sys/types.h> to ensure that
16321         mode_t is defined.
16322
16323 Mon Sep  7 14:02:07 1992  Ian Lance Taylor  (ian@cygnus.com)
16324
16325         * Fixed make info and make install-info for newlib, changing most
16326         Makefile.in and several *.tex files.  Moved doc directory from
16327         libc to top level.
16328
16329         * libc/time/mktime.c (_DAYS_IN_MONTH): actually, not const.
16330         Should be rewritten.
16331
16332         * libc/string/strings.tex: renamed node index to node index
16333         function, so that it does not conflict with the top level index
16334         node.
16335
16336         * libc/include/sys/config.h: define __IEEE_BIG_ENDIAN for h8300.
16337
16338 Fri Sep  4 02:34:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16339
16340         * Overhauled general configuration for newlib.  Eliminated all
16341         target dependent Makefile fragments.  Create libraries in newlib
16342         rather than newlib/libc and newlib/libm.  Use CC, et. al., rather
16343         than CROSS_CC, et. al.  Broke make docs; will fix later.
16344
16345         * libc/time/localtime.c (_DAYS_IN_MONTH): actually, not const.
16346         Should be rewritten.
16347
16348 Tue Sep  1 15:21:14 1992  Ian Lance Taylor  (ian@cygnus.com)
16349
16350         * libc/configure.in: cleaned up somewhat; switch on ${target}
16351         rather than ${target_alias}.
16352         * libm/configure.in: cleaned up somewhat; switch on ${target}
16353         rather than ${target_alias}.
16354
16355         * libc/ctype/ctype_.c: marked _ctype_ array _CONST.
16356         * libc/include/ctype.h: marked _ctype_ as _CONST.
16357
16358         * libc/locale/locale.c (lconv, localeconv): marked static lconv as
16359         _CONST.
16360
16361         * libc/stdio/cvt.c, libc/stdio/findfp.c (__sfmoreglue),
16362         libc/stdio/vfscanf.c (__svfscanf): made static variables const.
16363         libc/stdio/gets.c (gets): removed non-ANSI warning message.
16364         libc/stdio/tmpnam.c (tmpnam): removed unneeded filename variable.
16365
16366         * libc/stdlib/mprec.h, libc/stdlib/mprec.c (pow5mult, tens,
16367         bigtens, tinytens): marked arrays _CONST.
16368         libc/stdlib/qsort.c (swap): if __GNUC__, use _builtin_alloca
16369         rather than a static variable.
16370
16371         * libc/time/asctime.c (asctime), libc/time/localtime.c
16372         (_DAYS_IN_MONTH), libc/time/mktime.c (_DAYS_IN_MONTH,
16373         _DAYS_BEFORE_MONTH), libc/time/strftime.c (dname_len, dname,
16374         mname_len, mname): Marked static arrays _CONST.
16375
16376         * libm/math/gamma.h: made local variables non-static.
16377
16378         * libm/math/acos.h, libm/math/bessel.c, libm/math/erf.c,
16379         libm/math/exp.c, libm/math/gamma.h: marked static arrays as
16380         _CONST.
16381
16382         * libm/math/constants.c: removed file, because the constants it
16383         defined were never referenced.
16384         libm/math/Makefile.in: removed references to constants.c.
16385         libm/math/mathimpl.h: removed declarations of constants.
16386
16387 Wed Aug 26 21:09:06 1992  Ian Lance Taylor  (ian@cygnus.com)
16388
16389         * libc/include/machine/varargs.h: only call __builtin_saveregs if
16390         it is sensibly defined in libgcc2.  Checks preprocessor defines,
16391         which is not a good solution.
16392
16393         * libm/sqrt.c: sqrt(Infinity) should not be a domain error.
16394
16395         * libm/frexp.c: handle denormalized numbers as arguments.
16396
16397         * libm/math/Makefile.in: added some dependencies for .c files
16398         which include local .h files.
16399
16400 Mon Aug 24 12:57:58 1992  Ian Lance Taylor  (ian@cygnus.com)
16401
16402         * libc/configure.in: set target_alias for OSE*.  Replace
16403         target_makefile_frag if it is blank.
16404
16405         * libc/Makefile.in: make sure everything is passed to subsidiary
16406         makes; create all directories when installing.
16407
16408         * libm/ieeefp/Makefile.in, libm/math/Makefile.in: use
16409         CROSS_ARUPDATE instead of AR.
16410
16411         * libm/configure.in: set target_alias for OSE*.  Replace
16412         target_makefile_frag if it is blank.
16413
16414         * libm/Makefile.in: make sure everything is passed to subsidiary
16415         makes; create all directories when installing.
16416
16417 Thu Aug 20 15:11:51 1992  Mark Eichin  (eichin@cygnus.com)
16418
16419         * add following change from libc copy.
16420
16421 Wed Aug 19 18:54:49 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16422
16423         * libc/libc.texinfo: make copyright disclaimers appear on back of
16424         title page; make format of same slightly less ugly; avoid using
16425         underbars in section headings (avoids nasty texinfo bug in table
16426         of contents).
16427
16428         * libc/ctype/tolower.c, libc/ctype/toupper.c: (doc changes in
16429           comments only) avoid using underbars in section headings
16430
16431         * libc/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16432           isnan ieeefp/fpmask.c, ieeefp/fpround.c, ieeefp/fpsticky.c (doc
16433           changes in comments only): shorten headings ieeefp/infinity.c,
16434           ieeefp/isnan.c: (doc, comments only) more informative headings
16435
16436         * libc/math/bessel.c: (doc, comments only) shorten heading
16437
16438         * libc/stdlib/efgcvt.c, libc/stdlib/mbtowc.c, libc/stdlib/wctomb.c
16439         (doc, comments only) shorten headings
16440
16441         * libc/time/localtime.c (doc, comments only): shorten headings
16442
16443         * libm/ieeefp/ieeefp.tex: include doc from fpsticky, infinity,
16444           isnan
16445           libm/ieeefp/fpmask.c, libm/ieeefp/fpround.c,
16446           libm/ieeefp/fpsticky.c (doc changes in comments only): shorten
16447           headings
16448           libm/ieeefp/infinity.c, libm/ieeefp/isnan.c: (doc, comments
16449           only) more informative headings
16450         * libm/math/bessel.c: (doc, comments only) shorten heading
16451
16452 Wed Aug 19 07:06:37 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
16453
16454         * .../Makefile.in: use CROSS_ARUPDATE consistently.
16455         * config/*.mt: define CROSS_AR as well as CROSS_ARUPDATE
16456         * config/*.mt: define CROSS_CPP based on CROSS_CC, not /lib/cpp.
16457         * .../Makefile.in: get rid of .c.o rule - if TOP is correctly
16458         defined, the one from the .mt file will be correct.
16459         * libc/include/machine, libc/include/sys: created, and populated
16460         with common files from machine/*/machine. ifdefs were used for
16461         most, typically by handling exceptions first and then filling in
16462         defaults. Files with D.J. Delorie copyright #included rather than
16463         copied. Most files in include/sys really were the same in the
16464         original.
16465         * libc/include/...: cleaned up use of _EXFUN.
16466         * libc/stdlib/mprec.c: mprec.h doesn't get installed, so include
16467         it with double quotes, not angles.
16468
16469 Mon Aug 10 11:43:20 1992  Ian Lance Taylor  (ian@dumbest.cygnus.com)
16470
16471         * libc/Makefile.in: always create installation directories.
16472
16473 Sun Aug  9 22:45:48 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
16474
16475         * libc/configure.in: handle host properly (using canonical
16476         triples), better error message for the case of target not found
16477
16478 Thu May 28 01:56:37 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
16479
16480         * libc/Makefile.in (insincdir): Ensure this directory exists
16481         before attempting installation.
16482
16483 Fri May  1 18:16:42 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16484
16485         * libc/stdlib/assert.c: now calls abort like it should
16486         * libc/sys/a29khif: many many patches for 29khif work
16487         * libc/machine/i386: gnulib2 expanded there.
16488
16489 Tue Apr 28 19:08:37 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16490
16491         Added accurate fp conversion routines to stdlib, moved dcvt from
16492         stdio to stdlib and called it ecvtbuf:
16493         * libc/stdlib/mprec.c, mprec.h: new files for multiprec arithmetic
16494         * libc/stdlib/Makefile.in, efgcvt.c, strtod.c: modified to use new
16495         routines
16496         * libc/libc.texinfo: Modifed to include the copyright info from
16497         the mprec files
16498         * libc/stdlib/efgcvt.c: now xref to ecvtbuf in stdlib.
16499         * libc/test/ : many vector which tested for the implementation
16500         defined returns of strange conversion requests have been updated
16501         to relflect the new implementation
16502
16503 Mon Apr 27 13:41:33 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16504
16505         * libc/libc.texinfo: new chapter on variable arg lists
16506         (stdarg.h/varargs.h)
16507         * libc/libc.texinfo: new title
16508         * libc/time/gmtime.c, libc/time/localtime./c, libc/time/mktime.c:
16509         (doc only) shorter headings for better formatting.
16510
16511 Fri Apr 24 11:26:48 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16512
16513         * libc/libc.texinfo: three more info menu entries
16514         * libc/locale/locale.tex: new chapter
16515         * libc/locale/locale.c: new doc for setlocale, localeconv
16516         * libc/locale/Makefile.in: use new locale doc
16517         * libc/signal/signal.tex: new chapter
16518         * libc/signal/raise.c, libc/signal/signal.c: new doc
16519         * libc/signal/Makefile.in: use new doc
16520         * libc/time/time.tex: new chapter
16521         * libc/time/asctime.c libc/time/clock.c libc/time/ctime.c
16522         libc/time/difftime.c libc/time/gmtime.c libc/time/localtime.c
16523         libc/time/mktime.c libc/time/strftime.c libc/time/time.c: new doc
16524         * libc/time/Makefile.in: use new doc
16525
16526 Tue Apr 21 14:48:50 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16527
16528         * libm/math/log1p.c: split to use the new function way of float
16529         function definition. math/log1p.h deleted
16530         * libm/math/scalb.c: obsolete and deleted
16531         * libm/math/scalbn.c: created from part log1p.c
16532         * libm/math/Makefile.in: know about log1p and scalbn
16533
16534 Tue Apr 21 12:32:21 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16535
16536         * libc/ctype/isupper.c: revise doc;
16537           libc/ctype/ctype.tex: use doc from isupper.c
16538
16539         * libc/string/bzero.c: new doc
16540
16541 Mon Apr 20 14:19:42 1992  Roland H. Pesch  (pesch@fowanton.cygnus.com)
16542
16543         * libc/stdlib/system.c, libc/stdlib/exit.c, libc/stdlib/abort.c:
16544         new doc
16545         * libc/stdlib/Makefile.in: extract new doc
16546         * libc/stdlib/stdlib.tex: use new doc
16547
16548         * libc/string/strerror.c: expanded doc.
16549
16550         * libc/stdio/Makefile.in: extract doc from more files
16551         * libc/stdio/fopen.c, libc/stdio/perror.c, libc/stdio/remove.c,
16552         libc/stdio/rename.c, libc/stdio/rewind.c, libc/stdio/setbuf.c,
16553         libc/stdio/setvbuf.c, libc/stdio/sprintf.c, libc/stdio/tmpfile.c,
16554         libc/stdio/tmpnam.c, libc/stdio/vfprintf.c, libc/stdio/vprintf.c,
16555         libc/stdio/vsprintf.c: new doc
16556         * libc/stdio/stdio.tex: use new doc
16557
16558 Mon Apr 20 09:38:17 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16559
16560         * libc/config/ebmon29k: added CROSS_CPP rule and other fixes
16561         * libc/include/ieeefp.h: fixed ansi conflict with isnanf, isinff,
16562         finitef functions.
16563         * libc/sys/a29khif/sys/*.h: ansidecl.h was renamed to _ansi.h some
16564         time ago.
16565
16566         * libc/stdio/stdio.h: added P_tmpdir for /tmp (SVID thing)
16567         * libc/stdio/setbuf.c: added ansi style definition.
16568         * libc/stdio/setvbuf.c: added ansi definition, now mallocs own
16569         buffer if none provided.
16570         * libc/stdio/tmpfile.c: lint
16571         * libc/stdio/tmpnam.c (worker): created. (tmpnam): mallocs buffer
16572         rather than using static, also make sure file isn't already
16573         present.  Uses P_tmpdir. (tempnam): rewritten to use new
16574         subroutine, and uses P_tmpdir.
16575         * libc/stdio/siprintf.c: created
16576
16577 Mon Apr 13 09:12:58 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
16578
16579         Release 1.03 for NEC, major mods. Main differences from release
16580         1.02::
16581
16582         More tests in test/:
16583         * jn_vec.c, jnf_vec.c, yn_vec.c, ynf_vec.c, log2_vec.c,
16584         log2f_vec.c, atan2_vec.c, atan2f_vec.c: new test vectors.
16585         * test_ieee.c: tests for ieee flags & masks - get/set rounding,
16586         get/set mask, get/set sticky and get/set roundtoi.  Tests
16587         that setting the bits changes the way arithmetic is done.
16588         * string.c: added test to make sure memcmp does it with unsigned
16589         chars.
16590         * test.c: cleaned up and removed lint.
16591         * sprint_vec, sprint_ivec.c, convert.c, conv_vec.c, iconf_vec.c,
16592         dvec.c: tests for string to value conversions,  sprintf, scanf,
16593         atof, atoff, strtod, strtodf, atoi, atol, strtol, ecvtbuf, ecvt,
16594         ecvtf,  fcvtbuf, fcvt, fcvtf, gcvt, gcvtf.  Some attention paid to
16595         rounding in sprintf too.
16596         * test_is.c: tests for  isalnum, isalpha, isascii, iscntrl,
16597         isdigit, isgraph, islower, isprint, ispunct, isspace, isupper,
16598         isxdigit, toascii, tolower, toupper, _tolower, _toupper in macro
16599         and function form.
16600         * math2.c: test for frexp, frexpf, ldexp, ldexpf, modf modff, pow,
16601         powf
16602
16603         In the library:
16604         * libc/stdlib/div.c, libc/stdlib/ldiv.c, libc/stdlib/strtod.c,
16605         libc/stdlib/strtol.c, libc/stdlib/stroul.c, libc/stdlib/abs.c,
16606         libc/stdlib/bsearch.c, libc/stdlib/calloc.c, libc/stdlib/getenv.c,
16607         libc/stdlib/labs.c, libc/stdlib/malloc.c: new documentation
16608         * libc/stdlib/efgcvt.c: rewritten to use new _dcvt routines rather
16609         than sprintf.
16610         * libc/stdio/dcvt.c: rewritten to make more useful elsewhere. 
16611         * Method of producting float versions of double functions has
16612         changed, functions will be modified gradually. So far:
16613         libm/math/exp.c, libm/math/pow.c, libm/math/modf.c,
16614         libm/math/sincos.c, libm/math/fmod.c, libm/math/tan.c have been
16615         altered
16616         * libc/string/memcmp.c: now uses unsigned chars
16617         * libc/string/bcmp.c, libc/string/strcpy.c,
16618         libc/stsring/strxfrm.c: fixed doc
16619         * libc/sys/sysvnecv70.tex: fix example of sbrk code
16620 \f
16621 Local Variables:
16622 version-control: never
16623 End: